Dataset Viewer
Auto-converted to Parquet Duplicate
prompt
stringlengths
134
5.79k
completion
stringlengths
5
2.16k
meta
stringlengths
120
394
Proof State: ``` 2 goals A : Set a : A l : list A H : forall (a : A) (l1 : list A), In (a, l1) (split_one l) -> Permutation (a :: l1) l a0 : A l1 : list A H0 : (a, l) = (a0, l1) ============================ Permutation (a0 :: l1) (a :: l) goal 2 is: Permutation (a0 :: l1) (a :: l) ``` Comm...
injection H0; intros H1 H2; rewrite H2, H1; auto. ```
{"final_commit":"82eb0678991955dfa8f12720d652ad5adb465c3e","project":"sudoku","repair_file":"\/data\/coq-pearls\/repairs\/sudoku\/repair-sudoku-b5543771d6bdeab13ec58ac6c8d281815d96ed62-82eb0678991955dfa8f12720d652ad5adb465c3e-8_15_2-8_15_2-35.git.json","initial_commit":"b5543771d6bdeab13ec58ac6c8d281815d96ed62","file":...
Ongoing Proof History: ``` Proof. intros n m p Hp H. apply gcd_unique; trivial. - apply H. apply divide_refl. ``` Proof State: ``` This subproof is complete, but there are some unfocused goals. Focus next goal with bullet -. 2 subgoals subgoal 1 is: (p | m) subgoal 2 is: forall q : t, (q | n) -> (q | m) -> (q | p) ...
- ```
{"package":"coq","file":"\/home\/tpr\/.opam\/PackageTable~8.13~2022.01.csv.formatted\/lib\/coq\/theories\/Numbers\/NatInt\/NZGcd.v"}
Proof State: ``` 1 subgoal E : Type -> Type R : Type S : Type classicT : forall P : Type, P + (P -> False) r : itrace E S -> itrace E R -> Prop CIH : forall (b : itrace E R) (t : itree E S) (f : S -> itree E R), b ⊑ ITree.bind t f -> r (peel b t) b b : itrace E R t : itree E S f : S -> itre...
eapply <LOOKUP>trace_prefix_vis_evans : forall (E : Type -> Type) (R S : Type) (r : itrace E S -> itrace E R -> Prop) (A0 : Type) (ev : E A0) (ans : A0) (k : unit -> itree (EvAns E) R) (k' : A0 -> itree E S) (t0 : itree E S) (f : S -> itree E R), (forall (a : unit) (b : A0), RAnsRef E unit A0 (evans A0 ev ans) a ev b -...
{"final_commit":"8fcf6f5f81ec9289d56e777b3885e715b3328486","project":"InteractionTrees","repair_file":"\/data\/coq-pearls\/repairs\/InteractionTrees\/repair-InteractionTrees-8447a4e3e92c94e5ec1f23f35b6ecd63fae0c880-8fcf6f5f81ec9289d56e777b3885e715b3328486-8_10_2-8_12_2-83.git.json","initial_commit":"8447a4e3e92c94e5ec1...
Ongoing Proof History: ``` Proof. induction p. - intro x. simpl. destruct (stop (f x)) eqn:des1. exists xH. split. reflexivity. split. ``` Proof State: ``` 3 subgoals X : Type f : X → X stop : X → bool p : positive IHp : ∀ x : X, ∃ q : positive, iterate_stop p x ≡ iterate q x ...
intros. ```
{"package":"coq-corn","file":"\/home\/tpr\/.opam\/PackageTable~8.13~2022.01.csv.formatted\/lib\/coq\/user-contrib\/CoRN\/reals\/fast\/CRstreams.v"}
Proof State: ``` 1 subgoal A : Type t1, t2 : btree A l1, l2, l3 : list (btree A) H : ordered_cover l1 t1 H0 : forall l2 : list (btree A), length l1 = length l2 -> exists t2 : btree A, subst_pred l1 l2 t1 t2 H1 : ordered_cover l2 t2 H2 : forall l3 : list (btree A), length l2 = length l3 ->...
case (H2 (<LOOKUP>skipn : forall A : Type, nat -> list A -> list A</LOOKUP> (<LOOKUP>length : forall A : Type, list A -> nat</LOOKUP> l1) l0)); auto. ```
{"final_commit":"b6befe10be8f4acefcd6424a3eec659dbd39c0c4","project":"huffman","repair_file":"\/data\/coq-pearls\/repairs\/huffman\/repair-huffman-6e3f37b2113e34f74c6b5a6ff2c7346a9cdf9e4e-b6befe10be8f4acefcd6424a3eec659dbd39c0c4-8_11_2-8_11_2-18.git.json","initial_commit":"6e3f37b2113e34f74c6b5a6ff2c7346a9cdf9e4e","fil...
Proof State: ``` 1 subgoal X, Y : MetricSpace XY := ProductMS X Y : MetricSpace f : X --> Complete Y plX : PrelengthSpace X plFEX : PrelengthSpace (FinEnum X) x : Complete X y : Complete Y s : Compact X H0 : inCompact x s H1 : msp_eq y (Cbind plX f x) ============================ inCompact (C...
apply <LOOKUP>CompactGraph_b_correct1 : forall [plX : PrelengthSpace X] (plFEX : PrelengthSpace (FinEnum X)) [x : Complete X] [s : Compact X], inCompact x s -> inCompact (Couple (x, Cbind plX f x)) (CompactGraph_b plFEX s)</LOOKUP>. ```
{"package":"coq-corn","file":"\/home\/tpr\/.opam\/PackageTable~8.13~2022.01.csv.formatted\/lib\/coq\/user-contrib\/CoRN\/metric2\/Graph.v"}
Commit Diff: ``` diff --git a/theories/Basics/CategoryFacts.v b/theories/Basics/CategoryFacts.v index 732b8d2..a684e54 100644 --- a/theories/Basics/CategoryFacts.v +++ b/theories/Basics/CategoryFacts.v @@ -121,0 +122,13 @@ Qed. +Context {t : obj}. +Context {Terminal_t : Terminal C t}. +Context {TerminalObject_t : Termi...
unfold case_. ```
{"final_commit":"81a1ac45e6eac7285942c92f0079e632d7200904","project":"InteractionTrees","repair_file":"\/data\/coq-pearls\/repairs\/InteractionTrees\/repair-InteractionTrees-440b18da2c80560f3454b2cbc1736209a76d64ad-81a1ac45e6eac7285942c92f0079e632d7200904-8_10_2-8_10_2-3.git.json","initial_commit":"440b18da2c80560f3454...
Ongoing Proof History: ``` Proof. intro. ``` Proof State: ``` 1 subgoal I : interval pI : proper I F, G : PartFunct IR diffF : Diffble I pI F diffG : Diffble I pI G X : bnd_away_zero_in_P G I ============================ Diffble I pI (F {/} G) ``` Next Tactic: ```
apply <LOOKUP>Diffble_wd : forall (I : interval) (pI : proper I) (F H : PartFunct IR), Feq I F H -> Diffble I pI F -> Diffble I pI H</LOOKUP> with (F{*}{1/}G). ```
{"package":"coq-corn","file":"\/home\/tpr\/.opam\/PackageTable~8.13~2022.01.csv.formatted\/lib\/coq\/user-contrib\/CoRN\/ftc\/MoreFunctions.v"}
Ongoing Proof History: ``` Proof. intros C HnotEM. set (R := fun A b => A /\ true = b \/ ~ A /\ false = b). assert (H : exists f : Prop -> bool, (forall A:Prop, R A (f A))). apply unique_choice. intro A. destruct (classic A) as [Ha| Hnota]. exists true; split. left; split; [ assumption | reflexivity ]. intros y [[_ Hy]...
destruct H as [f Hf]. ```
{"package":"coq","file":"\/home\/tpr\/.opam\/PackageTable~8.13~2022.01.csv.formatted\/lib\/coq\/theories\/Logic\/ClassicalUniqueChoice.v"}
Ongoing Proof History: ``` Proof. repeat red. intros. subst. split. - revert_until y1. pcofix CIH. intros. pstep. - punfold H1. + punfold H0. - red in H1. + red in H0. red. ? hinduction H1 before CIH; intros; eauto. ? + ? apply EqRet. ``` Proof State: ``` 1 subgoal E : Type...
hinduction H0 before CIH; intros; eauto. ```
{"final_commit":"f3853150994e962978fa4cf0ed18dcb8c42e3262","project":"InteractionTrees","repair_file":"\/data\/coq-pearls\/repairs\/InteractionTrees\/repair-InteractionTrees-fbba5fd82470aa824ec0eab20c275063ca38fb75-f3853150994e962978fa4cf0ed18dcb8c42e3262-8_10_2-8_11_2-0.git.json","initial_commit":"fbba5fd82470aa824ec0...
Proof State: ``` 1 subgoal x, y : t H : y <= x ============================ match x ?= y with | Lt => y | _ => x end == x ``` Ongoing Proof History: ``` Proof. intros. unfold max, gmax. ``` Next Tactic: ```
case <LOOKUP>compare_spec : forall x y : t, CompareSpec (x == y) (x < y) (y < x) (x ?= y)</LOOKUP>; auto with relations. ```
{"package":"coq","file":"\/home\/tpr\/.opam\/PackageTable~8.13~2022.01.csv.formatted\/lib\/coq\/theories\/Structures\/GenericMinMax.v"}
Commit Diff: ``` diff --git a/theories/Basics/Basics.v b/theories/Basics/Basics.v index ff16faf..1f991e2 100644 --- a/theories/Basics/Basics.v +++ b/theories/Basics/Basics.v @@ -57,0 +58,2 @@ Definition state (s a : Type) := s -> prod s a. +Definition run_stateT {s m a} (x : stateT s m a) : s -> m (s * a)%type := x. + ...
intros []; constructor; cbv; eauto with itree. ```
{"final_commit":"8fcf6f5f81ec9289d56e777b3885e715b3328486","project":"InteractionTrees","repair_file":"\/data\/coq-pearls\/repairs\/InteractionTrees\/repair-InteractionTrees-8447a4e3e92c94e5ec1f23f35b6ecd63fae0c880-8fcf6f5f81ec9289d56e777b3885e715b3328486-8_10_2-8_12_2-5.git.json","initial_commit":"8447a4e3e92c94e5ec1f...
Ongoing Proof History: ``` apply Rle_pow. unfold C; apply RmaxLess1. replace (4 * N)%nat with (2 * (2 * N))%nat; [ idtac | ring ]. apply (fun m n p:nat => mult_le_compat_l p n m). replace (2 * N)%nat with (S (N + pred N)). apply le_n_S. apply plus_le_compat_l; assumption. rewrite pred_of_minus. lia. apply Rle_trans wit...
apply <LOOKUP>INR_fact_neq_0 : forall n : nat, INR (fact n) <> 0</LOOKUP>. ```
{"package":"coq","file":"\/home\/tpr\/.opam\/PackageTable~8.13~2022.01.csv.formatted\/lib\/coq\/theories\/Reals\/Cos_plus.v"}
Commit Diff: ``` diff --git a/Reachability.v b/Reachability.v index 5c47635..f125ad9 100644 --- a/Reachability.v +++ b/Reachability.v @@ -18,5 +18,20 @@ Import Eval.Evaluator. - -Inductive reachability : Store -> Loc -> Loc ->Prop := |rch_heap : forall l σ, l < (dom σ) -> (reachability σ -l l) |rch_trans : forall l0 l1...
eapply <LOOKUP>getObj_last_empty : forall (σ : list (ClN * list Value)) (C C' : ClN) (ω : Env) (l f : nat) (v : Value), getObj (σ ++ [(C, [])]) l = Some (C', ω) -> getVal ω f = Some v -> getObj σ l = Some (C', ω) /\ l < dom σ</LOOKUP> in H2; eauto; steps. ```
{"final_commit":"2dfd0b6c87b32ebd6bd1dd83e76e654e73dd3696","project":"celsius","repair_file":"\/data\/coq-pearls\/repairs\/celsius\/repair-celsius-a726b4d083864e7cb26d15bceeb49fbc418b2811-2dfd0b6c87b32ebd6bd1dd83e76e654e73dd3696-8_13_2-8_13_2-16.git.json","initial_commit":"a726b4d083864e7cb26d15bceeb49fbc418b2811","fil...
Ongoing Proof History: ``` Proof. intros. unfold decode_val in H. revert H; case_eq (getN 4 i b); intros. inv H. unfold getN in H. destruct l; inv H. destruct (proj_bytes (ZMap.get i b :: ZMap.get (i + 1) b :: ZMap.get (i + 1 + 1) b :: ZMap.get (i + 1 + 1 + 1) b :: nil)) eqn:PB. * simpl proj_bytes in PB. destruct (ZMap...
rewrite H in H4. ```
{"package":"coq-vst","file":"\/home\/tpr\/.opam\/PackageTable~8.13~2022.01.csv.formatted\/lib\/coq\/user-contrib\/VST\/veric\/initialize.v"}
Commit Diff: ``` diff --git a/theories/Basics/Basics.v b/theories/Basics/Basics.v index ff16faf..1f991e2 100644 --- a/theories/Basics/Basics.v +++ b/theories/Basics/Basics.v @@ -57,0 +58,2 @@ Definition state (s a : Type) := s -> prod s a. +Definition run_stateT {s m a} (x : stateT s m a) : s -> m (s * a)%type := x. + ...
hinduction EQ before <LOOKUP>R : A -> B -> Prop</LOOKUP>; intros; try discriminate; pclearbot; inv Heqi. ```
{"final_commit":"8fcf6f5f81ec9289d56e777b3885e715b3328486","project":"InteractionTrees","repair_file":"\/data\/coq-pearls\/repairs\/InteractionTrees\/repair-InteractionTrees-1158ff1cbb628aeaa69973bf098058744d458c36-8fcf6f5f81ec9289d56e777b3885e715b3328486-8_10_2-8_12_2-92.git.json","initial_commit":"1158ff1cbb628aeaa69...
Ongoing Proof History: ``` Proof. intros until m0. intros NR H8 ? ?. destruct (eq_dec loc (nextblock m0, 0)). * subst loc. unfold initial_core. unfold inflate_initial_mem. rewrite !resource_at_make_rmap. unfold inflate_initial_mem'. rewrite !resource_at_make_rmap. rewrite nextblock_access_empty by (apply Pos2Nat.inj_ge...
destruct (<LOOKUP>eq_block : forall x y : positive, {x = y} + {x <> y}</LOOKUP> b (<LOOKUP>nextblock : mem' -> block</LOOKUP> m0)). ```
{"package":"coq-vst","file":"\/home\/tpr\/.opam\/PackageTable~8.13~2022.01.csv.formatted\/lib\/coq\/user-contrib\/VST\/veric\/initialize.v"}
Proof State: ``` 1 subgoal p : positive x : nat H : p = Pos.of_succ_nat x ============================ (- Pos.to_nat p)%Z = Z.neg p ``` Ongoing Proof History: ``` Proof. intro p. elim (p_is_some_anti_convert p). intros x H. ``` Next Tactic: ```
rewrite H. ```
{"package":"coq-corn","file":"\/home\/tpr\/.opam\/PackageTable~8.13~2022.01.csv.formatted\/lib\/coq\/user-contrib\/CoRN\/logic\/CornBasics.v"}
Ongoing Proof History: ``` Proof. intros. punfold H. unfold eqit_ in H. cbn in *. remember (ITree.bind ma kab) as tl. assert (tl ≅ (ITree.bind ma kab)) by (subst; reflexivity). clear Heqtl. genobs tl tl'. remember (VisF e kxc) as tr. revert ma kab tl Heqtl' H0 kxc Heqtr. induction H....
destruct H0 as (? & ? & ?). ```
{"final_commit":"f4bacabbc5b1556a723e3cb4efb1cd614c156d8f","project":"InteractionTrees","repair_file":"\/data\/coq-pearls\/repairs\/InteractionTrees\/repair-InteractionTrees-f3853150994e962978fa4cf0ed18dcb8c42e3262-f4bacabbc5b1556a723e3cb4efb1cd614c156d8f-8_11_2-8_10_2-13.git.json","initial_commit":"f3853150994e962978f...
Ongoing Proof History: ``` Proof. split; try (split; try apply _). intros ?? E1 ?? E2. now rewrite !le_correct, E1, E2. ``` Proof State: ``` 5 subgoals L : Type Ae : Equiv L Ameet : Meet L H : MeetSemiLattice L H0 : Le L le_correct : ∀ x y : L, x ≤ y ↔ x ⊓ y = x ============================ PreOrder...
split. ```
{"package":"coq-math-classes","file":"\/home\/tpr\/.opam\/PackageTable~8.13~2022.01.csv.formatted\/lib\/coq\/user-contrib\/MathClasses\/orders\/lattices.v"}
Commit Diff: ``` diff --git a/theories/Core/KTreeFacts.v b/theories/Core/KTreeFacts.v index b911a90..32f56a6 100644 --- a/theories/Core/KTreeFacts.v +++ b/theories/Core/KTreeFacts.v @@ -6,2 +6 @@ Require Import -Program Classes.Morphisms -Setoids.Setoid +Classes.Morphisms Setoids.Setoid @@ -24 +23,2 @@ Eq.Eq -Eq.UpToTa...
remember (<LOOKUP>VisF : forall (E : Type -> Type) (R itree X : Type), E X -> (X -> itree) -> itreeF E R itree</LOOKUP> e k3) as y. ```
{"final_commit":"f3853150994e962978fa4cf0ed18dcb8c42e3262","project":"InteractionTrees","repair_file":"\/data\/coq-pearls\/repairs\/InteractionTrees\/repair-InteractionTrees-1fcd2d39e27da8068431211b7952365e163782cc-f3853150994e962978fa4cf0ed18dcb8c42e3262-8_10_2-8_11_2-57.git.json","initial_commit":"1fcd2d39e27da806843...
Commit Diff: ``` diff --git a/ListAux.v b/ListAux.v index 986e88b..769776a 100644 --- a/ListAux.v +++ b/ListAux.v @@ -131,6 +130,0 @@ Qed. -Theorem length_app: forall (l1 l2 : list A), length -(l1 ++ l2) = length l1 + length l2. -Proof. -apply app_length. -Qed. - @@ -278 +272 @@ intros A l1 l2; elim l1; simpl; auto. -i...
repeat (split; auto); case (<LOOKUP>in_indexes : forall i : nat, In i indexes <-> i < size</LOOKUP> x1)... ```
{"final_commit":"5337edcaf31b9f036a0a6651b2f733d3068b8f8f","project":"sudoku","repair_file":"\/data\/coq-pearls\/repairs\/sudoku\/repair-sudoku-427448011e3341d35aa5b9e00f675f6582fcd477-5337edcaf31b9f036a0a6651b2f733d3068b8f8f-8_15_2-8_15_2-36.git.json","initial_commit":"427448011e3341d35aa5b9e00f675f6582fcd477","file":...
Ongoing Proof History: ``` Proof. cut (forall (x1 x2 : Q2), msp_eq x1 x2 -> forall x3 x4 : Q2, msp_eq x3 x4 -> forall y, InFinEnumC y (CentersOfPixels bm x1 x3) -> InFinEnumC y (CentersOfPixels bm x2 x4)). { intro L. split. discriminate. split. intros q H1 abs. contradiction (abs q). split. exact (L x y H x0 y0 H0 q H1...
unfold InFinEnumC. ```
{"package":"coq-corn","file":"\/home\/tpr\/.opam\/PackageTable~8.13~2022.01.csv.formatted\/lib\/coq\/user-contrib\/CoRN\/reals\/fast\/RasterQ.v"}
Ongoing Proof History: ``` Proof. repeat red. intros until T. ginit. gcofix CIH. intros. rewrite !unfold_interp. punfold H1. red in H1. induction H1; intros; subst; pclearbot; simpl. - gstep. constructor. eauto. - gstep. constructor. eauto with paco. - guclo e...
rewrite <LOOKUP>tau_euttge : forall (E : Type -> Type) (R : Type) (t : itree E R), Tau t ≳ t</LOOKUP>, <LOOKUP>unfold_interp : forall (E F : Type -> Type) (R : Type) (f : forall T : Type, E T -> itree F T) (t : itree E R), interp f t ≅ _interp f (observe t)</LOOKUP>. ```
{"final_commit":"4e1301e834381725b933593fcf1f3b973986b630","project":"InteractionTrees","repair_file":"\/data\/coq-pearls\/repairs\/InteractionTrees\/repair-InteractionTrees-66f56a8a4d02a262dbe75a676a4064f18ea7c3a0-4e1301e834381725b933593fcf1f3b973986b630-8_10_2-8_10_2-6.git.json","initial_commit":"66f56a8a4d02a262dbe7...
Proof State: ``` This subproof is complete, but there are some unfocused goals. Focus next goal with bullet -. 3 subgoals subgoal 1 is: x ^Z Z.pos_sub n m = x ^ Pos.to_nat n * / x ^ Pos.to_nat m subgoal 2 is: x ^Z Z.pos_sub m n = / x ^ Pos.to_nat n * x ^ Pos.to_nat m subgoal 3 is: / x ^ Pos.to_nat (n + m) = / x ^ P...
- ```
{"package":"coq","file":"\/home\/tpr\/.opam\/PackageTable~8.13~2022.01.csv.formatted\/lib\/coq\/theories\/Reals\/Rfunctions.v"}
Commit Diff: ``` diff --git a/theories/Core/KTreeFacts.v b/theories/Core/KTreeFacts.v index 32f56a6..b911a90 100644 --- a/theories/Core/KTreeFacts.v +++ b/theories/Core/KTreeFacts.v @@ -6 +6,2 @@ Require Import -Classes.Morphisms Setoids.Setoid +Program Classes.Morphisms +Setoids.Setoid @@ -23,2 +24 @@ Eq.Eq -Eq.UpToTa...
apply H in PR. ```
{"final_commit":"f4bacabbc5b1556a723e3cb4efb1cd614c156d8f","project":"InteractionTrees","repair_file":"\/data\/coq-pearls\/repairs\/InteractionTrees\/repair-InteractionTrees-f3853150994e962978fa4cf0ed18dcb8c42e3262-f4bacabbc5b1556a723e3cb4efb1cd614c156d8f-8_11_2-8_10_2-18.git.json","initial_commit":"f3853150994e962978f...
Commit Diff: ``` diff --git a/theories/Core/KTreeFacts.v b/theories/Core/KTreeFacts.v index 32f56a6..b911a90 100644 --- a/theories/Core/KTreeFacts.v +++ b/theories/Core/KTreeFacts.v @@ -6 +6,2 @@ Require Import -Classes.Morphisms Setoids.Setoid +Program Classes.Morphisms +Setoids.Setoid @@ -23,2 +24 @@ Eq.Eq -Eq.UpToTa...
destruct PR. ```
{"final_commit":"f4bacabbc5b1556a723e3cb4efb1cd614c156d8f","project":"InteractionTrees","repair_file":"\/data\/coq-pearls\/repairs\/InteractionTrees\/repair-InteractionTrees-f3853150994e962978fa4cf0ed18dcb8c42e3262-f4bacabbc5b1556a723e3cb4efb1cd614c156d8f-8_11_2-8_10_2-18.git.json","initial_commit":"f3853150994e962978f...
Ongoing Proof History: ``` intros l1; elim l1; simpl; auto. intros l2 H H0; exists l2; simpl; auto. intros a l H l2 H0 H1; auto. case (in_permutation_ex _ a l2); auto with datatypes. intros l3 Hl3. case (H l3); auto. apply ulist_inv with ( 1 := H0 ); auto. intros b Hb. assert (H2: In b (a :: ...
apply <LOOKUP>perm_trans : forall [A : Type] [l l' l'' : list A], Permutation l l' -> Permutation l' l'' -> Permutation l l''</LOOKUP> with (a :: l3); auto. ```
{"final_commit":"5a29a619b6acc23531ef31506b909056de730bf6","project":"sudoku","repair_file":"\/data\/coq-pearls\/repairs\/sudoku\/repair-sudoku-b5543771d6bdeab13ec58ac6c8d281815d96ed62-5a29a619b6acc23531ef31506b909056de730bf6-8_15_2-8_15_2-7.git.json","initial_commit":"b5543771d6bdeab13ec58ac6c8d281815d96ed62","file":"...
Commit Diff: ``` diff --git a/theories/Aux.v b/theories/Aux.v index d240627..c7e8186 100644 --- a/theories/Aux.v +++ b/theories/Aux.v @@ -27 +26,0 @@ - @@ -30,0 +30 @@ Require Export List. +Export ListNotations. @@ -85,11 +84,0 @@ Hint Resolve le_minus: arith. -Section EqBool. - -Definition eq_bool_dec : forall a b : b...
intros (H8, H9); left; exists []; injection H8. ```
{"final_commit":"6e3f37b2113e34f74c6b5a6ff2c7346a9cdf9e4e","project":"huffman","repair_file":"\/data\/coq-pearls\/repairs\/huffman\/repair-huffman-773c1feea03edc5e845ecafc7c9752fa403e7faf-6e3f37b2113e34f74c6b5a6ff2c7346a9cdf9e4e-8_11_2-8_11_2-27.git.json","initial_commit":"773c1feea03edc5e845ecafc7c9752fa403e7faf","fil...
Commit Diff: ``` diff --git a/theories/Core/KTreeFacts.v b/theories/Core/KTreeFacts.v index b911a90..32f56a6 100644 --- a/theories/Core/KTreeFacts.v +++ b/theories/Core/KTreeFacts.v @@ -6,2 +6 @@ Require Import -Program Classes.Morphisms -Setoids.Setoid +Classes.Morphisms Setoids.Setoid @@ -24 +23,2 @@ Eq.Eq -Eq.UpToTa...
apply <LOOKUP>eqit_inv_Ret : forall (E : Type -> Type) (R1 R2 : Type) (RR : R1 -> R2 -> Prop) (b1 b2 : bool) (r1 : R1) (r2 : R2), eqit RR b1 b2 (Ret r1) (Ret r2) -> RR r1 r2</LOOKUP> in H1; subst. ```
{"final_commit":"7f00358aeb230f7970571fddaa8b256375910c62","project":"InteractionTrees","repair_file":"\/data\/coq-pearls\/repairs\/InteractionTrees\/repair-InteractionTrees-672193e2507cf3326b834f5fa47b7518af829b4b-7f00358aeb230f7970571fddaa8b256375910c62-8_10_2-8_10_2-15.git.json","initial_commit":"672193e2507cf3326b8...
Proof State: ``` 2 goals h, w : nat Eq1 : ulist ref_list Eq2 : length ref_list = size s : list nat H : length s = size * size H1 : sat init_c s HH0 : forall i : nat, i < size -> incl ref_list (row i s) HH1 : forall i : nat, i < size -> incl ref_list (column i s) HH2 : forall i : nat, i < size -> in...
split; auto. ```
{"final_commit":"427448011e3341d35aa5b9e00f675f6582fcd477","project":"sudoku","repair_file":"\/data\/coq-pearls\/repairs\/sudoku\/repair-sudoku-dc8d4294a32dbb6e0a642dc553b64495f27e6d60-427448011e3341d35aa5b9e00f675f6582fcd477-8_15_2-8_15_2-72.git.json","initial_commit":"dc8d4294a32dbb6e0a642dc553b64495f27e6d60","file":...
Commit Diff: ``` diff --git a/src/DblibTactics.v b/src/DblibTactics.v index 2a08b3e..2aa54e9 100644 --- a/src/DblibTactics.v +++ b/src/DblibTactics.v @@ -2,3 +2 @@ Set Implicit Arguments. -Require Import Compare_dec. -Require Import Peano_dec. -Require Import Lia. +Require Export Omega. @@ -12,7 +10,8 @@ Hint Extern 1 ...
destruct e; replace (1 + <LOOKUP>S : nat -> nat</LOOKUP> s) with (<LOOKUP>S : nat -> nat</LOOKUP> (1 + s)) by omega; simpl; f_equal; eauto with omega. ```
{"final_commit":"3de04cadb63c28bfcffb194cf9e64e75a0c1f697","project":"dblib","repair_file":"\/data\/coq-pearls\/repairs\/dblib\/repair-dblib-d4ece98bb63f75c2a53e9d125338454e6e1393b2-3de04cadb63c28bfcffb194cf9e64e75a0c1f697-8_12_2-8_12_2-24.git.json","initial_commit":"d4ece98bb63f75c2a53e9d125338454e6e1393b2","file":"sr...
Ongoing Proof History: ``` Proof. intros. repeat rewrite two_power_nat_two_p in *. unfold Z.divide. exists (two_p (Z.of_nat m - Z.of_nat n)). assert ((Z.of_nat m) = (Z.of_nat m - Z.of_nat n) + Z.of_nat n) by lia. rewrite H0 at 1. assert (Z.of_nat m >= 0) by lia. ``` Proof State: ``` 1 subgoal n, m : nat H : two...
assert (<LOOKUP>Z.of_nat : nat -> Z</LOOKUP> n >= 0) by lia. ```
{"package":"coq-vst","file":"\/home\/tpr\/.opam\/PackageTable~8.13~2022.01.csv.formatted\/lib\/coq\/user-contrib\/VST\/veric\/coqlib4.v"}
Ongoing Proof History: ``` Proof. intros. transitivity (PROPx P (LOCALx Q (EX x:A, SEPx (replace_nth n R (S x))))). * f_equal. f_equal. unfold SEPx. simpl. extensionality rho. revert R H; induction n; destruct R; intros. unfold replace_nth, fold_right. simpl. unfold nth in H. rewrite H; clear H. apply pred_ext. apply e...
simpl. ```
{"package":"coq-vst","file":"\/home\/tpr\/.opam\/PackageTable~8.13~2022.01.csv.formatted\/lib\/coq\/user-contrib\/VST\/floyd\/client_lemmas.v"}
Proof State: ``` 1 subgoal s, s', s'' : t x, y, z : elt ============================ choose empty = None ``` Ongoing Proof History: ``` Proof. ``` Next Tactic: ```
generalize (@choose_1 <LOOKUP>empty : t</LOOKUP>). ```
{"package":"coq","file":"\/home\/tpr\/.opam\/PackageTable~8.13~2022.01.csv.formatted\/lib\/coq\/theories\/FSets\/FSetEqProperties.v"}
Ongoing Proof History: ``` + unfold size; rewrite (mult_comm h); apply mult_lt_plus; auto. - apply div_lt; rewrite mult_comm... + apply div_lt; rewrite mult_comm; auto. apply ref_list_ulist. repeat rewrite (fun x => mult_comm x h). - unfold out in H4; rewrite H4... + unfold out in H4; rewrite H4; auto. - re...
apply <LOOKUP>div_lt : forall a b c : nat, a < b * c -> div a b < c</LOOKUP>; rewrite (mult_comm w); auto. ```
{"final_commit":"427448011e3341d35aa5b9e00f675f6582fcd477","project":"sudoku","repair_file":"\/data\/coq-pearls\/repairs\/sudoku\/repair-sudoku-dc8d4294a32dbb6e0a642dc553b64495f27e6d60-427448011e3341d35aa5b9e00f675f6582fcd477-8_15_2-8_15_2-16.git.json","initial_commit":"dc8d4294a32dbb6e0a642dc553b64495f27e6d60","file":...
Proof State: ``` 1 subgoal E : Type -> Type R : Type r1, r2 : R ============================ Ret r1 ≈ Ret r2 -> r1 = r2 ``` Commit Diff: ``` diff --git a/theories/Core/KTreeFacts.v b/theories/Core/KTreeFacts.v index b911a90..32f56a6 100644 --- a/theories/Core/KTreeFacts.v +++ b/theories/Core/KTreeFacts.v ...
apply ITree.Eq.Eq.eqit_inv_Ret. ```
{"final_commit":"7f00358aeb230f7970571fddaa8b256375910c62","project":"InteractionTrees","repair_file":"\/data\/coq-pearls\/repairs\/InteractionTrees\/repair-InteractionTrees-672193e2507cf3326b834f5fa47b7518af829b4b-7f00358aeb230f7970571fddaa8b256375910c62-8_10_2-8_10_2-58.git.json","initial_commit":"672193e2507cf3326b8...
Ongoing Proof History: ``` Proof. ``` Proof State: ``` 1 subgoal R : ringType a : R ============================ 'X - a%:P = [:: - a; 1] ``` Next Tactic: ```
by rewrite -['X]<LOOKUP>mul1r : forall [R : ringType], left_id 1 *%R</LOOKUP> -<LOOKUP>polyCN : {morph polyC : c / - c >-> - c}</LOOKUP> -<LOOKUP>cons_poly_def : forall p a, cons_poly a p = p * 'X + a%:P</LOOKUP> <LOOKUP>polyseq_cons : forall c p, cons_poly c p = (if ~~ nilp p then c :: p else c%:P)</LOOKUP> <LOOKUP>po...
{"package":"coq-mathcomp-algebra","file":"\/home\/tpr\/.opam\/PackageTable~8.13~2022.01.csv.formatted\/lib\/coq\/user-contrib\/mathcomp\/algebra\/poly.v"}
Proof State: ``` 3 focused subgoals (shelved: 4) f : R -> R r, r1 : R r2 : Rlist H0 : forall (l2 lf1 lf2 : Rlist) (a b : R), a <= b -> adapted_couple f a b (r1 :: r2) lf1 -> adapted_couple_opt f a b l2 lf2 -> Int_SF lf1 (r1 :: r2) = Int_SF lf2 l2 l2 : Rlist r3 : R lf1 : Rlis...
apply H. ```
{"package":"coq","file":"\/home\/tpr\/.opam\/PackageTable~8.13~2022.01.csv.formatted\/lib\/coq\/theories\/Reals\/RiemannInt_SF.v"}
Proof State: ``` 1 subgoal E : Type -> Type S : Type R : Type A : Type e0 : E A ans : A ks : unit -> itrace E S k2 : unit -> itree (EvAns E) S REL : forall v : unit, paco2 (eqit_ eq true true id) bot2 (ks v) (k2 v) m2 : itree (EvAns E) S r : itrace E R -> itrace E S -> Prop k : unit -> itr...
eapply CIH; eauto with itree. ```
{"final_commit":"8fcf6f5f81ec9289d56e777b3885e715b3328486","project":"InteractionTrees","repair_file":"\/data\/coq-pearls\/repairs\/InteractionTrees\/repair-InteractionTrees-1158ff1cbb628aeaa69973bf098058744d458c36-8fcf6f5f81ec9289d56e777b3885e715b3328486-8_10_2-8_12_2-76.git.json","initial_commit":"1158ff1cbb628aeaa69...
Commit Diff: ``` diff --git a/theories/Basics/Basics.v b/theories/Basics/Basics.v index ff16faf..1f991e2 100644 --- a/theories/Basics/Basics.v +++ b/theories/Basics/Basics.v @@ -57,0 +58,2 @@ Definition state (s a : Type) := s -> prod s a. +Definition run_stateT {s m a} (x : stateT s m a) : s -> m (s * a)%type := x. + ...
eapply CIH; eauto with itree. ```
{"final_commit":"8fcf6f5f81ec9289d56e777b3885e715b3328486","project":"InteractionTrees","repair_file":"\/data\/coq-pearls\/repairs\/InteractionTrees\/repair-InteractionTrees-1158ff1cbb628aeaa69973bf098058744d458c36-8fcf6f5f81ec9289d56e777b3885e715b3328486-8_10_2-8_12_2-75.git.json","initial_commit":"1158ff1cbb628aeaa69...
Proof State: ``` 1 subgoal m, n : nat p : t m IHn : t (n + m) ============================ t (S n + m) ``` Ongoing Proof History: ``` Proof. induction n as [|n IHn]. - exact p. - ``` Next Tactic: ```
exact ((fix LS k (<LOOKUP>p : t m</LOOKUP>: <LOOKUP>t : nat -> Set</LOOKUP> k) := match <LOOKUP>p : t m</LOOKUP> with |@F1 k' => @F1 (<LOOKUP>S : nat -> nat</LOOKUP> k') |FS p' => <LOOKUP>FS : forall {n : nat}, t n -> t (S n)</LOOKUP> (LS _ p') end) _ IHn). ```
{"package":"coq","file":"\/home\/tpr\/.opam\/PackageTable~8.13~2022.01.csv.formatted\/lib\/coq\/theories\/Vectors\/Fin.v"}
Proof State: ``` 1 subgoal S : ident -> Prop i : ident H : ~ S i ============================ closed_wrt_vars S (fun rho : environ => env_set (globals_only rho) ret_temp (eval_id i rho)) ``` Ongoing Proof History: ``` Proof. intros. unfold get_result1. simpl. ``` Next Tactic: ```
hnf; intros. ```
{"package":"coq-vst","file":"\/home\/tpr\/.opam\/PackageTable~8.13~2022.01.csv.formatted\/lib\/coq\/user-contrib\/VST\/floyd\/closed_lemmas.v"}
Ongoing Proof History: ``` Proof. induction n; destruct a; simpl in *; intros; auto. - exfalso; omega. + exfalso; lia. f_equal. eapply IHn; eauto. ? omega. ? Qed. ``` Commit Diff: ``` diff --git a/examples/ConsiderDemo.v b/examples/ConsiderDemo.v index 2151e52..9490a21 100644 --- a/examples/ConsiderDem...
lia. ```
{"final_commit":"8f0f0228332007a1b73abb01fb9bf828023007fa","project":"coq-ext-lib","repair_file":"\/data\/coq-pearls\/repairs\/coq-ext-lib\/repair-coq-ext-lib-7532d92d1d6a9d7c9c45e111766f65421f6e09ba-8f0f0228332007a1b73abb01fb9bf828023007fa-8_12_2-8_14_1-2.git.json","initial_commit":"7532d92d1d6a9d7c9c45e111766f65421f6...
Ongoing Proof History: ``` Proof. induction e; simpl; intros. - - replace n with k by lia. + replace n with k by omega. assumption. - ? eauto using agree_insert with lia. ? Qed. ``` Commit Diff: ``` diff --git a/src/DblibTactics.v b/src/DblibTactics.v index 2a08b3e..2aa54e9 100644 --- a/src/DblibTac...
eauto using <LOOKUP>agree_insert : forall [A : Type] [e1 e2 : env A] [k : nat], agree e1 e2 k -> forall (x : nat) (o : option A), x <= k -> agree (raw_insert x o e1) (raw_insert x o e2) (1 + k)</LOOKUP> with omega. ```
{"final_commit":"3de04cadb63c28bfcffb194cf9e64e75a0c1f697","project":"dblib","repair_file":"\/data\/coq-pearls\/repairs\/dblib\/repair-dblib-d4ece98bb63f75c2a53e9d125338454e6e1393b2-3de04cadb63c28bfcffb194cf9e64e75a0c1f697-8_12_2-8_12_2-36.git.json","initial_commit":"d4ece98bb63f75c2a53e9d125338454e6e1393b2","file":"sr...
Proof State: ``` 4 subgoals x, h, eps, l1, alp_f2, alp_f2t2 : R eps_f2 : posreal f2 : R -> R H : 0 < eps H0 : f2 x <> 0 H1 : f2 (x + h) <> 0 H2 : forall a : R, Rabs a < alp_f2t2 -> Rabs (f2 (x + a) - f2 x) < Rabs (eps * (f2 x)² / (8 * l1)) H3 : forall a : R, Rabs a < Rmin eps_f2 ...
replace 8 with (4 * 2); [ idtac | ring ]. ```
{"package":"coq","file":"\/home\/tpr\/.opam\/PackageTable~8.13~2022.01.csv.formatted\/lib\/coq\/theories\/Reals\/Ranalysis2.v"}
Proof State: ``` 1 subgoal n : nat r : AV.address -> resource m1, m2 : ghost s2 : {g : ghost.Ghost & {a : ghost.G | ghost.valid a}} p2 : preds g0 : list (option ({g : ghost.Ghost & {a : ghost.G | ghost.valid a}} * preds)) IHghost_join : forall g1 : ghost, ghost_fmap (approx...
inv H2. ```
{"package":"coq-vst","file":"\/home\/tpr\/.opam\/PackageTable~8.13~2022.01.csv.formatted\/lib\/coq\/user-contrib\/VST\/veric\/rmaps_lemmas.v"}
Proof State: ``` 2 focused subgoals (shelved: 1) n : nat H_strong2 : forall k : nat, k < S n -> forall (e : Expr) (σ σ' : Store) (ρ : Env) (ψ l : Value), (⟦ e ⟧ (σ, ρ, ψ )( k)) = Success l σ' -> wf σ -> (codom ρ ∪ {ψ}) ⪽ σ -> ((σ...
eauto using <LOOKUP>getObj_dom : forall (σ : Store) (o : Obj) (l : nat), getObj σ l = Some o -> l < dom σ</LOOKUP> with rch. ```
{"final_commit":"2dfd0b6c87b32ebd6bd1dd83e76e654e73dd3696","project":"celsius","repair_file":"\/data\/coq-pearls\/repairs\/celsius\/repair-celsius-a726b4d083864e7cb26d15bceeb49fbc418b2811-2dfd0b6c87b32ebd6bd1dd83e76e654e73dd3696-8_13_2-8_13_2-17.git.json","initial_commit":"a726b4d083864e7cb26d15bceeb49fbc418b2811","fil...
Commit Diff: ``` diff --git a/Div.v b/Div.v index 7e7d694..e83d601 100644 --- a/Div.v +++ b/Div.v @@ -57,2 +57,2 @@ n) p) (c2 := mod n p); try apply mod_lt; auto with arith. -rewrite mult_plus_distr_r; rewrite <- plus_assoc; repeat -rewrite <- div_mod_correct; auto with arith. +rewrite mult_plus_distr_r, <- plus_assoc;...
intros H H0; rewrite (<LOOKUP>Permutation_nil : forall [A : Type] [l : list A], Permutation nil l -> l = nil</LOOKUP> (<LOOKUP>Permutation_sym : forall [A : Type] [l l' : list A], Permutation l l' -> Permutation l' l</LOOKUP> H0)); auto with datatypes. ```
{"final_commit":"82eb0678991955dfa8f12720d652ad5adb465c3e","project":"sudoku","repair_file":"\/data\/coq-pearls\/repairs\/sudoku\/repair-sudoku-b5543771d6bdeab13ec58ac6c8d281815d96ed62-82eb0678991955dfa8f12720d652ad5adb465c3e-8_15_2-8_15_2-37.git.json","initial_commit":"b5543771d6bdeab13ec58ac6c8d281815d96ed62","file":...
Ongoing Proof History: ``` + Proof. ? Proof with auto. ? generalize (ref_list_ulist); intros Eq1. ? generalize (ref_list_length); intros Eq2. ``` Proof State: ``` 1 goal h, w : nat ============================ forall s : list nat, length s = size * size -> sat init_c s <-> sudoku s ``` Commit Diff: ``` d...
generalize (<LOOKUP>ref_list_ulist : ulist ref_list</LOOKUP>); intros Eq1. ```
{"final_commit":"427448011e3341d35aa5b9e00f675f6582fcd477","project":"sudoku","repair_file":"\/data\/coq-pearls\/repairs\/sudoku\/repair-sudoku-dc8d4294a32dbb6e0a642dc553b64495f27e6d60-427448011e3341d35aa5b9e00f675f6582fcd477-8_15_2-8_15_2-23.git.json","initial_commit":"dc8d4294a32dbb6e0a642dc553b64495f27e6d60","file":...
Ongoing Proof History: ``` Proof using A_coll B_coll A_conn B_conn L_AB. exists iso. split. - exact: Bijective can_iso_inv can_iso. - move => x a. apply/B_coll => w. rewrite -[_ (iso x) a]/(delta (iso x) [::a]). by rewrite -delta_cat -!delta_iso_inv !can_iso_inv. - move => x. by rewrite -[iso x]/(delta _ [::]) delta_is...
apply/B_coll => w. ```
{"package":"coq-reglang","file":"\/home\/tpr\/.opam\/PackageTable~8.13~2022.01.csv.formatted\/lib\/coq\/user-contrib\/RegLang\/minimization.v"}
Proof State: ``` 1 subgoal cs : compspecs Qtemp : PTree.t val Qvar : PTree.t (type * val) GV : option globals a : expr Delta : tycontext P : list Prop Q : list localdef R, R' : list mpred fs : funspec argsig : list type retty' : type cc : calling_convention ts : list Type A : rmap...
repeat rewrite <LOOKUP>denote_tc_assert_andp : forall {CS : compspecs} (a b : tc_assert), denote_tc_assert (tc_andp a b) = denote_tc_assert a && denote_tc_assert b</LOOKUP>; simpl. ```
{"package":"coq-vst","file":"\/home\/tpr\/.opam\/PackageTable~8.13~2022.01.csv.formatted\/lib\/coq\/user-contrib\/VST\/floyd\/call_lemmas.v"}
Ongoing Proof History: ``` Proof. unfold map_default_eq, interp_map. repeat intro. revert x y H s1 s2 H0. einit. ecofix CH. intros. rewrite! unfold_interp_state. punfold H0. red in H0. revert s1 s2 H1. induction H0; intros; subst; simpl; pclearbot. - eret. - etau. - ...
red; cbn. ```
{"final_commit":"440b18da2c80560f3454b2cbc1736209a76d64ad","project":"InteractionTrees","repair_file":"\/data\/coq-pearls\/repairs\/InteractionTrees\/repair-InteractionTrees-fe0513e4d0c57354d47c6ed811e0d6a0ce65670d-440b18da2c80560f3454b2cbc1736209a76d64ad-8_10_2-8_10_2-1.git.json","initial_commit":"fe0513e4d0c57354d47c...
Proof State: ``` 6 subgoals h : R H : Rabs h <= 1 H0 : 0 <= 1 + h Hlt : h < 0 ============================ sqrt (1 + h)² - 1 < 0 subgoal 2 is: sqrt (1 + h) - 1 < 0 subgoal 3 is: Rabs (sqrt (1 + h) - 1) <= Rabs (sqrt (1 + h)² - 1) subgoal 4 is: Rabs (sqrt (1 + h) - 1) <= Rabs (sqrt (1 + h)² - 1) subgo...
apply <LOOKUP>Rplus_lt_reg_l : forall r r1 r2 : R, r + r1 < r + r2 -> r1 < r2</LOOKUP> with 1; rewrite <LOOKUP>Rplus_0_r : forall r : R, r + 0 = r</LOOKUP>; rewrite <LOOKUP>Rplus_comm : forall r1 r2 : R, r1 + r2 = r2 + r1</LOOKUP>; unfold Rminus; rewrite <LOOKUP>Rplus_assoc : forall r1 r2 r3 : R, r1 + r2 + r3 = r1 + (r...
{"package":"coq","file":"\/home\/tpr\/.opam\/PackageTable~8.13~2022.01.csv.formatted\/lib\/coq\/theories\/Reals\/Sqrt_reg.v"}
Ongoing Proof History: ``` Proof. intros. apply semax_seq_inv in H. destruct H as [Q [? ?]]. eapply (AuxDefs.semax_loop _ P Q). ``` Proof State: ``` 2 subgoals CS : compspecs Espec : OracleKind Delta : tycontext P : environ -> mpred body, incr : statement R : ret_assert Q : environ -> mpred H : s...
+ ```
{"package":"coq-vst","file":"\/home\/tpr\/.opam\/PackageTable~8.13~2022.01.csv.formatted\/lib\/coq\/user-contrib\/VST\/floyd\/SeparationLogicAsLogic.v"}
Commit Diff: ``` diff --git a/theories/Aux.v b/theories/Aux.v index d240627..c7e8186 100644 --- a/theories/Aux.v +++ b/theories/Aux.v @@ -27 +26,0 @@ - @@ -30,0 +30 @@ Require Export List. +Export ListNotations. @@ -85,11 +84,0 @@ Hint Resolve le_minus: arith. -Section EqBool. - -Definition eq_bool_dec : forall a b : b...
replace (l2 ++ a :: l) with ((l2 ++ a :: []) ++ l). ```
{"final_commit":"6e3f37b2113e34f74c6b5a6ff2c7346a9cdf9e4e","project":"huffman","repair_file":"\/data\/coq-pearls\/repairs\/huffman\/repair-huffman-773c1feea03edc5e845ecafc7c9752fa403e7faf-6e3f37b2113e34f74c6b5a6ff2c7346a9cdf9e4e-8_11_2-8_11_2-4.git.json","initial_commit":"773c1feea03edc5e845ecafc7c9752fa403e7faf","file...
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
3