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

Theorem zs12addscl 28388
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 28384 . 2 (𝐴 ∈ ℤs[1/2] ↔ ∃𝑎 ∈ ℤs𝑛 ∈ ℕ0s 𝐴 = (𝑎 /su (2ss𝑛)))
2 elzs12 28384 . 2 (𝐵 ∈ ℤs[1/2] ↔ ∃𝑏 ∈ ℤs𝑚 ∈ ℕ0s 𝐵 = (𝑏 /su (2ss𝑚)))
3 reeanv 3205 . . . . 5 (∃𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s (𝐴 = (𝑎 /su (2ss𝑛)) ∧ 𝐵 = (𝑏 /su (2ss𝑚))) ↔ (∃𝑛 ∈ ℕ0s 𝐴 = (𝑎 /su (2ss𝑛)) ∧ ∃𝑚 ∈ ℕ0s 𝐵 = (𝑏 /su (2ss𝑚))))
432rexbii 3109 . . . 4 (∃𝑎 ∈ ℤs𝑏 ∈ ℤs𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s (𝐴 = (𝑎 /su (2ss𝑛)) ∧ 𝐵 = (𝑏 /su (2ss𝑚))) ↔ ∃𝑎 ∈ ℤs𝑏 ∈ ℤs (∃𝑛 ∈ ℕ0s 𝐴 = (𝑎 /su (2ss𝑛)) ∧ ∃𝑚 ∈ ℕ0s 𝐵 = (𝑏 /su (2ss𝑚))))
5 reeanv 3205 . . . 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 28308 . . . . . . . . . 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 28368 . . . . . . . . 9 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (𝑎 /su (2ss𝑛)) = (((2ss𝑚) ·s 𝑎) /su (2ss(𝑛 +s 𝑚))))
12 simplr 768 . . . . . . . . . . . 12 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → 𝑏 ∈ ℤs)
1312znod 28308 . . . . . . . . . . 11 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → 𝑏 No )
1413, 10, 9pw2divscan4d 28368 . . . . . . . . . 10 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (𝑏 /su (2ss𝑚)) = (((2ss𝑛) ·s 𝑏) /su (2ss(𝑚 +s 𝑛))))
1510n0snod 28255 . . . . . . . . . . . . 13 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → 𝑚 No )
169n0snod 28255 . . . . . . . . . . . . 13 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → 𝑛 No )
1715, 16addscomd 27911 . . . . . . . . . . . 12 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (𝑚 +s 𝑛) = (𝑛 +s 𝑚))
1817oveq2d 7368 . . . . . . . . . . 11 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (2ss(𝑚 +s 𝑛)) = (2ss(𝑛 +s 𝑚)))
1918oveq2d 7368 . . . . . . . . . 10 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (((2ss𝑛) ·s 𝑏) /su (2ss(𝑚 +s 𝑛))) = (((2ss𝑛) ·s 𝑏) /su (2ss(𝑛 +s 𝑚))))
2014, 19eqtrd 2768 . . . . . . . . 9 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (𝑏 /su (2ss𝑚)) = (((2ss𝑛) ·s 𝑏) /su (2ss(𝑛 +s 𝑚))))
2111, 20oveq12d 7370 . . . . . . . 8 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → ((𝑎 /su (2ss𝑛)) +s (𝑏 /su (2ss𝑚))) = ((((2ss𝑚) ·s 𝑎) /su (2ss(𝑛 +s 𝑚))) +s (((2ss𝑛) ·s 𝑏) /su (2ss(𝑛 +s 𝑚)))))
22 2sno 28343 . . . . . . . . . . 11 2s No
23 expscl 28355 . . . . . . . . . . 11 ((2s No 𝑚 ∈ ℕ0s) → (2ss𝑚) ∈ No )
2422, 10, 23sylancr 587 . . . . . . . . . 10 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (2ss𝑚) ∈ No )
2524, 8mulscld 28075 . . . . . . . . 9 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → ((2ss𝑚) ·s 𝑎) ∈ No )
26 expscl 28355 . . . . . . . . . . 11 ((2s No 𝑛 ∈ ℕ0s) → (2ss𝑛) ∈ No )
2722, 9, 26sylancr 587 . . . . . . . . . 10 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (2ss𝑛) ∈ No )
2827, 13mulscld 28075 . . . . . . . . 9 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → ((2ss𝑛) ·s 𝑏) ∈ No )
29 n0addscl 28273 . . . . . . . . . 10 ((𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s) → (𝑛 +s 𝑚) ∈ ℕ0s)
3029adantl 481 . . . . . . . . 9 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (𝑛 +s 𝑚) ∈ ℕ0s)
3125, 28, 30pw2divsdird 28372 . . . . . . . 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 2771 . . . . . . 7 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → ((𝑎 /su (2ss𝑛)) +s (𝑏 /su (2ss𝑚))) = ((((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) /su (2ss(𝑛 +s 𝑚))))
33 oveq1 7359 . . . . . . . . . 10 (𝑐 = (((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) → (𝑐 /su (2ss𝑝)) = ((((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) /su (2ss𝑝)))
3433eqeq2d 2744 . . . . . . . . 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 7360 . . . . . . . . . . 11 (𝑝 = (𝑛 +s 𝑚) → (2ss𝑝) = (2ss(𝑛 +s 𝑚)))
3635oveq2d 7368 . . . . . . . . . 10 (𝑝 = (𝑛 +s 𝑚) → ((((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) /su (2ss𝑝)) = ((((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) /su (2ss(𝑛 +s 𝑚))))
3736eqeq2d 2744 . . . . . . . . 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 28342 . . . . . . . . . . . . 13 2s ∈ ℕs
39 nnzs 28311 . . . . . . . . . . . . 13 (2s ∈ ℕs → 2s ∈ ℤs)
4038, 39ax-mp 5 . . . . . . . . . . . 12 2s ∈ ℤs
41 zexpscl 28358 . . . . . . . . . . . 12 ((2s ∈ ℤs𝑚 ∈ ℕ0s) → (2ss𝑚) ∈ ℤs)
4240, 10, 41sylancr 587 . . . . . . . . . . 11 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (2ss𝑚) ∈ ℤs)
4342, 7zmulscld 28322 . . . . . . . . . 10 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → ((2ss𝑚) ·s 𝑎) ∈ ℤs)
44 zexpscl 28358 . . . . . . . . . . . 12 ((2s ∈ ℤs𝑛 ∈ ℕ0s) → (2ss𝑛) ∈ ℤs)
4540, 9, 44sylancr 587 . . . . . . . . . . 11 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (2ss𝑛) ∈ ℤs)
4645, 12zmulscld 28322 . . . . . . . . . 10 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → ((2ss𝑛) ·s 𝑏) ∈ ℤs)
4743, 46zaddscld 28320 . . . . . . . . 9 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → (((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) ∈ ℤs)
48 eqidd 2734 . . . . . . . . 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 3587 . . . . . . . 8 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → ∃𝑐 ∈ ℤs𝑝 ∈ ℕ0s ((((2ss𝑚) ·s 𝑎) +s ((2ss𝑛) ·s 𝑏)) /su (2ss(𝑛 +s 𝑚))) = (𝑐 /su (2ss𝑝)))
50 elzs12 28384 . . . . . . . 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 2833 . . . . . 6 (((𝑎 ∈ ℤs𝑏 ∈ ℤs) ∧ (𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s)) → ((𝑎 /su (2ss𝑛)) +s (𝑏 /su (2ss𝑚))) ∈ ℤs[1/2])
53 oveq12 7361 . . . . . . 7 ((𝐴 = (𝑎 /su (2ss𝑛)) ∧ 𝐵 = (𝑏 /su (2ss𝑚))) → (𝐴 +s 𝐵) = ((𝑎 /su (2ss𝑛)) +s (𝑏 /su (2ss𝑚))))
5453eleq1d 2818 . . . . . 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 3190 . . . 4 ((𝑎 ∈ ℤs𝑏 ∈ ℤs) → (∃𝑛 ∈ ℕ0s𝑚 ∈ ℕ0s (𝐴 = (𝑎 /su (2ss𝑛)) ∧ 𝐵 = (𝑏 /su (2ss𝑚))) → (𝐴 +s 𝐵) ∈ ℤs[1/2]))
5756rexlimivv 3175 . . 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 3057  (class class class)co 7352   No csur 27579   +s cadds 27903   ·s cmuls 28046   /su cdivs 28127  0scnn0s 28243  scnns 28244  sczs 28303  2sc2s 28334  scexps 28336  s[1/2]czs12 28338
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 2705  ax-rep 5219  ax-sep 5236  ax-nul 5246  ax-pow 5305  ax-pr 5372  ax-un 7674
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 2566  df-clab 2712  df-cleq 2725  df-clel 2808  df-nfc 2882  df-ne 2930  df-ral 3049  df-rex 3058  df-rmo 3347  df-reu 3348  df-rab 3397  df-v 3439  df-sbc 3738  df-csb 3847  df-dif 3901  df-un 3903  df-in 3905  df-ss 3915  df-pss 3918  df-nul 4283  df-if 4475  df-pw 4551  df-sn 4576  df-pr 4578  df-tp 4580  df-op 4582  df-ot 4584  df-uni 4859  df-int 4898  df-iun 4943  df-br 5094  df-opab 5156  df-mpt 5175  df-tr 5201  df-id 5514  df-eprel 5519  df-po 5527  df-so 5528  df-fr 5572  df-se 5573  df-we 5574  df-xp 5625  df-rel 5626  df-cnv 5627  df-co 5628  df-dm 5629  df-rn 5630  df-res 5631  df-ima 5632  df-pred 6253  df-ord 6314  df-on 6315  df-lim 6316  df-suc 6317  df-iota 6442  df-fun 6488  df-fn 6489  df-f 6490  df-f1 6491  df-fo 6492  df-f1o 6493  df-fv 6494  df-riota 7309  df-ov 7355  df-oprab 7356  df-mpo 7357  df-om 7803  df-1st 7927  df-2nd 7928  df-frecs 8217  df-wrecs 8248  df-recs 8297  df-rdg 8335  df-1o 8391  df-2o 8392  df-oadd 8395  df-nadd 8587  df-no 27582  df-slt 27583  df-bday 27584  df-sle 27685  df-sslt 27722  df-scut 27724  df-0s 27769  df-1s 27770  df-made 27789  df-old 27790  df-left 27792  df-right 27793  df-norec 27882  df-norec2 27893  df-adds 27904  df-negs 27964  df-subs 27965  df-muls 28047  df-divs 28128  df-seqs 28215  df-n0s 28245  df-nns 28246  df-zs 28304  df-2s 28335  df-exps 28337  df-zs12 28339
This theorem is referenced by:  zs12subscl  28390
  Copyright terms: Public domain W3C validator