Skip to content
Snippets Groups Projects
Verified Commit cedb9df5 authored by Paolo G. Giarrusso's avatar Paolo G. Giarrusso
Browse files

Make sum_inhabited_r not a copy of sum_inhabited_l

This existed at least as far back as
iris/stdpp@361308c7, 8 years ago.
parent fe3b9967
No related branches found
No related tags found
No related merge requests found
......@@ -749,8 +749,8 @@ Global Arguments sum_map {_ _ _ _} _ _ !_ / : assert.
Global Instance sum_inhabited_l {A B} (iA : Inhabited A) : Inhabited (A + B) :=
match iA with populate x => populate (inl x) end.
Global Instance sum_inhabited_r {A B} (iB : Inhabited A) : Inhabited (A + B) :=
match iB with populate y => populate (inl y) end.
Global Instance sum_inhabited_r {A B} (iB : Inhabited B) : Inhabited (A + B) :=
match iB with populate y => populate (inr y) end.
Global Instance inl_inj {A B} : Inj (=) (=) (@inl A B).
Proof. injection 1; auto. Qed.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment