Mathbox for Steven Nguyen |
< Previous
Next >
Nearby theorems |
||
Mirrors > Home > MPE Home > Th. List > Mathboxes > flt4lem5d | Structured version Visualization version GIF version |
Description: Part 3 of Equation 2 of https://crypto.stanford.edu/pbc/notes/numberfield/fermatn4.html. (Contributed by SN, 23-Aug-2024.) |
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)) |
Ref | Expression |
---|---|
flt4lem5d | ⊢ (𝜑 → 𝑀 = ((𝑅↑2) + (𝑆↑2))) |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | flt4lem5a.a | . 2 ⊢ (𝜑 → 𝐴 ∈ ℕ) | |
2 | 1 | nnsqcld 13816 | . . . 4 ⊢ (𝜑 → (𝐴↑2) ∈ ℕ) |
3 | flt4lem5a.b | . . . . 5 ⊢ (𝜑 → 𝐵 ∈ ℕ) | |
4 | 3 | nnsqcld 13816 | . . . 4 ⊢ (𝜑 → (𝐵↑2) ∈ ℕ) |
5 | flt4lem5a.c | . . . 4 ⊢ (𝜑 → 𝐶 ∈ ℕ) | |
6 | flt4lem5a.1 | . . . . 5 ⊢ (𝜑 → ¬ 2 ∥ 𝐴) | |
7 | 2prm 16254 | . . . . . 6 ⊢ 2 ∈ ℙ | |
8 | 1 | nnzd 12286 | . . . . . 6 ⊢ (𝜑 → 𝐴 ∈ ℤ) |
9 | prmdvdssq 16280 | . . . . . 6 ⊢ ((2 ∈ ℙ ∧ 𝐴 ∈ ℤ) → (2 ∥ 𝐴 ↔ 2 ∥ (𝐴↑2))) | |
10 | 7, 8, 9 | sylancr 590 | . . . . 5 ⊢ (𝜑 → (2 ∥ 𝐴 ↔ 2 ∥ (𝐴↑2))) |
11 | 6, 10 | mtbid 327 | . . . 4 ⊢ (𝜑 → ¬ 2 ∥ (𝐴↑2)) |
12 | flt4lem5a.2 | . . . . 5 ⊢ (𝜑 → (𝐴 gcd 𝐶) = 1) | |
13 | 2nn 11908 | . . . . . . 7 ⊢ 2 ∈ ℕ | |
14 | 13 | a1i 11 | . . . . . 6 ⊢ (𝜑 → 2 ∈ ℕ) |
15 | rplpwr 16124 | . . . . . 6 ⊢ ((𝐴 ∈ ℕ ∧ 𝐶 ∈ ℕ ∧ 2 ∈ ℕ) → ((𝐴 gcd 𝐶) = 1 → ((𝐴↑2) gcd 𝐶) = 1)) | |
16 | 1, 5, 14, 15 | syl3anc 1373 | . . . . 5 ⊢ (𝜑 → ((𝐴 gcd 𝐶) = 1 → ((𝐴↑2) gcd 𝐶) = 1)) |
17 | 12, 16 | mpd 15 | . . . 4 ⊢ (𝜑 → ((𝐴↑2) gcd 𝐶) = 1) |
18 | 1 | nncnd 11851 | . . . . . . 7 ⊢ (𝜑 → 𝐴 ∈ ℂ) |
19 | 18 | flt4lem 40193 | . . . . . 6 ⊢ (𝜑 → (𝐴↑4) = ((𝐴↑2)↑2)) |
20 | 3 | nncnd 11851 | . . . . . . 7 ⊢ (𝜑 → 𝐵 ∈ ℂ) |
21 | 20 | flt4lem 40193 | . . . . . 6 ⊢ (𝜑 → (𝐵↑4) = ((𝐵↑2)↑2)) |
22 | 19, 21 | oveq12d 7236 | . . . . 5 ⊢ (𝜑 → ((𝐴↑4) + (𝐵↑4)) = (((𝐴↑2)↑2) + ((𝐵↑2)↑2))) |
23 | flt4lem5a.3 | . . . . 5 ⊢ (𝜑 → ((𝐴↑4) + (𝐵↑4)) = (𝐶↑2)) | |
24 | 22, 23 | eqtr3d 2779 | . . . 4 ⊢ (𝜑 → (((𝐴↑2)↑2) + ((𝐵↑2)↑2)) = (𝐶↑2)) |
25 | 2, 4, 5, 11, 17, 24 | flt4lem1 40194 | . . 3 ⊢ (𝜑 → (((𝐴↑2) ∈ ℕ ∧ (𝐵↑2) ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ (((𝐴↑2)↑2) + ((𝐵↑2)↑2)) = (𝐶↑2) ∧ (((𝐴↑2) gcd (𝐵↑2)) = 1 ∧ ¬ 2 ∥ (𝐴↑2)))) |
26 | flt4lem5a.n | . . . 4 ⊢ 𝑁 = (((√‘(𝐶 + (𝐵↑2))) − (√‘(𝐶 − (𝐵↑2)))) / 2) | |
27 | 26 | pythagtriplem13 16385 | . . 3 ⊢ ((((𝐴↑2) ∈ ℕ ∧ (𝐵↑2) ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ (((𝐴↑2)↑2) + ((𝐵↑2)↑2)) = (𝐶↑2) ∧ (((𝐴↑2) gcd (𝐵↑2)) = 1 ∧ ¬ 2 ∥ (𝐴↑2))) → 𝑁 ∈ ℕ) |
28 | 25, 27 | syl 17 | . 2 ⊢ (𝜑 → 𝑁 ∈ ℕ) |
29 | flt4lem5a.m | . . . 4 ⊢ 𝑀 = (((√‘(𝐶 + (𝐵↑2))) + (√‘(𝐶 − (𝐵↑2)))) / 2) | |
30 | 29 | pythagtriplem11 16383 | . . 3 ⊢ ((((𝐴↑2) ∈ ℕ ∧ (𝐵↑2) ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ (((𝐴↑2)↑2) + ((𝐵↑2)↑2)) = (𝐶↑2) ∧ (((𝐴↑2) gcd (𝐵↑2)) = 1 ∧ ¬ 2 ∥ (𝐴↑2))) → 𝑀 ∈ ℕ) |
31 | 25, 30 | syl 17 | . 2 ⊢ (𝜑 → 𝑀 ∈ ℕ) |
32 | flt4lem5a.r | . . 3 ⊢ 𝑅 = (((√‘(𝑀 + 𝑁)) + (√‘(𝑀 − 𝑁))) / 2) | |
33 | flt4lem5a.s | . . 3 ⊢ 𝑆 = (((√‘(𝑀 + 𝑁)) − (√‘(𝑀 − 𝑁))) / 2) | |
34 | 29, 26, 32, 33, 1, 3, 5, 6, 12, 23 | flt4lem5a 40200 | . 2 ⊢ (𝜑 → ((𝐴↑2) + (𝑁↑2)) = (𝑀↑2)) |
35 | 28 | nnzd 12286 | . . . 4 ⊢ (𝜑 → 𝑁 ∈ ℤ) |
36 | 8, 35 | gcdcomd 16078 | . . 3 ⊢ (𝜑 → (𝐴 gcd 𝑁) = (𝑁 gcd 𝐴)) |
37 | 31 | nnzd 12286 | . . . . . 6 ⊢ (𝜑 → 𝑀 ∈ ℤ) |
38 | 35, 37 | gcdcomd 16078 | . . . . 5 ⊢ (𝜑 → (𝑁 gcd 𝑀) = (𝑀 gcd 𝑁)) |
39 | 29, 26 | flt4lem5 40198 | . . . . . 6 ⊢ ((((𝐴↑2) ∈ ℕ ∧ (𝐵↑2) ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ (((𝐴↑2)↑2) + ((𝐵↑2)↑2)) = (𝐶↑2) ∧ (((𝐴↑2) gcd (𝐵↑2)) = 1 ∧ ¬ 2 ∥ (𝐴↑2))) → (𝑀 gcd 𝑁) = 1) |
40 | 25, 39 | syl 17 | . . . . 5 ⊢ (𝜑 → (𝑀 gcd 𝑁) = 1) |
41 | 38, 40 | eqtrd 2777 | . . . 4 ⊢ (𝜑 → (𝑁 gcd 𝑀) = 1) |
42 | 28 | nnsqcld 13816 | . . . . . . 7 ⊢ (𝜑 → (𝑁↑2) ∈ ℕ) |
43 | 42 | nncnd 11851 | . . . . . 6 ⊢ (𝜑 → (𝑁↑2) ∈ ℂ) |
44 | 2 | nncnd 11851 | . . . . . 6 ⊢ (𝜑 → (𝐴↑2) ∈ ℂ) |
45 | 43, 44 | addcomd 11039 | . . . . 5 ⊢ (𝜑 → ((𝑁↑2) + (𝐴↑2)) = ((𝐴↑2) + (𝑁↑2))) |
46 | 45, 34 | eqtrd 2777 | . . . 4 ⊢ (𝜑 → ((𝑁↑2) + (𝐴↑2)) = (𝑀↑2)) |
47 | 28, 1, 31, 41, 46 | fltabcoprm 40190 | . . 3 ⊢ (𝜑 → (𝑁 gcd 𝐴) = 1) |
48 | 36, 47 | eqtrd 2777 | . 2 ⊢ (𝜑 → (𝐴 gcd 𝑁) = 1) |
49 | 32, 33 | pythagtriplem17 16389 | . 2 ⊢ (((𝐴 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑀 ∈ ℕ) ∧ ((𝐴↑2) + (𝑁↑2)) = (𝑀↑2) ∧ ((𝐴 gcd 𝑁) = 1 ∧ ¬ 2 ∥ 𝐴)) → 𝑀 = ((𝑅↑2) + (𝑆↑2))) |
50 | 1, 28, 31, 34, 48, 6, 49 | syl312anc 1393 | 1 ⊢ (𝜑 → 𝑀 = ((𝑅↑2) + (𝑆↑2))) |
Colors of variables: wff setvar class |
Syntax hints: ¬ wn 3 → wi 4 ↔ wb 209 ∧ wa 399 ∧ w3a 1089 = wceq 1543 ∈ wcel 2110 class class class wbr 5058 ‘cfv 6385 (class class class)co 7218 1c1 10735 + caddc 10737 − cmin 11067 / cdiv 11494 ℕcn 11835 2c2 11890 4c4 11892 ℤcz 12181 ↑cexp 13640 √csqrt 14801 ∥ cdvds 15820 gcd cgcd 16058 ℙcprime 16233 |
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 1976 ax-7 2016 ax-8 2112 ax-9 2120 ax-10 2141 ax-11 2158 ax-12 2175 ax-ext 2708 ax-sep 5197 ax-nul 5204 ax-pow 5263 ax-pr 5327 ax-un 7528 ax-cnex 10790 ax-resscn 10791 ax-1cn 10792 ax-icn 10793 ax-addcl 10794 ax-addrcl 10795 ax-mulcl 10796 ax-mulrcl 10797 ax-mulcom 10798 ax-addass 10799 ax-mulass 10800 ax-distr 10801 ax-i2m1 10802 ax-1ne0 10803 ax-1rid 10804 ax-rnegex 10805 ax-rrecex 10806 ax-cnre 10807 ax-pre-lttri 10808 ax-pre-lttrn 10809 ax-pre-ltadd 10810 ax-pre-mulgt0 10811 ax-pre-sup 10812 |
This theorem depends on definitions: df-bi 210 df-an 400 df-or 848 df-3or 1090 df-3an 1091 df-tru 1546 df-fal 1556 df-ex 1788 df-nf 1792 df-sb 2071 df-mo 2539 df-eu 2568 df-clab 2715 df-cleq 2729 df-clel 2816 df-nfc 2886 df-ne 2941 df-nel 3047 df-ral 3066 df-rex 3067 df-reu 3068 df-rmo 3069 df-rab 3070 df-v 3415 df-sbc 3700 df-csb 3817 df-dif 3874 df-un 3876 df-in 3878 df-ss 3888 df-pss 3890 df-nul 4243 df-if 4445 df-pw 4520 df-sn 4547 df-pr 4549 df-tp 4551 df-op 4553 df-uni 4825 df-iun 4911 df-br 5059 df-opab 5121 df-mpt 5141 df-tr 5167 df-id 5460 df-eprel 5465 df-po 5473 df-so 5474 df-fr 5514 df-we 5516 df-xp 5562 df-rel 5563 df-cnv 5564 df-co 5565 df-dm 5566 df-rn 5567 df-res 5568 df-ima 5569 df-pred 6165 df-ord 6221 df-on 6222 df-lim 6223 df-suc 6224 df-iota 6343 df-fun 6387 df-fn 6388 df-f 6389 df-f1 6390 df-fo 6391 df-f1o 6392 df-fv 6393 df-riota 7175 df-ov 7221 df-oprab 7222 df-mpo 7223 df-om 7650 df-1st 7766 df-2nd 7767 df-wrecs 8052 df-recs 8113 df-rdg 8151 df-1o 8207 df-2o 8208 df-er 8396 df-en 8632 df-dom 8633 df-sdom 8634 df-fin 8635 df-sup 9063 df-inf 9064 df-pnf 10874 df-mnf 10875 df-xr 10876 df-ltxr 10877 df-le 10878 df-sub 11069 df-neg 11070 df-div 11495 df-nn 11836 df-2 11898 df-3 11899 df-4 11900 df-n0 12096 df-z 12182 df-uz 12444 df-rp 12592 df-fz 13101 df-fl 13372 df-mod 13448 df-seq 13580 df-exp 13641 df-cj 14667 df-re 14668 df-im 14669 df-sqrt 14803 df-abs 14804 df-dvds 15821 df-gcd 16059 df-prm 16234 |
This theorem is referenced by: flt4lem5e 40204 flt4lem5f 40205 |
Copyright terms: Public domain | W3C validator |