lean4-htt/old_tests/tests/lean/634c.lean
2018-04-10 12:56:55 -07:00

38 lines
959 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.

open nat
section
parameter (X : Type)
definition A {n : } : Type := X
definition B : Type := X
variable {n : }
#check @A n
#check _root_.A nat
#check _root_.A (X × B)
#check @_root_.A (X × B) 10
#check @_root_.A (_root_.B (@_root_.A X n)) n
#check @_root_.A (@_root_.B (@_root_.A nat n)) n
set_option pp.full_names true
#check A
#check _root_.A nat
#check @_root_.A (X × B) 10
#check @_root_.A (@_root_.B (@_root_.A X n)) n
#check @_root_.A (@_root_.B (@_root_.A nat n)) n
set_option pp.full_names false
set_option pp.implicit true
#check @A n
#check @_root_.A nat 10
#check @_root_.A X n
set_option pp.full_names true
#check @_root_.A X n
#check @_root_.A B n
set_option pp.full_names false
#check @_root_.A X n
#check @_root_.A B n
#check @_root_.A (@_root_.B (@A n)) n
#check @_root_.A (@_root_.B (@_root_.A X n)) n
#check @_root_.A (@_root_.B (@_root_.A nat n)) n
#check @A n
end