Users' Mathboxes Mathbox for Alexander van der Vekens < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  3sumcprm1e2o Structured version   Visualization version   GIF version

Theorem 3sumcprm1e2o 49907
Description: If one of three summands is even, the other two summands are odd if they are coprime. (Contributed by AV, 3-Nov-2026.)
Hypotheses
Ref Expression
3sumcprm1o2difpar.a (𝜑 → 𝐴 ∈ ℤ)
3sumcprm1o2difpar.b (𝜑 → 𝐵 ∈ ℤ)
3sumcprm1o2difpar.c (𝜑 → 𝐶 ∈ ℤ)
3sumcprm1o2difpar.e (𝜑 → ((𝐴 + 𝐵) + 𝐶) = 0)
3sumcprm1e2o.1 (𝜑 → (𝐴 gcd 𝐵) = 1)
Assertion
Ref Expression
3sumcprm1e2o (𝜑 → (2 ∥ 𝐶 → (¬ 2 ∥ 𝐴 ∧ ¬ 2 ∥ 𝐵)))

Proof of Theorem 3sumcprm1e2o
StepHypRef Expression
1 3sumcprm1o2difpar.e . 2 (𝜑 → ((𝐴 + 𝐵) + 𝐶) = 0)
2 3sumcprm1o2difpar.a . . . . . . . 8 (𝜑 → 𝐴 ∈ ℤ)
3 3sumcprm1o2difpar.b . . . . . . . 8 (𝜑 → 𝐵 ∈ ℤ)
42, 3zaddcld 12846 . . . . . . 7 (𝜑 → (𝐴 + 𝐵) ∈ ℤ)
54zcnd 12843 . . . . . 6 (𝜑 → (𝐴 + 𝐵) ∈ ℂ)
6 3sumcprm1o2difpar.c . . . . . . 7 (𝜑 → 𝐶 ∈ ℤ)
76zcnd 12843 . . . . . 6 (𝜑 → 𝐶 ∈ ℂ)
85, 7addcomd 11550 . . . . 5 (𝜑 → ((𝐴 + 𝐵) + 𝐶) = (𝐶 + (𝐴 + 𝐵)))
98eqeq1d 2768 . . . 4 (𝜑 → (((𝐴 + 𝐵) + 𝐶) = 0 ↔ (𝐶 + (𝐴 + 𝐵)) = 0))
10 addeq0 11777 . . . . 5 ((𝐶 ∈ ℂ ∧ (𝐴 + 𝐵) ∈ ℂ) → ((𝐶 + (𝐴 + 𝐵)) = 0 ↔ 𝐶 = -(𝐴 + 𝐵)))
117, 5, 10syl2anc 596 . . . 4 (𝜑 → ((𝐶 + (𝐴 + 𝐵)) = 0 ↔ 𝐶 = -(𝐴 + 𝐵)))
122zcnd 12843 . . . . . 6 (𝜑 → 𝐴 ∈ ℂ)
133zcnd 12843 . . . . . 6 (𝜑 → 𝐵 ∈ ℂ)
1412, 13negdid 11720 . . . . 5 (𝜑 → -(𝐴 + 𝐵) = ( -𝐴 + -𝐵))
1514eqeq2d 2777 . . . 4 (𝜑 → (𝐶 = -(𝐴 + 𝐵) ↔ 𝐶 = ( -𝐴 + -𝐵)))
169, 11, 153bitrd 308 . . 3 (𝜑 → (((𝐴 + 𝐵) + 𝐶) = 0 ↔ 𝐶 = ( -𝐴 + -𝐵)))
17 breq2 5111 . . . . . 6 (𝐶 = ( -𝐴 + -𝐵) → (2 ∥ 𝐶 ↔ 2 ∥ ( -𝐴 + -𝐵)))
1817adantl 487 . . . . 5 ((𝜑 ∧ 𝐶 = ( -𝐴 + -𝐵)) → (2 ∥ 𝐶 ↔ 2 ∥ ( -𝐴 + -𝐵)))
193adantr 486 . . . . . . . . . . . . . 14 ((𝜑 ∧ 2 ∥ 𝐴) → 𝐵 ∈ ℤ)
202, 3jca 521 . . . . . . . . . . . . . . . 16 (𝜑 → (𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ))
2120adantr 486 . . . . . . . . . . . . . . 15 ((𝜑 ∧ 2 ∥ 𝐴) → (𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ))
22 3sumcprm1e2o.1 . . . . . . . . . . . . . . . 16 (𝜑 → (𝐴 gcd 𝐵) = 1)
2322adantr 486 . . . . . . . . . . . . . . 15 ((𝜑 ∧ 2 ∥ 𝐴) → (𝐴 gcd 𝐵) = 1)
24 2z 12767 . . . . . . . . . . . . . . . . 17 2 ∈ ℤ
25 uzid 13019 . . . . . . . . . . . . . . . . 17 (2 ∈ ℤ → 2 ∈ (ℤ≥‘2))
2624, 25mp1i 14 . . . . . . . . . . . . . . . 16 (𝜑 → 2 ∈ (ℤ≥‘2))
2726anim1i 627 . . . . . . . . . . . . . . 15 ((𝜑 ∧ 2 ∥ 𝐴) → (2 ∈ (ℤ≥‘2) ∧ 2 ∥ 𝐴))
28 divcoprmndiv 49905 . . . . . . . . . . . . . . 15 (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) ∧ (𝐴 gcd 𝐵) = 1 ∧ (2 ∈ (ℤ≥‘2) ∧ 2 ∥ 𝐴)) → ¬ 2 ∥ 𝐵)
2921, 23, 27, 28syl3anc 1401 . . . . . . . . . . . . . 14 ((𝜑 ∧ 2 ∥ 𝐴) → ¬ 2 ∥ 𝐵)
302anim1i 627 . . . . . . . . . . . . . 14 ((𝜑 ∧ 2 ∥ 𝐴) → (𝐴 ∈ ℤ ∧ 2 ∥ 𝐴))
31 opeo 16577 . . . . . . . . . . . . . 14 (((𝐵 ∈ ℤ ∧ ¬ 2 ∥ 𝐵) ∧ (𝐴 ∈ ℤ ∧ 2 ∥ 𝐴)) → ¬ 2 ∥ (𝐵 + 𝐴))
3219, 29, 30, 31syl21anc 851 . . . . . . . . . . . . 13 ((𝜑 ∧ 2 ∥ 𝐴) → ¬ 2 ∥ (𝐵 + 𝐴))
3312, 13addcomd 11550 . . . . . . . . . . . . . . 15 (𝜑 → (𝐴 + 𝐵) = (𝐵 + 𝐴))
3433adantr 486 . . . . . . . . . . . . . 14 ((𝜑 ∧ 2 ∥ 𝐴) → (𝐴 + 𝐵) = (𝐵 + 𝐴))
3534breq2d 5119 . . . . . . . . . . . . 13 ((𝜑 ∧ 2 ∥ 𝐴) → (2 ∥ (𝐴 + 𝐵) ↔ 2 ∥ (𝐵 + 𝐴)))
3632, 35mtbird 328 . . . . . . . . . . . 12 ((𝜑 ∧ 2 ∥ 𝐴) → ¬ 2 ∥ (𝐴 + 𝐵))
372adantr 486 . . . . . . . . . . . . 13 ((𝜑 ∧ 2 ∥ 𝐵) → 𝐴 ∈ ℤ)
383, 2jca 521 . . . . . . . . . . . . . . 15 (𝜑 → (𝐵 ∈ ℤ ∧ 𝐴 ∈ ℤ))
3938adantr 486 . . . . . . . . . . . . . 14 ((𝜑 ∧ 2 ∥ 𝐵) → (𝐵 ∈ ℤ ∧ 𝐴 ∈ ℤ))
403, 2gcdcomd 16728 . . . . . . . . . . . . . . . 16 (𝜑 → (𝐵 gcd 𝐴) = (𝐴 gcd 𝐵))
4140, 22eqtrd 2801 . . . . . . . . . . . . . . 15 (𝜑 → (𝐵 gcd 𝐴) = 1)
4241adantr 486 . . . . . . . . . . . . . 14 ((𝜑 ∧ 2 ∥ 𝐵) → (𝐵 gcd 𝐴) = 1)
4326anim1i 627 . . . . . . . . . . . . . 14 ((𝜑 ∧ 2 ∥ 𝐵) → (2 ∈ (ℤ≥‘2) ∧ 2 ∥ 𝐵))
44 divcoprmndiv 49905 . . . . . . . . . . . . . 14 (((𝐵 ∈ ℤ ∧ 𝐴 ∈ ℤ) ∧ (𝐵 gcd 𝐴) = 1 ∧ (2 ∈ (ℤ≥‘2) ∧ 2 ∥ 𝐵)) → ¬ 2 ∥ 𝐴)
4539, 42, 43, 44syl3anc 1401 . . . . . . . . . . . . 13 ((𝜑 ∧ 2 ∥ 𝐵) → ¬ 2 ∥ 𝐴)
463anim1i 627 . . . . . . . . . . . . 13 ((𝜑 ∧ 2 ∥ 𝐵) → (𝐵 ∈ ℤ ∧ 2 ∥ 𝐵))
47 opeo 16577 . . . . . . . . . . . . 13 (((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) ∧ (𝐵 ∈ ℤ ∧ 2 ∥ 𝐵)) → ¬ 2 ∥ (𝐴 + 𝐵))
4837, 45, 46, 47syl21anc 851 . . . . . . . . . . . 12 ((𝜑 ∧ 2 ∥ 𝐵) → ¬ 2 ∥ (𝐴 + 𝐵))
4936, 48jaodan 972 . . . . . . . . . . 11 ((𝜑 ∧ (2 ∥ 𝐴 ∨ 2 ∥ 𝐵)) → ¬ 2 ∥ (𝐴 + 𝐵))
504, 24jctil 529 . . . . . . . . . . . . 13 (𝜑 → (2 ∈ ℤ ∧ (𝐴 + 𝐵) ∈ ℤ))
5150adantr 486 . . . . . . . . . . . 12 ((𝜑 ∧ (2 ∥ 𝐴 ∨ 2 ∥ 𝐵)) → (2 ∈ ℤ ∧ (𝐴 + 𝐵) ∈ ℤ))
52 dvdsnegb 16485 . . . . . . . . . . . 12 ((2 ∈ ℤ ∧ (𝐴 + 𝐵) ∈ ℤ) → (2 ∥ (𝐴 + 𝐵) ↔ 2 ∥ -(𝐴 + 𝐵)))
5351, 52syl 18 . . . . . . . . . . 11 ((𝜑 ∧ (2 ∥ 𝐴 ∨ 2 ∥ 𝐵)) → (2 ∥ (𝐴 + 𝐵) ↔ 2 ∥ -(𝐴 + 𝐵)))
5449, 53mtbid 327 . . . . . . . . . 10 ((𝜑 ∧ (2 ∥ 𝐴 ∨ 2 ∥ 𝐵)) → ¬ 2 ∥ -(𝐴 + 𝐵))
5514adantr 486 . . . . . . . . . 10 ((𝜑 ∧ (2 ∥ 𝐴 ∨ 2 ∥ 𝐵)) → -(𝐴 + 𝐵) = ( -𝐴 + -𝐵))
5654, 55brneqtrd 5128 . . . . . . . . 9 ((𝜑 ∧ (2 ∥ 𝐴 ∨ 2 ∥ 𝐵)) → ¬ 2 ∥ ( -𝐴 + -𝐵))
5756ex 418 . . . . . . . 8 (𝜑 → ((2 ∥ 𝐴 ∨ 2 ∥ 𝐵) → ¬ 2 ∥ ( -𝐴 + -𝐵)))
5857con2d 135 . . . . . . 7 (𝜑 → (2 ∥ ( -𝐴 + -𝐵) → ¬ (2 ∥ 𝐴 ∨ 2 ∥ 𝐵)))
59 ioran 1000 . . . . . . 7 (¬ (2 ∥ 𝐴 ∨ 2 ∥ 𝐵) ↔ (¬ 2 ∥ 𝐴 ∧ ¬ 2 ∥ 𝐵))
6058, 59imbitrdi 254 . . . . . 6 (𝜑 → (2 ∥ ( -𝐴 + -𝐵) → (¬ 2 ∥ 𝐴 ∧ ¬ 2 ∥ 𝐵)))
6160adantr 486 . . . . 5 ((𝜑 ∧ 𝐶 = ( -𝐴 + -𝐵)) → (2 ∥ ( -𝐴 + -𝐵) → (¬ 2 ∥ 𝐴 ∧ ¬ 2 ∥ 𝐵)))
6218, 61sylbid 243 . . . 4 ((𝜑 ∧ 𝐶 = ( -𝐴 + -𝐵)) → (2 ∥ 𝐶 → (¬ 2 ∥ 𝐴 ∧ ¬ 2 ∥ 𝐵)))
6362ex 418 . . 3 (𝜑 → (𝐶 = ( -𝐴 + -𝐵) → (2 ∥ 𝐶 → (¬ 2 ∥ 𝐴 ∧ ¬ 2 ∥ 𝐵))))
6416, 63sylbid 243 . 2 (𝜑 → (((𝐴 + 𝐵) + 𝐶) = 0 → (2 ∥ 𝐶 → (¬ 2 ∥ 𝐴 ∧ ¬ 2 ∥ 𝐵))))
651, 64mpd 16 1 (𝜑 → (2 ∥ 𝐶 → (¬ 2 ∥ 𝐴 ∧ ¬ 2 ∥ 𝐵)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ↔ wb 209   ∧ wa 401   ∨ wo 861   = wceq 1572   ∈ wcel 2150   class class class wbr 5107  ‘cfv 6565  (class class class)co 7450  ℂcc 11236  0cc0 11238  1c1 11239   + caddc 11241   -cneg 11580  2c2 12436  ℤcz 12732  ℤ≥cuz 13004   ∥ cdvds 16464   gcd cgcd 16706
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2152  ax-9 2160  ax-10 2183  ax-11 2200  ax-12 2219  ax-ext 2738  ax-sep 5254  ax-nul 5265  ax-pow 5333  ax-pr 5397  ax-un 7782  ax-cnex 11294  ax-resscn 11295  ax-1cn 11296  ax-icn 11297  ax-addcl 11298  ax-addrcl 11299  ax-mulcl 11300  ax-mulrcl 11301  ax-mulcom 11302  ax-addass 11303  ax-mulass 11304  ax-distr 11305  ax-i2m1 11306  ax-1ne0 11307  ax-1rid 11308  ax-rnegex 11309  ax-rrecex 11310  ax-cnre 11311  ax-pre-lttri 11312  ax-pre-lttrn 11313  ax-pre-ltadd 11314  ax-pre-mulgt0 11315  ax-pre-sup 11316
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1105  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2104  df-mo 2570  df-eu 2600  df-clab 2745  df-cleq 2758  df-clel 2842  df-nfc 2916  df-ne 2963  df-nel 3069  df-ral 3084  df-rex 3094  df-rmo 3368  df-reu 3369  df-rab 3416  df-v 3455  df-sbc 3742  df-csb 3851  df-ss 3900  df-pss 4016  df-dif 4049  df-in 4093  df-un 4153  df-nul 4281  df-if 4485  df-pw 4561  df-sn 4588  df-pr 4590  df-op 4840  df-uni 4872  df-iun 4957  df-br 5108  df-opab 5173  df-mpt 5192  df-tr 5218  df-id 5552  df-eprel 5557  df-po 5565  df-so 5566  df-fr 5610  df-we 5612  df-xp 5663  df-rel 5664  df-cnv 5665  df-co 5666  df-dm 5667  df-rn 5668  df-res 5669  df-ima 5670  df-pred 6329  df-ord 6390  df-on 6391  df-lim 6392  df-suc 6393  df-iota 6519  df-fun 6567  df-fn 6568  df-f 6569  df-f1 6570  df-fo 6571  df-f1o 6572  df-fv 6573  df-riota 7407  df-ov 7453  df-oprab 7454  df-mpo 7455  df-om 7911  df-2nd 8035  df-frecs 8336  df-wrecs 8367  df-recs 8416  df-rdg 8455  df-er 8754  df-en 9011  df-dom 9012  df-sdom 9013  df-sup 9470  df-inf 9471  df-pnf 11383  df-mnf 11384  df-xr 11385  df-ltxr 11386  df-le 11387  df-sub 11581  df-neg 11582  df-div 12013  df-nn 12375  df-2 12444  df-3 12445  df-n0 12646  df-z 12733  df-uz 13005  df-rp 13160  df-seq 14184  df-exp 14244  df-cj 15308  df-re 15309  df-im 15310  df-sqrt 15444  df-abs 15445  df-dvds 16465  df-gcd 16707
This theorem is used by:  flt3lemC  49917
  Copyright terms: Public domain W3C validator