Debian Codegraph @

test-suite/bugs/bug_6375.v

raw
1 Goal True.
2 let term := constr:(Nat.add (Nat.mul 0 1) 2 = 2) in
3 let term := lazymatch (eval pattern Nat.add, Nat.mul, S in term) with
4 | ?term _ _ _ => term
5 end in
6 let term := lazymatch term with
7 | fun (a : ?A) (b : ?B) (c : ?C) => ?term
8 => constr:(fun (a : A) (b : B) (c : C) => term)
9 end in
10 idtac term; (* (fun (_ _ : nat -> nat -> nat) (n1 : nat -> nat) =>
11 n1 (n1 0 (n1 0)) (n1 (n1 0)) = n1 (n1 0)) *)
12 assert (H : { T : Type & T }) by abstract (eexists; exact term).
13 (* Error: Illegal application (Non-functional construction):
14 The expression "n1" of type "nat -> nat"
15 cannot be applied to the terms
16 "0" : "nat"
17 "n1 0" : "nat" *)
18 exact I.
19 Defined.