File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -224,10 +224,17 @@ section default
224224
225225variable (A B : Type *) [SetLike A B]
226226
227- /-- The order induced from a `SetLike` instance by inclusion. -/
227+ /-- The order induced from a `SetLike` instance by inclusion.
228+
229+ An order defined as `.ofSetLike` will automatically make available an instance
230+ of `IsConcreteLE`.
231+ -/
228232@[reducible] def LE.ofSetLike : LE A where
229233 le := fun H K => ∀ ⦃x⦄, x ∈ H → x ∈ K
230234
235+ instance : letI := LE.ofSetLike A B; IsConcreteLE A B :=
236+ letI := LE.ofSetLike A B; { coe_subset_coe' := Iff.rfl }
237+
231238/-- The partial order induced from a `SetLike` instance by inclusion.
232239
233240A partial order defined as `.ofSetLike` will automatically make available an instance
@@ -238,9 +245,6 @@ of `IsConcreteLE`.
238245 lt s t := letI := LE.ofSetLike A B; s ≤ t ∧ ¬t ≤ s
239246 __ := PartialOrder.lift (SetLike.coe : A → Set B) SetLike.coe_injective
240247
241- instance : letI := PartialOrder.ofSetLike A B; IsConcreteLE A B :=
242- letI := PartialOrder.ofSetLike A B; { coe_subset_coe' := Iff.rfl }
243-
244248end default
245249
246250namespace SetLike
You can’t perform that action at this time.
0 commit comments