MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  z12addscl Structured version   Visualization version   GIF version

Theorem z12addscl 28707
Description: The dyadics are closed under addition. (Contributed by Scott Fenton, 11-Dec-2025.)
Assertion
Ref Expression
z12addscl ((𝐴 ∈ ℤs[1/2] ∧ 𝐵 ∈ ℤs[1/2]) → (𝐴 +s 𝐵) ∈ ℤs[1/2])

Proof of Theorem z12addscl
Dummy variables 𝑎 𝑏 𝑐 𝑛 𝑚 𝑝 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 elz12s 28702 . 2 (𝐴 ∈ ℤs[1/2] ↔ ∃𝑎 ∈ ℤs𝑛 ∈ ℕ0s 𝐴 = (𝑎 /su (2ss𝑛)))
2 elz12s 28702 . 2 (𝐵 ∈ ℤs[1/2] ↔ ∃𝑏 ∈ ℤs𝑚 ∈ ℕ0s 𝐵 = (𝑏 /su (2ss𝑚)))
3 reeanv 3240 . . . . 5 (∃𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s (𝐴 = (𝑎 /su (2ss𝑛)) ∧ 𝐵 = (𝑏 /su (2ss𝑚))) ↔ (∃𝑛 ∈ ℕ0s 𝐴 = (𝑎 /su (2ss𝑛)) ∧ ∃𝑚 ∈ ℕ0s 𝐵 = (𝑏 /su (2ss𝑚))))
432rexbii 3144 . . . 4 (∃𝑎 ∈ ℤs𝑏 ∈ ℤs𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s (𝐴 = (𝑎 /su (2ss𝑛)) ∧ 𝐵 = (𝑏 /su (2ss𝑚))) ↔ ∃𝑎 ∈ ℤs𝑏 ∈ ℤs (∃𝑛 ∈ ℕ0s 𝐴 = (𝑎 /su (2ss𝑛)) ∧ ∃𝑚 ∈ ℕ0s 𝐵 = (𝑏 /su (2ss𝑚))))
5 reeanv 3240 . . . 4 (∃𝑎 ∈ ℤs𝑏 ∈ ℤs (∃𝑛 ∈ ℕ0s 𝐴 = (𝑎 /su (2ss𝑛)) ∧ ∃𝑚 ∈ ℕ0s 𝐵 = (𝑏 /su (2ss𝑚))) ↔ (∃𝑎 ∈ ℤs𝑛 ∈ ℕ0s 𝐴 = (𝑎 /su (2ss𝑛)) ∧ ∃𝑏 ∈ ℤs𝑚 ∈ ℕ0s 𝐵 = (𝑏 /su (2ss𝑚))))
64, 5bitri 278 . . 3 (∃𝑎 ∈ ℤs𝑏 ∈ ℤs𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s (𝐴 = (𝑎 /su (2ss𝑛)) ∧ 𝐵 = (𝑏 /su (2ss𝑚))) ↔ (∃𝑎 ∈ ℤs𝑛 ∈ ℕ0s 𝐴 = (𝑎 /su (2ss𝑛)) ∧ ∃𝑏 ∈ ℤs𝑚 ∈ ℕ0s 𝐵 = (𝑏 /su (2ss𝑚))))
7 simpll 779 . . . . . . . . . . 11 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → 𝑎 ∈ ℤs)
87znod 28613 . . . . . . . . . 10 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → 𝑎 No )
9 simprl 783 . . . . . . . . . 10 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → 𝑛 ∈ ℕ0s)
10 simprr 785 . . . . . . . . . 10 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → 𝑚 ∈ ℕ0s)
118, 9, 10pw2divscan4d 28674 . . . . . . . . 9 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (𝑎 /su (2ss𝑛)) = (((2ss𝑚) ·s 𝑎) /su (2ss(𝑛 +s 𝑚))))
12 simplr 781 . . . . . . . . . . . 12 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → 𝑏 ∈ ℤs)
1312znod 28613 . . . . . . . . . . 11 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → 𝑏 No )
1413, 10, 9pw2divscan4d 28674 . . . . . . . . . 10 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (𝑏 /su (2ss𝑚)) = (((2ss𝑛) ·s 𝑏) /su (2ss(𝑚 +s 𝑛))))
1510n0nod 28555 . . . . . . . . . . . . 13 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → 𝑚 No )
169n0nod 28555 . . . . . . . . . . . . 13 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → 𝑛 No )
1715, 16addscomd 28197 . . . . . . . . . . . 12 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (𝑚 +s 𝑛) = (𝑛 +s 𝑚))
1817oveq2d 7439 . . . . . . . . . . 11 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (2ss(𝑚 +s 𝑛)) = (2ss(𝑛 +s 𝑚)))
1918oveq2d 7439 . . . . . . . . . 10 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (((2ss𝑛) ·s 𝑏) /su (2ss(𝑚 +s 𝑛))) = (((2ss𝑛) ·s 𝑏) /su (2ss(𝑛 +s 𝑚))))
2014, 19eqtrd 2801 . . . . . . . . 9 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (𝑏 /su (2ss𝑚)) = (((2ss𝑛) ·s 𝑏) /su (2ss(𝑛 +s 𝑚))))
2111, 20oveq12d 7441 . . . . . . . 8 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → ((𝑎 /su (2ss𝑛)) +s (𝑏 /su (2ss𝑚))) = ((((2ss𝑚) ·s 𝑎) /su (2ss(𝑛 +s 𝑚))) +s (((2ss𝑛) ·s 𝑏) /su (2ss(𝑛 +s 𝑚)))))
22 2no 28649 . . . . . . . . . . 11 2s No
23 expscl 28661 . . . . . . . . . . 11 ((2s No 𝑚 ∈ ℕ0s) → (2ss𝑚) ∈ No )
2422, 10, 23sylancr 599 . . . . . . . . . 10 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (2ss𝑚) ∈ No )
2524, 8mulscld 28365 . . . . . . . . 9 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → ((2ss𝑚) ·s 𝑎) ∈ No )
26 expscl 28661 . . . . . . . . . . 11 ((2s No 𝑛 ∈ ℕ0s) → (2ss𝑛) ∈ No )
2722, 9, 26sylancr 599 . . . . . . . . . 10 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (2ss𝑛) ∈ No )
2827, 13mulscld 28365 . . . . . . . . 9 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → ((2ss𝑛) ·s 𝑏) ∈ No )
29 n0addscl 28574 . . . . . . . . . 10 ((𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s) → (𝑛 +s 𝑚) ∈ ℕ0s)
3029adantl 487 . . . . . . . . 9 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (𝑛 +s 𝑚) ∈ ℕ0s)
3125, 28, 30pw2divsdird 28678 . . . . . . . 8 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → ((((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) /su (2ss(𝑛 +s 𝑚))) = ((((2ss𝑚) ·s 𝑎) /su (2ss(𝑛 +s 𝑚))) +s (((2ss𝑛) ·s 𝑏) /su (2ss(𝑛 +s 𝑚)))))
3221, 31eqtr4d 2804 . . . . . . 7 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → ((𝑎 /su (2ss𝑛)) +s (𝑏 /su (2ss𝑚))) = ((((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) /su (2ss(𝑛 +s 𝑚))))
33 oveq1 7430 . . . . . . . . . 10 (𝑐 = (((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) → (𝑐 /su (2ss𝑝)) = ((((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) /su (2ss𝑝)))
3433eqeq2d 2777 . . . . . . . . 9 (𝑐 = (((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) → (((((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) /su (2ss(𝑛 +s 𝑚))) = (𝑐 /su (2ss𝑝)) ↔ ((((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) /su (2ss(𝑛 +s 𝑚))) = ((((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) /su (2ss𝑝))))
35 oveq2 7431 . . . . . . . . . . 11 (𝑝 = (𝑛 +s 𝑚) → (2ss𝑝) = (2ss(𝑛 +s 𝑚)))
3635oveq2d 7439 . . . . . . . . . 10 (𝑝 = (𝑛 +s 𝑚) → ((((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) /su (2ss𝑝)) = ((((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) /su (2ss(𝑛 +s 𝑚))))
3736eqeq2d 2777 . . . . . . . . 9 (𝑝 = (𝑛 +s 𝑚) → (((((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) /su (2ss(𝑛 +s 𝑚))) = ((((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) /su (2ss𝑝)) ↔ ((((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) /su (2ss(𝑛 +s 𝑚))) = ((((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) /su (2ss(𝑛 +s 𝑚)))))
38 2nns 28648 . . . . . . . . . . . . 13 2s ∈ ℕs
39 nnzs 28616 . . . . . . . . . . . . 13 (2s ∈ ℕs → 2s ∈ ℤs)
4038, 39ax-mp 5 . . . . . . . . . . . 12 2s ∈ ℤs
41 zexpscl 28664 . . . . . . . . . . . 12 ((2s ∈ ℤs𝑚 ∈ ℕ0s) → (2ss𝑚) ∈ ℤs)
4240, 10, 41sylancr 599 . . . . . . . . . . 11 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (2ss𝑚) ∈ ℤs)
4342, 7zmulscld 28627 . . . . . . . . . 10 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → ((2ss𝑚) ·s 𝑎) ∈ ℤs)
44 zexpscl 28664 . . . . . . . . . . . 12 ((2s ∈ ℤs𝑛 ∈ ℕ0s) → (2ss𝑛) ∈ ℤs)
4540, 9, 44sylancr 599 . . . . . . . . . . 11 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (2ss𝑛) ∈ ℤs)
4645, 12zmulscld 28627 . . . . . . . . . 10 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → ((2ss𝑛) ·s 𝑏) ∈ ℤs)
4743, 46zaddscld 28625 . . . . . . . . 9 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) ∈ ℤs)
48 eqidd 2767 . . . . . . . . 9 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → ((((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) /su (2ss(𝑛 +s 𝑚))) = ((((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) /su (2ss(𝑛 +s 𝑚))))
4934, 37, 47, 30, 482rspcedvdw 3598 . . . . . . . 8 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → ∃𝑐 ∈ ℤs𝑝 ∈ ℕ0s ((((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) /su (2ss(𝑛 +s 𝑚))) = (𝑐 /su (2ss𝑝)))
50 elz12s 28702 . . . . . . . 8 (((((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) /su (2ss(𝑛 +s 𝑚))) ∈ ℤs[1/2] ↔ ∃𝑐 ∈ ℤs𝑝 ∈ ℕ0s ((((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) /su (2ss(𝑛 +s 𝑚))) = (𝑐 /su (2ss𝑝)))
5149, 50sylibr 237 . . . . . . 7 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → ((((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) /su (2ss(𝑛 +s 𝑚))) ∈ ℤs[1/2])
5232, 51eqeltrd 2866 . . . . . 6 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → ((𝑎 /su (2ss𝑛)) +s (𝑏 /su (2ss𝑚))) ∈ ℤs[1/2])
53 oveq12 7432 . . . . . . 7 ((𝐴 = (𝑎 /su (2ss𝑛)) ∧ 𝐵 = (𝑏 /su (2ss𝑚))) → (𝐴 +s 𝐵) = ((𝑎 /su (2ss𝑛)) +s (𝑏 /su (2ss𝑚))))
5453eleq1d 2851 . . . . . 6 ((𝐴 = (𝑎 /su (2ss𝑛)) ∧ 𝐵 = (𝑏 /su (2ss𝑚))) → ((𝐴 +s 𝐵) ∈ ℤs[1/2] ↔ ((𝑎 /su (2ss𝑛)) +s (𝑏 /su (2ss𝑚))) ∈ ℤs[1/2]))
5552, 54syl5ibrcom 250 . . . . 5 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → ((𝐴 = (𝑎 /su (2ss𝑛)) ∧ 𝐵 = (𝑏 /su (2ss𝑚))) → (𝐴 +s 𝐵) ∈ ℤs[1/2]))
5655rexlimdvva 3225 . . . 4 ((𝑎 ∈ ℤs𝑏 ∈ ℤs) → (∃𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s (𝐴 = (𝑎 /su (2ss𝑛)) ∧ 𝐵 = (𝑏 /su (2ss𝑚))) → (𝐴 +s 𝐵) ∈ ℤs[1/2]))
5756rexlimivv 3210 . . 3 (∃𝑎 ∈ ℤs𝑏 ∈ ℤs𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s (𝐴 = (𝑎 /su (2ss𝑛)) ∧ 𝐵 = (𝑏 /su (2ss𝑚))) → (𝐴 +s 𝐵) ∈ ℤs[1/2])
586, 57sylbir 238 . 2 ((∃𝑎 ∈ ℤs𝑛 ∈ ℕ0s 𝐴 = (𝑎 /su (2ss𝑛)) ∧ ∃𝑏 ∈ ℤs𝑚 ∈ ℕ0s 𝐵 = (𝑏 /su (2ss𝑚))) → (𝐴 +s 𝐵) ∈ ℤs[1/2])
591, 2, 58syl2anb 610 1 ((𝐴 ∈ ℤs[1/2] ∧ 𝐵 ∈ ℤs[1/2]) → (𝐴 +s 𝐵) ∈ ℤs[1/2])
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  wi 4  wa 401   = wceq 1570  wcel 2146  wrex 3092  (class class class)co 7423   No csur 27841   +s cadds 28189   ·s cmuls 28336   /su cdivs 28417  0scn0s 28542  scnns 28543  sczs 28608  2sc2s 28640  scexps 28642  s[1/2]cz12s 28644
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2148  ax-9 2156  ax-10 2179  ax-11 2195  ax-12 2216  ax-ext 2738  ax-rep 5243  ax-sep 5262  ax-nul 5274  ax-pow 5341  ax-pr 5409  ax-un 7745
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2570  df-eu 2600  df-clab 2745  df-cleq 2758  df-clel 2841  df-nfc 2915  df-ne 2962  df-ral 3083  df-rex 3093  df-rmo 3372  df-reu 3373  df-rab 3420  df-v 3460  df-sbc 3748  df-csb 3857  df-dif 3911  df-un 3913  df-in 3915  df-ss 3925  df-pss 3928  df-nul 4290  df-if 4493  df-pw 4569  df-sn 4595  df-pr 4597  df-tp 4599  df-op 4601  df-ot 4603  df-uni 4878  df-int 4918  df-iun 4963  df-br 5115  df-opab 5179  df-mpt 5198  df-tr 5224  df-id 5561  df-eprel 5566  df-po 5574  df-so 5575  df-fr 5619  df-se 5620  df-we 5621  df-xp 5672  df-rel 5673  df-cnv 5674  df-co 5675  df-dm 5676  df-rn 5677  df-res 5678  df-ima 5679  df-pred 6309  df-ord 6370  df-on 6371  df-lim 6372  df-suc 6373  df-iota 6499  df-fun 6545  df-fn 6546  df-f 6547  df-f1 6548  df-fo 6549  df-f1o 6550  df-fv 6551  df-riota 7380  df-ov 7426  df-oprab 7427  df-mpo 7428  df-om 7872  df-1st 7995  df-2nd 7996  df-frecs 8287  df-wrecs 8318  df-recs 8367  df-rdg 8406  df-1o 8462  df-2o 8463  df-oadd 8466  df-nadd 8661  df-no 27844  df-lts 27845  df-bday 27846  df-les 27946  df-slts 27988  df-cuts 27990  df-0s 28037  df-1s 28038  df-made 28057  df-old 28058  df-left 28060  df-right 28061  df-norec 28168  df-norec2 28179  df-adds 28190  df-negs 28251  df-subs 28252  df-muls 28337  df-divs 28418  df-seqs 28514  df-n0s 28544  df-nns 28545  df-zs 28609  df-2s 28641  df-exps 28643  df-z12s 28645
This theorem is used by:  z12subscl  28709  bdayfinlem  28716
  Copyright terms: Public domain W3C validator