Commit 37f8de5 1 parent 379cb15 commit 37f8de5 Copy full SHA for 37f8de5
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ lemma gcdab_eq_gcdac {a b c : ℤ} {p : ℕ} (hp : 0 < p) (h : a ^ p + b ^ p = c
307
307
def of_not_FermatLastTheorem_p_ge_5 {a b c : ℤ} (ha : a ≠ 0 ) (hb : b ≠ 0 ) (hc : c ≠ 0 )
308
308
{p : ℕ} (hpprime : p.Prime) (hp : 5 ≤ p) (h : a^p + b^p = c^p) : FreyPackage :=
309
309
let d := gcd a b
310
- have hd : d ≠ 0 := by aesop
310
+ have hd : d ≠ 0 := gcd_ne_zero_of_right hb
311
311
of_not_FermatLastTheorem_coprime_p_ge_5
312
312
(show a / d ≠ 0 by exact left_div_gcd_ne_zero ha)
313
313
(show b / d ≠ 0 by exact right_div_gcd_ne_zero hb)
@@ -317,7 +317,7 @@ def of_not_FermatLastTheorem_p_ge_5 {a b c : ℤ} (ha : a ≠ 0) (hb : b ≠ 0)
317
317
· linarith)
318
318
(by
319
319
simp [gcd]
320
- rw [ Int.gcd_div_gcd_div_gcd]
320
+ apply Int.gcd_div_gcd_div_gcd
321
321
apply Int.gcd_pos_of_ne_zero_left _ ha)
322
322
p hpprime hp <| by
323
323
obtain ⟨a₁, (ha : a = d * a₁)⟩ := gcd_dvd_left a b
You can’t perform that action at this time.
0 commit comments