File: bug_5709.v

package info (click to toggle)
coq 8.20.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 44,116 kB
  • sloc: ml: 234,160; sh: 4,301; python: 3,270; ansic: 2,644; makefile: 882; lisp: 172; javascript: 63; xml: 24; sed: 2
file content (32 lines) | stat: -rw-r--r-- 973 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Set Primitive Projections.

Record ofeT := OfeT { ofe_car :> Type; }.

Unset Primitive Projections.

Axiom dist : forall {A}, A -> Prop.

Record cFunctor := CFunctor {
  cFunctor_car : ofeT -> ofeT;
  cFunctor_map : forall A : ofeT, cFunctor_car A;
}.

Definition iprod {A} (B : A -> ofeT) := forall x, B x.

Canonical Structure iprodC A (B : A -> ofeT) : ofeT := OfeT (iprod B).

Definition iprodC_map {A} {B : A -> ofeT} (f : forall x, B x) : iprodC A B := f.

Axiom iprodC_map_ne : forall {A} {B : A -> ofeT} x, dist (@iprodC_map A B x).

Definition iprodCF {C} (F : cFunctor) : cFunctor := {|
  cFunctor_car := fun B => iprodC C (fun c => cFunctor_car F B);
  cFunctor_map := fun B => iprodC_map (fun c => cFunctor_map F B)
|}.

Lemma iprodCF_contractive {C} (F : cFunctor) (B : ofeT) :
  dist (@cFunctor_map (@iprodCF C F) B).
Proof.
  apply iprodC_map_ne.
  (* Anomaly "Uncaught exception Retyping.RetypeError(4)." Please report at http://coq.inria.fr/bugs/. *)
Qed.