Users' Mathboxes Mathbox for Thierry Arnoux < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  constraddcl Structured version   Visualization version   GIF version

Theorem constraddcl 34376
Description: Constructive numbers are closed under complex addition. Item (1) of Theorem 7.10 of [Stewart] p. 96. (Contributed by Thierry Arnoux, 2-Nov-2025.)
Hypotheses
Ref Expression
constraddcl.1 (𝜑 → 𝑋 ∈ Constr)
constraddcl.2 (𝜑 → 𝑌 ∈ Constr)
Assertion
Ref Expression
constraddcl (𝜑 → (𝑋 + 𝑌) ∈ Constr)

Proof of Theorem constraddcl
StepHypRef Expression
1 simpr 490 . . . 4 ((𝜑 ∧ 𝑋 = 𝑌) → 𝑋 = 𝑌)
21oveq2d 7428 . . 3 ((𝜑 ∧ 𝑋 = 𝑌) → (𝑋 + 𝑋) = (𝑋 + 𝑌))
3 0nn0 12602 . . . . . . 7 0 ∈ ℕ0
43a1i 11 . . . . . 6 (𝜑 → 0 ∈ ℕ0)
54nn0constr 34375 . . . . 5 (𝜑 → 0 ∈ Constr)
6 constraddcl.1 . . . . 5 (𝜑 → 𝑋 ∈ Constr)
7 2re 12398 . . . . . 6 2 ∈ ℝ
87a1i 11 . . . . 5 (𝜑 → 2 ∈ ℝ)
96constrcn 34374 . . . . . 6 (𝜑 → 𝑋 ∈ ℂ)
109, 9addcld 11309 . . . . 5 (𝜑 → (𝑋 + 𝑋) ∈ ℂ)
11 2cnd 12402 . . . . . . . 8 (𝜑 → 2 ∈ ℂ)
12 0cnd 11280 . . . . . . . . 9 (𝜑 → 0 ∈ ℂ)
139, 12subcld 11650 . . . . . . . 8 (𝜑 → (𝑋 − 0) ∈ ℂ)
1411, 13mulcld 11310 . . . . . . 7 (𝜑 → (2 · (𝑋 − 0)) ∈ ℂ)
1514addlidd 11492 . . . . . 6 (𝜑 → (0 + (2 · (𝑋 − 0))) = (2 · (𝑋 − 0)))
169subid1d 11639 . . . . . . 7 (𝜑 → (𝑋 − 0) = 𝑋)
1716oveq2d 7428 . . . . . 6 (𝜑 → (2 · (𝑋 − 0)) = (2 · 𝑋))
1892timesd 12570 . . . . . 6 (𝜑 → (2 · 𝑋) = (𝑋 + 𝑋))
1915, 17, 183eqtrrd 2801 . . . . 5 (𝜑 → (𝑋 + 𝑋) = (0 + (2 · (𝑋 − 0))))
209, 9pncand 11651 . . . . . . 7 (𝜑 → ((𝑋 + 𝑋) − 𝑋) = 𝑋)
2120, 16eqtr4d 2799 . . . . . 6 (𝜑 → ((𝑋 + 𝑋) − 𝑋) = (𝑋 − 0))
2221fveq2d 6881 . . . . 5 (𝜑 → (abs‘((𝑋 + 𝑋) − 𝑋)) = (abs‘(𝑋 − 0)))
235, 6, 6, 6, 5, 8, 10, 19, 22constrlccl 34371 . . . 4 (𝜑 → (𝑋 + 𝑋) ∈ Constr)
2423adantr 486 . . 3 ((𝜑 ∧ 𝑋 = 𝑌) → (𝑋 + 𝑋) ∈ Constr)
252, 24eqeltrrd 2862 . 2 ((𝜑 ∧ 𝑋 = 𝑌) → (𝑋 + 𝑌) ∈ Constr)
266adantr 486 . . 3 ((𝜑 ∧ 𝑋 ≠ 𝑌) → 𝑋 ∈ Constr)
27 constraddcl.2 . . . 4 (𝜑 → 𝑌 ∈ Constr)
2827adantr 486 . . 3 ((𝜑 ∧ 𝑋 ≠ 𝑌) → 𝑌 ∈ Constr)
295adantr 486 . . 3 ((𝜑 ∧ 𝑋 ≠ 𝑌) → 0 ∈ Constr)
309adantr 486 . . . 4 ((𝜑 ∧ 𝑋 ≠ 𝑌) → 𝑋 ∈ ℂ)
3127constrcn 34374 . . . . 5 (𝜑 → 𝑌 ∈ ℂ)
3231adantr 486 . . . 4 ((𝜑 ∧ 𝑋 ≠ 𝑌) → 𝑌 ∈ ℂ)
3330, 32addcld 11309 . . 3 ((𝜑 ∧ 𝑋 ≠ 𝑌) → (𝑋 + 𝑌) ∈ ℂ)
34 simpr 490 . . 3 ((𝜑 ∧ 𝑋 ≠ 𝑌) → 𝑋 ≠ 𝑌)
3530, 32pncan2d 11652 . . . . 5 ((𝜑 ∧ 𝑋 ≠ 𝑌) → ((𝑋 + 𝑌) − 𝑋) = 𝑌)
3632subid1d 11639 . . . . 5 ((𝜑 ∧ 𝑋 ≠ 𝑌) → (𝑌 − 0) = 𝑌)
3735, 36eqtr4d 2799 . . . 4 ((𝜑 ∧ 𝑋 ≠ 𝑌) → ((𝑋 + 𝑌) − 𝑋) = (𝑌 − 0))
3837fveq2d 6881 . . 3 ((𝜑 ∧ 𝑋 ≠ 𝑌) → (abs‘((𝑋 + 𝑌) − 𝑋)) = (abs‘(𝑌 − 0)))
3930, 32pncand 11651 . . . . 5 ((𝜑 ∧ 𝑋 ≠ 𝑌) → ((𝑋 + 𝑌) − 𝑌) = 𝑋)
4030subid1d 11639 . . . . 5 ((𝜑 ∧ 𝑋 ≠ 𝑌) → (𝑋 − 0) = 𝑋)
4139, 40eqtr4d 2799 . . . 4 ((𝜑 ∧ 𝑋 ≠ 𝑌) → ((𝑋 + 𝑌) − 𝑌) = (𝑋 − 0))
4241fveq2d 6881 . . 3 ((𝜑 ∧ 𝑋 ≠ 𝑌) → (abs‘((𝑋 + 𝑌) − 𝑌)) = (abs‘(𝑋 − 0)))
4326, 28, 29, 28, 26, 29, 33, 34, 38, 42constrcccl 34372 . 2 ((𝜑 ∧ 𝑋 ≠ 𝑌) → (𝑋 + 𝑌) ∈ Constr)
4425, 43pm2.61dane 3043 1 (𝜑 → (𝑋 + 𝑌) ∈ Constr)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1570   ∈ wcel 2145   ≠ wne 2956  (class class class)co 7412  ℂcc 11179  ℝcr 11180  0cc0 11181   + caddc 11184   · cmul 11186   − cmin 11522  2c2 12378  ℕ0cn0 12587  abscabs 15381  Constrcconstr 34343
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 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-rep 5232  ax-sep 5249  ax-nul 5260  ax-pow 5327  ax-pr 5391  ax-un 7740  ax-cnex 11237  ax-resscn 11238  ax-1cn 11239  ax-icn 11240  ax-addcl 11241  ax-addrcl 11242  ax-mulcl 11243  ax-mulrcl 11244  ax-mulcom 11245  ax-addass 11246  ax-mulass 11247  ax-distr 11248  ax-i2m1 11249  ax-1ne0 11250  ax-1rid 11251  ax-rnegex 11252  ax-rrecex 11253  ax-cnre 11254  ax-pre-lttri 11255  ax-pre-lttrn 11256  ax-pre-ltadd 11257  ax-pre-mulgt0 11258
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 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-nel 3063  df-ral 3078  df-rex 3088  df-reu 3367  df-rab 3414  df-v 3453  df-sbc 3740  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-pss 3919  df-nul 4280  df-if 4483  df-pw 4559  df-sn 4585  df-pr 4587  df-tp 4589  df-op 4591  df-uni 4868  df-iun 4953  df-br 5104  df-opab 5168  df-mpt 5187  df-tr 5213  df-id 5546  df-eprel 5551  df-po 5559  df-so 5560  df-fr 5604  df-we 5606  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-pred 6297  df-ord 6358  df-on 6359  df-lim 6360  df-suc 6361  df-iota 6487  df-fun 6533  df-fn 6534  df-f 6535  df-f1 6536  df-fo 6537  df-f1o 6538  df-fv 6539  df-riota 7369  df-ov 7415  df-oprab 7416  df-mpo 7417  df-om 7867  df-2nd 7991  df-frecs 8283  df-wrecs 8314  df-recs 8363  df-rdg 8402  df-1o 8460  df-2o 8461  df-er 8701  df-en 8958  df-dom 8959  df-sdom 8960  df-fin 8961  df-pnf 11326  df-mnf 11327  df-xr 11328  df-ltxr 11329  df-le 11330  df-sub 11524  df-neg 11525  df-nn 12317  df-2 12386  df-n0 12588  df-z 12675  df-constr 34344
This theorem is used by:  constrremulcl  34381  constrimcl  34384  constrmulcl  34385  constrreinvcl  34386  constrsdrg  34389  constrresqrtcl  34391  constrsqrtcl  34393  cos9thpinconstr  34405
  Copyright terms: Public domain W3C validator