b6722a5d33
When it is used coercions/instances to parent structure are to registered
14 lines
308 B
Text
14 lines
308 B
Text
import logic data.unit
|
|
|
|
structure point (A : Type) (B : Type) :=
|
|
mk :: (x : A) (y : B)
|
|
|
|
structure point2 (A : Type) (B : Type) extends point A B :=
|
|
make
|
|
|
|
structure point3 extends point num num, private point2 num num renaming x→y y→z
|
|
|
|
check point3.mk
|
|
|
|
theorem tst : point3.mk 1 2 3 = point.mk 1 2 :=
|
|
rfl
|