Skip to content

Commit 882bbe5

Browse files
committed
bump mathlib
1 parent 0b8fdfa commit 882bbe5

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

FLT/Basic/Reductions.lean

+16-16
Original file line numberDiff line numberDiff line change
@@ -175,15 +175,15 @@ lemma aux₁.ha4 (hab : gcd a₁ b₁ = 1) : ((aux₁ a₁ b₁ c₁).1 : ZMod 4
175175
exact a3mod4
176176
· rename_i _ a1mod4
177177
have foo : 2 ∣ b₁ := by
178-
exact (ZMod.int_cast_zmod_eq_zero_iff_dvd b₁ 2).mp b_even
178+
exact (ZMod.intCast_zmod_eq_zero_iff_dvd b₁ 2).mp b_even
179179
have bar : ¬ 2 ∣ a₁ := by
180180
intro h
181181
apply aux _ h foo
182182
rename_i x x_1
183183
simp_all only [ne_eq, Fin.zero_eta, gcd_eq_zero_iff, false_and, not_false_eq_true]
184184
-- want to do fin_cases on (-a₁ : ZMod 4)
185185
rcases ZMod4cases (-a₁ : ℤ) with (h | h | h | h)
186-
· rw [ZMod.int_cast_zmod_eq_zero_iff_dvd] at h
186+
· rw [ZMod.intCast_zmod_eq_zero_iff_dvd] at h
187187
simp only [Nat.cast_ofNat, dvd_neg] at h
188188
exfalso
189189
apply bar
@@ -198,7 +198,7 @@ lemma aux₁.ha4 (hab : gcd a₁ b₁ = 1) : ((aux₁ a₁ b₁ c₁).1 : ZMod 4
198198
apply bar
199199
simp only [Int.cast_neg, ← add_eq_zero_iff_neg_eq] at h
200200
have foo : ((a₁ + 2 : ℤ) : ZMod 4) = 0 := by assumption_mod_cast
201-
rw [ZMod.int_cast_zmod_eq_zero_iff_dvd] at foo
201+
rw [ZMod.intCast_zmod_eq_zero_iff_dvd] at foo
202202
rw [← dvd_add_left (c := 2) (by norm_num)]
203203
refine dvd_trans ?_ foo
204204
norm_num
@@ -211,11 +211,11 @@ lemma aux₁.ha4 (hab : gcd a₁ b₁ = 1) : ((aux₁ a₁ b₁ c₁).1 : ZMod 4
211211
· rename_i _ b1mod4
212212
-- now need to check a
213213
rcases ZMod4cases b₁ with (h | h | h | h)
214-
· rw [ZMod.int_cast_zmod_eq_zero_iff_dvd] at h
214+
· rw [ZMod.intCast_zmod_eq_zero_iff_dvd] at h
215215
simp only [Nat.cast_ofNat, dvd_neg] at h
216216
exfalso
217217
apply hb1
218-
simp only [Fin.zero_eta, ZMod.int_cast_zmod_eq_zero_iff_dvd]
218+
simp only [Fin.zero_eta, ZMod.intCast_zmod_eq_zero_iff_dvd]
219219
refine dvd_trans ?_ h
220220
norm_num
221221
· simp [h]
@@ -224,8 +224,8 @@ lemma aux₁.ha4 (hab : gcd a₁ b₁ = 1) : ((aux₁ a₁ b₁ c₁).1 : ZMod 4
224224
have foo : ((b₁ - 2 : ℤ) : ZMod 4) = 0 := by assumption_mod_cast
225225
exfalso
226226
apply hb1
227-
rw [ZMod.int_cast_zmod_eq_zero_iff_dvd] at foo
228-
apply (ZMod.int_cast_zmod_eq_zero_iff_dvd _ 2).2
227+
rw [ZMod.intCast_zmod_eq_zero_iff_dvd] at foo
228+
apply (ZMod.intCast_zmod_eq_zero_iff_dvd _ 2).2
229229
rw [← dvd_sub_left (c := 2) (by norm_num)]
230230
refine dvd_trans ?_ foo
231231
norm_num
@@ -239,19 +239,19 @@ lemma aux₁.ha4 (hab : gcd a₁ b₁ = 1) : ((aux₁ a₁ b₁ c₁).1 : ZMod 4
239239
· exfalso
240240
apply a_odd
241241
change _ = 0
242-
rw [ZMod.int_cast_zmod_eq_zero_iff_dvd] at h ⊢
242+
rw [ZMod.intCast_zmod_eq_zero_iff_dvd] at h ⊢
243243
refine dvd_trans ?_ h
244244
norm_num
245245
· simp [h]
246246
decide
247247
· exfalso
248248
apply a_odd
249249
change _ = 0
250-
rw [ZMod.int_cast_zmod_eq_zero_iff_dvd]
250+
rw [ZMod.intCast_zmod_eq_zero_iff_dvd]
251251
rw [← dvd_sub_left (c := 2) (by norm_num)]
252252
rw [← sub_eq_zero] at h
253253
have foo : ((a₁ - 2 : ℤ) : ZMod 4) = 0 := by assumption_mod_cast
254-
rw [ZMod.int_cast_zmod_eq_zero_iff_dvd] at foo
254+
rw [ZMod.intCast_zmod_eq_zero_iff_dvd] at foo
255255
refine dvd_trans ?_ foo
256256
norm_num
257257
· exfalso
@@ -310,21 +310,21 @@ lemma gcdab_eq_gcdac {a b c : ℤ} {p : ℕ} (hp : 0 < p) (h : a ^ p + b ^ p = c
310310
gcd a b = gcd a c := by
311311
have foo : gcd a b ∣ gcd a c := by
312312
apply dvd_gcd (gcd_dvd_left a b)
313-
rw [← Int.pow_dvd_pow_iff hp, ← h]
313+
rw [← Int.pow_dvd_pow_iff hp.ne', ← h]
314314
apply dvd_add
315-
· rw [Int.pow_dvd_pow_iff hp]
315+
· rw [Int.pow_dvd_pow_iff hp.ne']
316316
exact gcd_dvd_left a b
317-
· rw [Int.pow_dvd_pow_iff hp]
317+
· rw [Int.pow_dvd_pow_iff hp.ne']
318318
exact gcd_dvd_right a b
319319
have bar : gcd a c ∣ gcd a b := by
320320
apply dvd_gcd (gcd_dvd_left a c)
321321
have h2 : b ^ p = c ^ p - a ^ p := eq_sub_of_add_eq' h
322-
rw [← Int.pow_dvd_pow_iff hp, h2]
322+
rw [← Int.pow_dvd_pow_iff hp.ne', h2]
323323
apply dvd_add
324-
· rw [Int.pow_dvd_pow_iff hp]
324+
· rw [Int.pow_dvd_pow_iff hp.ne']
325325
exact gcd_dvd_right a c
326326
· rw [dvd_neg]
327-
rw [Int.pow_dvd_pow_iff hp]
327+
rw [Int.pow_dvd_pow_iff hp.ne']
328328
exact gcd_dvd_left a c
329329
change _ ∣ (Int.gcd a c : ℤ) at foo
330330
apply Int.ofNat_dvd.1 at bar

lake-manifest.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[{"url": "https://github.com/leanprover/std4",
55
"type": "git",
66
"subDir": null,
7-
"rev": "f3447c3732c9d6e8df3bdad78e5ecf7e8b353bbc",
7+
"rev": "e840c18f7334c751efbd4cfe531476e10c943cdb",
88
"name": "std",
99
"manifestFile": "lake-manifest.json",
1010
"inputRev": "main",
@@ -13,7 +13,7 @@
1313
{"url": "https://github.com/leanprover-community/quote4",
1414
"type": "git",
1515
"subDir": null,
16-
"rev": "fd760831487e6835944e7eeed505522c9dd47563",
16+
"rev": "64365c656d5e1bffa127d2a1795f471529ee0178",
1717
"name": "Qq",
1818
"manifestFile": "lake-manifest.json",
1919
"inputRev": "master",
@@ -22,7 +22,7 @@
2222
{"url": "https://github.com/leanprover-community/aesop",
2323
"type": "git",
2424
"subDir": null,
25-
"rev": "8be30c25e3caa06937feeb62f7ca898370f80ee9",
25+
"rev": "5fefb40a7c9038a7150e7edd92e43b1b94c49e79",
2626
"name": "aesop",
2727
"manifestFile": "lake-manifest.json",
2828
"inputRev": "master",
@@ -49,7 +49,7 @@
4949
{"url": "https://github.com/leanprover-community/import-graph.git",
5050
"type": "git",
5151
"subDir": null,
52-
"rev": "bbcffbcc19d69e13d5eea716283c76169db524ba",
52+
"rev": "61a79185b6582573d23bf7e17f2137cd49e7e662",
5353
"name": "importGraph",
5454
"manifestFile": "lake-manifest.json",
5555
"inputRev": "main",
@@ -58,7 +58,7 @@
5858
{"url": "https://github.com/leanprover-community/mathlib4.git",
5959
"type": "git",
6060
"subDir": null,
61-
"rev": "32531f6a61daf705cf6b38726b3c2ac5bcc553d1",
61+
"rev": "919a721fa2a6ad2997a95e3337c88845b5936e44",
6262
"name": "mathlib",
6363
"manifestFile": "lake-manifest.json",
6464
"inputRev": null,

lean-toolchain

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
leanprover/lean4:v4.7.0-rc2
1+
leanprover/lean4:v4.7.0

0 commit comments

Comments
 (0)