We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
refl_trans
trans_refl
trans_assoc
1 parent 8d26c83 commit 08340f4Copy full SHA for 08340f4
1 file changed
Mathlib/Logic/Embedding/Basic.lean
@@ -135,6 +135,18 @@ protected def trans {α β γ} (f : α ↪ β) (g : β ↪ γ) : α ↪ γ :=
135
@[norm_cast]
136
theorem coe_trans {α β γ} (f : α ↪ β) (g : β ↪ γ) : ⇑(f.trans g) = ⇑g ∘ ⇑f := rfl
137
138
+@[simp]
139
+theorem refl_trans {α β : Type*} (f : α ↪ β) : .trans (.refl α) f = f :=
140
+ rfl
141
+
142
143
+theorem trans_refl {α β : Type*} (f : α ↪ β) : .trans f (.refl β) = f :=
144
145
146
+theorem trans_assoc {α β γ δ : Type*} (f : α ↪ β) (g : β ↪ γ) (h : γ ↪ δ) :
147
+ (f.trans g).trans h = f.trans (g.trans h) :=
148
149
150
instance : Trans Embedding Embedding Embedding := ⟨Embedding.trans⟩
151
152
@[simp] lemma mk_id {α} : mk id injective_id = .refl α := rfl
0 commit comments