4946f55290
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
15 lines
340 B
Text
15 lines
340 B
Text
import data.unit
|
|
open unit
|
|
|
|
constant int : Type.{1}
|
|
constant nat : Type.{1}
|
|
constant izero : int
|
|
constant nzero : nat
|
|
constant isucc : int → int
|
|
constant nsucc : nat → nat
|
|
definition f [coercion] (a : unit) : int := izero
|
|
definition g [coercion] (a : unit) : nat := nzero
|
|
|
|
set_option pp.coercions true
|
|
check isucc star
|
|
check nsucc star
|