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

Theorem odd2prm2 43717
Description: If an odd number is the sum of two prime numbers, one of the prime numbers must be 2. (Contributed by AV, 26-Dec-2021.)
Assertion
Ref Expression
odd2prm2 ((𝑁 ∈ Odd ∧ (𝑃 ∈ ℙ ∧ 𝑄 ∈ ℙ) ∧ 𝑁 = (𝑃 + 𝑄)) → (𝑃 = 2 ∨ 𝑄 = 2))

Proof of Theorem odd2prm2
StepHypRef Expression
1 eleq1 2904 . . . . . 6 (𝑁 = (𝑃 + 𝑄) → (𝑁 ∈ Odd ↔ (𝑃 + 𝑄) ∈ Odd ))
2 evennodd 43642 . . . . . . . . 9 ((𝑃 + 𝑄) ∈ Even → ¬ (𝑃 + 𝑄) ∈ Odd )
32pm2.21d 121 . . . . . . . 8 ((𝑃 + 𝑄) ∈ Even → ((𝑃 + 𝑄) ∈ Odd → (𝑃 = 2 ∨ 𝑄 = 2)))
4 df-ne 3021 . . . . . . . . . . . 12 (𝑃 ≠ 2 ↔ ¬ 𝑃 = 2)
5 eldifsn 4717 . . . . . . . . . . . . . 14 (𝑃 ∈ (ℙ ∖ {2}) ↔ (𝑃 ∈ ℙ ∧ 𝑃 ≠ 2))
6 oddprmALTV 43686 . . . . . . . . . . . . . 14 (𝑃 ∈ (ℙ ∖ {2}) → 𝑃 ∈ Odd )
75, 6sylbir 236 . . . . . . . . . . . . 13 ((𝑃 ∈ ℙ ∧ 𝑃 ≠ 2) → 𝑃 ∈ Odd )
87ex 413 . . . . . . . . . . . 12 (𝑃 ∈ ℙ → (𝑃 ≠ 2 → 𝑃 ∈ Odd ))
94, 8syl5bir 244 . . . . . . . . . . 11 (𝑃 ∈ ℙ → (¬ 𝑃 = 2 → 𝑃 ∈ Odd ))
10 df-ne 3021 . . . . . . . . . . . 12 (𝑄 ≠ 2 ↔ ¬ 𝑄 = 2)
11 eldifsn 4717 . . . . . . . . . . . . . 14 (𝑄 ∈ (ℙ ∖ {2}) ↔ (𝑄 ∈ ℙ ∧ 𝑄 ≠ 2))
12 oddprmALTV 43686 . . . . . . . . . . . . . 14 (𝑄 ∈ (ℙ ∖ {2}) → 𝑄 ∈ Odd )
1311, 12sylbir 236 . . . . . . . . . . . . 13 ((𝑄 ∈ ℙ ∧ 𝑄 ≠ 2) → 𝑄 ∈ Odd )
1413ex 413 . . . . . . . . . . . 12 (𝑄 ∈ ℙ → (𝑄 ≠ 2 → 𝑄 ∈ Odd ))
1510, 14syl5bir 244 . . . . . . . . . . 11 (𝑄 ∈ ℙ → (¬ 𝑄 = 2 → 𝑄 ∈ Odd ))
169, 15im2anan9 619 . . . . . . . . . 10 ((𝑃 ∈ ℙ ∧ 𝑄 ∈ ℙ) → ((¬ 𝑃 = 2 ∧ ¬ 𝑄 = 2) → (𝑃 ∈ Odd ∧ 𝑄 ∈ Odd )))
1716imp 407 . . . . . . . . 9 (((𝑃 ∈ ℙ ∧ 𝑄 ∈ ℙ) ∧ (¬ 𝑃 = 2 ∧ ¬ 𝑄 = 2)) → (𝑃 ∈ Odd ∧ 𝑄 ∈ Odd ))
18 opoeALTV 43682 . . . . . . . . 9 ((𝑃 ∈ Odd ∧ 𝑄 ∈ Odd ) → (𝑃 + 𝑄) ∈ Even )
1917, 18syl 17 . . . . . . . 8 (((𝑃 ∈ ℙ ∧ 𝑄 ∈ ℙ) ∧ (¬ 𝑃 = 2 ∧ ¬ 𝑄 = 2)) → (𝑃 + 𝑄) ∈ Even )
203, 19syl11 33 . . . . . . 7 ((𝑃 + 𝑄) ∈ Odd → (((𝑃 ∈ ℙ ∧ 𝑄 ∈ ℙ) ∧ (¬ 𝑃 = 2 ∧ ¬ 𝑄 = 2)) → (𝑃 = 2 ∨ 𝑄 = 2)))
2120expd 416 . . . . . 6 ((𝑃 + 𝑄) ∈ Odd → ((𝑃 ∈ ℙ ∧ 𝑄 ∈ ℙ) → ((¬ 𝑃 = 2 ∧ ¬ 𝑄 = 2) → (𝑃 = 2 ∨ 𝑄 = 2))))
221, 21syl6bi 254 . . . . 5 (𝑁 = (𝑃 + 𝑄) → (𝑁 ∈ Odd → ((𝑃 ∈ ℙ ∧ 𝑄 ∈ ℙ) → ((¬ 𝑃 = 2 ∧ ¬ 𝑄 = 2) → (𝑃 = 2 ∨ 𝑄 = 2)))))
23223imp231 1107 . . . 4 ((𝑁 ∈ Odd ∧ (𝑃 ∈ ℙ ∧ 𝑄 ∈ ℙ) ∧ 𝑁 = (𝑃 + 𝑄)) → ((¬ 𝑃 = 2 ∧ ¬ 𝑄 = 2) → (𝑃 = 2 ∨ 𝑄 = 2)))
2423com12 32 . . 3 ((¬ 𝑃 = 2 ∧ ¬ 𝑄 = 2) → ((𝑁 ∈ Odd ∧ (𝑃 ∈ ℙ ∧ 𝑄 ∈ ℙ) ∧ 𝑁 = (𝑃 + 𝑄)) → (𝑃 = 2 ∨ 𝑄 = 2)))
2524ex 413 . 2 𝑃 = 2 → (¬ 𝑄 = 2 → ((𝑁 ∈ Odd ∧ (𝑃 ∈ ℙ ∧ 𝑄 ∈ ℙ) ∧ 𝑁 = (𝑃 + 𝑄)) → (𝑃 = 2 ∨ 𝑄 = 2))))
26 orc 863 . . 3 (𝑃 = 2 → (𝑃 = 2 ∨ 𝑄 = 2))
2726a1d 25 . 2 (𝑃 = 2 → ((𝑁 ∈ Odd ∧ (𝑃 ∈ ℙ ∧ 𝑄 ∈ ℙ) ∧ 𝑁 = (𝑃 + 𝑄)) → (𝑃 = 2 ∨ 𝑄 = 2)))
28 olc 864 . . 3 (𝑄 = 2 → (𝑃 = 2 ∨ 𝑄 = 2))
2928a1d 25 . 2 (𝑄 = 2 → ((𝑁 ∈ Odd ∧ (𝑃 ∈ ℙ ∧ 𝑄 ∈ ℙ) ∧ 𝑁 = (𝑃 + 𝑄)) → (𝑃 = 2 ∨ 𝑄 = 2)))
3025, 27, 29pm2.61ii 184 1 ((𝑁 ∈ Odd ∧ (𝑃 ∈ ℙ ∧ 𝑄 ∈ ℙ) ∧ 𝑁 = (𝑃 + 𝑄)) → (𝑃 = 2 ∨ 𝑄 = 2))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 396  wo 843  w3a 1081   = wceq 1530  wcel 2107  wne 3020  cdif 3936  {csn 4563  (class class class)co 7151   + caddc 10532  2c2 11684  cprime 16007   Even ceven 43623   Odd codd 43624
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1789  ax-4 1803  ax-5 1904  ax-6 1963  ax-7 2008  ax-8 2109  ax-9 2117  ax-10 2138  ax-11 2153  ax-12 2169  ax-ext 2797  ax-sep 5199  ax-nul 5206  ax-pow 5262  ax-pr 5325  ax-un 7454  ax-cnex 10585  ax-resscn 10586  ax-1cn 10587  ax-icn 10588  ax-addcl 10589  ax-addrcl 10590  ax-mulcl 10591  ax-mulrcl 10592  ax-mulcom 10593  ax-addass 10594  ax-mulass 10595  ax-distr 10596  ax-i2m1 10597  ax-1ne0 10598  ax-1rid 10599  ax-rnegex 10600  ax-rrecex 10601  ax-cnre 10602  ax-pre-lttri 10603  ax-pre-lttrn 10604  ax-pre-ltadd 10605  ax-pre-mulgt0 10606  ax-pre-sup 10607
This theorem depends on definitions:  df-bi 208  df-an 397  df-or 844  df-3or 1082  df-3an 1083  df-tru 1533  df-ex 1774  df-nf 1778  df-sb 2063  df-mo 2619  df-eu 2651  df-clab 2804  df-cleq 2818  df-clel 2897  df-nfc 2967  df-ne 3021  df-nel 3128  df-ral 3147  df-rex 3148  df-reu 3149  df-rmo 3150  df-rab 3151  df-v 3501  df-sbc 3776  df-csb 3887  df-dif 3942  df-un 3944  df-in 3946  df-ss 3955  df-pss 3957  df-nul 4295  df-if 4470  df-pw 4543  df-sn 4564  df-pr 4566  df-tp 4568  df-op 4570  df-uni 4837  df-iun 4918  df-br 5063  df-opab 5125  df-mpt 5143  df-tr 5169  df-id 5458  df-eprel 5463  df-po 5472  df-so 5473  df-fr 5512  df-we 5514  df-xp 5559  df-rel 5560  df-cnv 5561  df-co 5562  df-dm 5563  df-rn 5564  df-res 5565  df-ima 5566  df-pred 6145  df-ord 6191  df-on 6192  df-lim 6193  df-suc 6194  df-iota 6311  df-fun 6353  df-fn 6354  df-f 6355  df-f1 6356  df-fo 6357  df-f1o 6358  df-fv 6359  df-riota 7109  df-ov 7154  df-oprab 7155  df-mpo 7156  df-om 7572  df-2nd 7684  df-wrecs 7941  df-recs 8002  df-rdg 8040  df-1o 8096  df-2o 8097  df-er 8282  df-en 8502  df-dom 8503  df-sdom 8504  df-fin 8505  df-sup 8898  df-pnf 10669  df-mnf 10670  df-xr 10671  df-ltxr 10672  df-le 10673  df-sub 10864  df-neg 10865  df-div 11290  df-nn 11631  df-2 11692  df-3 11693  df-n0 11890  df-z 11974  df-uz 12236  df-rp 12383  df-seq 13363  df-exp 13423  df-cj 14451  df-re 14452  df-im 14453  df-sqrt 14587  df-abs 14588  df-dvds 15600  df-prm 16008  df-even 43625  df-odd 43626
This theorem is referenced by:  even3prm2  43718
  Copyright terms: Public domain W3C validator