Debian Codegraph @

test-suite/success/rewrule_quality_match.v

raw
1 (* -*- mode: coq; coq-prog-args: ("-allow-rewrite-rules") -*- *)
2
3 #[universes(polymorphic)] Symbol irrel@{q;u} : forall {A : Type@{q;u}}, A -> bool.
4
5 Rewrite Rule id_rew :=
6 | irrel@{SProp|_} _ => true
7 | irrel@{Type|_} _ => false.
8
9 Inductive STrue : SProp := SI.
10
11 Goal True.
12 let c := constr:((irrel SI, irrel tt)) in
13 let cl := eval lazy in c in
14 constr_eq cl (true, false).
15
16 let c := constr:((irrel SI, irrel tt)) in
17 let cl := eval cbv in c in
18 constr_eq cl (true, false).
19
20 let c := constr:((irrel SI, irrel tt)) in
21 let cl := eval cbn in c in
22 constr_eq cl (true, false).
23
24 let c := constr:((irrel SI, irrel tt)) in
25 let cl := eval simpl in c in
26 constr_eq cl (true, false).
27
28 exact I.
29 Qed.