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 43115
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 14201 . . . . . 6 (𝜑 → (𝐴↑2) ∈ ℕ)
3 flt4lem5a.b . . . . . . 7 (𝜑𝐵 ∈ ℕ)
43nnsqcld 14201 . . . . . 6 (𝜑 → (𝐵↑2) ∈ ℕ)
5 flt4lem5a.c . . . . . 6 (𝜑𝐶 ∈ ℕ)
6 flt4lem5a.1 . . . . . . 7 (𝜑 → ¬ 2 ∥ 𝐴)
7 2prm 16656 . . . . . . . 8 2 ∈ ℙ
81nnzd 12545 . . . . . . . 8 (𝜑𝐴 ∈ ℤ)
9 prmdvdssq 16683 . . . . . . . 8 ((2 ∈ ℙ ∧ 𝐴 ∈ ℤ) → (2 ∥ 𝐴 ↔ 2 ∥ (𝐴↑2)))
107, 8, 9sylancr 594 . . . . . . 7 (𝜑 → (2 ∥ 𝐴 ↔ 2 ∥ (𝐴↑2)))
116, 10mtbid 326 . . . . . 6 (𝜑 → ¬ 2 ∥ (𝐴↑2))
12 flt4lem5a.2 . . . . . . 7 (𝜑 → (𝐴 gcd 𝐶) = 1)
13 2nn 12249 . . . . . . . . 9 2 ∈ ℕ
1413a1i 11 . . . . . . . 8 (𝜑 → 2 ∈ ℕ)
15 rplpwr 16522 . . . . . . . 8 ((𝐴 ∈ ℕ ∧ 𝐶 ∈ ℕ ∧ 2 ∈ ℕ) → ((𝐴 gcd 𝐶) = 1 → ((𝐴↑2) gcd 𝐶) = 1))
161, 5, 14, 15syl3anc 1380 . . . . . . 7 (𝜑 → ((𝐴 gcd 𝐶) = 1 → ((𝐴↑2) gcd 𝐶) = 1))
1712, 16mpd 15 . . . . . 6 (𝜑 → ((𝐴↑2) gcd 𝐶) = 1)
181nncnd 12185 . . . . . . . . 9 (𝜑𝐴 ∈ ℂ)
1918flt4lem 43108 . . . . . . . 8 (𝜑 → (𝐴↑4) = ((𝐴↑2)↑2))
203nncnd 12185 . . . . . . . . 9 (𝜑𝐵 ∈ ℂ)
2120flt4lem 43108 . . . . . . . 8 (𝜑 → (𝐵↑4) = ((𝐵↑2)↑2))
2219, 21oveq12d 7377 . . . . . . 7 (𝜑 → ((𝐴↑4) + (𝐵↑4)) = (((𝐴↑2)↑2) + ((𝐵↑2)↑2)))
23 flt4lem5a.3 . . . . . . 7 (𝜑 → ((𝐴↑4) + (𝐵↑4)) = (𝐶↑2))
2422, 23eqtr3d 2778 . . . . . 6 (𝜑 → (((𝐴↑2)↑2) + ((𝐵↑2)↑2)) = (𝐶↑2))
252, 4, 5, 11, 17, 24flt4lem1 43109 . . . . 5 (𝜑 → (((𝐴↑2) ∈ ℕ ∧ (𝐵↑2) ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ (((𝐴↑2)↑2) + ((𝐵↑2)↑2)) = (𝐶↑2) ∧ (((𝐴↑2) gcd (𝐵↑2)) = 1 ∧ ¬ 2 ∥ (𝐴↑2))))
26 flt4lem5a.m . . . . . 6 𝑀 = (((√‘(𝐶 + (𝐵↑2))) + (√‘(𝐶 − (𝐵↑2)))) / 2)
2726pythagtriplem11 16791 . . . . 5 ((((𝐴↑2) ∈ ℕ ∧ (𝐵↑2) ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ (((𝐴↑2)↑2) + ((𝐵↑2)↑2)) = (𝐶↑2) ∧ (((𝐴↑2) gcd (𝐵↑2)) = 1 ∧ ¬ 2 ∥ (𝐴↑2))) → 𝑀 ∈ ℕ)
2825, 27syl 17 . . . 4 (𝜑𝑀 ∈ ℕ)
2928nnsqcld 14201 . . 3 (𝜑 → (𝑀↑2) ∈ ℕ)
3029nncnd 12185 . 2 (𝜑 → (𝑀↑2) ∈ ℂ)
31 flt4lem5a.n . . . . . 6 𝑁 = (((√‘(𝐶 + (𝐵↑2))) − (√‘(𝐶 − (𝐵↑2)))) / 2)
3231pythagtriplem13 16793 . . . . 5 ((((𝐴↑2) ∈ ℕ ∧ (𝐵↑2) ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ (((𝐴↑2)↑2) + ((𝐵↑2)↑2)) = (𝐶↑2) ∧ (((𝐴↑2) gcd (𝐵↑2)) = 1 ∧ ¬ 2 ∥ (𝐴↑2))) → 𝑁 ∈ ℕ)
3325, 32syl 17 . . . 4 (𝜑𝑁 ∈ ℕ)
3433nnsqcld 14201 . . 3 (𝜑 → (𝑁↑2) ∈ ℕ)
3534nncnd 12185 . 2 (𝜑 → (𝑁↑2) ∈ ℂ)
3626, 31pythagtriplem15 16795 . . 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 42764 1 (𝜑 → ((𝐴↑2) + (𝑁↑2)) = (𝑀↑2))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 208  wa 397  w3a 1093   = wceq 1548  wcel 2121   class class class wbr 5074  cfv 6488  (class class class)co 7359  1c1 11035   + caddc 11037  cmin 11373   / cdiv 11803  cn 12169  2c2 12231  4c4 12233  cz 12519  cexp 14018  csqrt 15190  cdvds 16216   gcd cgcd 16458  cprime 16635
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1975  ax-7 2016  ax-8 2123  ax-9 2131  ax-10 2154  ax-11 2170  ax-12 2191  ax-ext 2713  ax-sep 5220  ax-nul 5230  ax-pow 5296  ax-pr 5364  ax-un 7681  ax-cnex 11090  ax-resscn 11091  ax-1cn 11092  ax-icn 11093  ax-addcl 11094  ax-addrcl 11095  ax-mulcl 11096  ax-mulrcl 11097  ax-mulcom 11098  ax-addass 11099  ax-mulass 11100  ax-distr 11101  ax-i2m1 11102  ax-1ne0 11103  ax-1rid 11104  ax-rnegex 11105  ax-rrecex 11106  ax-cnre 11107  ax-pre-lttri 11108  ax-pre-lttrn 11109  ax-pre-ltadd 11110  ax-pre-mulgt0 11111  ax-pre-sup 11112
This theorem depends on definitions:  df-bi 209  df-an 398  df-or 855  df-3or 1094  df-3an 1095  df-tru 1551  df-fal 1561  df-ex 1788  df-nf 1792  df-sb 2075  df-mo 2545  df-eu 2575  df-clab 2720  df-cleq 2733  df-clel 2816  df-nfc 2890  df-ne 2937  df-nel 3041  df-ral 3056  df-rex 3066  df-rmo 3346  df-reu 3347  df-rab 3394  df-v 3435  df-sbc 3725  df-csb 3833  df-dif 3887  df-un 3889  df-in 3891  df-ss 3901  df-pss 3904  df-nul 4264  df-if 4457  df-pw 4533  df-sn 4558  df-pr 4560  df-op 4564  df-uni 4841  df-iun 4925  df-br 5075  df-opab 5137  df-mpt 5156  df-tr 5182  df-id 5515  df-eprel 5520  df-po 5528  df-so 5529  df-fr 5573  df-we 5575  df-xp 5626  df-rel 5627  df-cnv 5628  df-co 5629  df-dm 5630  df-rn 5631  df-res 5632  df-ima 5633  df-pred 6255  df-ord 6316  df-on 6317  df-lim 6318  df-suc 6319  df-iota 6444  df-fun 6490  df-fn 6491  df-f 6492  df-f1 6493  df-fo 6494  df-f1o 6495  df-fv 6496  df-riota 7316  df-ov 7362  df-oprab 7363  df-mpo 7364  df-om 7810  df-1st 7933  df-2nd 7934  df-frecs 8224  df-wrecs 8255  df-recs 8304  df-rdg 8343  df-1o 8399  df-2o 8400  df-er 8637  df-en 8888  df-dom 8889  df-sdom 8890  df-fin 8891  df-sup 9349  df-inf 9350  df-pnf 11177  df-mnf 11178  df-xr 11179  df-ltxr 11180  df-le 11181  df-sub 11375  df-neg 11376  df-div 11804  df-nn 12170  df-2 12239  df-3 12240  df-4 12241  df-n0 12433  df-z 12520  df-uz 12784  df-rp 12938  df-fz 13457  df-fl 13746  df-mod 13824  df-seq 13959  df-exp 14019  df-cj 15056  df-re 15057  df-im 15058  df-sqrt 15192  df-abs 15193  df-dvds 16217  df-gcd 16459  df-prm 16636
This theorem is referenced by:  flt4lem5c  43117  flt4lem5d  43118  flt4lem5e  43119
  Copyright terms: Public domain W3C validator