Debian Codegraph @

test-suite/ssr/simpl_done.v

raw
1 Require Import ssreflect.
2
3 Inductive lit : Set :=
4 | LitP : lit
5 | LitL : lit
6 .
7
8 Inductive val : Set :=
9 | Val : lit -> val.
10
11 Definition tyref :=
12 fun (vl : list val) =>
13 match vl with
14 | cons (Val LitL) (cons (Val LitP) _) => False
15 | _ => False
16 end.
17
18 (** Check that simplification and resolution are performed in the right order
19 by "//=" when several goals are under focus. *)
20 Goal exists vl1 : list val,
21 cons (Val LitL) (cons (Val LitL) nil) = vl1 /\
22 (tyref vl1)
23 .
24 Proof.
25 eexists (cons _ (cons _ _)).
26 split =>//=.
27 Fail progress simpl.
28 Abort.