lean2/tests/lean/run/rat_coe.lean

17 lines
208 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.

import data.rat
open rat
attribute rat.of_int [coercion]
check (0 : )
check (rat.of_int 0 : )
constant f : → Prop
variable a : nat
check f 0
check f a
set_option pp.coercions true
check f a