Lemma test {A}
(lookup : list A -> nat -> option A)
(opA : option A -> option A -> option A)
(opL : list A -> list A -> list A)
(val : option A -> Prop) :
(forall l1 l2 (i : nat), lookup (opL l1 l2) i = opA (lookup l1 i) (lookup l2 i)) -> forall l1 l2, (forall i : nat, val (lookup (opL l1 l2) i)) -> forall i : nat, val (lookup l1 i). Proof. intros list_lookup_op l1 l2. (* setoid_rewrite list_lookup_op. Undo. *)
#[export] Hint Mode Reflexive ! ! : typeclass_instances.
setoid_rewrite list_lookup_op. Abort.
(* Minimized bug from math-comp*) Module MathComp.
(* File reduced by coq-bug-finder from original input, then from 4170 lines to 77 lines, then from 96 lines to 1135 lines, then from 1139 lines to 101 lines, then from 119 lines to 516 lines, then from 520 lines to 108 lines, then from 123 lines to 158 lines, then from 162 lines to 108 lines, then from 121 lines to 253 lines, then from 257 lines to 109 lines, then from 113 lines to 109 lines *) (* coqc version 8.14+alpha compiled with OCaml 4.12.0
coqtop version 8.14+alpha *) Axiom proof_admitted : False.
Tactic Notation"admit" := abstract case proof_admitted. Require Corelib.ssr.ssreflect.
Lemma mapP s y : reflect (exists2 x, x \in s & y = f x) (y \in map f s).
admit. Defined.
Lemma map_inj_in_uniq s : {in s &, injective f} -> uniq (map f s) = uniq s. Proof. elim: s => //= x s IHs //= injf; congr (~~ _ && _). apply/mapP/idP=> [[y sy /injf] | ]; last byexists x. rewrite mem_head. rewrite mem_behead // => -> //. Abort. End Equality. End MathComp.
Module Iris.
(* File reduced by coq-bug-finder from original input, then from 1726 lines to 63 lines, then from 117 lines to 133 lines, then from 137 lines to 64 lines, then from 115 lines to 134 lines, then from 138 lines to 69 lines, then from 96 lines to 750 lines, then from 752 lines to 101 lines, then from 126 lines to 357 lines, then from 361 lines to 116 lines, then from 140 lines to 190 lines, then from 194 lines to 125 lines, then from 148 lines to 1547 lines, then from 1547 lines to 152 lines, then from 156 lines to 152 lines *) (* coqc version 8.14+alpha compiled with OCaml 4.12.0
coqtop version 8.14+alpha *) Axiom proof_admitted : False.
Tactic Notation"admit" := abstract case proof_admitted. Require Corelib.ssr.ssreflect. Require Corelib.Lists.ListDef. ModuleExport stdpp_DOT_base. ModuleExport stdpp. ModuleExport base. Export Corelib.Classes.Morphisms. Export Corelib.Setoids.Setoid.
Class RelDecision {A B} (R : A -> B -> Prop) :=
decide_rel x y :: Decision (R x y). Notation EqDecision A := (RelDecision (=@{A})).
Class Inj {A B} (R : relation A) (S : relation B) (f : A -> B) : Prop :=
inj x y : S (f x) (f y) -> R x y.
Lemma not_symmetry `{R : relation A, !Symmetric R} x y : ~R x y -> ~R y x.
admit. Defined. End base.
End stdpp.
End stdpp_DOT_base. ModuleExport stdpp_DOT_decidable. ModuleExport stdpp. ModuleExport decidable. Notation cast_if S := (if S thenleft _ elseright _).
ProgramDefinition inj_eq_dec `{EqDecision A} {B} (f : B -> A)
`{!Inj (=) (=) f} : EqDecision B := fun x y => cast_if (decide (f x = f y)).
Solve Obligations with firstorder congruence.
End decidable.
End stdpp.
End stdpp_DOT_decidable. ModuleExport stdpp_DOT_tactics. ModuleExport stdpp. ModuleExport tactics.
End stdpp_DOT_tactics. ModuleExport stdpp. ModuleExport prelude. Export stdpp.tactics.
End prelude. Export Corelib.ssr.ssreflect. Export stdpp.prelude. Set Primitive Projections.
Class Dist A := dist : nat -> relation A. Notation"x ≡{ n }≡ y" := (dist n x y)
(at level 70, n at next level, format "x ≡{ n }≡ y"). Notation NonExpansive f := (forall n, Proper (dist n ==> dist n) f).
Record OfeMixin A `{Equiv A, Dist A} := {
mixin_equiv_dist (x y : A) : x ≡ y <-> forall n, x ≡{n}≡ y;
mixin_dist_equivalence n : Equivalence (@dist A _ n);
mixin_dist_S n (x y : A) : x ≡{S n}≡ y -> x ≡{n}≡ y
}.
Section ofe_mixin.
Context {A : ofe}. Implicit Types x y : A. Lemma equiv_dist x y : x ≡ y <-> forall n, x ≡{n}≡ y.
admit. Defined. GlobalInstance dist_equivalence n : Equivalence (@dist A _ n).
admit. Defined. End ofe_mixin.
Record chain (A : ofe) := {
chain_car :> nat -> A;
chain_cauchy n i : n <= i -> chain_car i ≡{n}≡ chain_car n
}.
ProgramDefinition chain_map {A B : ofe} (f : A -> B)
`{!NonExpansive f} (c : chain A) : chain B :=
{| chain_car n := f (c n) |}.
Next Obligation.
admit. Defined.
Notation Compl A := (chain A%type -> A). Class Cofe (A : ofe) := {
compl : Compl A;
conv_compl n c : compl c ≡{n}≡ c n;
}.
Lemma compl_chain_map `{Cofe A, Cofe B} (f : A -> B) c `(NonExpansive f) :
compl (chain_map f c) ≡ f (compl c). Proof. apply equiv_dist=>n. rewrite !conv_compl. Abort. End stdpp. End Iris.
Module SSr.
(* File reduced by coq-bug-finder from original input, then from 451 lines to 35 lines, then from 99 lines to 1013 lines, then from 1016 lines to 85 lines, then from 99 lines to 206 lines, then from 209 lines to 101 lines, then from 114 lines to 360 lines, then from 363 lines to 185 lines, then from 198 lines to 330 lines, then from 334 lines to 185 lines, then from 189 lines to 185 lines *) (* coqc version 8.14+alpha compiled with OCaml 4.12.0
coqtop version 8.14+alpha *) Axiom proof_admitted : False.
Tactic Notation"admit" := abstract case proof_admitted. Require Corelib.ssr.ssreflect.
Record structure : Type := Structure {
val : Type; set := val -> Prop;
rel := val -> set;
le : rel; sup : set -> val;
add : val -> val -> val;
zero : val;
opp : val -> val;
mul : val -> val -> val;
one : val;
inv : val -> val
}.
Definition eq R : rel R := fun x y => le x y /\ le y x.
Definition ub R (E : set R) : set R := fun z => forall y, E y -> le y z.
Definition down R (E : set R) : set R := fun x => exists2 y, E y & le x y.
Definition nonempty R (E : set R) : Prop := exists x, E x. Definition has_ub R (E : set R) : Prop := nonempty (ub E). Definition has_sup R (E : set R) : Prop := nonempty E /\ has_ub E.
Record axioms R : Prop := Axioms {
le_reflexive (x : val R) :
le x x;
le_transitive (x y z : val R) :
le x y -> le y z -> le x z;
sup_upper_bound (E : set R) :
has_sup E -> ub E (sup E);
sup_total (E : set R) (x : val R) :
has_sup E -> down E x \/ le (sup E) x;
add_monotone (x y z : val R) :
le y z -> le (add x y) (add x z);
add_commutative (x y : val R) :
eq (add x y) (add y x);
add_associative (x y z : val R) :
eq (add x (add y z)) (add (add x y) z);
add_zero_left (x : val R) :
eq (add (zero R) x) x;
add_opposite_right (x : val R) :
eq (add x (opp x)) (zero R);
mul_monotone x y z :
le (zero R) x -> le y z -> le (mul x y) (mul x z);
mul_commutative (x y : val R) :
eq (mul x y) (mul y x);
mul_associative (x y z : val R) :
eq (mul x (mul y z)) (mul (mul x y) z);
mul_distributive_right (x y z : val R) :
eq (mul x (add y z)) (add (mul x y) (mul x z));
mul_one_left (x : val R) :
eq (mul (one R) x) x;
mul_inverse_right (x : val R) :
~ eq x (zero R) -> eq (mul x (inv x)) (one R);
one_nonzero : ~ eq (one R) (zero R)
}.
Record model : Type := Model {
model_structure : structure;
model_axioms : axioms model_structure
}.
Definition image R S (phi : val R -> val S) (E : set R) (y : val S) :=
exists2 x, E x & eq y (phi x).
Record morphism R S (phi : val R -> val S) : Prop := Morphism {
morph_le x y :
le (phi x) (phi y) <-> le x y;
morph_sup (E : set R) :
has_sup E -> eq (phi (sup E)) (sup (image phi E));
morph_add x y :
eq (phi (add x y)) (add (phi x) (phi y));
morph_zero :
eq (phi (zero R)) (zero S);
morph_opp x :
eq (phi (opp x)) (opp (phi x));
morph_mul x y :
eq (phi (mul x y)) (mul (phi x) (phi y));
morph_one :
eq (phi (one R)) (one S);
morph_inv x :
~ eq x (zero R) -> eq (phi (inv x)) (inv (phi x))
}.
Coercion val : structure >-> Sortclass.
Coercion model_structure : model >-> structure. DelimitScope real_scope with Rval. LocalOpenScope real_scope. Arguments add {R} x%_Rval y%_Rval : rename, simpl never.
Reserved Notation"x == y" (at level 70, no associativity).
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.