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

Theorem flt4lem6 40032
Description: Remove shared factors in a solution to 𝐴↑4 + 𝐵↑4 = 𝐶↑2. (Contributed by SN, 24-Jul-2024.)
Hypotheses
Ref Expression
flt4lem6.a (𝜑𝐴 ∈ ℕ)
flt4lem6.b (𝜑𝐵 ∈ ℕ)
flt4lem6.c (𝜑𝐶 ∈ ℕ)
flt4lem6.1 (𝜑 → ((𝐴↑4) + (𝐵↑4)) = (𝐶↑2))
Assertion
Ref Expression
flt4lem6 (𝜑 → (((𝐴 / (𝐴 gcd 𝐵)) ∈ ℕ ∧ (𝐵 / (𝐴 gcd 𝐵)) ∈ ℕ ∧ (𝐶 / ((𝐴 gcd 𝐵)↑2)) ∈ ℕ) ∧ (((𝐴 / (𝐴 gcd 𝐵))↑4) + ((𝐵 / (𝐴 gcd 𝐵))↑4)) = ((𝐶 / ((𝐴 gcd 𝐵)↑2))↑2)))

Proof of Theorem flt4lem6
StepHypRef Expression
1 flt4lem6.a . . . 4 (𝜑𝐴 ∈ ℕ)
2 flt4lem6.b . . . . 5 (𝜑𝐵 ∈ ℕ)
32nnzd 12138 . . . 4 (𝜑𝐵 ∈ ℤ)
4 divgcdnn 15927 . . . 4 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℤ) → (𝐴 / (𝐴 gcd 𝐵)) ∈ ℕ)
51, 3, 4syl2anc 587 . . 3 (𝜑 → (𝐴 / (𝐴 gcd 𝐵)) ∈ ℕ)
61nnzd 12138 . . . 4 (𝜑𝐴 ∈ ℤ)
7 divgcdnnr 15928 . . . 4 ((𝐵 ∈ ℕ ∧ 𝐴 ∈ ℤ) → (𝐵 / (𝐴 gcd 𝐵)) ∈ ℕ)
82, 6, 7syl2anc 587 . . 3 (𝜑 → (𝐵 / (𝐴 gcd 𝐵)) ∈ ℕ)
9 flt4lem6.1 . . . . . . 7 (𝜑 → ((𝐴↑4) + (𝐵↑4)) = (𝐶↑2))
10 gcdnncl 15919 . . . . . . . . . 10 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (𝐴 gcd 𝐵) ∈ ℕ)
111, 2, 10syl2anc 587 . . . . . . . . 9 (𝜑 → (𝐴 gcd 𝐵) ∈ ℕ)
1211nncnd 11703 . . . . . . . 8 (𝜑 → (𝐴 gcd 𝐵) ∈ ℂ)
1312flt4lem 40019 . . . . . . 7 (𝜑 → ((𝐴 gcd 𝐵)↑4) = (((𝐴 gcd 𝐵)↑2)↑2))
149, 13oveq12d 7174 . . . . . 6 (𝜑 → (((𝐴↑4) + (𝐵↑4)) / ((𝐴 gcd 𝐵)↑4)) = ((𝐶↑2) / (((𝐴 gcd 𝐵)↑2)↑2)))
151nncnd 11703 . . . . . . . . 9 (𝜑𝐴 ∈ ℂ)
1611nnne0d 11737 . . . . . . . . 9 (𝜑 → (𝐴 gcd 𝐵) ≠ 0)
17 4nn0 11966 . . . . . . . . . 10 4 ∈ ℕ0
1817a1i 11 . . . . . . . . 9 (𝜑 → 4 ∈ ℕ0)
1915, 12, 16, 18expdivd 13587 . . . . . . . 8 (𝜑 → ((𝐴 / (𝐴 gcd 𝐵))↑4) = ((𝐴↑4) / ((𝐴 gcd 𝐵)↑4)))
202nncnd 11703 . . . . . . . . 9 (𝜑𝐵 ∈ ℂ)
2120, 12, 16, 18expdivd 13587 . . . . . . . 8 (𝜑 → ((𝐵 / (𝐴 gcd 𝐵))↑4) = ((𝐵↑4) / ((𝐴 gcd 𝐵)↑4)))
2219, 21oveq12d 7174 . . . . . . 7 (𝜑 → (((𝐴 / (𝐴 gcd 𝐵))↑4) + ((𝐵 / (𝐴 gcd 𝐵))↑4)) = (((𝐴↑4) / ((𝐴 gcd 𝐵)↑4)) + ((𝐵↑4) / ((𝐴 gcd 𝐵)↑4))))
2315, 18expcld 13573 . . . . . . . 8 (𝜑 → (𝐴↑4) ∈ ℂ)
2420, 18expcld 13573 . . . . . . . 8 (𝜑 → (𝐵↑4) ∈ ℂ)
2512, 18expcld 13573 . . . . . . . 8 (𝜑 → ((𝐴 gcd 𝐵)↑4) ∈ ℂ)
2611, 18nnexpcld 13669 . . . . . . . . 9 (𝜑 → ((𝐴 gcd 𝐵)↑4) ∈ ℕ)
2726nnne0d 11737 . . . . . . . 8 (𝜑 → ((𝐴 gcd 𝐵)↑4) ≠ 0)
2823, 24, 25, 27divdird 11505 . . . . . . 7 (𝜑 → (((𝐴↑4) + (𝐵↑4)) / ((𝐴 gcd 𝐵)↑4)) = (((𝐴↑4) / ((𝐴 gcd 𝐵)↑4)) + ((𝐵↑4) / ((𝐴 gcd 𝐵)↑4))))
2922, 28eqtr4d 2796 . . . . . 6 (𝜑 → (((𝐴 / (𝐴 gcd 𝐵))↑4) + ((𝐵 / (𝐴 gcd 𝐵))↑4)) = (((𝐴↑4) + (𝐵↑4)) / ((𝐴 gcd 𝐵)↑4)))
30 flt4lem6.c . . . . . . . 8 (𝜑𝐶 ∈ ℕ)
3130nncnd 11703 . . . . . . 7 (𝜑𝐶 ∈ ℂ)
3211nnsqcld 13668 . . . . . . . 8 (𝜑 → ((𝐴 gcd 𝐵)↑2) ∈ ℕ)
3332nncnd 11703 . . . . . . 7 (𝜑 → ((𝐴 gcd 𝐵)↑2) ∈ ℂ)
3432nnne0d 11737 . . . . . . 7 (𝜑 → ((𝐴 gcd 𝐵)↑2) ≠ 0)
3531, 33, 34sqdivd 13586 . . . . . 6 (𝜑 → ((𝐶 / ((𝐴 gcd 𝐵)↑2))↑2) = ((𝐶↑2) / (((𝐴 gcd 𝐵)↑2)↑2)))
3614, 29, 353eqtr4d 2803 . . . . 5 (𝜑 → (((𝐴 / (𝐴 gcd 𝐵))↑4) + ((𝐵 / (𝐴 gcd 𝐵))↑4)) = ((𝐶 / ((𝐴 gcd 𝐵)↑2))↑2))
375, 18nnexpcld 13669 . . . . . . 7 (𝜑 → ((𝐴 / (𝐴 gcd 𝐵))↑4) ∈ ℕ)
388, 18nnexpcld 13669 . . . . . . 7 (𝜑 → ((𝐵 / (𝐴 gcd 𝐵))↑4) ∈ ℕ)
3937, 38nnaddcld 11739 . . . . . 6 (𝜑 → (((𝐴 / (𝐴 gcd 𝐵))↑4) + ((𝐵 / (𝐴 gcd 𝐵))↑4)) ∈ ℕ)
4039nnzd 12138 . . . . 5 (𝜑 → (((𝐴 / (𝐴 gcd 𝐵))↑4) + ((𝐵 / (𝐴 gcd 𝐵))↑4)) ∈ ℤ)
4136, 40eqeltrrd 2853 . . . 4 (𝜑 → ((𝐶 / ((𝐴 gcd 𝐵)↑2))↑2) ∈ ℤ)
4230nnzd 12138 . . . . 5 (𝜑𝐶 ∈ ℤ)
43 znq 12405 . . . . 5 ((𝐶 ∈ ℤ ∧ ((𝐴 gcd 𝐵)↑2) ∈ ℕ) → (𝐶 / ((𝐴 gcd 𝐵)↑2)) ∈ ℚ)
4442, 32, 43syl2anc 587 . . . 4 (𝜑 → (𝐶 / ((𝐴 gcd 𝐵)↑2)) ∈ ℚ)
4530nnred 11702 . . . . 5 (𝜑𝐶 ∈ ℝ)
4632nnred 11702 . . . . 5 (𝜑 → ((𝐴 gcd 𝐵)↑2) ∈ ℝ)
4730nngt0d 11736 . . . . 5 (𝜑 → 0 < 𝐶)
4832nngt0d 11736 . . . . 5 (𝜑 → 0 < ((𝐴 gcd 𝐵)↑2))
4945, 46, 47, 48divgt0d 11626 . . . 4 (𝜑 → 0 < (𝐶 / ((𝐴 gcd 𝐵)↑2)))
5041, 44, 49posqsqznn 39885 . . 3 (𝜑 → (𝐶 / ((𝐴 gcd 𝐵)↑2)) ∈ ℕ)
515, 8, 503jca 1125 . 2 (𝜑 → ((𝐴 / (𝐴 gcd 𝐵)) ∈ ℕ ∧ (𝐵 / (𝐴 gcd 𝐵)) ∈ ℕ ∧ (𝐶 / ((𝐴 gcd 𝐵)↑2)) ∈ ℕ))
5251, 36jca 515 1 (𝜑 → (((𝐴 / (𝐴 gcd 𝐵)) ∈ ℕ ∧ (𝐵 / (𝐴 gcd 𝐵)) ∈ ℕ ∧ (𝐶 / ((𝐴 gcd 𝐵)↑2)) ∈ ℕ) ∧ (((𝐴 / (𝐴 gcd 𝐵))↑4) + ((𝐵 / (𝐴 gcd 𝐵))↑4)) = ((𝐶 / ((𝐴 gcd 𝐵)↑2))↑2)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 399  w3a 1084   = wceq 1538  wcel 2111  (class class class)co 7156   + caddc 10591   / cdiv 11348  cn 11687  2c2 11742  4c4 11744  0cn0 11947  cz 12033  cq 12401  cexp 13492   gcd cgcd 15906
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2729  ax-sep 5173  ax-nul 5180  ax-pow 5238  ax-pr 5302  ax-un 7465  ax-cnex 10644  ax-resscn 10645  ax-1cn 10646  ax-icn 10647  ax-addcl 10648  ax-addrcl 10649  ax-mulcl 10650  ax-mulrcl 10651  ax-mulcom 10652  ax-addass 10653  ax-mulass 10654  ax-distr 10655  ax-i2m1 10656  ax-1ne0 10657  ax-1rid 10658  ax-rnegex 10659  ax-rrecex 10660  ax-cnre 10661  ax-pre-lttri 10662  ax-pre-lttrn 10663  ax-pre-ltadd 10664  ax-pre-mulgt0 10665  ax-pre-sup 10666
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-fal 1551  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2557  df-eu 2588  df-clab 2736  df-cleq 2750  df-clel 2830  df-nfc 2901  df-ne 2952  df-nel 3056  df-ral 3075  df-rex 3076  df-reu 3077  df-rmo 3078  df-rab 3079  df-v 3411  df-sbc 3699  df-csb 3808  df-dif 3863  df-un 3865  df-in 3867  df-ss 3877  df-pss 3879  df-nul 4228  df-if 4424  df-pw 4499  df-sn 4526  df-pr 4528  df-tp 4530  df-op 4532  df-uni 4802  df-iun 4888  df-br 5037  df-opab 5099  df-mpt 5117  df-tr 5143  df-id 5434  df-eprel 5439  df-po 5447  df-so 5448  df-fr 5487  df-we 5489  df-xp 5534  df-rel 5535  df-cnv 5536  df-co 5537  df-dm 5538  df-rn 5539  df-res 5540  df-ima 5541  df-pred 6131  df-ord 6177  df-on 6178  df-lim 6179  df-suc 6180  df-iota 6299  df-fun 6342  df-fn 6343  df-f 6344  df-f1 6345  df-fo 6346  df-f1o 6347  df-fv 6348  df-riota 7114  df-ov 7159  df-oprab 7160  df-mpo 7161  df-om 7586  df-1st 7699  df-2nd 7700  df-wrecs 7963  df-recs 8024  df-rdg 8062  df-er 8305  df-en 8541  df-dom 8542  df-sdom 8543  df-sup 8952  df-inf 8953  df-pnf 10728  df-mnf 10729  df-xr 10730  df-ltxr 10731  df-le 10732  df-sub 10923  df-neg 10924  df-div 11349  df-nn 11688  df-2 11750  df-3 11751  df-4 11752  df-n0 11948  df-z 12034  df-uz 12296  df-q 12402  df-rp 12444  df-fl 13224  df-mod 13300  df-seq 13432  df-exp 13493  df-cj 14519  df-re 14520  df-im 14521  df-sqrt 14655  df-abs 14656  df-dvds 15669  df-gcd 15907  df-numer 16144  df-denom 16145
This theorem is referenced by:  nna4b4nsq  40034
  Copyright terms: Public domain W3C validator