Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 1758092

Browse files
committed
feat(data/subtype): subtype.coe_ext
1 parent 9815239 commit 1758092

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

data/subtype.lean

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ protected lemma subtype.eq' : ∀ {a1 a2 : {x // β x}}, a1.val = a2.val → a1
1313
lemma subtype.ext {a1 a2 : {x // β x}} : a1 = a2 ↔ a1.val = a2.val :=
1414
⟨congr_arg _, subtype.eq'⟩
1515

16+
lemma subtype.coe_ext {a1 a2 : {x // β x}} : a1 = a2 ↔ (a1 : α) = a2 :=
17+
subtype.ext
18+
1619
theorem subtype.val_injective : function.injective (@subtype.val _ β) :=
1720
λ a b, subtype.eq'
1821

0 commit comments

Comments
 (0)