Skip to content

Commit 3bbc5c7

Browse files
vihdzpvihdzp
andcommitted
chore: explicit field names for Concept.copy (leanprover-community#35276)
Inspired by leanprover-community#34143, I take it that this is preferred style. Co-authored-by: vihdzp <vi.hdz.p@mgmail.com>
1 parent f0dd6ff commit 3bbc5c7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Mathlib/Order/Concept.lean

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,11 @@ theorem intent_injective : Injective (@intent α β r) := fun _ _ => ext'
180180
/-- Copy a concept, adjusting definitional equalities. -/
181181
@[simps!]
182182
def copy (c : Concept α β r) (e : Set α) (i : Set β) (he : e = c.extent) (hi : i = c.intent) :
183-
Concept α β r := ⟨e, i, he ▸ hi ▸ c.upperPolar_extent, he ▸ hi ▸ c.lowerPolar_intent⟩
183+
Concept α β r where
184+
extent := e
185+
intent := i
186+
upperPolar_extent := he ▸ hi ▸ c.upperPolar_extent
187+
lowerPolar_intent := he ▸ hi ▸ c.lowerPolar_intent
184188

185189
theorem copy_eq (c : Concept α β r) (e : Set α) (i : Set β) (he hi) : c.copy e i he hi = c := by
186190
ext; simp_all

0 commit comments

Comments
 (0)