lean4-htt/tests/lean/run/class6.lean
2016-09-20 08:32:37 -07:00

19 lines
320 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
inductive t1 : Type
| mk1 : t1
inductive t2 : Type
| mk2 : t2
theorem inhabited_t1 : inhabited t1
:= inhabited.mk t1.mk1
theorem inhabited_t2 : inhabited t2
:= inhabited.mk t2.mk2
attribute [instance] inhabited_t1
attribute [instance] inhabited_t2
theorem T : inhabited (t1 × t2)
:= by apply_instance