Skip to content

Commit

Permalink
feat(algebra/module): linear_map.coe_mk (#1290)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisHughes24 authored and mergify[bot] committed Aug 2, 2019
1 parent 1061238 commit 3af92be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/algebra/module.lean
Expand Up @@ -135,6 +135,9 @@ include α

instance : has_coe_to_fun (β →ₗ[α] γ) := ⟨_, to_fun⟩

@[simp] lemma coe_mk (f : β → γ) (h₁ h₂) :
((linear_map.mk f h₁ h₂ : β →ₗ[α] γ) : β → γ) = f := rfl

theorem is_linear : is_linear_map α f := {..f}

@[extensionality] theorem ext {f g : β →ₗ[α] γ} (H : ∀ x, f x = g x) : f = g :=
Expand Down

0 comments on commit 3af92be

Please sign in to comment.