Skip to content

Commit 927498c

Browse files
ocfnashriccardobrasca
authored andcommitted
chore: highlight locations which may provide examples for speeding up aesop (#24552)
There is some amount of subjectivity here but I believe these are all good examples.
1 parent 9cb197e commit 927498c

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

Mathlib/LinearAlgebra/RootSystem/Finite/Lemmas.lean

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ lemma pairingIn_pairingIn_mem_set_of_isCrystal_of_isRed [P.IsReduced] :
108108
rcases eq_or_ne (P.root i) (-P.root j) with h₂ | h₂; · aesop
109109
have aux₁ := P.pairingIn_pairingIn_mem_set_of_isCrystallographic i j
110110
have aux₂ : P.pairingIn ℤ i j * P.pairingIn ℤ j i ≠ 4 := P.coxeterWeightIn_ne_four ℤ h₁ h₂
111-
aesop
111+
aesop -- #24551 (this should be faster)
112112

113113
lemma pairingIn_pairingIn_mem_set_of_isCrystal_of_isRed' [P.IsReduced]
114114
(hij : P.root i ≠ P.root j) (hij' : P.root i ≠ - P.root j) :
@@ -126,7 +126,7 @@ lemma RootPositiveForm.rootLength_le_of_pairingIn_eq (B : P.RootPositiveForm ℤ
126126
have h : (P.pairingIn ℤ i j, P.pairingIn ℤ j i) ∈
127127
({(1, 1), (1, 2), (1, 3), (1, 4), (-1, -1), (-1, -2), (-1, -3), (-1, -4)} : Set (ℤ × ℤ)) := by
128128
have := P.pairingIn_pairingIn_mem_set_of_isCrystallographic i j
129-
aesop
129+
aesop -- #24551 (this should be faster)
130130
simp only [mem_insert_iff, mem_singleton_iff, Prod.mk_one_one, Prod.mk_eq_one, Prod.mk.injEq] at h
131131
have h' := B.pairingIn_mul_eq_pairingIn_mul_swap i j
132132
have hi := B.rootLength_pos i
@@ -142,11 +142,11 @@ lemma RootPositiveForm.rootLength_lt_of_pairingIn_nmem
142142
have hij' : P.pairingIn ℤ i j = -3 ∨ P.pairingIn ℤ i j = -2 ∨ P.pairingIn ℤ i j = 2
143143
P.pairingIn ℤ i j = 3 ∨ P.pairingIn ℤ i j = -4 ∨ P.pairingIn ℤ i j = 4 := by
144144
have := P.pairingIn_pairingIn_mem_set_of_isCrystallographic i j
145-
aesop
145+
aesop -- #24551 (this should be faster)
146146
have aux₁ : P.pairingIn ℤ j i = -1 ∨ P.pairingIn ℤ j i = 1 := by
147147
have _i := P.reflexive_left
148148
have := P.pairingIn_pairingIn_mem_set_of_isCrystallographic i j
149-
aesop
149+
aesop -- #24551 (this should be faster)
150150
have aux₂ := B.pairingIn_mul_eq_pairingIn_mul_swap i j
151151
have hi := B.rootLength_pos i
152152
rcases aux₁ with hji | hji <;> rcases hij' with hij' | hij' | hij' | hij' | hij' | hij' <;>
@@ -161,7 +161,7 @@ lemma pairingIn_pairingIn_mem_set_of_length_eq {B : P.InvariantForm}
161161
simp only [← (FaithfulSMul.algebraMap_injective ℤ R).eq_iff, algebraMap_pairingIn]
162162
exact mul_right_cancel₀ (B.ne_zero j) (len_eq ▸ B.pairing_mul_eq_pairing_mul_swap j i)
163163
have := P.pairingIn_pairingIn_mem_set_of_isCrystallographic i j
164-
aesop
164+
aesop -- #24551 (this should be faster)
165165

166166
variable {i j} in
167167
lemma pairingIn_pairingIn_mem_set_of_length_eq_of_ne {B : P.InvariantForm}
@@ -211,7 +211,7 @@ lemma root_sub_root_mem_of_pairingIn_pos (h : 0 < P.pairingIn ℤ i j) (h' : i
211211
have := P.pairingIn_pairingIn_mem_set_of_isCrystallographic i j
212212
replace hli : P.pairingIn ℤ i j * P.pairingIn ℤ j i = 4 :=
213213
(P.coxeterWeightIn_eq_four_iff_not_linearIndependent ℤ).mpr hli
214-
aesop
214+
aesop -- #24551 (this should be faster)
215215
simp only [mem_insert_iff, mem_singleton_iff, Prod.mk.injEq] at this
216216
rcases this with hij | hij | hij
217217
· rw [(P.pairingIn_one_four_iff ℤ i j).mp hij, two_smul, sub_add_cancel_right]
@@ -244,7 +244,7 @@ lemma apply_eq_or_aux (i j : ι) (h : P.pairingIn ℤ i j ≠ 0) :
244244
have h₂ : algebraMap ℤ R (P.pairingIn ℤ j i) * B.form (P.root i) (P.root i) =
245245
algebraMap ℤ R (P.pairingIn ℤ i j) * B.form (P.root j) (P.root j) := by
246246
simpa only [algebraMap_pairingIn] using B.pairing_mul_eq_pairing_mul_swap i j
247-
aesop
247+
aesop -- #24551 (this should be faster)
248248

249249
variable [P.IsIrreducible]
250250

@@ -339,12 +339,12 @@ lemma forall_pairing_eq_swap_or [P.IsReduced] [P.IsIrreducible] :
339339
have hk := B.pairing_mul_eq_pairing_mul_swap k₁ k₂
340340
rcases this with h₀ | h₀ <;> rcases key k₁ with h₁ | h₁ <;> rcases key k₂ with h₂ | h₂ <;>
341341
simp only [h₁, h₂, h₀, ← mul_assoc, mul_comm, mul_eq_mul_right_iff] at hk <;>
342-
aesop
342+
aesop -- #24551 (this should be faster)
343343
· refine Or.inr fun k₁ k₂ ↦ ?_
344344
have hk := B.pairing_mul_eq_pairing_mul_swap k₁ k₂
345345
rcases this with h₀ | h₀ <;> rcases key k₁ with h₁ | h₁ <;> rcases key k₂ with h₂ | h₂ <;>
346346
simp only [h₁, h₂, h₀, ← mul_assoc, mul_comm, mul_eq_mul_right_iff] at hk <;>
347-
aesop
347+
aesop -- #24551 (this should be faster)
348348

349349
lemma forall_pairingIn_eq_swap_or [P.IsReduced] [P.IsIrreducible] :
350350
(∀ i j, P.pairingIn ℤ i j = P.pairingIn ℤ j i ∨
@@ -405,7 +405,7 @@ lemma root_sub_root_mem_of_mem_of_mem (hk : α k + α i - α j ∈ Φ)
405405
have := P.reflexive_left
406406
contrapose! hk'; exact (P.pairingIn_neg_two_neg_two_iff ℤ i k).mp ⟨h, hk'⟩
407407
have := P.pairingIn_pairingIn_mem_set_of_isCrystallographic i k
408-
aesop
408+
aesop -- #24551 (this should be faster)
409409
replace hki : P.pairing k i = -1 := by rw [← P.algebraMap_pairingIn ℤ, hki]; simp
410410
have : P.pairingIn ℤ l i = 1 - P.pairingIn ℤ j i := by
411411
apply algebraMap_injective ℤ R

0 commit comments

Comments
 (0)