2014-09-04 14:21:03 -07:00
|
|
|
import data.unit
|
|
|
|
open unit
|
2014-11-30 21:16:01 -08:00
|
|
|
namespace play
|
2014-10-02 16:20:52 -07:00
|
|
|
constant int : Type.{1}
|
|
|
|
constant nat : Type.{1}
|
|
|
|
constant izero : int
|
|
|
|
constant nzero : nat
|
|
|
|
constant isucc : int → int
|
|
|
|
constant nsucc : nat → nat
|
2014-09-04 14:21:03 -07:00
|
|
|
definition f [coercion] (a : unit) : int := izero
|
|
|
|
definition g [coercion] (a : unit) : nat := nzero
|
|
|
|
|
2014-09-08 08:30:08 -07:00
|
|
|
set_option pp.coercions true
|
2014-09-04 14:21:03 -07:00
|
|
|
check isucc star
|
|
|
|
check nsucc star
|
2014-11-30 21:16:01 -08:00
|
|
|
end play
|