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

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

Proof of Theorem zs12addscl
Dummy variables 𝑎 𝑏 𝑐 𝑛 𝑚 𝑝 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 elzs12 28421 . 2 (𝐴 ∈ ℤs[1/2] ↔ ∃𝑎 ∈ ℤs𝑛 ∈ ℕ0s 𝐴 = (𝑎 /su (2ss𝑛)))
2 elzs12 28421 . 2 (𝐵 ∈ ℤs[1/2] ↔ ∃𝑏 ∈ ℤs𝑚 ∈ ℕ0s 𝐵 = (𝑏 /su (2ss𝑚)))
3 reeanv 3206 . . . . 5 (∃𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s (𝐴 = (𝑎 /su (2ss𝑛)) ∧ 𝐵 = (𝑏 /su (2ss𝑚))) ↔ (∃𝑛 ∈ ℕ0s 𝐴 = (𝑎 /su (2ss𝑛)) ∧ ∃𝑚 ∈ ℕ0s 𝐵 = (𝑏 /su (2ss𝑚))))
432rexbii 3110 . . . 4 (∃𝑎 ∈ ℤs𝑏 ∈ ℤs𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s (𝐴 = (𝑎 /su (2ss𝑛)) ∧ 𝐵 = (𝑏 /su (2ss𝑚))) ↔ ∃𝑎 ∈ ℤs𝑏 ∈ ℤs (∃𝑛 ∈ ℕ0s 𝐴 = (𝑎 /su (2ss𝑛)) ∧ ∃𝑚 ∈ ℕ0s 𝐵 = (𝑏 /su (2ss𝑚))))
5 reeanv 3206 . . . 4 (∃𝑎 ∈ ℤs𝑏 ∈ ℤs (∃𝑛 ∈ ℕ0s 𝐴 = (𝑎 /su (2ss𝑛)) ∧ ∃𝑚 ∈ ℕ0s 𝐵 = (𝑏 /su (2ss𝑚))) ↔ (∃𝑎 ∈ ℤs𝑛 ∈ ℕ0s 𝐴 = (𝑎 /su (2ss𝑛)) ∧ ∃𝑏 ∈ ℤs𝑚 ∈ ℕ0s 𝐵 = (𝑏 /su (2ss𝑚))))
64, 5bitri 275 . . 3 (∃𝑎 ∈ ℤs𝑏 ∈ ℤs𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s (𝐴 = (𝑎 /su (2ss𝑛)) ∧ 𝐵 = (𝑏 /su (2ss𝑚))) ↔ (∃𝑎 ∈ ℤs𝑛 ∈ ℕ0s 𝐴 = (𝑎 /su (2ss𝑛)) ∧ ∃𝑏 ∈ ℤs𝑚 ∈ ℕ0s 𝐵 = (𝑏 /su (2ss𝑚))))
7 simpll 766 . . . . . . . . . . 11 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → 𝑎 ∈ ℤs)
87znod 28341 . . . . . . . . . 10 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → 𝑎 No )
9 simprl 770 . . . . . . . . . 10 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → 𝑛 ∈ ℕ0s)
10 simprr 772 . . . . . . . . . 10 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → 𝑚 ∈ ℕ0s)
118, 9, 10pw2divscan4d 28402 . . . . . . . . 9 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (𝑎 /su (2ss𝑛)) = (((2ss𝑚) ·s 𝑎) /su (2ss(𝑛 +s 𝑚))))
12 simplr 768 . . . . . . . . . . . 12 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → 𝑏 ∈ ℤs)
1312znod 28341 . . . . . . . . . . 11 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → 𝑏 No )
1413, 10, 9pw2divscan4d 28402 . . . . . . . . . 10 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (𝑏 /su (2ss𝑚)) = (((2ss𝑛) ·s 𝑏) /su (2ss(𝑚 +s 𝑛))))
1510n0snod 28286 . . . . . . . . . . . . 13 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → 𝑚 No )
169n0snod 28286 . . . . . . . . . . . . 13 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → 𝑛 No )
1715, 16addscomd 27937 . . . . . . . . . . . 12 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (𝑚 +s 𝑛) = (𝑛 +s 𝑚))
1817oveq2d 7372 . . . . . . . . . . 11 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (2ss(𝑚 +s 𝑛)) = (2ss(𝑛 +s 𝑚)))
1918oveq2d 7372 . . . . . . . . . 10 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (((2ss𝑛) ·s 𝑏) /su (2ss(𝑚 +s 𝑛))) = (((2ss𝑛) ·s 𝑏) /su (2ss(𝑛 +s 𝑚))))
2014, 19eqtrd 2769 . . . . . . . . 9 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (𝑏 /su (2ss𝑚)) = (((2ss𝑛) ·s 𝑏) /su (2ss(𝑛 +s 𝑚))))
2111, 20oveq12d 7374 . . . . . . . 8 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → ((𝑎 /su (2ss𝑛)) +s (𝑏 /su (2ss𝑚))) = ((((2ss𝑚) ·s 𝑎) /su (2ss(𝑛 +s 𝑚))) +s (((2ss𝑛) ·s 𝑏) /su (2ss(𝑛 +s 𝑚)))))
22 2sno 28377 . . . . . . . . . . 11 2s No
23 expscl 28389 . . . . . . . . . . 11 ((2s No 𝑚 ∈ ℕ0s) → (2ss𝑚) ∈ No )
2422, 10, 23sylancr 587 . . . . . . . . . 10 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (2ss𝑚) ∈ No )
2524, 8mulscld 28104 . . . . . . . . 9 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → ((2ss𝑚) ·s 𝑎) ∈ No )
26 expscl 28389 . . . . . . . . . . 11 ((2s No 𝑛 ∈ ℕ0s) → (2ss𝑛) ∈ No )
2722, 9, 26sylancr 587 . . . . . . . . . 10 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (2ss𝑛) ∈ No )
2827, 13mulscld 28104 . . . . . . . . 9 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → ((2ss𝑛) ·s 𝑏) ∈ No )
29 n0addscl 28304 . . . . . . . . . 10 ((𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s) → (𝑛 +s 𝑚) ∈ ℕ0s)
3029adantl 481 . . . . . . . . 9 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (𝑛 +s 𝑚) ∈ ℕ0s)
3125, 28, 30pw2divsdird 28406 . . . . . . . 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 2772 . . . . . . 7 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → ((𝑎 /su (2ss𝑛)) +s (𝑏 /su (2ss𝑚))) = ((((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) /su (2ss(𝑛 +s 𝑚))))
33 oveq1 7363 . . . . . . . . . 10 (𝑐 = (((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) → (𝑐 /su (2ss𝑝)) = ((((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) /su (2ss𝑝)))
3433eqeq2d 2745 . . . . . . . . 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 7364 . . . . . . . . . . 11 (𝑝 = (𝑛 +s 𝑚) → (2ss𝑝) = (2ss(𝑛 +s 𝑚)))
3635oveq2d 7372 . . . . . . . . . 10 (𝑝 = (𝑛 +s 𝑚) → ((((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) /su (2ss𝑝)) = ((((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) /su (2ss(𝑛 +s 𝑚))))
3736eqeq2d 2745 . . . . . . . . 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 28376 . . . . . . . . . . . . 13 2s ∈ ℕs
39 nnzs 28344 . . . . . . . . . . . . 13 (2s ∈ ℕs → 2s ∈ ℤs)
4038, 39ax-mp 5 . . . . . . . . . . . 12 2s ∈ ℤs
41 zexpscl 28392 . . . . . . . . . . . 12 ((2s ∈ ℤs𝑚 ∈ ℕ0s) → (2ss𝑚) ∈ ℤs)
4240, 10, 41sylancr 587 . . . . . . . . . . 11 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (2ss𝑚) ∈ ℤs)
4342, 7zmulscld 28355 . . . . . . . . . 10 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → ((2ss𝑚) ·s 𝑎) ∈ ℤs)
44 zexpscl 28392 . . . . . . . . . . . 12 ((2s ∈ ℤs𝑛 ∈ ℕ0s) → (2ss𝑛) ∈ ℤs)
4540, 9, 44sylancr 587 . . . . . . . . . . 11 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (2ss𝑛) ∈ ℤs)
4645, 12zmulscld 28355 . . . . . . . . . 10 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → ((2ss𝑛) ·s 𝑏) ∈ ℤs)
4743, 46zaddscld 28353 . . . . . . . . 9 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) ∈ ℤs)
48 eqidd 2735 . . . . . . . . 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 3588 . . . . . . . 8 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → ∃𝑐 ∈ ℤs𝑝 ∈ ℕ0s ((((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) /su (2ss(𝑛 +s 𝑚))) = (𝑐 /su (2ss𝑝)))
50 elzs12 28421 . . . . . . . 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 234 . . . . . . 7 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → ((((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) /su (2ss(𝑛 +s 𝑚))) ∈ ℤs[1/2])
5232, 51eqeltrd 2834 . . . . . 6 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → ((𝑎 /su (2ss𝑛)) +s (𝑏 /su (2ss𝑚))) ∈ ℤs[1/2])
53 oveq12 7365 . . . . . . 7 ((𝐴 = (𝑎 /su (2ss𝑛)) ∧ 𝐵 = (𝑏 /su (2ss𝑚))) → (𝐴 +s 𝐵) = ((𝑎 /su (2ss𝑛)) +s (𝑏 /su (2ss𝑚))))
5453eleq1d 2819 . . . . . 6 ((𝐴 = (𝑎 /su (2ss𝑛)) ∧ 𝐵 = (𝑏 /su (2ss𝑚))) → ((𝐴 +s 𝐵) ∈ ℤs[1/2] ↔ ((𝑎 /su (2ss𝑛)) +s (𝑏 /su (2ss𝑚))) ∈ ℤs[1/2]))
5552, 54syl5ibrcom 247 . . . . 5 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → ((𝐴 = (𝑎 /su (2ss𝑛)) ∧ 𝐵 = (𝑏 /su (2ss𝑚))) → (𝐴 +s 𝐵) ∈ ℤs[1/2]))
5655rexlimdvva 3191 . . . 4 ((𝑎 ∈ ℤs𝑏 ∈ ℤs) → (∃𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s (𝐴 = (𝑎 /su (2ss𝑛)) ∧ 𝐵 = (𝑏 /su (2ss𝑚))) → (𝐴 +s 𝐵) ∈ ℤs[1/2]))
5756rexlimivv 3176 . . 3 (∃𝑎 ∈ ℤs𝑏 ∈ ℤs𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s (𝐴 = (𝑎 /su (2ss𝑛)) ∧ 𝐵 = (𝑏 /su (2ss𝑚))) → (𝐴 +s 𝐵) ∈ ℤs[1/2])
586, 57sylbir 235 . 2 ((∃𝑎 ∈ ℤs𝑛 ∈ ℕ0s 𝐴 = (𝑎 /su (2ss𝑛)) ∧ ∃𝑏 ∈ ℤs𝑚 ∈ ℕ0s 𝐵 = (𝑏 /su (2ss𝑚))) → (𝐴 +s 𝐵) ∈ ℤs[1/2])
591, 2, 58syl2anb 598 1 ((𝐴 ∈ ℤs[1/2] ∧ 𝐵 ∈ ℤs[1/2]) → (𝐴 +s 𝐵) ∈ ℤs[1/2])
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395   = wceq 1541  wcel 2113  wrex 3058  (class class class)co 7356   No csur 27605   +s cadds 27929   ·s cmuls 28075   /su cdivs 28156  0scnn0s 28273  scnns 28274  sczs 28336  2sc2s 28368  scexps 28370  s[1/2]czs12 28372
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1968  ax-7 2009  ax-8 2115  ax-9 2123  ax-10 2146  ax-11 2162  ax-12 2182  ax-ext 2706  ax-rep 5222  ax-sep 5239  ax-nul 5249  ax-pow 5308  ax-pr 5375  ax-un 7678
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 848  df-3or 1087  df-3an 1088  df-tru 1544  df-fal 1554  df-ex 1781  df-nf 1785  df-sb 2068  df-mo 2537  df-eu 2567  df-clab 2713  df-cleq 2726  df-clel 2809  df-nfc 2883  df-ne 2931  df-ral 3050  df-rex 3059  df-rmo 3348  df-reu 3349  df-rab 3398  df-v 3440  df-sbc 3739  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-pss 3919  df-nul 4284  df-if 4478  df-pw 4554  df-sn 4579  df-pr 4581  df-tp 4583  df-op 4585  df-ot 4587  df-uni 4862  df-int 4901  df-iun 4946  df-br 5097  df-opab 5159  df-mpt 5178  df-tr 5204  df-id 5517  df-eprel 5522  df-po 5530  df-so 5531  df-fr 5575  df-se 5576  df-we 5577  df-xp 5628  df-rel 5629  df-cnv 5630  df-co 5631  df-dm 5632  df-rn 5633  df-res 5634  df-ima 5635  df-pred 6257  df-ord 6318  df-on 6319  df-lim 6320  df-suc 6321  df-iota 6446  df-fun 6492  df-fn 6493  df-f 6494  df-f1 6495  df-fo 6496  df-f1o 6497  df-fv 6498  df-riota 7313  df-ov 7359  df-oprab 7360  df-mpo 7361  df-om 7807  df-1st 7931  df-2nd 7932  df-frecs 8221  df-wrecs 8252  df-recs 8301  df-rdg 8339  df-1o 8395  df-2o 8396  df-oadd 8399  df-nadd 8592  df-no 27608  df-slt 27609  df-bday 27610  df-sle 27711  df-sslt 27748  df-scut 27750  df-0s 27795  df-1s 27796  df-made 27815  df-old 27816  df-left 27818  df-right 27819  df-norec 27908  df-norec2 27919  df-adds 27930  df-negs 27990  df-subs 27991  df-muls 28076  df-divs 28157  df-seqs 28245  df-n0s 28275  df-nns 28276  df-zs 28337  df-2s 28369  df-exps 28371  df-zs12 28373
This theorem is referenced by:  zs12subscl  28428
  Copyright terms: Public domain W3C validator