Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: adapt to new simp default (decide := false) #7834

Merged
merged 891 commits into from
Nov 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
891 commits
Select commit Hold shift + click to select a range
76bde15
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 23, 2023
a0a30b7
merge
semorrison Oct 23, 2023
33f3f7f
merge
semorrison Oct 23, 2023
a902f3b
fixes
semorrison Oct 23, 2023
b544156
bump toolchain to release
semorrison Oct 23, 2023
ce8bc54
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 23, 2023
5722407
bump
semorrison Oct 23, 2023
89ce729
Fix topology file
PatrickMassot Oct 23, 2023
62554cb
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 23, 2023
808e1b2
Trigger CI for https://github.com/leanprover/lean4/pull/2734
leanprover-community-mathlib4-bot Oct 23, 2023
a2890a5
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 23, 2023
e7b3d95
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 23, 2023
7de022f
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 23, 2023
1c9be72
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 23, 2023
5e01c5a
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 23, 2023
4672136
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 23, 2023
28ad420
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 23, 2023
e2e481b
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 24, 2023
03dfe3a
rm simpNF lemma
semorrison Oct 24, 2023
c17573c
chore: bump std dependency
semorrison Oct 24, 2023
efe86d8
bump proofwidgets
semorrison Oct 24, 2023
7bb49c2
chore: bump Std ('Try these:' widget)
semorrison Oct 24, 2023
9a3bd02
merge
semorrison Oct 24, 2023
5f38d44
fixes
semorrison Oct 24, 2023
8a52a64
fix Functor/Flat
semorrison Oct 24, 2023
799a60a
Trigger CI for https://github.com/leanprover/lean4/pull/2734
leanprover-community-mathlib4-bot Oct 24, 2023
d584334
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 24, 2023
73d1b22
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 24, 2023
8d1bc87
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 24, 2023
aec000d
Merge branch 'master' into bump_std8
Komyyy Oct 24, 2023
e231a72
bump std
semorrison Oct 24, 2023
320fb6d
merge
semorrison Oct 24, 2023
b10b6d3
merge 7881
semorrison Oct 24, 2023
f46451a
merge master
semorrison Oct 24, 2023
6ecc5d3
.
semorrison Oct 24, 2023
c558697
?
semorrison Oct 24, 2023
6b3c5f0
?
semorrison Oct 24, 2023
82a33fb
bump
semorrison Oct 24, 2023
085dc52
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 24, 2023
4a8bbf5
?
semorrison Oct 24, 2023
d8afd95
merge
semorrison Oct 24, 2023
e018f04
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 24, 2023
c06838b
yay
semorrison Oct 24, 2023
04b4983
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 24, 2023
9fa0beb
turning on zeta in norm_cast seems to help
semorrison Oct 24, 2023
4ef3971
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 24, 2023
d3d2c38
beta too
semorrison Oct 24, 2023
7005176
hmm
semorrison Oct 24, 2023
bbed0a3
Update Mathlib/CategoryTheory/Yoneda.lean
semorrison Oct 24, 2023
fe18fe0
hmmm.
semorrison Oct 24, 2023
69bbf79
Fix QuadraticForm.Complex
Vierkantor Oct 24, 2023
47d7a3d
fixes
semorrison Oct 24, 2023
b48d7eb
Merge branch 'lean-pr-testing-2734' of github.com:leanprover-communit…
semorrison Oct 24, 2023
3ba1a64
fixes
semorrison Oct 24, 2023
c49a71b
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 24, 2023
e58df0b
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 24, 2023
5fa3685
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 24, 2023
3a80ec8
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 24, 2023
79cfe05
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 24, 2023
3b37028
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 24, 2023
d31680b
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 25, 2023
368be6c
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 25, 2023
3a963b6
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 25, 2023
488a692
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 25, 2023
b1c532d
bump std
semorrison Oct 25, 2023
93fc878
merge #7812
semorrison Oct 25, 2023
f5aba84
merge #7853
semorrison Oct 25, 2023
3352427
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 25, 2023
126b1f8
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 25, 2023
b6f08b3
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 25, 2023
0f98546
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 25, 2023
4fdcc59
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 25, 2023
45896e3
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 25, 2023
16bd827
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 25, 2023
b668f77
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 25, 2023
131fcf4
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 25, 2023
c6d865d
fix
semorrison Oct 26, 2023
777f4b2
Merge branch 'lean-pr-testing-2724' into nightly-testing
semorrison Oct 26, 2023
748f9bd
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 26, 2023
fcb270e
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 26, 2023
39aed26
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 26, 2023
fcdbd35
chore: bump to nightly-2023-10-26
leanprover-community-mathlib4-bot Oct 26, 2023
b8a193d
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 26, 2023
64b7602
bump std
semorrison Oct 26, 2023
0c08300
merge #7847
semorrison Oct 26, 2023
44d80d0
bump
semorrison Oct 26, 2023
446b9f6
bump aesop
semorrison Oct 26, 2023
c6b143b
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 26, 2023
edae74e
chore: allow more heartbeats in Algebra/Jordan/Basic
semorrison Oct 26, 2023
aa742be
Merge branch 'jordan_heartbeat' into nightly-testing
semorrison Oct 26, 2023
451521c
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 26, 2023
58229e0
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 26, 2023
38a7b07
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 26, 2023
2409a88
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 26, 2023
bcb0752
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 26, 2023
5e2ab18
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 26, 2023
2b1e4ec
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 26, 2023
6bab9e3
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 26, 2023
2fd1acb
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 26, 2023
46e4f07
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 26, 2023
5aa19e1
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 26, 2023
fbba2c0
bump dependencies
semorrison Oct 26, 2023
a12fe6b
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 27, 2023
d1ee1f1
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 27, 2023
bb0f486
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 27, 2023
c4ce262
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 27, 2023
383ffa8
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 27, 2023
086a74c
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 27, 2023
bf4244c
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 27, 2023
55a7b0e
chore: bump to nightly-2023-10-27
leanprover-community-mathlib4-bot Oct 27, 2023
da27cae
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 27, 2023
1b00a6e
chore: update Mathlib for leanprover/std4#183
semorrison Oct 27, 2023
af29c94
fix
semorrison Oct 27, 2023
92649df
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 27, 2023
36079ff
fix docstring
eric-wieser Oct 27, 2023
f102115
chore(Data/Bool/Basic): lemmas about min and max
eric-wieser Oct 27, 2023
bfe5508
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 27, 2023
7d0a9dd
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 27, 2023
78fcfdd
fix duplicate lemmas
eric-wieser Oct 27, 2023
8c6ef34
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 27, 2023
eb9172f
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 27, 2023
fecead3
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 27, 2023
bb6f823
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 27, 2023
5991699
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 27, 2023
13da810
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 27, 2023
ec11daa
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 27, 2023
7271a93
chore: bump to nightly-2023-10-28
leanprover-community-mathlib4-bot Oct 28, 2023
11ccb5c
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 28, 2023
f5776b4
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 28, 2023
5c1c804
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 28, 2023
d7a3c82
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 28, 2023
73b828f
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 28, 2023
73ed71d
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 29, 2023
3acb7fd
fix Mathlib.Algebra.Homology.Homology merge
collares Oct 29, 2023
03433c4
merge master
semorrison Oct 29, 2023
5fc637c
bump std
semorrison Oct 29, 2023
3a6567e
bump std
semorrison Oct 29, 2023
4deb0e4
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 29, 2023
4bec0a5
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 29, 2023
8b06424
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 29, 2023
5636aff
Merge branch 'master' into bump_std12
eric-wieser Oct 29, 2023
141492d
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 29, 2023
c159ce5
.
semorrison Oct 29, 2023
1ca67b1
merge #8008
semorrison Oct 29, 2023
ba85d3e
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 29, 2023
0726435
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 30, 2023
300cdc4
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 30, 2023
88b236d
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 30, 2023
bb39914
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 30, 2023
67198d7
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 30, 2023
0ae9fee
toolchain
semorrison Oct 30, 2023
e86970b
Merge branches 'nightly-testing' and 'nightly-testing' of github.com:…
semorrison Oct 30, 2023
dc97459
fix
semorrison Oct 30, 2023
fd950b5
fix
semorrison Oct 30, 2023
df68046
fixes
semorrison Oct 30, 2023
dca6452
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 30, 2023
16a1283
fixes
semorrison Oct 30, 2023
f2a32ef
Merge branch 'nightly-testing' of github.com:leanprover-community/mat…
semorrison Oct 30, 2023
8b2fe8c
fix
semorrison Oct 30, 2023
bb998dd
fix names
semorrison Oct 30, 2023
e419cd0
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 30, 2023
f404208
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 30, 2023
84234c9
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 30, 2023
b1061f5
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 30, 2023
84add7c
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 30, 2023
a7e6545
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 30, 2023
051f5bf
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 30, 2023
971d9f0
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 30, 2023
9a9508f
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 30, 2023
6783d32
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 30, 2023
9ebfa56
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 30, 2023
ee3b905
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 30, 2023
1deffab
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 30, 2023
3fefebb
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 31, 2023
e6786bf
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 31, 2023
26738c4
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 31, 2023
bf6d956
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 31, 2023
a3687f2
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 31, 2023
eafea3b
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 31, 2023
ca34e36
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 31, 2023
791b4a8
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 31, 2023
64a3521
chore: bump to nightly-2023-10-31
leanprover-community-mathlib4-bot Oct 31, 2023
67e6956
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 31, 2023
0f7d24e
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 31, 2023
7ada180
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 31, 2023
12f28e5
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 31, 2023
71024dd
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 31, 2023
891b663
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 31, 2023
308260b
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 31, 2023
6c4be15
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 31, 2023
f35f627
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 31, 2023
d43f2ac
Merge master into nightly-testing
leanprover-community-mathlib4-bot Oct 31, 2023
d695a6e
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 1, 2023
593b094
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 1, 2023
acc4df5
resynchronize with master
semorrison Nov 1, 2023
49f4bac
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 1, 2023
5c7d973
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 1, 2023
d9d972d
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 1, 2023
2653b14
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 1, 2023
9f048a2
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 1, 2023
9ed376e
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 1, 2023
d95aca5
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 1, 2023
3875f9a
chore: bump to nightly-2023-11-01
leanprover-community-mathlib4-bot Nov 1, 2023
b014d8d
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 1, 2023
a9ec392
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 1, 2023
83089d8
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 1, 2023
b815543
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 1, 2023
1133a8f
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 1, 2023
92b016f
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 1, 2023
146fa56
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 1, 2023
b300a4a
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 1, 2023
66ada2f
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 1, 2023
d35a15b
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 1, 2023
819fbef
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 1, 2023
4b2ed91
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 2, 2023
9fe9f97
switch back to std @ main and aesop @ main
semorrison Nov 2, 2023
9d53fa6
oops
semorrison Nov 2, 2023
49a94a8
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 2, 2023
535f20b
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 2, 2023
7973a6c
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 2, 2023
e9bbf27
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 2, 2023
bbb26f3
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 2, 2023
fb6fa2d
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 2, 2023
ca6a11b
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 2, 2023
4c53ba2
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 2, 2023
ead6fc3
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 2, 2023
4ba19fa
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 2, 2023
a2120c3
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 2, 2023
2f959c7
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 2, 2023
ecfb44e
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 2, 2023
7596c0f
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 2, 2023
37024c7
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 2, 2023
0f34f2e
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 2, 2023
9b5decc
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 3, 2023
788c0fe
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 3, 2023
4c88168
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 3, 2023
7bb2345
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 3, 2023
c99f479
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 3, 2023
aed0ffb
Merge master into nightly-testing
leanprover-community-mathlib4-bot Nov 3, 2023
af8ccb9
chore: bump to nightly-2023-11-03
leanprover-community-mathlib4-bot Nov 3, 2023
a497f70
point to std4#312 branch (simp decide := false)
collares Nov 3, 2023
950cee1
chore: adapt to new simp default (decide := false)
collares Oct 21, 2023
16f1bdc
move std to bump/v4.4.0
semorrison Nov 4, 2023
3bf1772
move aesop to bump/v4.4.0
semorrison Nov 4, 2023
6da9734
Merge branch 'bump/v4.4.0' into lean-pr-testing-2722
semorrison Nov 4, 2023
7bb3887
.
semorrison Nov 4, 2023
f1d643d
merge bump/v4.4.0
semorrison Nov 4, 2023
401eef2
fix Mathlib/Combinatorics/SetFamily/FourFunctions.lean
collares Nov 4, 2023
cb1f7e0
pass decide := true in CliffordAlgebra_not_injective.lean
collares Nov 4, 2023
b4e668d
fix
collares Nov 4, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion Archive/Imo/Imo1960Q1.lean
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ theorem right_direction {n : ℕ} : ProblemPredicate n → SolutionPredicate n :
have := searchUpTo_start
iterate 82
replace :=
searchUpTo_step this (by norm_num1; rfl) (by norm_num1; rfl) (by norm_num1; rfl) (by norm_num)
searchUpTo_step this (by norm_num1; rfl) (by norm_num1; rfl) (by norm_num1; rfl)
(by norm_num <;> decide)
exact searchUpTo_end this
#align imo1960_q1.right_direction Imo1960Q1.right_direction

Expand Down
1 change: 1 addition & 0 deletions Archive/Imo/Imo1962Q1.lean
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ Now we combine these cases to show that 153846 is the smallest solution.

theorem satisfied_by_153846 : ProblemPredicate 153846 := by
norm_num [ProblemPredicate]
decide
#align imo1962_q1.satisfied_by_153846 Imo1962Q1.satisfied_by_153846

theorem no_smaller_solutions (n : ℕ) (h1 : ProblemPredicate n) : n ≥ 153846 := by
Expand Down
4 changes: 2 additions & 2 deletions Archive/Imo/Imo1964Q1.lean
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ theorem two_pow_mod_seven (n : ℕ) : 2 ^ n ≡ 2 ^ (n % 3) [MOD 7] :=
let t := n % 3
calc 2 ^ n = 2 ^ (3 * (n / 3) + t) := by rw [Nat.div_add_mod]
_ = (2 ^ 3) ^ (n / 3) * 2 ^ t := by rw [pow_add, pow_mul]
_ ≡ 1 ^ (n / 3) * 2 ^ t [MOD 7] := by gcongr; norm_num
_ ≡ 1 ^ (n / 3) * 2 ^ t [MOD 7] := by gcongr; decide
_ = 2 ^ t := by ring

/-!
Expand Down Expand Up @@ -68,5 +68,5 @@ theorem imo1964_q1b (n : ℕ) : ¬7 ∣ 2 ^ n + 1 := by
have H : 2 ^ t + 10 [MOD 7]
· calc 2 ^ t + 12 ^ n + 1 [MOD 7 ] := by gcongr ?_ + 1; exact (two_pow_mod_seven n).symm
_ ≡ 0 [MOD 7] := h.modEq_zero_nat
interval_cases t <;> norm_num at H
interval_cases t <;> contradiction
#align imo1964_q1b imo1964_q1b
6 changes: 4 additions & 2 deletions Archive/Imo/Imo1981Q3.lean
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ theorem imp_fib {n : ℕ} : ∀ m : ℕ, NatPredicate N m n → ∃ k : ℕ, m =
obtain (rfl : 1 = n) | (h4 : 1 < n) := (succ_le_iff.mpr h2.n_pos).eq_or_lt
· use 1
have h5 : 1 ≤ m := succ_le_iff.mpr h2.m_pos
simpa [fib_one, fib_two] using (h3.antisymm h5 : m = 1)
simpa [fib_one, fib_two, (by decide : 1 + 1 = 2)] using (h3.antisymm h5 : m = 1)
· obtain (rfl : m = n) | (h6 : m < n) := h3.eq_or_lt
· exact absurd h2.eq_imp_1 (Nat.ne_of_gt h4)
· have h7 : NatPredicate N (n - m) m := h2.reduction h4
Expand Down Expand Up @@ -205,5 +205,7 @@ theorem imo1981_q3 : IsGreatest (specifiedSet 1981) 3524578 := by
have := fun h => @solution_greatest 1981 16 h 3524578
norm_num at this
apply this
norm_num [ProblemPredicate_iff]
· decide
· decide
· norm_num [ProblemPredicate_iff]; decide
#align imo1981_q3 imo1981_q3
6 changes: 3 additions & 3 deletions Archive/Imo/Imo2005Q4.lean
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def a (n : ℕ) : ℤ :=
theorem find_specified_factor {p : ℕ} (hp : Nat.Prime p) (hp2 : p ≠ 2) (hp3 : p ≠ 3) :
↑p ∣ a (p - 2) := by
-- Since `p` is neither `2` nor `3`, it is coprime with `2`, `3`, and `6`
rw [Ne.def, ← Nat.prime_dvd_prime_iff_eq hp (by norm_num), ← Nat.Prime.coprime_iff_not_dvd hp]
rw [Ne.def, ← Nat.prime_dvd_prime_iff_eq hp (by decide), ← Nat.Prime.coprime_iff_not_dvd hp]
at hp2 hp3
have : Int.gcd p 6 = 1 := Nat.coprime_mul_iff_right.2 ⟨hp2, hp3⟩
-- Nat arithmetic needed to deal with powers
Expand Down Expand Up @@ -71,10 +71,10 @@ theorem imo2005_q4 {k : ℕ} (hk : 0 < k) : (∀ n : ℕ, 1 ≤ n → IsCoprime
-- For `p = 2` and `p = 3`, take `n = 1` and `n = 2`, respectively
by_cases hp2 : p = 2
· rw [hp2] at h
apply h 1 <;> norm_num
apply h 1 <;> decide
by_cases hp3 : p = 3
· rw [hp3] at h
apply h 2 <;> norm_num
apply h 2 <;> decide
-- Otherwise, take `n = p - 2`
refine h (p - 2) ?_ (find_specified_factor hp hp2 hp3)
calc
Expand Down
2 changes: 1 addition & 1 deletion Archive/Imo/Imo2019Q1.lean
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ theorem imo2019_q1 (f : ℤ → ℤ) :
(∀ a b : ℤ, f (2 * a) + 2 * f b = f (f (a + b))) ↔ f = 0 ∨ ∃ c, f = fun x => 2 * x + c := by
constructor; swap
-- easy way: f(x)=0 and f(x)=2x+c work.
· rintro (rfl | ⟨c, rfl⟩) <;> intros <;> simp only [Pi.zero_apply]; ring
· rintro (rfl | ⟨c, rfl⟩) <;> intros <;> norm_num; ring
-- hard way.
intro hf
-- functional equation
Expand Down
2 changes: 1 addition & 1 deletion Archive/Imo/Imo2019Q2.lean
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ theorem not_collinear_QPA₂ : ¬Collinear ℝ ({cfg.Q, cfg.P, cfg.A₂} : Set P
have h : Cospherical ({cfg.B, cfg.A, cfg.A₂} : Set Pt) := by
refine' cfg.triangleABC.circumsphere.cospherical.subset _
simp only [Set.insert_subset_iff, cfg.A_mem_circumsphere, cfg.B_mem_circumsphere,
cfg.A₂_mem_circumsphere, Sphere.mem_coe, Set.singleton_subset_iff]
cfg.A₂_mem_circumsphere, Sphere.mem_coe, Set.singleton_subset_iff, and_true]
exact h.affineIndependent_of_ne cfg.A_ne_B.symm cfg.A₂_ne_B.symm cfg.A₂_ne_A.symm
#align imo2019_q2.imo2019q2_cfg.not_collinear_QPA₂ Imo2019Q2.Imo2019q2Cfg.not_collinear_QPA₂

Expand Down
11 changes: 5 additions & 6 deletions Archive/Imo/Imo2019Q4.lean
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ theorem upper_bound {k n : ℕ} (hk : k > 0)
_ ≤ k ! := by gcongr
clear h h2
induction' n, hn using Nat.le_induction with n' hn' IH
· norm_num
· decide
let A := ∑ i in range n', i
have le_sum : ∑ i in range 6, i ≤ A
· apply sum_le_sum_of_subset
Expand All @@ -87,8 +87,7 @@ theorem imo2019_q4 {k n : ℕ} (hk : k > 0) (hn : n > 0) :
-- The implication `←` holds.
constructor
swap
· rintro (h | h) <;> simp [Prod.ext_iff] at h <;> rcases h with ⟨rfl, rfl⟩ <;>
norm_num [prod_range_succ, succ_mul]
· rintro (h | h) <;> simp [Prod.ext_iff] at h <;> rcases h with ⟨rfl, rfl⟩ <;> decide
intro h
-- We know that n < 6.
have := Imo2019Q4.upper_bound hk h
Expand All @@ -101,9 +100,9 @@ theorem imo2019_q4 {k n : ℕ} (hk : k > 0) (hn : n > 0) :
exact h; rw [h]; norm_num
all_goals exfalso; norm_num [prod_range_succ] at h; norm_cast at h
-- n = 3
· refine' monotone_factorial.ne_of_lt_of_lt_nat 5 _ _ _ h <;> norm_num
· refine' monotone_factorial.ne_of_lt_of_lt_nat 5 _ _ _ h <;> decide
-- n = 4
· refine' monotone_factorial.ne_of_lt_of_lt_nat 7 _ _ _ h <;> norm_num
· refine' monotone_factorial.ne_of_lt_of_lt_nat 7 _ _ _ h <;> decide
-- n = 5
· refine' monotone_factorial.ne_of_lt_of_lt_nat 10 _ _ _ h <;> norm_num
· refine' monotone_factorial.ne_of_lt_of_lt_nat 10 _ _ _ h <;> decide
#align imo2019_q4 imo2019_q4
6 changes: 3 additions & 3 deletions Archive/MiuLanguage/DecisionNec.lean
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ theorem mod3_eq_1_or_mod3_eq_2 {a b : ℕ} (h1 : a % 3 = 1 ∨ a % 3 = 2)
· rw [h2]; exact h1
· cases' h1 with h1 h1
· right; simp [h2, mul_mod, h1, Nat.succ_lt_succ]
· left; simp [h2, mul_mod, h1]
· left; simp only [h2, mul_mod, h1, mod_mod]; decide
#align miu.mod3_eq_1_or_mod3_eq_2 Miu.mod3_eq_1_or_mod3_eq_2

/-- `count_equiv_one_or_two_mod3_of_derivable` shows any derivable string must have a `count I` that
Expand All @@ -80,7 +80,7 @@ theorem count_equiv_one_or_two_mod3_of_derivable (en : Miustr) :
simp_rw [count_cons_self, count_nil, count_cons, ite_false, add_right_comm, add_mod_right]
simp
· left; rw [count_append, count_append, count_append]
simp only [ne_eq, count_cons_of_ne, count_nil, add_zero]
simp only [ne_eq, not_false_eq_true, count_cons_of_ne, count_nil, add_zero]
#align miu.count_equiv_one_or_two_mod3_of_derivable Miu.count_equiv_one_or_two_mod3_of_derivable

/-- Using the above theorem, we solve the MU puzzle, showing that `"MU"` is not derivable.
Expand Down Expand Up @@ -134,7 +134,7 @@ theorem goodm_of_rule1 (xs : Miustr) (h₁ : Derivable (xs ++ ↑[I])) (h₂ : G
exact mhead
· change ¬M ∈ tail (xs ++ ↑([I] ++ [U]))
rw [← append_assoc, tail_append_singleton_of_ne_nil]
· simp_rw [mem_append, not_or, and_true]; exact nmtail
· simp_rw [mem_append, mem_singleton, or_false]; exact nmtail
· exact append_ne_nil_of_ne_nil_left _ _ this
#align miu.goodm_of_rule1 Miu.goodm_of_rule1

Expand Down
7 changes: 4 additions & 3 deletions Archive/MiuLanguage/DecisionSuf.lean
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ theorem count_I_eq_length_of_count_U_zero_and_neg_mem {ys : Miustr} (hu : count
· simpa only [count]
· rw [mem_cons, not_or] at hm; exact hm.2
· -- case `x = U` gives a contradiction.
exfalso; simp only [count, countP_cons_of_pos] at hu
exfalso; simp only [count, countP_cons_of_pos (· == U) _ (rfl : U == U)] at hu
exact succ_ne_zero _ hu
set_option linter.uppercaseLean3 false in
#align miu.count_I_eq_length_of_count_U_zero_and_neg_mem Miu.count_I_eq_length_of_count_U_zero_and_neg_mem
Expand All @@ -277,7 +277,8 @@ set_option linter.uppercaseLean3 false in
theorem base_case_suf (en : Miustr) (h : Decstr en) (hu : count U en = 0) : Derivable en := by
rcases h with ⟨⟨mhead, nmtail⟩, hi⟩
have : en ≠ nil := by
intro k; simp only [k, count, countP, if_false, zero_mod, zero_ne_one, false_or_iff] at hi
intro k
simp only [k, count, countP, countP.go, if_false, zero_mod, zero_ne_one, false_or_iff] at hi
rcases exists_cons_of_ne_nil this with ⟨y, ys, rfl⟩
rcases mhead
rsuffices ⟨c, rfl, hc⟩ : ∃ c, replicate c I = ys ∧ (c % 3 = 1 ∨ c % 3 = 2)
Expand Down Expand Up @@ -331,7 +332,7 @@ theorem ind_hyp_suf (k : ℕ) (ys : Miustr) (hu : count U ys = succ k) (hdec : D
rw [cons_append, cons_append]
dsimp [tail] at nmtail ⊢
rw [mem_append] at nmtail
simpa only [mem_append, mem_cons, false_or_iff, or_false_iff] using nmtail
simpa only [append_assoc, cons_append, nil_append, mem_append, mem_cons, false_or] using nmtail
· rw [count_append, count_append]; rw [← cons_append, count_append] at hic
simp only [count_cons_self, count_nil, count_cons, if_false] at hic ⊢
rw [add_right_comm, add_mod_right]; exact hic
Expand Down
13 changes: 7 additions & 6 deletions Archive/Wiedijk100Theorems/AbelRuffini.lean
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,11 @@ theorem irreducible_Phi (p : ℕ) (hp : p.Prime) (hpa : p ∣ a) (hpb : p ∣ b)
rw [mem_span_singleton]
rw [degree_Phi] at hn; norm_cast at hn
interval_cases hn : n <;>
simp only [Φ, coeff_X_pow, coeff_C, Int.coe_nat_dvd.mpr, hpb, if_true, coeff_C_mul, if_false,
coeff_X_zero, hpa, coeff_add, zero_add, mul_zero, coeff_sub, add_zero, zero_sub, dvd_neg,
neg_zero, dvd_mul_of_dvd_left]
simp (config := {decide := true}) only [Φ, coeff_X_pow, coeff_C, Int.coe_nat_dvd.mpr, hpb,
if_true, coeff_C_mul, if_false, coeff_X_zero, hpa, coeff_add, zero_add, mul_zero, coeff_sub,
add_zero, zero_sub, dvd_neg, neg_zero, dvd_mul_of_dvd_left]
· simp only [degree_Phi, ← WithBot.coe_zero, WithBot.coe_lt_coe, Nat.succ_pos']
decide
· rw [coeff_zero_Phi, span_singleton_pow, mem_span_singleton]
exact mt Int.coe_nat_dvd.mp hp2b
all_goals exact Monic.isPrimitive (monic_Phi a b)
Expand Down Expand Up @@ -136,7 +137,7 @@ theorem real_roots_Phi_ge_aux (hab : b < a) :
have hfa :=
calc
f (-a) = (a : ℝ) ^ 2 - (a : ℝ) ^ 5 + b := by
norm_num [hf, ← sq, sub_eq_add_neg, add_comm, Odd.neg_pow]
norm_num [hf, ← sq, sub_eq_add_neg, add_comm, Odd.neg_pow (by decide : Odd 5)]
_ ≤ (a : ℝ) ^ 2 - (a : ℝ) ^ 3 + (a - 1) := by
refine' add_le_add (sub_le_sub_left (pow_le_pow ha _) _) _ <;> linarith
_ = -((a : ℝ) - 1) ^ 2 * (a + 1) := by ring
Expand All @@ -163,7 +164,7 @@ theorem complex_roots_Phi (h : (Φ ℚ a b).Separable) : Fintype.card ((Φ ℚ a
theorem gal_Phi (hab : b < a) (h_irred : Irreducible (Φ ℚ a b)) :
Bijective (galActionHom (Φ ℚ a b) ℂ) := by
apply galActionHom_bijective_of_prime_degree' h_irred
· norm_num [natDegree_Phi]
· simp only [natDegree_Phi]; decide
· rw [complex_roots_Phi a b h_irred.separable, Nat.succ_le_succ_iff]
exact (real_roots_Phi_le a b).trans (Nat.le_succ 3)
· simp_rw [complex_roots_Phi a b h_irred.separable, Nat.succ_le_succ_iff]
Expand All @@ -181,7 +182,7 @@ theorem not_solvable_by_rad (p : ℕ) (x : ℂ) (hx : aeval x (Φ ℚ a b) = 0)
#align abel_ruffini.not_solvable_by_rad AbelRuffini.not_solvable_by_rad

theorem not_solvable_by_rad' (x : ℂ) (hx : aeval x (Φ ℚ 4 2) = 0) : ¬IsSolvableByRad ℚ x := by
apply not_solvable_by_rad 4 2 2 x hx <;> norm_num
apply not_solvable_by_rad 4 2 2 x hx <;> decide
#align abel_ruffini.not_solvable_by_rad' AbelRuffini.not_solvable_by_rad'

/-- **Abel-Ruffini Theorem** -/
Expand Down
4 changes: 3 additions & 1 deletion Archive/Wiedijk100Theorems/BallotProblem.lean
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ theorem first_vote_pos :
simp [ENNReal.div_self _ _]
| 0, q + 1, _ => by
rw [counted_left_zero, condCount_singleton]
simp
simp only [List.replicate, Nat.add_eq, add_zero, mem_setOf_eq, List.headI_cons, Nat.cast_zero,
ENNReal.zero_div, ite_eq_right_iff]
decide
| p + 1, q + 1, _ => by
simp_rw [counted_succ_succ]
rw [← condCount_disjoint_union ((countedSequence_finite _ _).image _)
Expand Down
3 changes: 2 additions & 1 deletion Archive/Wiedijk100Theorems/BirthdayProblem.lean
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ local notation "‖" x "‖" => Fintype.card x
theorem birthday :
2 * ‖Fin 23 ↪ Fin 365‖ < ‖Fin 23 → Fin 365‖ ∧ 2 * ‖Fin 22 ↪ Fin 365‖ > ‖Fin 22 → Fin 365‖ := by
simp only [Nat.descFactorial, Fintype.card_fin, Fintype.card_embedding_eq, Fintype.card_fun]
norm_num
#align theorems_100.birthday Theorems100.birthday

section MeasureTheory
Expand Down Expand Up @@ -76,7 +77,7 @@ theorem birthday_measure :
exact Fintype.card_congr (Equiv.subtypeInjectiveEquivEmbedding _ _)
· simp only [Fintype.card_embedding_eq, Fintype.card_fin, Nat.descFactorial]
rw [this, ENNReal.lt_div_iff_mul_lt, mul_comm, mul_div, ENNReal.div_lt_iff]
rotate_left; (iterate 2 right; norm_num); (iterate 2 left; norm_num)
rotate_left; (iterate 2 right; norm_num); decide; (iterate 2 left; norm_num)
norm_cast
simp only [Fintype.card_pi]
norm_num
Expand Down
2 changes: 1 addition & 1 deletion Archive/Wiedijk100Theorems/Konigsberg.lean
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ lemma degree_eq_degree (v : Verts) : graph.degree v = degree v := by cases v <;>
#align konigsberg.degree_eq_degree Konigsberg.degree_eq_degree

lemma not_even_degree_iff (w : Verts) : ¬Even (degree w) ↔ w = V1 ∨ w = V2 ∨ w = V3 ∨ w = V4 := by
cases w <;> simp
cases w <;> decide

lemma setOf_odd_degree_eq :
{v | Odd (graph.degree v)} = {Verts.V1, Verts.V2, Verts.V3, Verts.V4} := by
Expand Down
4 changes: 2 additions & 2 deletions Archive/Wiedijk100Theorems/PerfectNumbers.lean
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ namespace Nat
open Nat.ArithmeticFunction Finset

theorem sigma_two_pow_eq_mersenne_succ (k : ℕ) : σ 1 (2 ^ k) = mersenne (k + 1) := by
simp [sigma_one_apply, mersenne, Nat.prime_two, show 2 = 1 + 1 from rfl,
← geom_sum_mul_add 1 (k + 1)]
simp_rw [sigma_one_apply, mersenne, show 2 = 1 + 1 from rfl, ← geom_sum_mul_add 1 (k + 1)]
norm_num
#align theorems_100.nat.sigma_two_pow_eq_mersenne_succ Theorems100.Nat.sigma_two_pow_eq_mersenne_succ

/-- Euclid's theorem that Mersenne primes induce perfect numbers -/
Expand Down
11 changes: 7 additions & 4 deletions Archive/ZagierTwoSquares.lean
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ lemma zagierSet_lower_bound {x y z : ℕ} (h : (x, y, z) ∈ zagierSet k) : 0 <
all_goals
cases' (Nat.dvd_prime hk.out).1 (dvd_of_mul_left_eq _ h) with e e
all_goals
simp only [e, self_eq_add_left, ne_eq, add_eq_zero, and_false, mul_eq_left₀] at h
simp only [e, self_eq_add_left, ne_eq, add_eq_zero, and_false, not_false_eq_true,
mul_eq_left₀] at h
simp only [h, zero_add] at hk
exact hk.out
exact Nat.not_prime_one hk.out

lemma zagierSet_upper_bound {x y z : ℕ} (h : (x, y, z) ∈ zagierSet k) :
x ≤ k + 1 ∧ y ≤ k ∧ z ≤ k := by
Expand Down Expand Up @@ -143,11 +144,12 @@ theorem eq_of_mem_fixedPoints {t : zagierSet k} (mem : t ∈ fixedPoints (comple
rw [mem_fixedPoints_iff, complexInvo, Subtype.mk.injEq] at mem
split_ifs at mem with less more <;>
-- less (completely handled by the pre-applied `simp_all only`)
simp_all only [not_lt, Prod.mk.injEq, add_right_eq_self, mul_eq_zero, false_or]
simp_all only [not_lt, Prod.mk.injEq, add_right_eq_self, mul_eq_zero, false_or,
lt_self_iff_false]
· -- more
obtain ⟨_, _, _⟩ := mem; simp_all
· -- middle (the one fixed point falls under this case)
simp only [zagierSet, Set.mem_setOf_eq] at h
simp [zagierSet, Set.mem_setOf_eq] at h
replace mem := mem.1
rw [tsub_eq_iff_eq_add_of_le more, ← two_mul] at mem
replace mem := (mul_left_cancel₀ two_ne_zero mem).symm
Expand Down Expand Up @@ -194,3 +196,4 @@ theorem Nat.Prime.sq_add_sq' {p : ℕ} [h : Fact p.Prime] (hp : p % 4 = 1) :
contrapose key
rw [Set.not_nonempty_iff_eq_empty] at key
simp_rw [key, Fintype.card_of_isEmpty, card_fixedPoints_eq_one]
decide
3 changes: 2 additions & 1 deletion Counterexamples/CliffordAlgebra_not_injective.lean
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ theorem X0_X1_X2_not_mem_kIdeal : (X 0 * X 1 * X 2 : MvPolynomial (Fin 3) (ZMod
simp_rw [mem_kIdeal_iff, support_mul_X, support_X, Finset.map_singleton, addRightEmbedding_apply,
Finset.mem_singleton, forall_eq, ← Fin.sum_univ_three fun i => Finsupp.single i 1,
← Finsupp.equivFunOnFinite_symm_eq_sum] at h
contradiction

theorem mul_self_mem_kIdeal_of_X0_X1_X2_mul_mem {x : MvPolynomial (Fin 3) (ZMod 2)}
(h : X 0 * X 1 * X 2 * x ∈ kIdeal) : x * x ∈ kIdeal := by
Expand Down Expand Up @@ -239,7 +240,7 @@ theorem quot_obv : α • x' - β • y' - γ • z' = 0 := by
← Submodule.Quotient.mk_sub]
convert LinearMap.map_zero _ using 2
rw [Submodule.Quotient.mk_eq_zero]
norm_num [sub_zero, Ideal.span, Pi.single_apply]
simp (config := { decide := true }) [sub_zero, Ideal.span, Pi.single_apply]

/-- The core of the proof - scaling `1` by `α * β * γ` gives zero -/
theorem αβγ_smul_eq_zero : (α * β * γ) • (1 : CliffordAlgebra Q) = 0 := by
Expand Down
2 changes: 1 addition & 1 deletion Counterexamples/Cyclotomic105.lean
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ theorem cyclotomic_105 :
#align counterexample.cyclotomic_105 Counterexample.cyclotomic_105

theorem coeff_cyclotomic_105 : coeff (cyclotomic 105 ℤ) 7 = -2 := by
simp [cyclotomic_105, coeff_X_pow, coeff_one, coeff_X_of_ne_one, coeff_bit0_mul, two_mul]
simp [cyclotomic_105, coeff_one, coeff_X_of_ne_one]
#align counterexample.coeff_cyclotomic_105 Counterexample.coeff_cyclotomic_105

theorem not_forall_coeff_cyclotomic_neg_one_zero_one :
Expand Down
2 changes: 1 addition & 1 deletion Counterexamples/HomogeneousPrimeNotPrime.lean
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ theorem homogeneous_mem_or_mem {x y : R × R} (hx : SetLike.Homogeneous (grading
-- Porting note: added `h2` for later use; the proof is hideous
have h2 : Prime (2:R) := by
unfold Prime
simp only [true_and]
refine ⟨by decide, by decide, ?_⟩
intro a b
have aux2 : (Fin.mk 2 _ : R) = 2 := rfl
have aux3 : (Fin.mk 3 _ : R) = -1 := rfl
Expand Down
4 changes: 2 additions & 2 deletions Mathlib/Algebra/BigOperators/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -2125,7 +2125,7 @@ theorem finset_sum_eq_sup_iff_disjoint {β : Type*} {i : Finset β} {f : β →
· simp only [Finset.not_mem_empty, IsEmpty.forall_iff, imp_true_iff, Finset.sum_empty,
Finset.sup_empty, bot_eq_zero, eq_self_iff_true]
· simp_rw [Finset.sum_cons hz, Finset.sup_cons, Finset.mem_cons, Multiset.sup_eq_union,
forall_eq_or_imp, Ne.def, IsEmpty.forall_iff, true_and_iff,
forall_eq_or_imp, Ne.def, not_true_eq_false, IsEmpty.forall_iff, true_and_iff,
imp_and, forall_and, ← hr, @eq_comm _ z]
have := fun x (H : x ∈ i) => ne_of_mem_of_not_mem H hz
simp (config := { contextual := true }) only [this, not_false_iff, true_imp_iff]
Expand Down Expand Up @@ -2284,7 +2284,7 @@ theorem nat_abs_sum_le {ι : Type*} (s : Finset ι) (f : ι → ℤ) :
(∑ i in s, f i).natAbs ≤ ∑ i in s, (f i).natAbs := by
classical
induction' s using Finset.induction_on with i s his IH
· simp only [Finset.sum_empty, Int.natAbs_zero]
· simp only [Finset.sum_empty, Int.natAbs_zero, le_refl]
· simp only [his, Finset.sum_insert, not_false_iff]
exact (Int.natAbs_add_le _ _).trans (add_le_add le_rfl IH)
#align nat_abs_sum_le nat_abs_sum_le
Expand Down
4 changes: 2 additions & 2 deletions Mathlib/Algebra/CharP/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -718,8 +718,8 @@ theorem Int.cast_injOn_of_ringChar_ne_two {R : Type*} [NonAssocRing R] [Nontrivi
rintro _ (rfl | rfl | rfl) _ (rfl | rfl | rfl) h <;>
simp only
[cast_neg, cast_one, cast_zero, neg_eq_zero, one_ne_zero, zero_ne_one, zero_eq_neg] at h ⊢
· exact (Ring.neg_one_ne_one_of_char_ne_two hR).symm h
· exact (Ring.neg_one_ne_one_of_char_ne_two hR) h
· exact ((Ring.neg_one_ne_one_of_char_ne_two hR).symm h).elim
· exact ((Ring.neg_one_ne_one_of_char_ne_two hR) h).elim
#align int.cast_inj_on_of_ring_char_ne_two Int.cast_injOn_of_ringChar_ne_two

end
Expand Down