Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
10000 commits
Select commit Hold shift + click to select a range
cbe003a
chore: bump to nightly-2025-10-24
leanprover-community-mathlib4-bot Oct 24, 2025
21bbf68
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 24, 2025
2dfc304
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 24, 2025
7db953b
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 25, 2025
64cd5c6
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 25, 2025
c32b32c
chore: bump to nightly-2025-10-25
leanprover-community-mathlib4-bot Oct 25, 2025
201b0f1
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 25, 2025
f46b9df
fix grind
Rob23oba Oct 25, 2025
f9f28b5
Add link to issue
TwoFX Oct 25, 2025
1ab508e
lake update
kim-em Oct 25, 2025
94c44aa
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 25, 2025
d0bc569
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 25, 2025
d76573a
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 25, 2025
b1e9ded
Temporarily don't run AesopTest
kim-em Oct 25, 2025
22ada26
Auto-resolved conflicts in lean-toolchain and lake-manifest.json
Oct 25, 2025
4312bc2
chore: adaptations for nightly-2025-10-25
Oct 25, 2025
602de30
chore: adaptations for nightly-2025-10-25 (#97)
leanprover-community-bot-assistant Oct 26, 2025
1833cca
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 26, 2025
0260e81
Merge remote-tracking branch 'upstream/master' into bump/v4.26.0
Oct 26, 2025
73aa055
Merge commit 'b1e9ded89f681a414f4fe43319a9a0372fe4e750' into bump/nig…
Oct 26, 2025
1387aa3
chore: adaptations for nightly-2025-10-25
Oct 26, 2025
036f813
Auto-resolved conflicts in lean-toolchain and lake-manifest.json
Oct 26, 2025
f01124a
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 26, 2025
025ed92
chore: bump to nightly-2025-10-26
leanprover-community-mathlib4-bot Oct 26, 2025
94930ab
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 26, 2025
8d21653
Update lean-toolchain for testing https://github.com/leanprover/lean4…
leanprover-community-mathlib4-bot Oct 26, 2025
7d2e53a
adaptation_note
kim-em Oct 26, 2025
8d49685
comment
kim-em Oct 26, 2025
7d6df59
Merge remote-tracking branch 'upstream/master' into bump/v4.26.0
Oct 26, 2025
52b25a9
Merge commit '7d2e53aea6e90d6ff50f8081615c53963d000623' into bump/nig…
Oct 26, 2025
afcbdfa
chore: adaptations for nightly-2025-10-26
Oct 26, 2025
b35168b
Merge branch 'bump/nightly-2025-10-26' into nightly-testing
Oct 26, 2025
bd75d29
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 26, 2025
8a6f62e
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 26, 2025
2d67983
chore: adaptations for nightly-2025-10-26 (#98)
leanprover-community-bot-assistant Oct 26, 2025
3095ade
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 26, 2025
1b69f8e
Merge remote-tracking branch 'upstream/master' into bump/v4.26.0
Oct 26, 2025
4fe60b1
Merge commit '7d2e53aea6e90d6ff50f8081615c53963d000623' into bump/nig…
Oct 26, 2025
b6e7115
chore: adaptations for nightly-2025-10-26
Oct 26, 2025
4969770
Merge branch 'bump/nightly-2025-10-26' into nightly-testing
Oct 26, 2025
7f385f7
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 26, 2025
a9c7734
update note
kim-em Oct 26, 2025
43c0396
Merge branch 'nightly-testing' of github.com:leanprover-community/mat…
kim-em Oct 26, 2025
836f923
Update lean-toolchain for testing https://github.com/leanprover/lean4…
leanprover-community-mathlib4-bot Oct 26, 2025
a2f6ce1
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 27, 2025
510cbb2
chore: add test for symbolFrequency
kim-em Oct 27, 2025
05d49d8
feat: preparations for LawfulOfScientific
kim-em Oct 27, 2025
4f3ca51
feat: LawfulOfScientific instances
kim-em Oct 27, 2025
5c8a818
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 27, 2025
0d3affb
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 27, 2025
717ea68
chore: bump to nightly-2025-10-27
leanprover-community-mathlib4-bot Oct 27, 2025
0c52b45
merge lean-pr-testing-10971
invalid-email-address Oct 27, 2025
260dcb3
deprecation
kim-em Oct 27, 2025
394f807
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 27, 2025
daa2157
fix test?
kim-em Oct 27, 2025
661e202
Auto-resolved conflicts in lean-toolchain and lake-manifest.json
Oct 27, 2025
3e28edf
chore: adaptations for nightly-2025-10-27
Oct 27, 2025
930b37a
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 27, 2025
e7ba0f1
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 27, 2025
5a9dc88
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 27, 2025
cff302c
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 28, 2025
bb09da0
Update lean-toolchain for https://github.com/leanprover/lean4/pull/10967
leanprover-community-mathlib4-bot Oct 28, 2025
a05c950
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 28, 2025
73e8abe
chore: replace deprecations via script
kim-em Oct 28, 2025
9d19be1
manual fixes
kim-em Oct 28, 2025
acebc7e
lake update batteries
kim-em Oct 28, 2025
61d2823
manual fixes
kim-em Oct 28, 2025
f64a76a
manual fix
kim-em Oct 28, 2025
0f2c429
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 28, 2025
3bc7c66
Update lean-toolchain for https://github.com/leanprover/lean4/pull/10967
leanprover-community-mathlib4-bot Oct 28, 2025
87710f2
manual fixes
kim-em Oct 28, 2025
b773adb
Merge branch 'lean-pr-testing-10967' of github.com:leanprover-communi…
kim-em Oct 28, 2025
ca8d3aa
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 28, 2025
3f26f31
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 28, 2025
768341a
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 28, 2025
3a06221
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 28, 2025
ae63f74
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 28, 2025
5f978ee
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 29, 2025
965e3c7
chore: bump to nightly-2025-10-28
leanprover-community-mathlib4-bot Oct 29, 2025
ba2341b
lake update
kim-em Oct 29, 2025
f512a44
horrific fixes for leanprover/lean4#10934
kim-em Oct 29, 2025
84c2cec
fix other failures using grind
kim-em Oct 29, 2025
3bf1040
Merge remote-tracking branch 'upstream/master' into bump/v4.26.0
Oct 29, 2025
6afc28b
Merge commit '84c2cec795e7d2aa67cbdccfe8178412d3aead85' into bump/nig…
Oct 29, 2025
2b745e6
chore: adaptations for nightly-2025-10-28
Oct 29, 2025
9b48b5b
more deprecations for leanprover/lean4#10967
kim-em Oct 29, 2025
3f1f10e
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 29, 2025
0af2205
Revert "fix other failures using grind"
Rob23oba Oct 29, 2025
921762b
Revert "horrific fixes for leanprover/lean4#10934"
Rob23oba Oct 29, 2025
fb967e6
temporary fix by adjusting synthInstance.maxSize
Rob23oba Oct 29, 2025
fa456bf
chore: bump to nightly-2025-10-29
leanprover-community-mathlib4-bot Oct 29, 2025
d0975b5
merge lean-pr-testing-10967
invalid-email-address Oct 29, 2025
62bbeed
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 29, 2025
e3d159a
lake update
kim-em Oct 29, 2025
3461838
Merge remote-tracking branch 'upstream/master' into bump/v4.26.0
Oct 29, 2025
2515ef7
Merge commit 'e3d159a14fe17c79b953b7d56f38ebdde8248062' into bump/nig…
Oct 29, 2025
e9365f3
chore: adaptations for nightly-2025-10-29
Oct 29, 2025
eedd474
Update lean-toolchain for testing https://github.com/leanprover/lean4…
leanprover-community-mathlib4-bot Oct 29, 2025
a1d74c9
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 29, 2025
942920f
Update lean-toolchain for https://github.com/leanprover/lean4/pull/10763
leanprover-community-mathlib4-bot Oct 29, 2025
836def6
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 29, 2025
1e3d8d4
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 29, 2025
b5209a3
Update lean-toolchain for https://github.com/leanprover/lean4/pull/10763
leanprover-community-mathlib4-bot Oct 29, 2025
a75fd12
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 29, 2025
285dee2
fix merge
kim-em Oct 29, 2025
35c65a5
lake update
kim-em Oct 29, 2025
0f53060
fix merge attempt 2
kim-em Oct 29, 2025
c0b9c41
chore: adaptations for nightly-2025-10-27 (#99)
leanprover-community-bot-assistant Oct 29, 2025
b3149ba
chore: adaptations for nightly-2025-10-28 (#100)
leanprover-community-bot-assistant Oct 29, 2025
a0cae37
Update lean-toolchain for https://github.com/leanprover/lean4/pull/11004
leanprover-community-mathlib4-bot Oct 29, 2025
96175da
Update lean-toolchain for testing https://github.com/leanprover/lean4…
leanprover-community-mathlib4-bot Oct 29, 2025
28c2075
fix error
kim-em Oct 30, 2025
35fa512
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 30, 2025
197a7f6
fix deprecations
kim-em Oct 30, 2025
5c71521
merge
kim-em Oct 30, 2025
ea5bbdd
fix test
kim-em Oct 30, 2025
eb32513
Update lean-toolchain for https://github.com/leanprover/lean4/pull/11004
leanprover-community-mathlib4-bot Oct 30, 2025
360792a
fixes for leanprover/lean4#11004
kim-em Oct 30, 2025
1189c52
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 30, 2025
651bac9
fixes
kim-em Oct 30, 2025
6e190ed
fix
kim-em Oct 30, 2025
f11d877
long line
kim-em Oct 30, 2025
7882a22
fix
kim-em Oct 30, 2025
2f8e431
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 30, 2025
c6f978d
chore: bump to nightly-2025-10-30
leanprover-community-mathlib4-bot Oct 30, 2025
c64b47e
merge lean-pr-testing-11004
invalid-email-address Oct 30, 2025
97af697
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 30, 2025
cb0e799
lake update
kim-em Oct 30, 2025
7e956ac
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 30, 2025
ee2618e
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 30, 2025
5856e86
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 30, 2025
985e8a8
Updating test (not sure if this is a bump-when-broken test)
nomeata Oct 30, 2025
988d6c5
Auto-resolved conflicts in lean-toolchain and lake-manifest.json
Oct 30, 2025
61d4314
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 30, 2025
9aae149
merge master
kim-em Oct 30, 2025
2aff091
fix merge
kim-em Oct 30, 2025
1549eab
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 31, 2025
8083d02
add test
kim-em Oct 31, 2025
16189f8
Merge branch 'bump/v4.26.0' into bump/nightly-2025-10-29
kim-em Oct 31, 2025
d3e70b9
set batteries to fixed commit
kim-em Oct 31, 2025
d86577f
Auto-resolved conflicts in lean-toolchain and lake-manifest.json
Oct 31, 2025
3b35112
deprecation
kim-em Oct 31, 2025
ad9612f
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 31, 2025
fa7bfd7
Merge remote-tracking branch 'upstream/master' into bump/v4.26.0
Oct 31, 2025
006681b
chore: bump to nightly-2025-10-31
leanprover-community-mathlib4-bot Oct 31, 2025
e565f44
merge lean-pr-testing-10763
invalid-email-address Oct 31, 2025
d11d7e5
merge lean-pr-testing-11002
invalid-email-address Oct 31, 2025
64aa783
Trigger CI
TwoFX Oct 31, 2025
2d48094
Fix
TwoFX Oct 31, 2025
b5286c4
Fix
TwoFX Oct 31, 2025
414613b
Grind
TwoFX Oct 31, 2025
1f43051
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 31, 2025
710a14e
Add link to issue
TwoFX Oct 31, 2025
63a6a33
Fix
TwoFX Oct 31, 2025
fbc7461
Comment out premise selection test
TwoFX Oct 31, 2025
fda263b
comment out more
kim-em Oct 31, 2025
5acb797
fixes
kim-em Oct 31, 2025
8d8057a
Merge remote-tracking branch 'upstream/master' into bump/v4.26.0
Oct 31, 2025
5c6c160
chore: merge master
fgdorais Oct 31, 2025
5ffe3ac
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 31, 2025
0841694
Update lean-toolchain for testing https://github.com/leanprover/lean4…
leanprover-community-mathlib4-bot Oct 31, 2025
6e3a496
Lake update
TwoFX Oct 31, 2025
881691f
Fix
TwoFX Oct 31, 2025
969881d
Fix
TwoFX Oct 31, 2025
a1517a7
Fix
TwoFX Oct 31, 2025
a5771e4
Merge remote-tracking branch 'upstream/master' into bump/v4.26.0
Oct 31, 2025
3f7e3f6
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 31, 2025
8c04eb9
Merge remote-tracking branch 'upstream/master' into bump/v4.26.0
Oct 31, 2025
311b7dc
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 31, 2025
93b8984
Merge remote-tracking branch 'upstream/master' into bump/v4.26.0
Oct 31, 2025
bfaadc4
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 31, 2025
7284601
Merge remote-tracking branch 'upstream/master' into bump/v4.26.0
Oct 31, 2025
11edabc
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 1, 2025
f31d01e
Merge remote-tracking branch 'upstream/master' into bump/v4.26.0
Nov 1, 2025
bcb82cd
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 1, 2025
c149cf6
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 1, 2025
f8fa8f7
Merge remote-tracking branch 'upstream/master' into bump/v4.26.0
Nov 1, 2025
1482b59
chore: bump to nightly-2025-11-01
leanprover-community-mathlib4-bot Nov 1, 2025
82b9dd5
merge lean-pr-testing-11017
invalid-email-address Nov 1, 2025
606d1ed
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 1, 2025
c4ff0c8
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 1, 2025
2357a55
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 1, 2025
3dc2d5a
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 1, 2025
318efa2
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 2, 2025
a7585e0
require canonical
kim-em Oct 27, 2025
345ef28
add test
kim-em Oct 27, 2025
a9d714d
bump canonical
kim-em Nov 2, 2025
f7b5c8b
chore: bump to nightly-2025-11-02
leanprover-community-mathlib4-bot Nov 2, 2025
0dc1362
Apply suggestion from @kbuzzard
kbuzzard Nov 2, 2025
accdc1e
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 2, 2025
07e675e
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 2, 2025
fc62d02
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 2, 2025
cac6234
lake update plausible
kim-em Nov 3, 2025
91dda31
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 3, 2025
768853f
fixes
kim-em Nov 3, 2025
00abe36
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 3, 2025
34e0391
commented out broken proof
kim-em Nov 3, 2025
a0c37e6
merge master
kim-em Nov 3, 2025
0ee377a
merge bump/v4.26.0
kim-em Nov 3, 2025
75370f3
deprecations
kim-em Nov 3, 2025
33840e3
Deprecation
kim-em Nov 3, 2025
bf60182
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 3, 2025
90942d7
Merge remote-tracking branch 'upstream/master' into bump/v4.26.0
Nov 3, 2025
c379dfd
fix broken proof in FiveWheelLike
jt496 Nov 3, 2025
72845e7
chore: bump to nightly-2025-11-03
leanprover-community-mathlib4-bot Nov 3, 2025
a3c3335
spacing
jt496 Nov 3, 2025
bca39ae
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 3, 2025
add50e2
Merge 'jt496/nightly-testing' into nightly-testing
Rob23oba Nov 3, 2025
34c91bb
simplify proofs due to lean4#11058
Rob23oba Nov 3, 2025
67457cd
Merge remote-tracking branch 'upstream/master' into bump/v4.26.0
kim-em Nov 3, 2025
7ef7897
suggestions from review
kim-em Nov 3, 2025
f17440d
Merge branch 'nightly-testing' of github.com:leanprover-community/mat…
kim-em Nov 3, 2025
8e3fb74
fix
kim-em Nov 3, 2025
99ac95a
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 3, 2025
63f8bda
chore: adaptations for nightly-2025-10-29 (#102)
leanprover-community-bot-assistant Nov 3, 2025
d9e1362
tryAtEachStepSimpAllSuggestions
kim-em Nov 3, 2025
4eb42bd
chore: adaptations for nightly-2025-11-02
kim-em Nov 3, 2025
a47fa22
Auto-resolved conflicts in lean-toolchain and lake-manifest.json
kim-em Nov 3, 2025
d2019b6
oops, toolchain
kim-em Nov 3, 2025
9e3df7a
Merge branch 'master' into bump/v4.26.0
kim-em Nov 3, 2025
6652a66
Merge branch 'bump/v4.26.0' into bump/nightly-2025-11-02
kim-em Nov 3, 2025
4537543
merge bump/nightly-2025-11-02
kim-em Nov 3, 2025
3f38c80
fix merge
kim-em Nov 3, 2025
9c8f1d3
rm lean4checker
kim-em Nov 3, 2025
8c67fbc
fix lakefile; lake update
kim-em Nov 3, 2025
6b51d12
Merge branch 'bump/nightly-2025-11-02' into nightly-testing
kim-em Nov 3, 2025
381b1e4
fix merge
kim-em Nov 3, 2025
a79e1d7
Merge branch 'bump/nightly-2025-11-02' into nightly-testing
kim-em Nov 3, 2025
5e92d21
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 3, 2025
835aa18
chore: merge master
fgdorais Nov 3, 2025
1f39c86
chore: update batteries
fgdorais Nov 3, 2025
38a22aa
chore: merge master
fgdorais Nov 3, 2025
9fb1c67
chore: update batteries
fgdorais Nov 3, 2025
7439e69
Merge branch 'leanprover-community:master' into batteries-pr-testing-…
fgdorais Nov 3, 2025
c3f4d18
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 3, 2025
5c9d53e
chore: update batteries
fgdorais Nov 3, 2025
6eaf742
chore: merge master
fgdorais Nov 3, 2025
0fe7aec
chore: update batteries
fgdorais Nov 3, 2025
acf34bc
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 3, 2025
f34c952
Merge commit '0fe7aec' into nightly-testing
kim-em Nov 3, 2025
e3239f0
fix?
kim-em Nov 3, 2025
d6788bb
adaptation note
kim-em Nov 3, 2025
2c371dd
experiment: run hammers on Mathlib
kim-em Oct 23, 2025
833636c
toolchain
kim-em Nov 4, 2025
d8904f8
Merge branch 'canonical' into hammer_measurements
kim-em Nov 4, 2025
d9daeab
comment out canonical for now
kim-em Nov 4, 2025
52a747b
analysis script
kim-em Nov 4, 2025
01df223
update canonical
kim-em Nov 4, 2025
4f6573b
customize which tactics are reported
kim-em Nov 4, 2025
e5950bb
turn off aesop until is handles suggestions
kim-em Nov 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 6 additions & 5 deletions .github/build.in.yml
Original file line number Diff line number Diff line change
Expand Up @@ -559,11 +559,12 @@ jobs:
run: |
lake build Batteries Qq Aesop ProofWidgets Plausible pole unused

- name: build AesopTest (nightly-testing only)
# Only run on the mathlib4-nightly-testing repository
if: github.repository == 'leanprover-community/mathlib4-nightly-testing'
run: |
lake build AesopTest
# temporarily comment out
# - name: build AesopTest (nightly-testing only)
# # Only run on the mathlib4-nightly-testing repository
# if: github.repository == 'leanprover-community/mathlib4-nightly-testing'
# run: |
# lake build AesopTest

# We no longer run `lean4checker` in regular CI, as it is quite expensive for little benefit.
# Instead we run it in a cron job on master: see `lean4checker.yml`.
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/bors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -569,11 +569,12 @@ jobs:
run: |
lake build Batteries Qq Aesop ProofWidgets Plausible pole unused

- name: build AesopTest (nightly-testing only)
# Only run on the mathlib4-nightly-testing repository
if: github.repository == 'leanprover-community/mathlib4-nightly-testing'
run: |
lake build AesopTest
# temporarily comment out
# - name: build AesopTest (nightly-testing only)
# # Only run on the mathlib4-nightly-testing repository
# if: github.repository == 'leanprover-community/mathlib4-nightly-testing'
# run: |
# lake build AesopTest

# We no longer run `lean4checker` in regular CI, as it is quite expensive for little benefit.
# Instead we run it in a cron job on master: see `lean4checker.yml`.
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -576,11 +576,12 @@ jobs:
run: |
lake build Batteries Qq Aesop ProofWidgets Plausible pole unused

- name: build AesopTest (nightly-testing only)
# Only run on the mathlib4-nightly-testing repository
if: github.repository == 'leanprover-community/mathlib4-nightly-testing'
run: |
lake build AesopTest
# temporarily comment out
# - name: build AesopTest (nightly-testing only)
# # Only run on the mathlib4-nightly-testing repository
# if: github.repository == 'leanprover-community/mathlib4-nightly-testing'
# run: |
# lake build AesopTest

# We no longer run `lean4checker` in regular CI, as it is quite expensive for little benefit.
# Instead we run it in a cron job on master: see `lean4checker.yml`.
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/build_fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -573,11 +573,12 @@ jobs:
run: |
lake build Batteries Qq Aesop ProofWidgets Plausible pole unused

- name: build AesopTest (nightly-testing only)
# Only run on the mathlib4-nightly-testing repository
if: github.repository == 'leanprover-community/mathlib4-nightly-testing'
run: |
lake build AesopTest
# temporarily comment out
# - name: build AesopTest (nightly-testing only)
# # Only run on the mathlib4-nightly-testing repository
# if: github.repository == 'leanprover-community/mathlib4-nightly-testing'
# run: |
# lake build AesopTest

# We no longer run `lean4checker` in regular CI, as it is quite expensive for little benefit.
# Instead we run it in a cron job on master: see `lean4checker.yml`.
Expand Down
4 changes: 2 additions & 2 deletions Archive/Imo/Imo1988Q6.lean
Original file line number Diff line number Diff line change
Expand Up @@ -233,14 +233,14 @@ theorem imo1988_q6 {a b : ℕ} (h : a * b + 1 ∣ a ^ 2 + b ^ 2) :
rw [← sub_eq_zero, ← h_root]
ring
rw [hzx] at hpos
replace hpos : z * x + 1 > 0 := pos_of_mul_pos_left hpos (Int.ofNat_zero_le k)
replace hpos : z * x + 1 > 0 := pos_of_mul_pos_left hpos (Int.natCast_nonneg k)
replace hpos : z * x ≥ 0 := Int.le_of_lt_add_one hpos
apply nonneg_of_mul_nonneg_left hpos (mod_cast hx)
· contrapose! hV₀ with x_lt_z
apply ne_of_gt
calc
z * y > x * x := by apply mul_lt_mul' <;> omega
_ ≥ x * x - k := sub_le_self _ (Int.ofNat_zero_le k)
_ ≥ x * x - k := sub_le_self _ (Int.natCast_nonneg k)
· -- There is no base case in this application of Vieta jumping.
simp

Expand Down
2 changes: 1 addition & 1 deletion Archive/Imo/Imo1997Q3.lean
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ lemma sign_eq_of_contra
rw [mem_compl, mem_insert, mem_singleton, not_or] at mj
exact swap_apply_of_ne_of_ne mj.1 mj.2
rw [cg, add_sub_add_right_eq_sub,
sum_pair (castSucc_lt_succ _).ne, sum_pair (castSucc_lt_succ _).ne,
sum_pair castSucc_lt_succ.ne, sum_pair castSucc_lt_succ.ne,
Perm.mul_apply, Perm.mul_apply, ← hi, swap_apply_left, swap_apply_right,
add_comm, add_sub_add_comm, ← sub_mul, ← sub_mul,
val_succ, coe_castSucc, Nat.cast_add, Nat.cast_one, add_sub_cancel_left, sub_add_cancel_left,
Expand Down
2 changes: 1 addition & 1 deletion Archive/Imo/Imo2024Q5.lean
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ lemma Path.findFstEq_fst_sub_one_mem (p : Path N) {r : Fin (N + 2)} (hr : r ≠
rw [← cells.takeWhile_append_dropWhile (p := fun c ↦ ! decide (r ≤ c.1)),
List.isChain_append] at valid_move_seq
have ha := valid_move_seq.2.2
simp only [List.head?_eq_head hd', List.getLast?_eq_getLast ht, Option.mem_def,
simp only [List.head?_eq_some_head hd', List.getLast?_eq_some_getLast ht, Option.mem_def,
Option.some.injEq, forall_eq'] at ha
nth_rw 1 [← cells.takeWhile_append_dropWhile (p := fun c ↦ ! decide (r ≤ c.1))]
refine List.mem_append_left _ ?_
Expand Down
2 changes: 1 addition & 1 deletion Archive/MiuLanguage/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def lcharToMiustr : List Char → Miustr
| _ => []

instance stringCoeMiustr : Coe String Miustr :=
⟨fun st => lcharToMiustr st.data
⟨fun st => lcharToMiustr st.toList

/-!
### Derivability
Expand Down
14 changes: 8 additions & 6 deletions Archive/Wiedijk100Theorems/BallotProblem.lean
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,17 @@ theorem counted_succ_succ (p q : ℕ) :
obtain ⟨hl₀, hl₁, hl₂⟩ := hl
obtain hlast | hlast := hl₂ (l.head hlnil) (List.head_mem hlnil)
· refine Or.inl ⟨l.tail, ⟨?_, ?_, ?_⟩, ?_⟩
· rw [List.count_tail, hl₀, List.head?_eq_head hlnil, hlast, beq_self_eq_true, if_pos rfl,
Nat.add_sub_cancel]
· rw [List.count_tail, hl₁, List.head?_eq_head hlnil, hlast, if_neg (by decide), Nat.sub_zero]
· rw [List.count_tail, hl₀, List.head?_eq_some_head hlnil, hlast, beq_self_eq_true,
if_pos rfl, Nat.add_sub_cancel]
· rw [List.count_tail, hl₁, List.head?_eq_some_head hlnil, hlast, if_neg (by decide),
Nat.sub_zero]
· exact fun x hx => hl₂ x (List.mem_of_mem_tail hx)
· rw [← hlast, List.cons_head_tail]
· refine Or.inr ⟨l.tail, ⟨?_, ?_, ?_⟩, ?_⟩
· rw [List.count_tail, hl₀, List.head?_eq_head hlnil, hlast, if_neg (by decide), Nat.sub_zero]
· rw [List.count_tail, hl₁, List.head?_eq_head hlnil, hlast, beq_self_eq_true, if_pos rfl,
Nat.add_sub_cancel]
· rw [List.count_tail, hl₀, List.head?_eq_some_head hlnil, hlast, if_neg (by decide),
Nat.sub_zero]
· rw [List.count_tail, hl₁, List.head?_eq_some_head hlnil, hlast, beq_self_eq_true,
if_pos rfl, Nat.add_sub_cancel]
· exact fun x hx => hl₂ x (List.mem_of_mem_tail hx)
· rw [← hlast, List.cons_head_tail]
· rintro (⟨t, ⟨ht₀, ht₁, ht₂⟩, rfl⟩ | ⟨t, ⟨ht₀, ht₁, ht₂⟩, rfl⟩)
Expand Down
2 changes: 1 addition & 1 deletion Cache/Requests.lean
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def extractRepoFromUrl (url : String) : Option String := do
let url := url.stripSuffix ".git"
let pos ← url.revFind (· == '/')
let pos ← url.revFindAux (fun c => c == '/' || c == ':') pos
return (String.Pos.Raw.extract url) (String.Pos.Raw.next url pos) url.endPos
return (String.Pos.Raw.extract url) (String.Pos.Raw.next url pos) url.rawEndPos

/-- Spot check if a URL is valid for a git remote -/
def isRemoteURL (url : String) : Bool :=
Expand Down
5 changes: 4 additions & 1 deletion Counterexamples/PolynomialIsDomain.lean
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ instance : AddCommSemigroup NatMaxAdd where

instance : AddZeroClass NatMaxAdd where
zero := mk 0
zero_add _ := mk.symm.injective (bot_sup_eq _)
zero_add _ :=
#adaptation_note
/-- Prior to nightly-2025-11-03, `mk.symm _` in the next line was just `_`. -/
mk.symm.injective (bot_sup_eq (mk.symm _))
add_zero _ := mk.symm.injective (sup_bot_eq _)

instance : CommMonoidWithZero NatMaxAdd := mk.symm.commMonoidWithZero
Expand Down
1 change: 1 addition & 0 deletions Mathlib.lean
Original file line number Diff line number Diff line change
Expand Up @@ -3677,6 +3677,7 @@ import Mathlib.Data.Rat.Cardinal
import Mathlib.Data.Rat.Cast.CharZero
import Mathlib.Data.Rat.Cast.Defs
import Mathlib.Data.Rat.Cast.Lemmas
import Mathlib.Data.Rat.Cast.OfScientific
import Mathlib.Data.Rat.Cast.Order
import Mathlib.Data.Rat.Defs
import Mathlib.Data.Rat.Denumerable
Expand Down
2 changes: 1 addition & 1 deletion Mathlib/Algebra/Algebra/NonUnitalSubalgebra.lean
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ theorem coe_codRestrict (f : F) (S : NonUnitalSubalgebra R B) (hf : ∀ x, f x

theorem injective_codRestrict (f : F) (S : NonUnitalSubalgebra R B) (hf : ∀ x : A, f x ∈ S) :
Function.Injective (NonUnitalAlgHom.codRestrict f S hf) ↔ Function.Injective f :=
⟨fun H _x _y hxy => H <| Subtype.eq hxy, fun H _x _y hxy => H (congr_arg Subtype.val hxy :)⟩
⟨fun H _x _y hxy => H <| Subtype.ext hxy, fun H _x _y hxy => H (congr_arg Subtype.val hxy :)⟩

/-- Restrict the codomain of an `NonUnitalAlgHom` `f` to `f.range`.

Expand Down
8 changes: 4 additions & 4 deletions Mathlib/Algebra/Algebra/Subalgebra/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,8 @@ instance (priority := 500) algebra' [CommSemiring R'] [SMul R' R] [Algebra R' A]
rw [Algebra.algebraMap_eq_smul_one, ← smul_one_smul R x (1 : A), ←
Algebra.algebraMap_eq_smul_one]
exact algebraMap_mem S _
commutes' := fun _ _ => Subtype.eq <| Algebra.commutes _ _
smul_def' := fun _ _ => Subtype.eq <| Algebra.smul_def _ _
commutes' := fun _ _ => Subtype.ext <| Algebra.commutes _ _
smul_def' := fun _ _ => Subtype.ext <| Algebra.smul_def _ _

instance algebra : Algebra R S := S.algebra'

Expand Down Expand Up @@ -543,7 +543,7 @@ theorem range_comp_le_range (f : A →ₐ[R] B) (g : B →ₐ[R] C) : (g.comp f)

/-- Restrict the codomain of an algebra homomorphism. -/
def codRestrict (f : A →ₐ[R] B) (S : Subalgebra R B) (hf : ∀ x, f x ∈ S) : A →ₐ[R] S :=
{ RingHom.codRestrict (f : A →+* B) S hf with commutes' := fun r => Subtype.eq <| f.commutes r }
{ RingHom.codRestrict (f : A →+* B) S hf with commutes' := fun r => Subtype.ext <| f.commutes r }

@[simp]
theorem val_comp_codRestrict (f : A →ₐ[R] B) (S : Subalgebra R B) (hf : ∀ x, f x ∈ S) :
Expand All @@ -557,7 +557,7 @@ theorem coe_codRestrict (f : A →ₐ[R] B) (S : Subalgebra R B) (hf : ∀ x, f

theorem injective_codRestrict (f : A →ₐ[R] B) (S : Subalgebra R B) (hf : ∀ x, f x ∈ S) :
Function.Injective (f.codRestrict S hf) ↔ Function.Injective f :=
⟨fun H _x _y hxy => H <| Subtype.eq hxy, fun H _x _y hxy => H (congr_arg Subtype.val hxy :)⟩
⟨fun H _x _y hxy => H <| Subtype.ext hxy, fun H _x _y hxy => H (congr_arg Subtype.val hxy :)⟩

/-- Restrict the codomain of an `AlgHom` `f` to `f.range`.

Expand Down
2 changes: 1 addition & 1 deletion Mathlib/Algebra/Algebra/Subalgebra/Lattice.lean
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ noncomputable def botEquivOfInjective (h : Function.Injective (algebraMap R A))
(⊥ : Subalgebra R A) ≃ₐ[R] R :=
AlgEquiv.symm <|
AlgEquiv.ofBijective (Algebra.ofId R _)
⟨fun _x _y hxy => h (congr_arg Subtype.val hxy :), fun ⟨_y, x, hx⟩ => ⟨x, Subtype.eq hx⟩⟩
⟨fun _x _y hxy => h (congr_arg Subtype.val hxy :), fun ⟨_y, x, hx⟩ => ⟨x, Subtype.ext hx⟩⟩

/-- The bottom subalgebra is isomorphic to the field. -/
@[simps! symm_apply]
Expand Down
10 changes: 5 additions & 5 deletions Mathlib/Algebra/BigOperators/Fin.lean
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ theorem partialProd_zero (f : Fin n → M) : partialProd f 0 = 1 := by simp [par
@[to_additive]
theorem partialProd_succ (f : Fin n → M) (j : Fin n) :
partialProd f j.succ = partialProd f (Fin.castSucc j) * f j := by
simp [partialProd, List.take_succ]
simp [partialProd, List.take_add_one]

@[to_additive]
theorem partialProd_succ' (f : Fin (n + 1) → M) (j : Fin (n + 1)) :
Expand Down Expand Up @@ -505,11 +505,11 @@ lemma partialProd_contractNth {G : Type*} [Monoid G] {n : ℕ}
simp only [lt_def, coe_castSucc, val_succ] <;>
omega
· rw [succAbove_of_castSucc_lt, contractNth_apply_of_eq _ _ _ _ h,
succAbove_of_le_castSucc, castSucc_fin_succ, partialProd_succ, mul_assoc] <;>
succAbove_of_le_castSucc, castSucc_succ, partialProd_succ, mul_assoc] <;>
simp only [castSucc_lt_succ_iff, le_def, coe_castSucc] <;>
omega
· rw [succAbove_of_le_castSucc, succAbove_of_le_castSucc, contractNth_apply_of_gt _ _ _ _ h,
castSucc_fin_succ] <;>
castSucc_succ] <;>
simp only [le_def, val_succ, coe_castSucc] <;>
omega

Expand All @@ -535,13 +535,13 @@ theorem inv_partialProd_mul_eq_contractNth {G : Type*} [Group G] (g : Fin (n + 1
· rw [castSucc_lt_iff_succ_le, succ_le_succ_iff, le_iff_val_le_val]
exact le_of_lt h
· rwa [succAbove_of_castSucc_lt, succAbove_of_le_castSucc, partialProd_succ,
castSucc_fin_succ, ← mul_assoc,
castSucc_succ, ← mul_assoc,
partialProd_right_inv, contractNth_apply_of_eq]
· simp [le_iff_val_le_val, ← h]
· rw [castSucc_lt_iff_succ_le, succ_le_succ_iff, le_iff_val_le_val]
exact le_of_eq h
· rwa [succAbove_of_le_castSucc, succAbove_of_le_castSucc, partialProd_succ, partialProd_succ,
castSucc_fin_succ, partialProd_succ, inv_mul_cancel_left, contractNth_apply_of_gt]
castSucc_succ, partialProd_succ, inv_mul_cancel_left, contractNth_apply_of_gt]
· exact le_iff_val_le_val.2 (le_of_lt h)
· rw [le_iff_val_le_val, val_succ]
exact Nat.succ_le_of_lt h
Expand Down
2 changes: 1 addition & 1 deletion Mathlib/Algebra/BigOperators/Ring/Finset.lean
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ lemma prod_sum {κ : ι → Type*} (s : Finset ι) (t : ∀ i, Finset (κ i)) (f
congr with ⟨v, hv⟩
congr
exact (Pi.cons_ne (by rintro rfl; exact ha hv)).symm
· exact fun _ _ _ _ => Subtype.eq ∘ Subtype.mk.inj
· exact fun _ _ _ _ => Subtype.ext ∘ Subtype.mk.inj
· simpa only [mem_image, mem_attach, Subtype.mk.injEq, true_and,
Subtype.exists, exists_prop, exists_eq_right] using ha

Expand Down
2 changes: 1 addition & 1 deletion Mathlib/Algebra/Category/Ring/Constructions.lean
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ instance : IsLocalHom (equalizerFork f g).ι.hom := by
conv_rhs => rw [h₁]
rw [← f.hom.map_mul, ← g.hom.map_mul, h₄, f.hom.map_one, g.hom.map_one]
rw [isUnit_iff_exists_inv]
exact ⟨⟨y, this⟩, Subtype.eq h₃⟩
exact ⟨⟨y, this⟩, Subtype.ext h₃⟩

@[instance]
theorem equalizer_ι_isLocalHom (F : WalkingParallelPair ⥤ CommRingCat.{u}) :
Expand Down
4 changes: 2 additions & 2 deletions Mathlib/Algebra/CharP/Subring.lean
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ instance subsemiring (R : Type u) [Semiring R] (p : ℕ) [CharP R p] (S : Subsem
⟨fun x =>
Iff.symm <|
(CharP.cast_eq_zero_iff R p x).symm.trans
⟨fun h => Subtype.eq <| show S.subtype x = 0 by rw [map_natCast, h], fun h =>
⟨fun h => Subtype.ext <| show S.subtype x = 0 by rw [map_natCast, h], fun h =>
map_natCast S.subtype x ▸ by rw [h, RingHom.map_zero]⟩⟩

instance subring (R : Type u) [Ring R] (p : ℕ) [CharP R p] (S : Subring R) : CharP S p :=
⟨fun x =>
Iff.symm <|
(CharP.cast_eq_zero_iff R p x).symm.trans
⟨fun h => Subtype.eq <| show S.subtype x = 0 by rw [map_natCast, h], fun h =>
⟨fun h => Subtype.ext <| show S.subtype x = 0 by rw [map_natCast, h], fun h =>
map_natCast S.subtype x ▸ by rw [h, RingHom.map_zero]⟩⟩

instance subring' (R : Type u) [CommRing R] (p : ℕ) [CharP R p] (S : Subring R) : CharP S p :=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ theorem fib_le_of_contsAux_b :
mt (terminated_stable (n - 1).pred_le) not_terminatedAt_pred_n
-- use the IH to get the inequalities for `pconts` and `ppconts`
have ppred_nth_fib_le_ppconts_B : (fib n : K) ≤ ppconts.b :=
IH n (lt_trans (Nat.lt.base n) <| Nat.lt.base <| n + 1) (Or.inr not_terminatedAt_ppred_n)
IH n (lt_trans (Nat.lt_add_one n) <| Nat.lt_add_one <| n + 1)
(Or.inr not_terminatedAt_ppred_n)
suffices (fib (n + 1) : K) ≤ gp.b * pconts.b by gcongr
-- finally use the fact that `1 ≤ gp.b` to solve the goal
suffices 1 * (fib (n + 1) : K) ≤ gp.b * pconts.b by rwa [one_mul] at this
Expand Down
8 changes: 4 additions & 4 deletions Mathlib/Algebra/ContinuedFractions/ConvergentsEquiv.lean
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ theorem convs_eq_convs' [Field K] [LinearOrder K] [IsStrictOrderedRing K]
· have g'_eq_g : g' = g := squashGCF_eq_self_of_terminated terminatedAt_n
rw [convs_stable_of_terminated n.le_succ terminatedAt_n, g'_eq_g, IH _]
intro _ _ m_lt_n s_mth_eq
exact s_pos (Nat.lt.step m_lt_n) s_mth_eq
exact s_pos (Nat.lt_succ_of_lt m_lt_n) s_mth_eq
· suffices g.convs (n + 1) = g'.convs n by
-- invoke the IH for the squashed gcf
rwa [← IH]
Expand All @@ -349,12 +349,12 @@ theorem convs_eq_convs' [Field K] [LinearOrder K] [IsStrictOrderedRing K]
squashSeq_nth_of_not_terminated mth_s_eq s_succ_mth_eq
grind
have m_lt_n : m < m.succ := Nat.lt_succ_self m
refine ⟨(s_pos (Nat.lt.step m_lt_n) mth_s_eq).left, ?_⟩
refine add_pos (s_pos (Nat.lt.step m_lt_n) mth_s_eq).right ?_
refine ⟨(s_pos (Nat.lt_succ_of_lt m_lt_n) mth_s_eq).left, ?_⟩
refine add_pos (s_pos (Nat.lt_succ_of_lt m_lt_n) mth_s_eq).right ?_
have : 0 < gp_succ_m.a ∧ 0 < gp_succ_m.b := s_pos (lt_add_one <| m + 1) s_succ_mth_eq
exact div_pos this.left this.right
· -- the easy case: before the squashed position, nothing changes
refine s_pos (Nat.lt.step <| Nat.lt.step succ_m_lt_n) ?_
refine s_pos (Nat.lt_succ_of_lt <| Nat.lt_succ_of_lt succ_m_lt_n) ?_
exact Eq.trans (squashGCF_nth_of_lt succ_m_lt_n).symm s_mth_eq'
-- now the result follows from the fact that the convergents coincide at the squashed position
-- as established in `succ_nth_conv_eq_squashGCF_nth_conv`.
Expand Down
2 changes: 1 addition & 1 deletion Mathlib/Algebra/DirectSum/Internal.lean
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ theorem SetLike.natCast_mem_graded [Zero ι] [AddMonoidWithOne R] [SetLike σ R]
theorem SetLike.intCast_mem_graded [Zero ι] [AddGroupWithOne R] [SetLike σ R]
[AddSubgroupClass σ R] (A : ι → σ) [SetLike.GradedOne A] (z : ℤ) : (z : R) ∈ A 0 := by
cases z
· rw [Int.ofNat_eq_coe, Int.cast_natCast]
· rw [Int.ofNat_eq_natCast, Int.cast_natCast]
exact SetLike.natCast_mem_graded _ _
· rw [Int.cast_negSucc]
exact neg_mem (SetLike.natCast_mem_graded _ _)
Expand Down
4 changes: 2 additions & 2 deletions Mathlib/Algebra/Group/Fin/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ lemma lt_sub_iff {n : ℕ} {a b : Fin n} : a < a - b ↔ a < b := by
Nat.mod_eq_of_lt, Nat.sub_add_cancel b.is_lt.le] using
(le_trans (mod_le _ _) (le_add_left _ _))
· intro h
rw [lt_iff_val_lt_val, sub_def]
rw [lt_def, sub_def]
simp only
obtain ⟨k, hk⟩ := Nat.exists_eq_add_of_lt b.is_lt
have : n + 1 - b = k + 1 := by
Expand All @@ -133,7 +133,7 @@ lemma sub_le_iff {n : ℕ} {a b : Fin n} : a - b ≤ a ↔ b ≤ a := by

@[simp]
lemma lt_one_iff {n : ℕ} (x : Fin (n + 2)) : x < 1 ↔ x = 0 := by
simp [lt_iff_val_lt_val]
simp [lt_def]

lemma lt_sub_one_iff {k : Fin (n + 2)} : k < k - 1 ↔ k = 0 := by
simp
Expand Down
2 changes: 1 addition & 1 deletion Mathlib/Algebra/Group/Int/Even.lean
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ theorem isSquare_sign_iff {z : ℤ} : IsSquare z.sign ↔ 0 ≤ z := by
| pred =>
rw [sign_eq_neg_one_of_neg (by cutsat), ← neg_add', Int.neg_nonneg]
norm_cast
simp only [reduceNeg, le_zero_eq, Nat.add_eq_zero, succ_ne_self, and_false, iff_false]
simp only [reduceNeg, le_zero_eq, Nat.add_eq_zero_iff, succ_ne_self, and_false, iff_false]
rintro ⟨a | a, ⟨⟩⟩

end Int
2 changes: 1 addition & 1 deletion Mathlib/Algebra/Group/Submonoid/Membership.lean
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ open Fintype
@[to_additive]
theorem card_bot {_ : Fintype (⊥ : Submonoid M)} : card (⊥ : Submonoid M) = 1 :=
card_eq_one_iff.2
⟨⟨(1 : M), Set.mem_singleton 1⟩, fun ⟨_y, hy⟩ => Subtype.eq <| mem_bot.1 hy⟩
⟨⟨(1 : M), Set.mem_singleton 1⟩, fun ⟨_y, hy⟩ => Subtype.ext <| mem_bot.1 hy⟩

@[to_additive]
theorem eq_bot_of_card_le (h : card S ≤ 1) : S = ⊥ :=
Expand Down
Loading