2014-11-04 02:33:44 +00:00
|
|
|
import logic data.unit
|
|
|
|
|
2014-12-09 20:40:09 +00:00
|
|
|
set_option structure.eta_thm true
|
|
|
|
|
2014-11-04 02:33:44 +00:00
|
|
|
structure point (A : Type) (B : Type) :=
|
|
|
|
mk :: (x : A) (y : B)
|
|
|
|
|
|
|
|
check point.eta
|
|
|
|
|
|
|
|
example (p : point num num) : point.mk (point.x p) (point.y p) = p :=
|
|
|
|
point.eta p
|
|
|
|
|
|
|
|
inductive color :=
|
2015-02-26 01:00:10 +00:00
|
|
|
red | green | blue
|
2014-11-04 02:33:44 +00:00
|
|
|
|
|
|
|
structure color_point (A : Type) (B : Type) extends point A B :=
|
|
|
|
mk :: (c : color)
|