Skip to content

Commit 24d904e

Browse files
committed
chore: rename isLE_of_LE, isGE_of_GE (leanprover-community#34612)
Per rule 6 of the naming convention, they should be called isLE_of_le resp. isGE_of_ge. Found by the linter in leanprover-community#34440.
1 parent 2b374df commit 24d904e

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

  • Mathlib/CategoryTheory/Triangulated/TStructure

Mathlib/CategoryTheory/Triangulated/TStructure/Basic.lean

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,15 @@ lemma isLE_of_iso {X Y : C} (e : X ≅ Y) (n : ℤ) [t.IsLE X n] : t.IsLE Y n wh
179179
lemma isGE_of_iso {X Y : C} (e : X ≅ Y) (n : ℤ) [t.IsGE X n] : t.IsGE Y n where
180180
ge := (t.ge n).prop_of_iso e (t.ge_of_isGE X n)
181181

182-
lemma isLE_of_LE (X : C) (p q : ℤ) (hpq : p ≤ q := by lia) [t.IsLE X p] : t.IsLE X q where
182+
lemma isLE_of_le (X : C) (p q : ℤ) (hpq : p ≤ q := by lia) [t.IsLE X p] : t.IsLE X q where
183183
le := le_monotone t hpq _ (t.le_of_isLE X p)
184184

185-
lemma isGE_of_GE (X : C) (p q : ℤ) (hpq : p ≤ q := by lia) [t.IsGE X q] : t.IsGE X p where
185+
lemma isGE_of_ge (X : C) (p q : ℤ) (hpq : p ≤ q := by lia) [t.IsGE X q] : t.IsGE X p where
186186
ge := ge_antitone t hpq _ (t.ge_of_isGE X q)
187187

188+
@[deprecated (since := "2026-01-30")] alias isLE_of_LE := isLE_of_le
189+
@[deprecated (since := "2026-01-30")] alias isGE_of_GE := isGE_of_ge
190+
188191
lemma isLE_shift (X : C) (n a n' : ℤ) (hn' : a + n' = n := by lia) [t.IsLE X n] :
189192
t.IsLE (X⟦a⟧) n' :=
190193
⟨t.le_shift n a n' hn' X (t.le_of_isLE X n)⟩
@@ -223,7 +226,7 @@ lemma zero {X Y : C} (f : X ⟶ Y) (n₀ n₁ : ℤ) (h : n₀ < n₁ := by lia)
223226
[t.IsLE X n₀] [t.IsGE Y n₁] : f = 0 := by
224227
have := t.isLE_shift X n₀ n₀ 0 (add_zero n₀)
225228
have := t.isGE_shift Y n₁ n₀ (n₁ - n₀)
226-
have := t.isGE_of_GE (Y⟦n₀⟧) 1 (n₁ - n₀)
229+
have := t.isGE_of_ge (Y⟦n₀⟧) 1 (n₁ - n₀)
227230
apply (shiftFunctor C n₀).map_injective
228231
simp only [Functor.map_zero]
229232
apply t.zero'

0 commit comments

Comments
 (0)