Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
4690 commits
Select commit Hold shift + click to select a range
ea4f964
Merge master into nightly-testing
Jan 24, 2025
c57a2be
Merge master into nightly-testing
Jan 24, 2025
6aa0b25
Merge master into nightly-testing
Jan 25, 2025
5093f11
Merge master into nightly-testing
Jan 25, 2025
aa380f9
Merge remote-tracking branch 'origin/master' into bump/v4.17.0
jcommelin Jan 25, 2025
c4d9aec
Merge commit '3e696a8a9edeb0fca0e1a9df552c7e91d2aca018' into bump/nig…
jcommelin Jan 25, 2025
e7a16c3
chore: adaptations for nightly-2025-01-24
jcommelin Jan 25, 2025
b87ff2d
Merge branch 'bump/nightly-2025-01-24' into nightly-testing
jcommelin Jan 25, 2025
3b0ef5a
Merge master into nightly-testing
Jan 25, 2025
a36212b
chore: adaptations for nightly-2025-01-24 (#21042)
jcommelin Jan 25, 2025
bd03465
chore: bump to nightly-2025-01-25
Jan 25, 2025
578b8b9
Merge master into nightly-testing
Jan 25, 2025
49d8404
Merge master into nightly-testing
Jan 25, 2025
ab4ac9f
Merge master into nightly-testing
Jan 25, 2025
70d13e4
Merge master into nightly-testing
Jan 25, 2025
114cad0
Merge master into nightly-testing
Jan 26, 2025
d7d567d
Merge master into nightly-testing
Jan 26, 2025
76bcccf
Merge master into nightly-testing
Jan 26, 2025
b36f8b2
chore: bump to nightly-2025-01-26
Jan 26, 2025
7736b66
Merge master into nightly-testing
Jan 26, 2025
ea52118
Merge master into nightly-testing
Jan 26, 2025
3933573
Merge master into nightly-testing
Jan 26, 2025
e7928cb
Merge master into nightly-testing
Jan 26, 2025
095f4e4
Merge master into nightly-testing
Jan 26, 2025
16e0f54
Merge master into nightly-testing
Jan 27, 2025
11c83ea
Merge master into nightly-testing
Jan 27, 2025
6184acb
Merge master into nightly-testing
Jan 27, 2025
06a08ac
chore: bump to nightly-2025-01-27
Jan 27, 2025
94c6906
Merge master into nightly-testing
Jan 27, 2025
5011e47
Adaption for https://github.com/leanprover/lean4/pull/6755
nomeata Jan 23, 2025
aab2f37
Auto-resolved conflicts in lean-toolchain and lake-manifest.json
kim-em Jan 27, 2025
a445f3c
chore: adaptations for nightly-2025-01-27
kim-em Jan 27, 2025
6e39f2c
chore: adaptations for nightly-2025-01-27 (#21124)
kim-em Jan 27, 2025
f8c6034
Merge master into nightly-testing
Jan 27, 2025
1b8b599
Merge master into nightly-testing
Jan 27, 2025
9cc66e0
Merge master into nightly-testing
Jan 27, 2025
020fe7e
Merge master into nightly-testing
Jan 28, 2025
415ddea
Update lean-toolchain for testing https://github.com/leanprover/lean4…
Jan 28, 2025
ba8b10e
lake update for leanprover/lean4#6800
kim-em Jan 28, 2025
63413ad
Merge master into nightly-testing
Jan 28, 2025
24fc4ad
Trigger CI for https://github.com/leanprover/lean4/pull/6800
Jan 28, 2025
046bdd8
fixes for leanprover/lean4#6800
kim-em Jan 28, 2025
2734417
Merge branch 'lean-pr-testing-6800' of github.com:leanprover-communit…
kim-em Jan 28, 2025
f3a9252
Trigger CI for https://github.com/leanprover/lean4/pull/6800
Jan 28, 2025
fcb1788
fix
kim-em Jan 28, 2025
4f90964
Merge branch 'lean-pr-testing-6800' of github.com:leanprover-communit…
kim-em Jan 28, 2025
d44a2df
Merge master into nightly-testing
Jan 28, 2025
050c0e4
Update lean-toolchain for testing https://github.com/leanprover/lean4…
Jan 28, 2025
6dcd32e
chore: bump to nightly-2025-01-28
Jan 28, 2025
94b2ff5
Merge master into nightly-testing
Jan 28, 2025
cb21752
lake update for leanprover/lean4#6812
kim-em Jan 28, 2025
abc75c8
TrivSqZeroExt.snd_list_prod fix
pechersky Jan 28, 2025
ec8308c
Merge master into nightly-testing
Jan 28, 2025
67958e9
Merge branch 'master' into lean-pr-testing-6800
Ruben-VandeVelde Jan 28, 2025
8b782f4
Merge master into nightly-testing
Jan 28, 2025
809c29f
Update lean-toolchain for testing https://github.com/leanprover/lean4…
Jan 28, 2025
cbc2d02
Merge master into nightly-testing
Jan 28, 2025
8052854
Update lean-toolchain for testing https://github.com/leanprover/lean4…
Jan 28, 2025
c8247dd
Adaption
nomeata Jan 28, 2025
cb45038
Merge master into nightly-testing
Jan 28, 2025
872fd15
fix
Ruben-VandeVelde Jan 28, 2025
1fba5f2
fix
Ruben-VandeVelde Jan 28, 2025
40ec4b8
remove deprecation/alias
kim-em Jan 28, 2025
fd95c74
Merge branch 'nightly-testing' of github.com:leanprover-community/mat…
kim-em Jan 28, 2025
9bac19a
touch for CI for leanprover/lean4#6812
kim-em Jan 28, 2025
986dafc
fix for leanprover/lean4#6812
kim-em Jan 28, 2025
dae4ac3
Trigger CI for https://github.com/leanprover/lean4/pull/6826
Jan 28, 2025
daee6ef
Merge master into nightly-testing
Jan 29, 2025
165b76f
Merge master into nightly-testing
Jan 29, 2025
78ab0dd
Merge master into nightly-testing
Jan 29, 2025
bcd26e8
Trigger CI for https://github.com/leanprover/lean4/pull/6823
Jan 29, 2025
34e69e2
Merge master into nightly-testing
Jan 29, 2025
c385bcc
chore: bump to nightly-2025-01-29
Jan 29, 2025
8bf989e
.
kim-em Jan 29, 2025
ba68af5
merge lean-pr-testing-6800
kim-em Jan 29, 2025
cd4742b
merge lean-pr-testing-6812
kim-em Jan 29, 2025
6ebd8cf
merge lean-pr-testing-6812
kim-em Jan 29, 2025
edd578a
merge lean-pr-testing-6826
kim-em Jan 29, 2025
a25f640
.
kim-em Jan 29, 2025
976482b
lake update
kim-em Jan 29, 2025
22eebc4
lake update
kim-em Jan 29, 2025
4c8799e
fixes and deprecations
kim-em Jan 29, 2025
f4bc9bb
name clash
kim-em Jan 29, 2025
e62ffe0
fix
kim-em Jan 29, 2025
e21b79a
fix
kim-em Jan 29, 2025
acbf989
Merge master into nightly-testing
Jan 29, 2025
cb39454
Merge master into nightly-testing
Jan 29, 2025
7ee2682
Merge master into nightly-testing
Jan 29, 2025
c351c2b
Merge master into nightly-testing
Jan 29, 2025
23f3138
update
kim-em Jan 29, 2025
e4a4e86
lint
kim-em Jan 29, 2025
7b2d9ab
shake
kim-em Jan 29, 2025
b944b88
Merge master into nightly-testing
Jan 30, 2025
23c468c
merge master
kim-em Jan 30, 2025
a2e1ca9
chore: adaptations for nightly-2025-01-29
kim-em Jan 30, 2025
681a29f
Merge branch 'bump/nightly-2025-01-29' into nightly-testing
kim-em Jan 30, 2025
f8f1b98
Merge master into nightly-testing
Jan 30, 2025
c729276
chore: adaptations for nightly-2025-01-29 (#21245)
kim-em Jan 30, 2025
fe7b20a
Merge master into nightly-testing
Jan 30, 2025
d239a91
fix(#count_heartbeats): add `approximately` flag to stabilise tests
adomani Jan 30, 2025
312df69
chore: bump to nightly-2025-01-30
Jan 30, 2025
76b7e0c
add option also to the linter
adomani Jan 30, 2025
6dad4ea
use sleep_heartbeats in test
adomani Jan 30, 2025
342b705
fix (after lean4 bump): adapt expected message in CountHeartbeats
datokrat Jan 30, 2025
ceee039
Merge master into nightly-testing
Jan 30, 2025
d840d6a
update
kim-em Jan 30, 2025
d551aef
deprecation
kim-em Jan 30, 2025
38a5ec3
Trigger CI for https://github.com/leanprover/lean4/pull/6823
Jan 30, 2025
72d7633
deprecations
kim-em Jan 30, 2025
e36c2b8
don't count heartbeats
kim-em Jan 30, 2025
cf4d5cf
Merge master into nightly-testing
Jan 30, 2025
11d44a7
Merge master into nightly-testing
Jan 30, 2025
12d2f2b
Merge master into nightly-testing
Jan 30, 2025
dd3d30e
Update lean-toolchain for testing https://github.com/leanprover/lean4…
Jan 30, 2025
c9a5d8b
Merge master into nightly-testing
Jan 30, 2025
ffc3444
use 'x * y' as match pattern
jcommelin Jan 30, 2025
afe0cf3
Trigger CI for https://github.com/leanprover/lean4/pull/6863
Jan 30, 2025
b2325c3
Auto-resolved conflicts in lean-toolchain and lake-manifest.json
kim-em Jan 30, 2025
0687bc0
chore: adaptations for nightly-2025-01-30
kim-em Jan 30, 2025
e981fcc
Merge branch 'bump/nightly-2025-01-30' into nightly-testing
kim-em Jan 30, 2025
ab24578
Trigger CI for https://github.com/leanprover/lean4/pull/6863
Jan 30, 2025
89b44a5
merge #21251
kim-em Jan 30, 2025
44c2425
Merge remote-tracking branch 'origin/master' into bump/v4.17.0
kim-em Jan 30, 2025
deefecf
Merge master into nightly-testing
Jan 31, 2025
c68ddbe
Merge master into nightly-testing
Jan 31, 2025
6991588
Trigger CI for https://github.com/leanprover/lean4/pull/6863
Jan 31, 2025
67b947a
Merge remote-tracking branch 'origin/master' into bump/v4.17.0
jcommelin Jan 31, 2025
4eb2848
wip
jcommelin Jan 31, 2025
176f9ff
Trigger Build
jcommelin Jan 31, 2025
5954f45
Merge master into nightly-testing
Jan 31, 2025
ae3e3f5
Trigger CI for https://github.com/leanprover/lean4/pull/6823
Jan 31, 2025
51e9b97
chore: bump to nightly-2025-01-31
Jan 31, 2025
bf01ba3
Trigger CI for https://github.com/leanprover/lean4/pull/6823
Jan 31, 2025
e8aa461
Merge master into nightly-testing
Jan 31, 2025
795a794
merge lean-pr-testing-6863
kim-em Jan 31, 2025
5be4110
update
kim-em Jan 31, 2025
432e7f8
fix
kim-em Jan 31, 2025
23de16e
Merge master into nightly-testing
Jan 31, 2025
198d53b
Merge remote-tracking branch 'origin/master' into bump/v4.17.0
jcommelin Jan 31, 2025
ebf1821
chore: adaptations for nightly-2025-01-31
jcommelin Jan 31, 2025
0d90cea
Merge branch 'bump/nightly-2025-01-31' into nightly-testing
jcommelin Jan 31, 2025
9e7b33d
Merge master into nightly-testing
Jan 31, 2025
71f0ef4
Merge master into nightly-testing
Jan 31, 2025
8e67f27
Merge master into nightly-testing
Jan 31, 2025
e794357
chore: adaptations for nightly-2025-01-31 (#21294)
jcommelin Jan 31, 2025
f898665
Merge master into nightly-testing
Feb 1, 2025
780cea3
Merge master into nightly-testing
Feb 1, 2025
ee185c7
chore: bump to nightly-2025-02-01
Feb 1, 2025
03c219e
Merge master into nightly-testing
Feb 1, 2025
25febd9
Merge branch 'bump/v4.17.0' of github.com:leanprover-community/mathli…
kim-em Feb 1, 2025
74410db
merge master into bump/v4.17.0
kim-em Feb 1, 2025
9c3aaf8
chore: adaptations for nightly-2025-02-01
kim-em Feb 1, 2025
3b9967a
merge bump/nightly-2025-02-01 back into nightly-testing
kim-em Feb 1, 2025
d06ab26
chore: adaptations for nightly-2025-02-01 (#21319)
kim-em Feb 1, 2025
dcb92f8
Merge master into nightly-testing
Feb 1, 2025
8ddf3eb
Merge master into nightly-testing
Feb 1, 2025
6ac78e8
Merge master into nightly-testing
Feb 1, 2025
11c81ad
Merge master into nightly-testing
Feb 1, 2025
c295bee
Merge master into nightly-testing
Feb 2, 2025
5c8ad28
Merge master into nightly-testing
Feb 2, 2025
b932907
chore: bump to nightly-2025-02-02
Feb 2, 2025
cd7c786
Merge master into nightly-testing
Feb 2, 2025
861217d
Merge master into nightly-testing
Feb 2, 2025
d8cd3c5
Merge master into nightly-testing
Feb 2, 2025
3c76ad3
Merge master into nightly-testing
Feb 2, 2025
ba16dc4
Auto-resolved conflicts in lean-toolchain and lake-manifest.json
kim-em Feb 2, 2025
7781892
chore: adaptations for nightly-2025-02-02
kim-em Feb 2, 2025
1259abc
Merge branch 'bump/nightly-2025-02-02' into nightly-testing
kim-em Feb 2, 2025
e531578
chore: adaptations for nightly-2025-02-02 (#21355)
kim-em Feb 2, 2025
fbf9d04
Merge master into nightly-testing
Feb 3, 2025
5f0d581
Merge master into nightly-testing
Feb 3, 2025
0441968
chore: bump to nightly-2025-02-03
Feb 3, 2025
8afd901
lake update
kim-em Feb 3, 2025
998a3ad
fix
kim-em Feb 3, 2025
a94c6d1
Merge master into nightly-testing
Feb 3, 2025
dbc4024
Merge remote-tracking branch 'origin/master' into bump/v4.17.0
kim-em Feb 3, 2025
5529a57
chore: adaptations for nightly-2025-02-03
kim-em Feb 3, 2025
b3d6aae
Merge master into nightly-testing
Feb 3, 2025
9d5e544
Merge master into nightly-testing
Feb 3, 2025
5da85ce
Merge master into nightly-testing
Feb 3, 2025
cf8003e
Merge master into nightly-testing
Feb 3, 2025
fac345c
Merge master into nightly-testing
Feb 4, 2025
c7fdbe1
chore: bump to nightly-2025-02-04
Feb 4, 2025
54e6875
merge lean-pr-testing-6823
jcommelin Feb 4, 2025
cbd72db
Merge master into nightly-testing
Feb 4, 2025
d7f8af5
?
kim-em Feb 4, 2025
9bdd95b
Merge remote-tracking branch 'origin/master' into nightly-testing
kim-em Feb 4, 2025
9551df7
chore: adaptations for nightly-2025-02-04
kim-em Feb 4, 2025
8ce6b27
.
kim-em Feb 4, 2025
c43935b
.
kim-em Feb 4, 2025
17cd978
Merge master into nightly-testing
Feb 4, 2025
079c55e
Merge master into nightly-testing
Feb 4, 2025
d04a305
Merge master into nightly-testing
Feb 4, 2025
ce296ca
Merge master into nightly-testing
Feb 5, 2025
3c190f4
Merge master into nightly-testing
Feb 5, 2025
9d0ceab
Merge master into nightly-testing
Feb 5, 2025
d0e54bc
chore: bump to nightly-2025-02-05
Feb 5, 2025
30f4ebb
Merge master into nightly-testing
Feb 5, 2025
05f3d7f
Merge master into nightly-testing
Feb 5, 2025
5b56193
Merge master into nightly-testing
Feb 5, 2025
f3901a6
Merge master into nightly-testing
Feb 5, 2025
94a916b
Merge master into nightly-testing
Feb 5, 2025
69ef570
lake update
kim-em Feb 5, 2025
53234cb
fixes
kim-em Feb 5, 2025
e5e6dd9
fix namespace
kim-em Feb 6, 2025
044aa69
fix test
kim-em Feb 6, 2025
8a2d338
Merge master into nightly-testing
Feb 6, 2025
c7239aa
chore: adaptations for nightly-2025-02-05
kim-em Feb 6, 2025
da6518d
Merge master into nightly-testing
Feb 6, 2025
1ce9515
chore: bump to nightly-2025-02-06
Feb 6, 2025
fdd7597
Merge master into nightly-testing
Feb 6, 2025
b44b484
Merge master into nightly-testing
Feb 6, 2025
2bf6d56
Merge master into nightly-testing
Feb 6, 2025
52e88ee
Merge master into nightly-testing
Feb 6, 2025
619add7
Merge master into nightly-testing
Feb 6, 2025
a2bfc3e
Merge master into nightly-testing
Feb 7, 2025
5a81fa4
copy test from master
kim-em Feb 7, 2025
056e42f
chore: adaptations for nightly-2025-02-06
kim-em Feb 7, 2025
728d0e4
Auto-resolved conflicts in lean-toolchain and lake-manifest.json
kim-em Feb 7, 2025
0a44541
Merge master into nightly-testing
Feb 7, 2025
dab8636
Merge master into nightly-testing
Feb 7, 2025
907fbd8
chore: bump to nightly-2025-02-07
Feb 7, 2025
f0097fe
Merge master into nightly-testing
Feb 7, 2025
3db288f
Merge master into nightly-testing
Feb 7, 2025
3f3b2b6
Merge master into nightly-testing
Feb 7, 2025
d52db30
Merge master into nightly-testing
Feb 7, 2025
53389ba
Merge master into nightly-testing
Feb 7, 2025
14463b4
Merge master into nightly-testing
Feb 8, 2025
b2a482e
Merge master into nightly-testing
Feb 8, 2025
e634125
chore: bump to nightly-2025-02-08
Feb 8, 2025
1689862
Merge master into nightly-testing
Feb 8, 2025
3e953be
Merge master into nightly-testing
Feb 8, 2025
1bedc17
Merge master into nightly-testing
Feb 8, 2025
b500914
Merge master into nightly-testing
Feb 8, 2025
5c59e14
Merge master into nightly-testing
Feb 9, 2025
7edff82
update
kim-em Feb 9, 2025
43c3ae0
Merge master into nightly-testing
Feb 9, 2025
47888ee
chore: bump to nightly-2025-02-09
Feb 9, 2025
fb2055d
Merge master into nightly-testing
Feb 9, 2025
6163849
Merge master into nightly-testing
Feb 9, 2025
9ef367e
Merge master into nightly-testing
Feb 9, 2025
2707c39
Merge master into nightly-testing
Feb 9, 2025
a773b9a
Merge master into nightly-testing
Feb 9, 2025
bed1b63
didn't commit
kim-em Feb 9, 2025
1484a80
Merge branch 'nightly-testing' of github.com:leanprover-community/mat…
kim-em Feb 9, 2025
1c9eb36
Merge master into nightly-testing
Feb 10, 2025
53416dd
fix
kim-em Feb 10, 2025
906163b
Merge branch 'nightly-testing' of github.com:leanprover-community/mat…
kim-em Feb 10, 2025
370e197
fix test
kim-em Feb 10, 2025
1c4d82b
chore: adaptations for nightly-2025-02-09
kim-em Feb 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Archive/Imo/Imo2024Q3.lean
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ lemma N_lt_of_M_le_apply {a : ℕ → ℕ} {N i : ℕ} (h : M a N ≤ a i) : N <
exact Nat.not_succ_le_self _ (h.trans (Finset.le_sup (Finset.mem_range_succ_iff.2 hi)))

lemma ne_zero_of_M_le_apply {a : ℕ → ℕ} {N i : ℕ} (h : M a N ≤ a i) : i ≠ 0 :=
Nat.not_eq_zero_of_lt (N_lt_of_M_le_apply h)
Nat.ne_zero_of_lt (N_lt_of_M_le_apply h)

lemma apply_lt_of_M_le_apply {a : ℕ → ℕ} {N i j : ℕ} (hi : M a N ≤ a i) (hj : j ≤ N) :
a j < a i :=
Expand Down
2 changes: 1 addition & 1 deletion Mathlib/Algebra/Order/Kleene.lean
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ lemma natCast_eq_one {n : ℕ} (nezero : n ≠ 0) : (n : α) = 1 := by
| succ x _ hx => rw [Nat.cast_add, hx, Nat.cast_one, add_idem 1]

lemma ofNat_eq_one {n : ℕ} [n.AtLeastTwo] : (ofNat(n) : α) = 1 :=
natCast_eq_one <| Nat.not_eq_zero_of_lt Nat.AtLeastTwo.prop
natCast_eq_one <| Nat.ne_zero_of_lt Nat.AtLeastTwo.prop

theorem nsmul_eq_self : ∀ {n : ℕ} (_ : n ≠ 0) (a : α), n • a = a
| 0, h => (h rfl).elim
Expand Down
2 changes: 1 addition & 1 deletion Mathlib/Data/Nat/Choose/Central.lean
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ theorem four_pow_lt_mul_centralBinom (n : ℕ) (n_big : 4 ≤ n) : 4 ^ n < n * c
rcases lt_trichotomy n 4 with (hn | rfl | hn)
· clear IH; exact False.elim ((not_lt.2 n_big) hn)
· norm_num [centralBinom, choose]
obtain ⟨n, rfl⟩ : ∃ m, n = m + 1 := Nat.exists_eq_succ_of_ne_zero (Nat.not_eq_zero_of_lt hn)
obtain ⟨n, rfl⟩ : ∃ m, n = m + 1 := Nat.exists_eq_succ_of_ne_zero (Nat.ne_zero_of_lt hn)
calc
4 ^ (n + 1) < 4 * (n * centralBinom n) := lt_of_eq_of_lt pow_succ' <|
(mul_lt_mul_left <| zero_lt_four' ℕ).mpr (IH n n.lt_succ_self (Nat.le_of_lt_succ hn))
Expand Down
2 changes: 1 addition & 1 deletion Mathlib/Data/Nat/Digits.lean
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ theorem digits_base_pow_mul {b k m : ℕ} (hb : 1 < b) (hm : 0 < m) :
have hmb : 0 < m * b := lt_mul_of_lt_of_one_lt' hm hb
let h1 := digits_def' hb hmb
have h2 : m = m * b / b :=
Nat.eq_div_of_mul_eq_left (not_eq_zero_of_lt hb) rfl
Nat.eq_div_of_mul_eq_left (ne_zero_of_lt hb) rfl
simp only [mul_mod_left, ← h2] at h1
rw [List.replicate_succ', List.append_assoc, List.singleton_append, ← h1, ← ih hmb]
ring_nf
Expand Down
2 changes: 1 addition & 1 deletion Mathlib/Data/Nat/MaxPowDiv.lean
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ theorem le_of_dvd {p n pow : ℕ} (hp : 1 < p) (hn : 0 < n) (h : p ^ pow ∣ n)
apply Nat.pos_of_ne_zero
intro h'
rw [h',mul_zero] at hc
exact not_eq_zero_of_lt hn hc
omega
simp [hc, base_pow_mul hp this]

end maxPowDiv
Expand Down
2 changes: 1 addition & 1 deletion Mathlib/Data/Nat/Prime/Defs.lean
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ theorem prime_def {p : ℕ} : Prime p ↔ 2 ≤ p ∧ ∀ m, m ∣ p → m = 1
simp only [Nat.isUnit_iff]
apply Or.imp_right _ (h.2 a _)
· rintro rfl
rw [← mul_right_inj' (not_eq_zero_of_lt h1), ← hab, mul_one]
rw [← mul_right_inj' (Nat.ne_zero_of_lt h1), ← hab, mul_one]
· rw [hab]
exact dvd_mul_right _ _

Expand Down
4 changes: 2 additions & 2 deletions Mathlib/FieldTheory/Differential/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ noncomputable instance (p : F[X]) [Fact (Irreducible p)] [Fact p.Monic] :
· intro nh
simp [natDegree_eq_zero_of_derivative_eq_zero nh] at this
apply natDegree_derivative_lt
exact Nat.not_eq_zero_of_lt this)
exact Nat.ne_zero_of_lt this)

instance (p : F[X]) [Fact (Irreducible p)] [Fact p.Monic] :
DifferentialAlgebra F (AdjoinRoot p) where
Expand Down Expand Up @@ -175,7 +175,7 @@ noncomputable def uniqueDifferentialAlgebraFiniteDimensional [FiniteDimensional
· intro nh
simp [natDegree_eq_zero_of_derivative_eq_zero nh] at this
apply natDegree_derivative_lt
exact Nat.not_eq_zero_of_lt this
exact Nat.ne_zero_of_lt this

noncomputable instance (B : IntermediateField F K) [FiniteDimensional F B] : Differential B :=
differentialFiniteDimensional F B
Expand Down
2 changes: 1 addition & 1 deletion Mathlib/FieldTheory/KummerPolynomial.lean
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ lemma root_X_pow_sub_C_pow (n : ℕ) (a : K) :

lemma root_X_pow_sub_C_ne_zero {n : ℕ} (hn : 1 < n) (a : K) :
(AdjoinRoot.root (X ^ n - C a)) ≠ 0 :=
mk_ne_zero_of_natDegree_lt (monic_X_pow_sub_C _ (Nat.not_eq_zero_of_lt hn))
mk_ne_zero_of_natDegree_lt (monic_X_pow_sub_C _ (Nat.ne_zero_of_lt hn))
X_ne_zero <| by rwa [natDegree_X_pow_sub_C, natDegree_X]

lemma root_X_pow_sub_C_ne_zero' {n : ℕ} {a : K} (hn : 0 < n) (ha : a ≠ 0) :
Expand Down
2 changes: 1 addition & 1 deletion Mathlib/GroupTheory/SpecificGroups/Cyclic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ alias addOrderOf_generator_eq_natCard := addOrderOf_eq_card_of_forall_mem_zmulti
@[to_additive]
theorem exists_pow_ne_one_of_isCyclic [G_cyclic : IsCyclic G]
{k : ℕ} (k_pos : k ≠ 0) (k_lt_card_G : k < Nat.card G) : ∃ a : G, a ^ k ≠ 1 := by
have : Finite G := Nat.finite_of_card_ne_zero (Nat.not_eq_zero_of_lt k_lt_card_G)
have : Finite G := Nat.finite_of_card_ne_zero (Nat.ne_zero_of_lt k_lt_card_G)
rcases G_cyclic with ⟨a, ha⟩
use a
contrapose! k_lt_card_G
Expand Down
12 changes: 6 additions & 6 deletions Mathlib/NumberTheory/Ostrowski.lean
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ lemma one_lt_of_not_bounded (notbdd : ¬ ∀ n : ℕ, f n ≤ 1) {n₀ : ℕ} (h
_ = n₀ * (Nat.log n₀ m + 1) := by
rw [List.mapIdx_eq_zipIdx_map, List.eq_replicate_of_mem (a := (n₀ : ℝ)) (l := L.zipIdx.map _),
List.sum_replicate, List.length_map, List.length_zipIdx, nsmul_eq_mul, mul_comm,
Nat.digits_len n₀ m hn₀ (not_eq_zero_of_lt hm), Nat.cast_add_one]
Nat.digits_len n₀ m hn₀ (ne_zero_of_lt hm), Nat.cast_add_one]
simp +contextual
_ ≤ n₀ * (logb n₀ m + 1) := by gcongr; exact natLog_le_logb ..
-- For h_ineq2 we need to exclude the case n = 0.
Expand Down Expand Up @@ -376,7 +376,7 @@ private lemma param_upperbound {k : ℕ} (hk : k ≠ 0) :
_ = m * ((Nat.digits m n).mapIdx fun i _ ↦ f m ^ i).sum := list_mul_sum (m.digits n) (f m) m
_ = m * ((f m ^ (d + 1) - 1) / (f m - 1)) := by
rw [list_geom _ (ne_of_gt (one_lt_of_not_bounded notbdd hm)),
← Nat.digits_len m n hm (not_eq_zero_of_lt hn)]
← Nat.digits_len m n hm (ne_zero_of_lt hn)]
_ ≤ m * ((f m ^ (d + 1)) / (f m - 1)) := by
gcongr
· linarith only [one_lt_of_not_bounded notbdd hm]
Expand Down Expand Up @@ -406,7 +406,7 @@ lemma le_pow_log : f n ≤ f m ^ logb m n := by
nth_rw 2 [← one_mul (f ↑m ^ logb ↑m ↑n)]
exact (tendsto_const_rpow_inv (expr_pos hm notbdd)).mul_const _
exact le_of_tendsto_of_tendsto (tendsto_const_nhds (x:= f ↑n)) this <|
eventually_atTop.mpr ⟨2, fun b hb ↦ param_upperbound hm hn notbdd (not_eq_zero_of_lt hb)⟩
eventually_atTop.mpr ⟨2, fun b hb ↦ param_upperbound hm hn notbdd (ne_zero_of_lt hb)⟩

include hm hn notbdd in
/-- Given `m, n ≥ 2` and `f m = m ^ s`, `f n = n ^ t` for `s, t > 0`, we have `t ≤ s`. -/
Expand Down Expand Up @@ -440,8 +440,8 @@ theorem equiv_real_of_unbounded : f ≈ real := by
have : (logb (↑m) (f ↑m))⁻¹ ≠ 0 := by
simp only [ne_eq, inv_eq_zero, logb_eq_zero, Nat.cast_eq_zero, Nat.cast_eq_one, map_eq_zero,
not_or]
exact ⟨not_eq_zero_of_lt oneltm, oneltm.ne', by norm_cast,
not_eq_zero_of_lt oneltm, ne_of_not_le hm, by linarith only [apply_nonneg f ↑m]⟩
exact ⟨ne_zero_of_lt oneltm, oneltm.ne', by norm_cast,
ne_zero_of_lt oneltm, ne_of_not_le hm, by linarith only [apply_nonneg f ↑m]⟩
simp [hs, this]
· simp
· simp only [real_eq_abs, abs_cast, Rat.cast_natCast]
Expand All @@ -452,7 +452,7 @@ theorem equiv_real_of_unbounded : f ≈ real := by
rw [rpow_logb (mod_cast zero_lt_of_lt oneltm) (mod_cast oneltm.ne') (by linarith only [hm])]
have hfn : f n = n ^ logb n (f n) := by
rw [rpow_logb (mod_cast zero_lt_of_lt h) (mod_cast h.ne')
(by apply map_pos_of_ne_zero; exact_mod_cast not_eq_zero_of_lt h)]
(by apply map_pos_of_ne_zero; exact_mod_cast ne_zero_of_lt h)]
rwa [← hs, eq_of_eq_pow oneltm h notbdd hfm hfn]

end Archimedean
Expand Down
2 changes: 1 addition & 1 deletion Mathlib/NumberTheory/SmoothNumbers.lean
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ lemma smoothNumbers_succ {N : ℕ} (hN : ¬ N.Prime) : N.succ.smoothNumbers = N.

/-- All `m`, `0 < m < n` are `n`-smooth numbers -/
lemma mem_smoothNumbers_of_lt {m n : ℕ} (hm : 0 < m) (hmn : m < n) : m ∈ n.smoothNumbers :=
smoothNumbers_eq_factoredNumbers _ ▸ ⟨not_eq_zero_of_lt hm,
smoothNumbers_eq_factoredNumbers _ ▸ ⟨ne_zero_of_lt hm,
fun _ h => Finset.mem_range.mpr <| lt_of_le_of_lt (le_of_mem_primeFactorsList h) hmn⟩

/-- The non-zero non-`N`-smooth numbers are `≥ N`. -/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ lemma accumulate_invAccumulate {n m} (hmn : m ≤ n) {s : Fin m → ℕ} (hs : A
rw [accumulate_rec (him.trans_le hmn) hi, ih hi, invAccumulate, dif_pos him, dif_pos hi]
simp only
exact Nat.sub_add_cancel (hs i.le_succ)
· have := (Nat.sub_one_add_one <| Nat.not_eq_zero_of_lt hm).symm
· have := (Nat.sub_one_add_one <| Nat.ne_zero_of_lt hm).symm
rw [accumulate_last (hm.trans_le hmn) this, invAccumulate, dif_pos hm, dif_neg this.not_gt,
Nat.sub_zero]
intro j hj
Expand Down
2 changes: 1 addition & 1 deletion Mathlib/RingTheory/Polynomial/Cyclotomic/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ private theorem _root_.IsPrimitiveRoot.pow_sub_pow_eq_prod_sub_mul_field {K : Ty
[Field K] {ζ : K} (x y : K) (hpos : 0 < n) (h : IsPrimitiveRoot ζ n) :
x ^ n - y ^ n = ∏ ζ ∈ nthRootsFinset n K, (x - ζ * y) := by
by_cases hy : y = 0
· simp only [hy, zero_pow (Nat.not_eq_zero_of_lt hpos), sub_zero, mul_zero, prod_const]
· simp only [hy, zero_pow (Nat.ne_zero_of_lt hpos), sub_zero, mul_zero, prod_const]
congr
rw [h.card_nthRootsFinset]
convert congr_arg (eval (x/y) · * y ^ card (nthRootsFinset n K)) <| X_pow_sub_one_eq_prod hpos h
Expand Down
2 changes: 1 addition & 1 deletion MathlibTest/Multigoal.lean
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ example : True ∧ True := by
-- Exclude `fail_if_success` and `success_if_fail_with_msg` from linting.
example : True := by
fail_if_success done
success_if_fail_with_msg "internal exception #4" done
success_if_fail_with_msg "internal exception #5" done
exact .intro

/-!
Expand Down
2 changes: 1 addition & 1 deletion lake-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"type": "git",
"subDir": null,
"scope": "leanprover-community",
"rev": "40eaac3108ab30c91732fa2962d26d849ebc8242",
"rev": "fcc3faa429c1ab53c0504b076e03c852512a04e3",
"name": "batteries",
"manifestFile": "lake-manifest.json",
"inputRev": "nightly-testing",
Expand Down
2 changes: 1 addition & 1 deletion lean-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
leanprover/lean4:nightly-2025-02-06
leanprover/lean4:nightly-2025-02-09
Loading