Skip to content

Commit 97cd0d5

Browse files
committed
feat: replace some tauto with grind
1 parent 4e56e21 commit 97cd0d5

28 files changed

Lines changed: 36 additions & 36 deletions

File tree

Archive/Examples/Kuratowski.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ theorem nodup_theClosedSix_theFourteen_iff : (theClosedSix s).Nodup ↔ TheSixIn
101101
-- The goal becomes 6 inequalities ↔ 15 inequalities.
102102
constructor -- Show both implications.
103103
· -- One implication is almost trivial as the six inequalities are among the fifteen.
104-
tauto
104+
grind
105105
· intro h -- Introduce `TheSixIneq` as an assumption.
106106
repeat obtain ⟨_, h⟩ := h -- Split the hypothesis into six different inequalities.
107107
repeat refine .symm (.intro ?_ ?_) -- Split the goal into 15 inequalities.

Archive/Imo/Imo2001Q3.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ lemma card_not_easy_le_210 (hG : ∀ i, #(G i) ≤ 6) (hB : ∀ i j, ¬Disjoint
7979
_ = ∑ i, #({p ∈ G i | ¬Easy B p}.biUnion fun p ↦ {j | p ∈ B j}) := by
8080
congr!; ext
8181
simp_rw [mem_biUnion, mem_inter, mem_filter]
82-
congr! 2; tauto
82+
congr! 2; grind
8383
_ ≤ ∑ i, ∑ p ∈ G i with ¬Easy B p, #{j | p ∈ B j} := sum_le_sum fun _ _ ↦ card_biUnion_le
8484
_ ≤ ∑ i, ∑ p ∈ G i with ¬Easy B p, 2 := by
8585
gcongr with i _ p mp

Counterexamples/Phillips.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ theorem exists_discrete_support_nonpos (f : BoundedAdditiveMeasure α) :
287287
· dsimp
288288
ext x
289289
simp only [u, not_exists, mem_iUnion, mem_diff]
290-
tauto
290+
grind
291291
· congr 1
292292
simp only [G, s, Function.iterate_succ', Subtype.coe_mk, union_diff_left, Function.comp]
293293
have I2 : ∀ n : ℕ, (n : ℝ) * (ε / 2) ≤ f ↑(s n) := by

Mathlib/Algebra/BigOperators/Intervals.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ theorem prod_range_div_prod_range {G : Type*} [CommGroup G] {f : ℕ → G} {n m
9898
congr
9999
apply Finset.ext
100100
simp only [mem_Ico, mem_filter, mem_range, *]
101-
tauto
101+
grind
102102

103103
/-- The two ways of summing over `(i, j)` in the range `a ≤ i ≤ j < b` are equal. -/
104104
theorem sum_Ico_Ico_comm {M : Type*} [AddCommMonoid M] (a b : ℕ) (f : ℕ → ℕ → M) :

Mathlib/Algebra/CubicDiscriminant.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ theorem disc_ne_zero_iff_roots_nodup (ha : P.a ≠ 0) (h3 : (map φ P).roots = {
480480
change _ ↔ (x ::ₘ y ::ₘ {z}).Nodup
481481
rw [nodup_cons, nodup_cons, mem_cons, mem_singleton, mem_singleton]
482482
simp only [nodup_singleton]
483-
tauto
483+
grind
484484

485485
theorem card_roots_of_disc_ne_zero [DecidableEq K] (ha : P.a ≠ 0) (h3 : (map φ P).roots = {x, y, z})
486486
(hd : P.disc ≠ 0) : (map φ P).roots.toFinset.card = 3 := by

Mathlib/Algebra/Group/Int/Units.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ lemma eq_one_or_neg_one_of_mul_eq_one (h : u * v = 1) : u = 1 ∨ u = -1 :=
5050
lemma eq_one_or_neg_one_of_mul_eq_one' (h : u * v = 1) : u = 1 ∧ v = 1 ∨ u = -1 ∧ v = -1 := by
5151
have h' : v * u = 1 := mul_comm u v ▸ h
5252
obtain rfl | rfl := eq_one_or_neg_one_of_mul_eq_one h <;>
53-
obtain rfl | rfl := eq_one_or_neg_one_of_mul_eq_one h' <;> tauto
53+
obtain rfl | rfl := eq_one_or_neg_one_of_mul_eq_one h' <;> grind
5454

5555
lemma eq_of_mul_eq_one (h : u * v = 1) : u = v :=
5656
(eq_one_or_neg_one_of_mul_eq_one' h).elim

Mathlib/Algebra/Group/Subgroup/Basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ theorem _root_.normalizerCondition_iff_only_full_group_self_normalizing :
400400
NormalizerCondition G ↔ ∀ H : Subgroup G, H.normalizer = H → H = ⊤ := by
401401
apply forall_congr'; intro H
402402
simp only [lt_iff_le_and_ne, le_normalizer, le_top, Ne]
403-
tauto
403+
grind
404404

405405
variable (H)
406406

Mathlib/Algebra/Group/Subgroup/Lattice.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ theorem nontrivial_iff_ne_bot (H : Subgroup G) : Nontrivial H ↔ H ≠ ⊥ := b
185185
@[to_additive /-- A subgroup is either the trivial subgroup or nontrivial. -/]
186186
theorem bot_or_nontrivial (H : Subgroup G) : H = ⊥ ∨ Nontrivial H := by
187187
have := nontrivial_iff_ne_bot H
188-
tauto
188+
grind
189189

190190
/-- A subgroup is either the trivial subgroup or contains a non-identity element. -/
191191
@[to_additive /-- A subgroup is either the trivial subgroup or contains a nonzero element. -/]

Mathlib/Algebra/GroupWithZero/Indicator.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ lemma inter_indicator_one : (s ∩ t).indicator (1 : ι → M₀) = s.indicator
6767
lemma indicator_prod_one {t : Set κ} {j : κ} :
6868
(s ×ˢ t).indicator (1 : ι × κ → M₀) (i, j) = s.indicator 1 i * t.indicator 1 j := by
6969
simp_rw [indicator, mem_prod_eq]
70-
split_ifs with h₀ <;> simp only [Pi.one_apply, mul_one, mul_zero] <;> tauto
70+
split_ifs with h₀ <;> simp only [Pi.one_apply, mul_one, mul_zero] <;> grind
7171

7272
variable (M₀) [Nontrivial M₀]
7373

Mathlib/Algebra/Homology/Double.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ noncomputable def evalCompCoyonedaCorepresentable (X : C) (j : ι) :
205205
· exact evalCompCoyonedaCorepresentableByDoubleId _
206206
(fun hj ↦ c.not_rel_of_eq hj h.choose_spec) _
207207
· apply evalCompCoyonedaCorepresentableBySingle
208-
obtain _ | _ := c.exists_distinct_prev_or j <;> tauto
208+
obtain _ | _ := c.exists_distinct_prev_or j <;> grind
209209

210210
instance (X : C) (j : ι) : (eval C c j ⋙ coyoneda.obj (op X)).IsCorepresentable where
211211
has_corepresentation := ⟨_, ⟨evalCompCoyonedaCorepresentable c X j⟩⟩

0 commit comments

Comments
 (0)