lean4-htt/tests/lean/magical.lean.expected.out
Gabriel Ebner 3746005f5f fix: reject projection (_ : ∃ x, p).2
The inferred type of this projection does not even type check, in general.
2022-03-01 09:00:46 -08:00

8 lines
260 B
Text

magical.lean:2:21-2:56: error: invalid projection, the expression
Exists.intro 1 (Nat.le_refl 1)
is a proposition and has type
∃ x, x ≥ 1
but the projected value is not, it has type
Nat
magical.lean:5:8-5:18: error: (kernel) invalid projection
h.2