Debian Codegraph @

test-suite/success/PrivateInd.v

raw
1
2
3 Module M.
4 Private Inductive foo := .
5 Definition bar (A:Prop) (_:A=True) (x:foo) : A := match x with end.
6 End M.
7
8 Goal M.foo -> False.
9 Proof.
10 Fail let c := eval cbv in c in
11 match c with
12 context c [True] =>
13 (* ltac context instantiation calls Typing *)
14 let c := context c [False] in
15 exact c
16 end.
17 let c := open_constr:(M.bar False (ltac:(exact_no_check (eq_refl True)))) in
18 let c := eval cbv in c in
19 exact c.
20 (* check no goals remain *)
21 Unshelve.
22 all:fail.
23 Fail Qed.
24 Abort.
25
26 Fail Definition bar := Eval cbv in M.bar.
27
28 Module N.
29 Private Inductive foo := C : nat -> nat -> foo.
30 Definition use x := match x with C a b => a + b end.
31 End N.
32
33 Definition five := N.C 2 3.
34 Definition five' := Eval cbv in N.use five.
35 Check eq_refl : five' = 5.