Skip to content

Commit 6d38c5a

Browse files
gotrevorclaude
andcommitted
refine deprecation fix: faithful binders + keep one-liners
- CoherenceSpace.symmetric: back to strict-implicit ⦃x y⦄ (matches the old `Symmetric` def exactly), so ⟨symmetric⟩ and `symmetric h` compile unchanged - ChainI: project the class hypotheses directly with dot-notation (IR.irrefl _ hR, TR.trans _ _ _ …) instead of `letI := _; exact Class.method`, restoring the original succinct one-liners Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent c05b174 commit 6d38c5a

2 files changed

Lines changed: 6 additions & 16 deletions

File tree

Foundation/Semantics/CoherenceSpace/Basic.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class CoherenceSpace (α : Type*) where
1818
/-- A coherence relation -/
1919
Coherence : α → α → Prop
2020
reflexive : ∀ x, Coherence x x
21-
symmetric : ∀ x y, Coherence x y → Coherence y x
21+
symmetric : ∀ x y, Coherence x y → Coherence y x
2222

2323
namespace CoherenceSpace
2424

@@ -28,11 +28,11 @@ variable {α : Type*} [CoherenceSpace α]
2828

2929
instance : Std.Refl (α := α) Coherence := ⟨reflexive⟩
3030

31-
instance : Std.Symm (α := α) Coherence := ⟨fun x y ↦ symmetric x y
31+
instance : Std.Symm (α := α) Coherence := ⟨symmetric⟩
3232

3333
@[simp, refl, grind .] protected lemma Coherence.refl (x : α) : x ⁐ x := reflexive x
3434

35-
lemma Coherence.symm {x y : α} : x ⁐ y → y ⁐ x := fun h ↦ symmetric x y h
35+
lemma Coherence.symm {x y : α} : x ⁐ y → y ⁐ x := fun h ↦ symmetric h
3636

3737
@[grind =] lemma Coherence.symm_iff {x y : α} : x ⁐ y ↔ y ⁐ x := ⟨symm, symm⟩
3838

Foundation/Vorspiel/List/ChainI.lean

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -54,22 +54,12 @@ lemma not_mem_of_rel (IR : Std.Irrefl R) (TR : IsTrans α R) {a b x : α} {l : L
5454
| [] => simp
5555
| a' :: l =>
5656
rintro (_ | _)
57-
case singleton =>
58-
simp
59-
intro hR
60-
rintro rfl
61-
letI := IR
62-
exact Std.Irrefl.irrefl _ hR
57+
case singleton => simp; intro hR; rintro rfl; exact IR.irrefl _ hR
6358
case cons a' Raa' h =>
6459
intro Rxa
65-
have : x ≠ a := by
66-
rintro rfl
67-
letI := IR
68-
exact Std.Irrefl.irrefl _ Rxa
60+
have : x ≠ a := by rintro rfl; exact IR.irrefl _ Rxa
6961
have : x ∉ l :=
70-
have : R x a' := by
71-
letI := TR
72-
exact IsTrans.trans _ _ _ Rxa Raa'
62+
have : R x a' := TR.trans _ _ _ Rxa Raa'
7363
not_mem_of_rel IR TR h this
7464
simp_all
7565

0 commit comments

Comments
 (0)