Debian Codegraph @

test-suite/success/setoid_unif.v

raw
1 (* An example of unification in rewrite which uses eager substitution
2 of metas (provided by Pierre-Marie).
3
4 Put in the test suite as an indication of what the use metas
5 eagerly flag provides, even though the concrete cases that use it
6 are seldom. Today supported thanks to a new flag for using evars
7 eagerly, after this variant of setoid rewrite started to use clause
8 environments based on evars (fbbe491cfa157da627) *)
9
10 Require Import Setoid.
11
12 Parameter elt : Type.
13 Parameter T : Type -> Type.
14 Parameter empty : forall A, T A.
15 Parameter MapsTo : forall A : Type, elt -> A -> T A -> Prop.
16
17 (* Definition In A x t := exists e, MapsTo A x e t. *)
18 Axiom In : forall A, A -> T A -> Prop.
19 Axiom foo : forall A x, In A x (empty A) <-> False.
20
21 Record R := { t : T unit; s : unit }.
22 Definition Empty := {| t := empty unit; s := tt |}.
23
24 Goal forall x, ~ In _ x (t Empty).
25 Proof.
26 intros x.
27 rewrite foo.
28 Abort.