lean4-htt/tests/lean/proj_notation.lean.expected.out
2016-09-21 11:32:02 -07:00

27 lines
749 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.

myprod.fst p :
myprod.fst p :
myprod.snd p :
myprod.snd p :
myprod.fst p :
myprod.fst p :
myprod.snd p :
myprod.snd p :
f (myprod.fst p) :
myprod.fst p + myprod.snd p :
λ (c : car), position.x (car.pos c) : car →
proj_notation.lean:34:18: error: invalid projection, 'fst' is not a field of
c
which has type
car
proj_notation.lean:36:19: error: invalid projection, field index must be greater than 0
proj_notation.lean:38:18: error: invalid projection, structure has only 2 field(s)
c
which has type
car
proj_notation.lean:40:18: error: invalid projection, expression is not a structure
n
has type
myprod.fst p :
myprod.snd p :
λ (c : car), position.y (car.pos c) : car →