lean4-htt/tests/lean/run/mk_inhabited1.lean
2016-07-20 21:01:50 -04:00

16 lines
498 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

open tactic
definition nat_inhabited : inhabited nat :=
by mk_inhabited_instance
definition list_inhabited {A : Type} : inhabited (list A) :=
by mk_inhabited_instance
definition prod_inhabited {A B : Type} [inhabited A] [inhabited B] : inhabited (A × B) :=
by mk_inhabited_instance
definition sum_inhabited₁ {A B : Type} [inhabited A] : inhabited (sum A B) :=
by mk_inhabited_instance
definition sum_inhabited₂ {A B : Type} [inhabited B] : inhabited (sum A B) :=
by mk_inhabited_instance