Users' Mathboxes Mathbox for Steven Nguyen < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  flt4lem5a Structured version   Visualization version   GIF version

Theorem flt4lem5a 43194
Description: Part 1 of Equation 1 of https://crypto.stanford.edu/pbc/notes/numberfield/fermatn4.html. (Contributed by SN, 22-Aug-2024.)
Hypotheses
Ref Expression
flt4lem5a.m 𝑀 = (((√‘(𝐶 + (𝐵↑2))) + (√‘(𝐶 − (𝐵↑2)))) / 2)
flt4lem5a.n 𝑁 = (((√‘(𝐶 + (𝐵↑2))) − (√‘(𝐶 − (𝐵↑2)))) / 2)
flt4lem5a.r 𝑅 = (((√‘(𝑀 + 𝑁)) + (√‘(𝑀𝑁))) / 2)
flt4lem5a.s 𝑆 = (((√‘(𝑀 + 𝑁)) − (√‘(𝑀𝑁))) / 2)
flt4lem5a.a (𝜑𝐴 ∈ ℕ)
flt4lem5a.b (𝜑𝐵 ∈ ℕ)
flt4lem5a.c (𝜑𝐶 ∈ ℕ)
flt4lem5a.1 (𝜑 → ¬ 2 ∥ 𝐴)
flt4lem5a.2 (𝜑 → (𝐴 gcd 𝐶) = 1)
flt4lem5a.3 (𝜑 → ((𝐴↑4) + (𝐵↑4)) = (𝐶↑2))
Assertion
Ref Expression
flt4lem5a (𝜑 → ((𝐴↑2) + (𝑁↑2)) = (𝑀↑2))

Proof of Theorem flt4lem5a
StepHypRef Expression
1 flt4lem5a.a . . . . . . 7 (𝜑𝐴 ∈ ℕ)
21nnsqcld 14250 . . . . . 6 (𝜑 → (𝐴↑2) ∈ ℕ)
3 flt4lem5a.b . . . . . . 7 (𝜑𝐵 ∈ ℕ)
43nnsqcld 14250 . . . . . 6 (𝜑 → (𝐵↑2) ∈ ℕ)
5 flt4lem5a.c . . . . . 6 (𝜑𝐶 ∈ ℕ)
6 flt4lem5a.1 . . . . . . 7 (𝜑 → ¬ 2 ∥ 𝐴)
7 2prm 16716 . . . . . . . 8 2 ∈ ℙ
81nnzd 12587 . . . . . . . 8 (𝜑𝐴 ∈ ℤ)
9 prmdvdssq 16743 . . . . . . . 8 ((2 ∈ ℙ ∧ 𝐴 ∈ ℤ) → (2 ∥ 𝐴 ↔ 2 ∥ (𝐴↑2)))
107, 8, 9sylancr 596 . . . . . . 7 (𝜑 → (2 ∥ 𝐴 ↔ 2 ∥ (𝐴↑2)))
116, 10mtbid 326 . . . . . 6 (𝜑 → ¬ 2 ∥ (𝐴↑2))
12 flt4lem5a.2 . . . . . . 7 (𝜑 → (𝐴 gcd 𝐶) = 1)
13 2nn 12284 . . . . . . . . 9 2 ∈ ℕ
1413a1i 11 . . . . . . . 8 (𝜑 → 2 ∈ ℕ)
15 rplpwr 16582 . . . . . . . 8 ((𝐴 ∈ ℕ ∧ 𝐶 ∈ ℕ ∧ 2 ∈ ℕ) → ((𝐴 gcd 𝐶) = 1 → ((𝐴↑2) gcd 𝐶) = 1))
161, 5, 14, 15syl3anc 1389 . . . . . . 7 (𝜑 → ((𝐴 gcd 𝐶) = 1 → ((𝐴↑2) gcd 𝐶) = 1))
1712, 16mpd 15 . . . . . 6 (𝜑 → ((𝐴↑2) gcd 𝐶) = 1)
181nncnd 12219 . . . . . . . . 9 (𝜑𝐴 ∈ ℂ)
1918flt4lem 43187 . . . . . . . 8 (𝜑 → (𝐴↑4) = ((𝐴↑2)↑2))
203nncnd 12219 . . . . . . . . 9 (𝜑𝐵 ∈ ℂ)
2120flt4lem 43187 . . . . . . . 8 (𝜑 → (𝐵↑4) = ((𝐵↑2)↑2))
2219, 21oveq12d 7408 . . . . . . 7 (𝜑 → ((𝐴↑4) + (𝐵↑4)) = (((𝐴↑2)↑2) + ((𝐵↑2)↑2)))
23 flt4lem5a.3 . . . . . . 7 (𝜑 → ((𝐴↑4) + (𝐵↑4)) = (𝐶↑2))
2422, 23eqtr3d 2798 . . . . . 6 (𝜑 → (((𝐴↑2)↑2) + ((𝐵↑2)↑2)) = (𝐶↑2))
252, 4, 5, 11, 17, 24flt4lem1 43188 . . . . 5 (𝜑 → (((𝐴↑2) ∈ ℕ ∧ (𝐵↑2) ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ (((𝐴↑2)↑2) + ((𝐵↑2)↑2)) = (𝐶↑2) ∧ (((𝐴↑2) gcd (𝐵↑2)) = 1 ∧ ¬ 2 ∥ (𝐴↑2))))
26 flt4lem5a.m . . . . . 6 𝑀 = (((√‘(𝐶 + (𝐵↑2))) + (√‘(𝐶 − (𝐵↑2)))) / 2)
2726pythagtriplem11 16851 . . . . 5 ((((𝐴↑2) ∈ ℕ ∧ (𝐵↑2) ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ (((𝐴↑2)↑2) + ((𝐵↑2)↑2)) = (𝐶↑2) ∧ (((𝐴↑2) gcd (𝐵↑2)) = 1 ∧ ¬ 2 ∥ (𝐴↑2))) → 𝑀 ∈ ℕ)
2825, 27syl 17 . . . 4 (𝜑𝑀 ∈ ℕ)
2928nnsqcld 14250 . . 3 (𝜑 → (𝑀↑2) ∈ ℕ)
3029nncnd 12219 . 2 (𝜑 → (𝑀↑2) ∈ ℂ)
31 flt4lem5a.n . . . . . 6 𝑁 = (((√‘(𝐶 + (𝐵↑2))) − (√‘(𝐶 − (𝐵↑2)))) / 2)
3231pythagtriplem13 16853 . . . . 5 ((((𝐴↑2) ∈ ℕ ∧ (𝐵↑2) ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ (((𝐴↑2)↑2) + ((𝐵↑2)↑2)) = (𝐶↑2) ∧ (((𝐴↑2) gcd (𝐵↑2)) = 1 ∧ ¬ 2 ∥ (𝐴↑2))) → 𝑁 ∈ ℕ)
3325, 32syl 17 . . . 4 (𝜑𝑁 ∈ ℕ)
3433nnsqcld 14250 . . 3 (𝜑 → (𝑁↑2) ∈ ℕ)
3534nncnd 12219 . 2 (𝜑 → (𝑁↑2) ∈ ℂ)
3626, 31pythagtriplem15 16855 . . 3 ((((𝐴↑2) ∈ ℕ ∧ (𝐵↑2) ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ (((𝐴↑2)↑2) + ((𝐵↑2)↑2)) = (𝐶↑2) ∧ (((𝐴↑2) gcd (𝐵↑2)) = 1 ∧ ¬ 2 ∥ (𝐴↑2))) → (𝐴↑2) = ((𝑀↑2) − (𝑁↑2)))
3725, 36syl 17 . 2 (𝜑 → (𝐴↑2) = ((𝑀↑2) − (𝑁↑2)))
3830, 35, 37mvrrsubd 42843 1 (𝜑 → ((𝐴↑2) + (𝑁↑2)) = (𝑀↑2))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 208  wa 399  w3a 1097   = wceq 1559  wcel 2141   class class class wbr 5097  cfv 6515  (class class class)co 7390  1c1 11067   + caddc 11069  cmin 11407   / cdiv 11837  cn 12203  2c2 12265  4c4 12267  cz 12561  cexp 14067  csqrt 15250  cdvds 16276   gcd cgcd 16518  cprime 16695
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1814  ax-4 1828  ax-5 1929  ax-6 1986  ax-7 2027  ax-8 2143  ax-9 2151  ax-10 2174  ax-11 2190  ax-12 2211  ax-ext 2733  ax-sep 5243  ax-nul 5253  ax-pow 5319  ax-pr 5387  ax-un 7712  ax-cnex 11122  ax-resscn 11123  ax-1cn 11124  ax-icn 11125  ax-addcl 11126  ax-addrcl 11127  ax-mulcl 11128  ax-mulrcl 11129  ax-mulcom 11130  ax-addass 11131  ax-mulass 11132  ax-distr 11133  ax-i2m1 11134  ax-1ne0 11135  ax-1rid 11136  ax-rnegex 11137  ax-rrecex 11138  ax-cnre 11139  ax-pre-lttri 11140  ax-pre-lttrn 11141  ax-pre-ltadd 11142  ax-pre-mulgt0 11143  ax-pre-sup 11144
This theorem depends on definitions:  df-bi 209  df-an 400  df-or 859  df-3or 1098  df-3an 1099  df-tru 1562  df-fal 1572  df-ex 1799  df-nf 1803  df-sb 2090  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-nel 3061  df-ral 3076  df-rex 3086  df-rmo 3366  df-reu 3367  df-rab 3414  df-v 3455  df-sbc 3743  df-csb 3851  df-dif 3905  df-un 3907  df-in 3909  df-ss 3919  df-pss 3922  df-nul 4284  df-if 4478  df-pw 4554  df-sn 4580  df-pr 4582  df-op 4586  df-uni 4863  df-iun 4948  df-br 5098  df-opab 5160  df-mpt 5179  df-tr 5205  df-id 5538  df-eprel 5543  df-po 5551  df-so 5552  df-fr 5596  df-we 5598  df-xp 5649  df-rel 5650  df-cnv 5651  df-co 5652  df-dm 5653  df-rn 5654  df-res 5655  df-ima 5656  df-pred 6282  df-ord 6343  df-on 6344  df-lim 6345  df-suc 6346  df-iota 6471  df-fun 6517  df-fn 6518  df-f 6519  df-f1 6520  df-fo 6521  df-f1o 6522  df-fv 6523  df-riota 7347  df-ov 7393  df-oprab 7394  df-mpo 7395  df-om 7841  df-1st 7964  df-2nd 7965  df-frecs 8255  df-wrecs 8286  df-recs 8335  df-rdg 8374  df-1o 8430  df-2o 8431  df-er 8671  df-en 8921  df-dom 8922  df-sdom 8923  df-fin 8924  df-sup 9381  df-inf 9382  df-pnf 11211  df-mnf 11212  df-xr 11213  df-ltxr 11214  df-le 11215  df-sub 11409  df-neg 11410  df-div 11838  df-nn 12204  df-2 12273  df-3 12274  df-4 12275  df-n0 12475  df-z 12562  df-uz 12833  df-rp 12987  df-fz 13506  df-fl 13795  df-mod 13873  df-seq 14008  df-exp 14068  df-cj 15116  df-re 15117  df-im 15118  df-sqrt 15252  df-abs 15253  df-dvds 16277  df-gcd 16519  df-prm 16696
This theorem is referenced by:  flt4lem5c  43196  flt4lem5d  43197  flt4lem5e  43198
  Copyright terms: Public domain W3C validator