Debian Codegraph @

test-suite/output/CoercionOnHole.v

raw
1
2 Inductive expr :=
3 | Const: nat -> expr
4 | Add: expr -> expr -> expr.
5
6 Inductive eval: expr -> expr -> Prop :=
7 | EConst: forall n,
8 eval (Const n) (Const n)
9 | EAdd: forall e1 v1 e2 v2,
10 eval e1 (Const v1) ->
11 eval e2 (Const v2) ->
12 eval (Add e1 e2) (Const (v1 + v2)).
13
14 Coercion Const: nat >-> expr.
15
16 Lemma eval_total: forall e, exists v, eval e v.
17 Proof.
18 induction e.
19 - admit.
20 - destruct IHe1 as [v1 IH1].
21 eexists.
22 eapply EAdd.
23 + Fail exact IH1.
24 Abort.