Debian Codegraph @

test-suite/bugs/bug_5709.v

raw
1 Set Primitive Projections.
2
3 Record ofeT := OfeT { ofe_car :> Type; }.
4
5 Unset Primitive Projections.
6
7 Axiom dist : forall {A}, A -> Prop.
8
9 Record cFunctor := CFunctor {
10 cFunctor_car : ofeT -> ofeT;
11 cFunctor_map : forall A : ofeT, cFunctor_car A;
12 }.
13
14 Definition iprod {A} (B : A -> ofeT) := forall x, B x.
15
16 Canonical Structure iprodC A (B : A -> ofeT) : ofeT := OfeT (iprod B).
17
18 Definition iprodC_map {A} {B : A -> ofeT} (f : forall x, B x) : iprodC A B := f.
19
20 Axiom iprodC_map_ne : forall {A} {B : A -> ofeT} x, dist (@iprodC_map A B x).
21
22 Definition iprodCF {C} (F : cFunctor) : cFunctor := {|
23 cFunctor_car := fun B => iprodC C (fun c => cFunctor_car F B);
24 cFunctor_map := fun B => iprodC_map (fun c => cFunctor_map F B)
25 |}.
26
27 Lemma iprodCF_contractive {C} (F : cFunctor) (B : ofeT) :
28 dist (@cFunctor_map (@iprodCF C F) B).
29 Proof.
30 apply iprodC_map_ne.
31 (* Anomaly "Uncaught exception Retyping.RetypeError(4)." Please report at http://coq.inria.fr/bugs/. *)
32 Qed.