lean4-htt/old_tests/tests/lean/584a.lean

19 lines
342 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.

universe variables u
variables (A : Type u) [H : inhabited A] (x : A)
include H
definition foo := x
#check foo -- A and x are explicit
variables {A x}
definition foo' := x
#check @foo' -- A is explicit, x is implicit
open nat
#check foo nat 10
definition test : @foo' _ 10 = (10:nat) := rfl
set_option pp.implicit true
#print test