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

Theorem prmdvdsfmtnof1lem2 44471
Description: Lemma 2 for prmdvdsfmtnof1 44473. (Contributed by AV, 3-Aug-2021.)
Assertion
Ref Expression
prmdvdsfmtnof1lem2 ((𝐹 ∈ ran FermatNo ∧ 𝐺 ∈ ran FermatNo) → ((𝐼 ∈ ℙ ∧ 𝐼𝐹𝐼𝐺) → 𝐹 = 𝐺))

Proof of Theorem prmdvdsfmtnof1lem2
Dummy variables 𝑚 𝑛 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 fmtnorn 44420 . 2 (𝐹 ∈ ran FermatNo ↔ ∃𝑛 ∈ ℕ0 (FermatNo‘𝑛) = 𝐹)
2 fmtnorn 44420 . 2 (𝐺 ∈ ran FermatNo ↔ ∃𝑚 ∈ ℕ0 (FermatNo‘𝑚) = 𝐺)
3 2a1 28 . . . . . . . 8 (𝐹 = 𝐺 → ((FermatNo‘𝑛) = 𝐹 → ((𝐼 ∈ ℙ ∧ 𝐼𝐹𝐼𝐺) → 𝐹 = 𝐺)))
432a1d 26 . . . . . . 7 (𝐹 = 𝐺 → ((𝑛 ∈ ℕ0𝑚 ∈ ℕ0) → ((FermatNo‘𝑚) = 𝐺 → ((FermatNo‘𝑛) = 𝐹 → ((𝐼 ∈ ℙ ∧ 𝐼𝐹𝐼𝐺) → 𝐹 = 𝐺)))))
5 fmtnonn 44417 . . . . . . . . . . . 12 (𝑛 ∈ ℕ0 → (FermatNo‘𝑛) ∈ ℕ)
65ad2antrl 728 . . . . . . . . . . 11 ((¬ 𝐹 = 𝐺 ∧ (𝑛 ∈ ℕ0𝑚 ∈ ℕ0)) → (FermatNo‘𝑛) ∈ ℕ)
76adantr 485 . . . . . . . . . 10 (((¬ 𝐹 = 𝐺 ∧ (𝑛 ∈ ℕ0𝑚 ∈ ℕ0)) ∧ ((FermatNo‘𝑚) = 𝐺 ∧ (FermatNo‘𝑛) = 𝐹)) → (FermatNo‘𝑛) ∈ ℕ)
8 eleq1 2840 . . . . . . . . . . 11 ((FermatNo‘𝑛) = 𝐹 → ((FermatNo‘𝑛) ∈ ℕ ↔ 𝐹 ∈ ℕ))
98ad2antll 729 . . . . . . . . . 10 (((¬ 𝐹 = 𝐺 ∧ (𝑛 ∈ ℕ0𝑚 ∈ ℕ0)) ∧ ((FermatNo‘𝑚) = 𝐺 ∧ (FermatNo‘𝑛) = 𝐹)) → ((FermatNo‘𝑛) ∈ ℕ ↔ 𝐹 ∈ ℕ))
107, 9mpbid 235 . . . . . . . . 9 (((¬ 𝐹 = 𝐺 ∧ (𝑛 ∈ ℕ0𝑚 ∈ ℕ0)) ∧ ((FermatNo‘𝑚) = 𝐺 ∧ (FermatNo‘𝑛) = 𝐹)) → 𝐹 ∈ ℕ)
11 fmtnonn 44417 . . . . . . . . . . . 12 (𝑚 ∈ ℕ0 → (FermatNo‘𝑚) ∈ ℕ)
1211ad2antll 729 . . . . . . . . . . 11 ((¬ 𝐹 = 𝐺 ∧ (𝑛 ∈ ℕ0𝑚 ∈ ℕ0)) → (FermatNo‘𝑚) ∈ ℕ)
1312adantr 485 . . . . . . . . . 10 (((¬ 𝐹 = 𝐺 ∧ (𝑛 ∈ ℕ0𝑚 ∈ ℕ0)) ∧ ((FermatNo‘𝑚) = 𝐺 ∧ (FermatNo‘𝑛) = 𝐹)) → (FermatNo‘𝑚) ∈ ℕ)
14 eleq1 2840 . . . . . . . . . . 11 ((FermatNo‘𝑚) = 𝐺 → ((FermatNo‘𝑚) ∈ ℕ ↔ 𝐺 ∈ ℕ))
1514ad2antrl 728 . . . . . . . . . 10 (((¬ 𝐹 = 𝐺 ∧ (𝑛 ∈ ℕ0𝑚 ∈ ℕ0)) ∧ ((FermatNo‘𝑚) = 𝐺 ∧ (FermatNo‘𝑛) = 𝐹)) → ((FermatNo‘𝑚) ∈ ℕ ↔ 𝐺 ∈ ℕ))
1613, 15mpbid 235 . . . . . . . . 9 (((¬ 𝐹 = 𝐺 ∧ (𝑛 ∈ ℕ0𝑚 ∈ ℕ0)) ∧ ((FermatNo‘𝑚) = 𝐺 ∧ (FermatNo‘𝑛) = 𝐹)) → 𝐺 ∈ ℕ)
17 simpll 767 . . . . . . . . . . . . . . 15 (((𝑛 ∈ ℕ0𝑚 ∈ ℕ0) ∧ ¬ (FermatNo‘𝑛) = (FermatNo‘𝑚)) → 𝑛 ∈ ℕ0)
18 simplr 769 . . . . . . . . . . . . . . 15 (((𝑛 ∈ ℕ0𝑚 ∈ ℕ0) ∧ ¬ (FermatNo‘𝑛) = (FermatNo‘𝑚)) → 𝑚 ∈ ℕ0)
19 fveq2 6659 . . . . . . . . . . . . . . . . . 18 (𝑛 = 𝑚 → (FermatNo‘𝑛) = (FermatNo‘𝑚))
2019con3i 157 . . . . . . . . . . . . . . . . 17 (¬ (FermatNo‘𝑛) = (FermatNo‘𝑚) → ¬ 𝑛 = 𝑚)
2120adantl 486 . . . . . . . . . . . . . . . 16 (((𝑛 ∈ ℕ0𝑚 ∈ ℕ0) ∧ ¬ (FermatNo‘𝑛) = (FermatNo‘𝑚)) → ¬ 𝑛 = 𝑚)
2221neqned 2959 . . . . . . . . . . . . . . 15 (((𝑛 ∈ ℕ0𝑚 ∈ ℕ0) ∧ ¬ (FermatNo‘𝑛) = (FermatNo‘𝑚)) → 𝑛𝑚)
23 goldbachth 44433 . . . . . . . . . . . . . . 15 ((𝑛 ∈ ℕ0𝑚 ∈ ℕ0𝑛𝑚) → ((FermatNo‘𝑛) gcd (FermatNo‘𝑚)) = 1)
2417, 18, 22, 23syl3anc 1369 . . . . . . . . . . . . . 14 (((𝑛 ∈ ℕ0𝑚 ∈ ℕ0) ∧ ¬ (FermatNo‘𝑛) = (FermatNo‘𝑚)) → ((FermatNo‘𝑛) gcd (FermatNo‘𝑚)) = 1)
2524ex 417 . . . . . . . . . . . . 13 ((𝑛 ∈ ℕ0𝑚 ∈ ℕ0) → (¬ (FermatNo‘𝑛) = (FermatNo‘𝑚) → ((FermatNo‘𝑛) gcd (FermatNo‘𝑚)) = 1))
26 eqeq12 2773 . . . . . . . . . . . . . . . 16 (((FermatNo‘𝑛) = 𝐹 ∧ (FermatNo‘𝑚) = 𝐺) → ((FermatNo‘𝑛) = (FermatNo‘𝑚) ↔ 𝐹 = 𝐺))
2726notbid 322 . . . . . . . . . . . . . . 15 (((FermatNo‘𝑛) = 𝐹 ∧ (FermatNo‘𝑚) = 𝐺) → (¬ (FermatNo‘𝑛) = (FermatNo‘𝑚) ↔ ¬ 𝐹 = 𝐺))
28 oveq12 7160 . . . . . . . . . . . . . . . 16 (((FermatNo‘𝑛) = 𝐹 ∧ (FermatNo‘𝑚) = 𝐺) → ((FermatNo‘𝑛) gcd (FermatNo‘𝑚)) = (𝐹 gcd 𝐺))
2928eqeq1d 2761 . . . . . . . . . . . . . . 15 (((FermatNo‘𝑛) = 𝐹 ∧ (FermatNo‘𝑚) = 𝐺) → (((FermatNo‘𝑛) gcd (FermatNo‘𝑚)) = 1 ↔ (𝐹 gcd 𝐺) = 1))
3027, 29imbi12d 349 . . . . . . . . . . . . . 14 (((FermatNo‘𝑛) = 𝐹 ∧ (FermatNo‘𝑚) = 𝐺) → ((¬ (FermatNo‘𝑛) = (FermatNo‘𝑚) → ((FermatNo‘𝑛) gcd (FermatNo‘𝑚)) = 1) ↔ (¬ 𝐹 = 𝐺 → (𝐹 gcd 𝐺) = 1)))
3130ancoms 463 . . . . . . . . . . . . 13 (((FermatNo‘𝑚) = 𝐺 ∧ (FermatNo‘𝑛) = 𝐹) → ((¬ (FermatNo‘𝑛) = (FermatNo‘𝑚) → ((FermatNo‘𝑛) gcd (FermatNo‘𝑚)) = 1) ↔ (¬ 𝐹 = 𝐺 → (𝐹 gcd 𝐺) = 1)))
3225, 31syl5ibcom 248 . . . . . . . . . . . 12 ((𝑛 ∈ ℕ0𝑚 ∈ ℕ0) → (((FermatNo‘𝑚) = 𝐺 ∧ (FermatNo‘𝑛) = 𝐹) → (¬ 𝐹 = 𝐺 → (𝐹 gcd 𝐺) = 1)))
3332com23 86 . . . . . . . . . . 11 ((𝑛 ∈ ℕ0𝑚 ∈ ℕ0) → (¬ 𝐹 = 𝐺 → (((FermatNo‘𝑚) = 𝐺 ∧ (FermatNo‘𝑛) = 𝐹) → (𝐹 gcd 𝐺) = 1)))
3433impcom 412 . . . . . . . . . 10 ((¬ 𝐹 = 𝐺 ∧ (𝑛 ∈ ℕ0𝑚 ∈ ℕ0)) → (((FermatNo‘𝑚) = 𝐺 ∧ (FermatNo‘𝑛) = 𝐹) → (𝐹 gcd 𝐺) = 1))
3534imp 411 . . . . . . . . 9 (((¬ 𝐹 = 𝐺 ∧ (𝑛 ∈ ℕ0𝑚 ∈ ℕ0)) ∧ ((FermatNo‘𝑚) = 𝐺 ∧ (FermatNo‘𝑛) = 𝐹)) → (𝐹 gcd 𝐺) = 1)
36 prmnn 16071 . . . . . . . . . . . 12 (𝐼 ∈ ℙ → 𝐼 ∈ ℕ)
37 coprmdvds1 16049 . . . . . . . . . . . . 13 ((𝐹 ∈ ℕ ∧ 𝐺 ∈ ℕ ∧ (𝐹 gcd 𝐺) = 1) → ((𝐼 ∈ ℕ ∧ 𝐼𝐹𝐼𝐺) → 𝐼 = 1))
3837imp 411 . . . . . . . . . . . 12 (((𝐹 ∈ ℕ ∧ 𝐺 ∈ ℕ ∧ (𝐹 gcd 𝐺) = 1) ∧ (𝐼 ∈ ℕ ∧ 𝐼𝐹𝐼𝐺)) → 𝐼 = 1)
3936, 38syl3anr1 1414 . . . . . . . . . . 11 (((𝐹 ∈ ℕ ∧ 𝐺 ∈ ℕ ∧ (𝐹 gcd 𝐺) = 1) ∧ (𝐼 ∈ ℙ ∧ 𝐼𝐹𝐼𝐺)) → 𝐼 = 1)
40 eleq1 2840 . . . . . . . . . . . . . . . 16 (𝐼 = 1 → (𝐼 ∈ ℙ ↔ 1 ∈ ℙ))
41 1nprm 16076 . . . . . . . . . . . . . . . . 17 ¬ 1 ∈ ℙ
4241pm2.21i 119 . . . . . . . . . . . . . . . 16 (1 ∈ ℙ → 𝐹 = 𝐺)
4340, 42syl6bi 256 . . . . . . . . . . . . . . 15 (𝐼 = 1 → (𝐼 ∈ ℙ → 𝐹 = 𝐺))
4443com12 32 . . . . . . . . . . . . . 14 (𝐼 ∈ ℙ → (𝐼 = 1 → 𝐹 = 𝐺))
4544a1d 25 . . . . . . . . . . . . 13 (𝐼 ∈ ℙ → ((𝐹 ∈ ℕ ∧ 𝐺 ∈ ℕ ∧ (𝐹 gcd 𝐺) = 1) → (𝐼 = 1 → 𝐹 = 𝐺)))
46453ad2ant1 1131 . . . . . . . . . . . 12 ((𝐼 ∈ ℙ ∧ 𝐼𝐹𝐼𝐺) → ((𝐹 ∈ ℕ ∧ 𝐺 ∈ ℕ ∧ (𝐹 gcd 𝐺) = 1) → (𝐼 = 1 → 𝐹 = 𝐺)))
4746impcom 412 . . . . . . . . . . 11 (((𝐹 ∈ ℕ ∧ 𝐺 ∈ ℕ ∧ (𝐹 gcd 𝐺) = 1) ∧ (𝐼 ∈ ℙ ∧ 𝐼𝐹𝐼𝐺)) → (𝐼 = 1 → 𝐹 = 𝐺))
4839, 47mpd 15 . . . . . . . . . 10 (((𝐹 ∈ ℕ ∧ 𝐺 ∈ ℕ ∧ (𝐹 gcd 𝐺) = 1) ∧ (𝐼 ∈ ℙ ∧ 𝐼𝐹𝐼𝐺)) → 𝐹 = 𝐺)
4948ex 417 . . . . . . . . 9 ((𝐹 ∈ ℕ ∧ 𝐺 ∈ ℕ ∧ (𝐹 gcd 𝐺) = 1) → ((𝐼 ∈ ℙ ∧ 𝐼𝐹𝐼𝐺) → 𝐹 = 𝐺))
5010, 16, 35, 49syl3anc 1369 . . . . . . . 8 (((¬ 𝐹 = 𝐺 ∧ (𝑛 ∈ ℕ0𝑚 ∈ ℕ0)) ∧ ((FermatNo‘𝑚) = 𝐺 ∧ (FermatNo‘𝑛) = 𝐹)) → ((𝐼 ∈ ℙ ∧ 𝐼𝐹𝐼𝐺) → 𝐹 = 𝐺))
5150exp43 441 . . . . . . 7 𝐹 = 𝐺 → ((𝑛 ∈ ℕ0𝑚 ∈ ℕ0) → ((FermatNo‘𝑚) = 𝐺 → ((FermatNo‘𝑛) = 𝐹 → ((𝐼 ∈ ℙ ∧ 𝐼𝐹𝐼𝐺) → 𝐹 = 𝐺)))))
524, 51pm2.61i 185 . . . . . 6 ((𝑛 ∈ ℕ0𝑚 ∈ ℕ0) → ((FermatNo‘𝑚) = 𝐺 → ((FermatNo‘𝑛) = 𝐹 → ((𝐼 ∈ ℙ ∧ 𝐼𝐹𝐼𝐺) → 𝐹 = 𝐺))))
5352rexlimdva 3209 . . . . 5 (𝑛 ∈ ℕ0 → (∃𝑚 ∈ ℕ0 (FermatNo‘𝑚) = 𝐺 → ((FermatNo‘𝑛) = 𝐹 → ((𝐼 ∈ ℙ ∧ 𝐼𝐹𝐼𝐺) → 𝐹 = 𝐺))))
5453com23 86 . . . 4 (𝑛 ∈ ℕ0 → ((FermatNo‘𝑛) = 𝐹 → (∃𝑚 ∈ ℕ0 (FermatNo‘𝑚) = 𝐺 → ((𝐼 ∈ ℙ ∧ 𝐼𝐹𝐼𝐺) → 𝐹 = 𝐺))))
5554rexlimiv 3205 . . 3 (∃𝑛 ∈ ℕ0 (FermatNo‘𝑛) = 𝐹 → (∃𝑚 ∈ ℕ0 (FermatNo‘𝑚) = 𝐺 → ((𝐼 ∈ ℙ ∧ 𝐼𝐹𝐼𝐺) → 𝐹 = 𝐺)))
5655imp 411 . 2 ((∃𝑛 ∈ ℕ0 (FermatNo‘𝑛) = 𝐹 ∧ ∃𝑚 ∈ ℕ0 (FermatNo‘𝑚) = 𝐺) → ((𝐼 ∈ ℙ ∧ 𝐼𝐹𝐼𝐺) → 𝐹 = 𝐺))
571, 2, 56syl2anb 601 1 ((𝐹 ∈ ran FermatNo ∧ 𝐺 ∈ ran FermatNo) → ((𝐼 ∈ ℙ ∧ 𝐼𝐹𝐼𝐺) → 𝐹 = 𝐺))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209  wa 400  w3a 1085   = wceq 1539  wcel 2112  wne 2952  wrex 3072   class class class wbr 5033  ran crn 5526  cfv 6336  (class class class)co 7151  1c1 10577  cn 11675  0cn0 11935  cdvds 15656   gcd cgcd 15894  cprime 16068  FermatNocfmtno 44413
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1912  ax-6 1971  ax-7 2016  ax-8 2114  ax-9 2122  ax-10 2143  ax-11 2159  ax-12 2176  ax-ext 2730  ax-rep 5157  ax-sep 5170  ax-nul 5177  ax-pow 5235  ax-pr 5299  ax-un 7460  ax-inf2 9138  ax-cnex 10632  ax-resscn 10633  ax-1cn 10634  ax-icn 10635  ax-addcl 10636  ax-addrcl 10637  ax-mulcl 10638  ax-mulrcl 10639  ax-mulcom 10640  ax-addass 10641  ax-mulass 10642  ax-distr 10643  ax-i2m1 10644  ax-1ne0 10645  ax-1rid 10646  ax-rnegex 10647  ax-rrecex 10648  ax-cnre 10649  ax-pre-lttri 10650  ax-pre-lttrn 10651  ax-pre-ltadd 10652  ax-pre-mulgt0 10653  ax-pre-sup 10654
This theorem depends on definitions:  df-bi 210  df-an 401  df-or 846  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2071  df-mo 2558  df-eu 2589  df-clab 2737  df-cleq 2751  df-clel 2831  df-nfc 2902  df-ne 2953  df-nel 3057  df-ral 3076  df-rex 3077  df-reu 3078  df-rmo 3079  df-rab 3080  df-v 3412  df-sbc 3698  df-csb 3807  df-dif 3862  df-un 3864  df-in 3866  df-ss 3876  df-pss 3878  df-nul 4227  df-if 4422  df-pw 4497  df-sn 4524  df-pr 4526  df-tp 4528  df-op 4530  df-uni 4800  df-int 4840  df-iun 4886  df-br 5034  df-opab 5096  df-mpt 5114  df-tr 5140  df-id 5431  df-eprel 5436  df-po 5444  df-so 5445  df-fr 5484  df-se 5485  df-we 5486  df-xp 5531  df-rel 5532  df-cnv 5533  df-co 5534  df-dm 5535  df-rn 5536  df-res 5537  df-ima 5538  df-pred 6127  df-ord 6173  df-on 6174  df-lim 6175  df-suc 6176  df-iota 6295  df-fun 6338  df-fn 6339  df-f 6340  df-f1 6341  df-fo 6342  df-f1o 6343  df-fv 6344  df-isom 6345  df-riota 7109  df-ov 7154  df-oprab 7155  df-mpo 7156  df-om 7581  df-1st 7694  df-2nd 7695  df-wrecs 7958  df-recs 8019  df-rdg 8057  df-1o 8113  df-2o 8114  df-er 8300  df-en 8529  df-dom 8530  df-sdom 8531  df-fin 8532  df-sup 8940  df-inf 8941  df-oi 9008  df-card 9402  df-pnf 10716  df-mnf 10717  df-xr 10718  df-ltxr 10719  df-le 10720  df-sub 10911  df-neg 10912  df-div 11337  df-nn 11676  df-2 11738  df-3 11739  df-4 11740  df-5 11741  df-n0 11936  df-z 12022  df-uz 12284  df-rp 12432  df-fz 12941  df-fzo 13084  df-seq 13420  df-exp 13481  df-hash 13742  df-cj 14507  df-re 14508  df-im 14509  df-sqrt 14643  df-abs 14644  df-clim 14894  df-prod 15309  df-dvds 15657  df-gcd 15895  df-prm 16069  df-fmtno 44414
This theorem is referenced by:  prmdvdsfmtnof1  44473
  Copyright terms: Public domain W3C validator