Skip to content

Commit fd940f4

Browse files
committed
Fix warnings
1 parent bbb75f1 commit fd940f4

File tree

76 files changed

+155
-111
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+155
-111
lines changed

embedding/theories/EvalE.v

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ From ConCert.Utils Require Import Env.
88
but (as actually comment in the [monad_utils] says, we
99
should use a real monad library) *)
1010
(* We need some definitions like [All] from utils *)
11+
#[warnings="-notation-incompatible-prefix"]
1112
From MetaCoq.Utils Require Import utils.
1213

1314
From Coq Require Import String.

embedding/theories/Misc.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Section CombineProp.
9494
+ simpl. intros l1 Heq. destruct l1; eauto.
9595
simpl; destruct (rev l1 ++ [a]); reflexivity.
9696
+ simpl. intros l1 Heq. destruct l1 using rev_ind; auto.
97-
repeat rewrite app_length in Heq; simpl in *.
97+
repeat rewrite length_app in Heq; simpl in *.
9898
assert (#|l1| = #|l2|) by lia.
9999
repeat rewrite rev_unit. simpl.
100100
rewrite IHl2 by auto.

embedding/theories/TranslationUtils.v

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ From ConCert.Embedding Require Utils.
33
From ConCert.Embedding Require Import PCUICTranslate.
44
From ConCert.Embedding Require Import PCUICtoTemplate.
55
From ConCert.Utils Require Import Env.
6+
#[warnings="-notation-incompatible-prefix"]
67
From MetaCoq.Template Require Import All.
78

89
From Coq Require Import String.

embedding/theories/pcuic/PCUICCorrectness.v

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Proof.
9595
assert (ty_expr_env_ok (exprs ρ # [e ~> of_val_i v0]) 0 e1_2).
9696
{ change (exprs ρ # [e ~> of_val_i v0]) with (exprs (ρ # [e ~> v0])).
9797
eapply eval_ty_expr_env_ok; eauto with hints. simpl.
98-
replace #|ρ| with (#|exprs ρ|) by apply map_length.
98+
replace #|ρ| with (#|exprs ρ|) by apply length_map.
9999
eapply subst_env_iclosed_n_inv with (n := 1); eauto with hints. }
100100

101101
assert (val_ok Σ1 v0) by (eapply eval_val_ok; eauto with hints).
@@ -135,7 +135,7 @@ Proof.
135135
now rewrite Hres. }
136136
rewrite Hc.
137137
eapply IHn; eauto with hints.
138-
repeat rewrite map_length. unfold PcbvCurr.cstr_arity. propify. lia.
138+
repeat rewrite length_map. unfold PcbvCurr.cstr_arity. propify. lia.
139139
* destruct c.
140140
** (* the closure corresponds to lambda *)
141141
simpl in *. rename e0 into n0.
@@ -300,7 +300,7 @@ Proof.
300300
destruct (resolve_inductive _ _) eqn:HresI; tryfalse.
301301
destruct (lookup_with_ind _ _) eqn:Hfind_i; tryfalse.
302302
destruct p as [nparams cs]. destruct p0 as [i ci]. simpl in *.
303-
rewrite map_length.
303+
rewrite length_map.
304304
destruct_match eqn:Hnparams; tryfalse.
305305
assert (HresC: resolve_constr Σ1 i0 e = Some (nparams,i, ci)).
306306
{ unfold resolve_constr. rewrite HresI. rewrite Hfind_i. reflexivity. }
@@ -330,7 +330,7 @@ Proof.
330330
destruct H2 as [Hdctor?].
331331
eapply PcbvCurr.eval_iota; eauto.
332332
* now eapply map_nth_error.
333-
* cbn. rewrite map_length. unfold PcbvCurr.cstr_arity. propify. lia.
333+
* cbn. rewrite length_map. unfold PcbvCurr.cstr_arity. propify. lia.
334334
* cbn.
335335
unfold etrans_branch.
336336
unfold fun_prod,id; cbn.
@@ -343,8 +343,8 @@ Proof.
343343
rewrite Heq; cbn.
344344
assert (Hvass : forall xs, context_assumptions (map (fun '(nm, ty) => vass (aRelevant (nNamed (TCString.of_string nm))) ty) xs) = #|xs|).
345345
{ intros; rewrite PCUICSigmaCalculus.context_assumptions_context by auto with hints.
346-
now rewrite map_length. }
347-
rewrite Hvass. rewrite combine_length, map_length.
346+
now rewrite length_map. }
347+
rewrite Hvass. rewrite length_combine, length_map.
348348
lia.
349349
* unfold iota_red in *. simpl in *.
350350
unfold expand_lets,expand_lets_k,inst_case_branch_context,inst_case_context; cbn.
@@ -358,7 +358,7 @@ Proof.
358358
inversion Hnth_eq; subst; clear Hnth_eq.
359359
assert (Heq : (#|pVars v2.1| =? #|remove_proj c|)%nat) by (propify; lia).
360360
rewrite Heq; cbn.
361-
repeat rewrite map_length. rewrite combine_length,map_length.
361+
repeat rewrite length_map. rewrite length_combine,length_map.
362362
replace (min #|pVars v2.1| #|remove_proj c|) with (#|pVars v2.1|) by lia.
363363
rewrite <- map_skipn.
364364
rewrite <- map_rev.
@@ -401,12 +401,12 @@ Proof.
401401
specialize (find_forallb_map _ Hfnd HH) as Hclosed_t2; cbn in Hclosed_t2.
402402

403403
erewrite PCUICInstConv.subst_id with (s := rev (_)); eauto.
404-
2: { rewrite rev_length. rewrite to_extended_list_k_length. rewrite Hvass_eq.
405-
subst g. repeat rewrite map_length. rewrite combine_length.
404+
2: { rewrite length_rev. rewrite to_extended_list_k_length. rewrite Hvass_eq.
405+
subst g. repeat rewrite length_map. rewrite length_combine.
406406
replace (min #|pVars v2.1| #|remove_proj c|) with (#|pVars v2.1|) by lia.
407407
rewrite PCUICSigmaCalculus.context_assumptions_context.
408408
* rewrite subst_context_length.
409-
repeat rewrite map_length. rewrite combine_length,map_length.
409+
repeat rewrite length_map. rewrite length_combine,length_map.
410410
replace (min #|pVars v2.1| #|remove_proj c|) with (#|pVars v2.1|) by lia.
411411
replace (#|pVars v2.1| + 0) with #|pVars v2.1| in * by lia.
412412
rewrite <- Hf.
@@ -419,11 +419,11 @@ Proof.
419419
(subst_context (rev (map (fun x : type => T⟦ subst_env_i_ty 0 (exprs ρ) x ⟧) l0)) 0 g)) = #|pVars v2.1|).
420420
{ rewrite PCUICSigmaCalculus.context_assumptions_context by auto with hints.
421421
rewrite subst_context_length. subst g.
422-
repeat rewrite map_length. rewrite combine_length.
422+
repeat rewrite length_map. rewrite length_combine.
423423
replace #|remove_proj c| with #|pVars v2.1| by (propify; lia).
424424
now replace (min #|pVars v2.1| #|pVars v2.1|) with #|pVars v2.1| by lia.
425425
}
426-
assert (#|pVars v2.1| = #|skipn (ind_npars mib) l2|) by (rewrite skipn_length; lia).
426+
assert (#|pVars v2.1| = #|skipn (ind_npars mib) l2|) by (rewrite length_skipn; lia).
427427

428428
rewrite Hvass_eq1.
429429

@@ -445,7 +445,7 @@ Proof.
445445
rewrite <- map_map with (g := (expr_to_term Σ1) ∘ of_val_i)
446446
(f := snd).
447447
rewrite map_combine_snd. now subst.
448-
now repeat rewrite rev_length. }
448+
now repeat rewrite length_rev. }
449449
rewrite Hmap. subst h te3.
450450
replace (#|pVars v2.1| + 0) with #|pVars v2.1| in * by lia.
451451
apply Nat.eqb_eq in Hnparams.
@@ -458,9 +458,9 @@ Proof.
458458
rewrite map_app.
459459
remember (rev (combine (pVars v2.1) (skipn (ind_npars mib) l2))) as l_rev.
460460
assert (Hlrev : #|pVars v2.1| = #|exprs l_rev|).
461-
{ subst. rewrite map_length.
462-
rewrite rev_length. rewrite combine_length.
463-
rewrite skipn_length; lia. }
461+
{ subst. rewrite length_map.
462+
rewrite length_rev. rewrite length_combine.
463+
rewrite length_skipn; lia. }
464464
rewrite Hlrev.
465465
symmetry. eapply subst_env_swap_app with (n := 0);
466466
eauto with hints.
@@ -474,55 +474,55 @@ Proof.
474474
eapply subst_env_iclosed_0; eauto with hints.
475475
remember ((combine (rev (pVars v2.1)) (map of_val_i (rev (skipn _ l2))))) as l_comb.
476476
assert (Hlen : #|l_comb| = #|pVars v2.1|).
477-
{ subst. rewrite combine_length. rewrite map_length.
478-
repeat rewrite rev_length. rewrite skipn_length; lia. }
477+
{ subst. rewrite length_combine. rewrite length_map.
478+
repeat rewrite length_rev. rewrite length_skipn; lia. }
479479
rewrite <- Hlen.
480480
eapply ty_expr_env_ok_subst_env with (k := 0).
481481
assert (Hcomb : exprs (rev (combine (pVars v2.1) (skipn (ind_npars mib) l2))) = l_comb).
482482
{ subst. repeat rewrite map_rev. rewrite combine_rev.
483483
apply f_equal. now rewrite map_combine_snd_funprod.
484-
rewrite map_length. rewrite skipn_length; lia. }
484+
rewrite length_map. rewrite length_skipn; lia. }
485485
rewrite <- Hcomb. rewrite <- map_app.
486486
eapply eval_ty_expr_env_ok; eauto with hints.
487-
rewrite app_length.
487+
rewrite length_app.
488488
replace (#|rev (combine (pVars v2.1) (skipn (ind_npars mib) l2))|) with #|pVars v2.1| by
489-
(rewrite rev_length, combine_length, skipn_length; lia).
490-
replace #|ρ| with #|exprs ρ| by apply map_length. eauto with hints.
489+
(rewrite length_rev, length_combine, length_skipn; lia).
490+
replace #|ρ| with #|exprs ρ| by apply length_map. eauto with hints.
491491

492492
eapply closed_exprs; eauto.
493493

494494
eapply All_snd_combine with (p := iclosed_n 0); eauto with hints.
495495
apply All_map. apply All_rev.
496496
eapply All_expr_iclosed_of_val; eauto using All_skipn.
497497

498-
rewrite combine_length. rewrite map_length.
499-
repeat rewrite rev_length. rewrite skipn_length by lia.
498+
rewrite length_combine. rewrite length_map.
499+
repeat rewrite length_rev. rewrite length_skipn by lia.
500500
replace (min #|pVars v2.1| (#|l2| - ind_npars mib)) with #|pVars v2.1| by lia.
501501
eauto with hints.
502502

503503
** rewrite <- combine_rev by auto.
504504
rewrite map_combine_snd_funprod.
505505
remember ((combine (rev (pVars v2.1)) (map of_val_i (rev (skipn _ l2))))) as l_comb.
506506
assert (Hlen : #|l_comb| = #|pVars v2.1|).
507-
{ subst. rewrite combine_length. rewrite map_length.
508-
repeat rewrite rev_length. rewrite skipn_length; lia. }
507+
{ subst. rewrite length_combine. rewrite length_map.
508+
repeat rewrite length_rev. rewrite length_skipn; lia. }
509509
rewrite <- Hlen.
510510
eapply ty_expr_env_ok_subst_env with (k := 0).
511511
remember (ind_npars mib) as nparams.
512512
assert (Hcomb : exprs (rev (combine (pVars v2.1) (skipn nparams l2))) = l_comb).
513513
{ subst. repeat rewrite map_rev. rewrite combine_rev.
514514
apply f_equal. now rewrite map_combine_snd_funprod.
515-
rewrite map_length. rewrite skipn_length; lia. }
515+
rewrite length_map. rewrite length_skipn; lia. }
516516
rewrite <- Hcomb. rewrite <- map_app.
517517
subst nparams. eapply eval_ty_expr_env_ok; eauto with hints.
518-
rewrite app_length.
518+
rewrite length_app.
519519
replace (#|rev (combine (pVars v2.1) (skipn _ l2))|) with #|pVars v2.1| by
520-
(rewrite rev_length, combine_length, skipn_length; lia).
521-
replace #|ρ| with #|exprs ρ| by apply map_length. eauto with hints.
520+
(rewrite length_rev, length_combine, length_skipn; lia).
521+
replace #|ρ| with #|exprs ρ| by apply length_map. eauto with hints.
522522
eapply closed_exprs; eauto.
523-
** rewrite map_length.
523+
** rewrite length_map.
524524
replace (#|rev (combine (pVars v2.1) (skipn _ l2))|) with #|pVars v2.1| by
525-
(rewrite rev_length, combine_length, skipn_length; lia).
525+
(rewrite length_rev, length_combine, length_skipn; lia).
526526
eauto with hints.
527527
** apply All_map. subst.
528528
apply All_rev. unfold compose. simpl.

embedding/theories/pcuic/PCUICCorrectnessAux.v

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ Proof.
177177
destruct (syncEnv _ _ _ _ _ Hres) as [[[??]?][?[??]]].
178178
erewrite <- mkApps_vars_to_apps_constr; eauto.
179179
eapply PcbvCurr.value_app.
180-
+ rewrite map_length. cbn in *.
180+
+ rewrite length_map. cbn in *.
181181
subst. rewrite H1 in *.
182182
econstructor; eauto.
183183
+ now apply All_map.
@@ -420,7 +420,7 @@ Proof.
420420
assert (closed T⟦ t ⟧).
421421
{ eapply nth_error_all in Hn; eauto; auto with hints. }
422422
now rewrite lift_closed by auto with hints.
423-
* rewrite map_length. apply f_equal.
423+
* rewrite length_map. apply f_equal.
424424
apply nth_error_None in Hn; lia.
425425
+ f_equal; auto.
426426
rewrite <- IHty2 by auto.
@@ -632,7 +632,7 @@ Proof.
632632
inversion Hlen as [Hlen0]; subst; clear Hlen.
633633
propify; split.
634634
* inversion Htys; subst; apply IHtys; eauto.
635-
* rewrite map_length, combine_length, map_length.
635+
* rewrite length_map, length_combine, length_map.
636636
rewrite Hlen0. replace (Init.Nat.min #|tys| #|tys|) with #|tys| by lia.
637637
inversion Htys; subst; clear Htys.
638638
replace (#|tys| + n) with (n + #|tys|) by lia.
@@ -672,7 +672,7 @@ Proof.
672672
** cbn. rewrite closedn_mkApps; eauto. cbn.
673673
replace (#|map type_to_term l0|) with
674674
(#|map (fun x : type => vass (aRelevant nAnon) T⟦ x ⟧) l0|)
675-
by now repeat rewrite map_length.
675+
by now repeat rewrite length_map.
676676
apply closedn_to_extended_list.
677677
* destruct p as [np cs]. cbn in *.
678678
rewrite forallb_map.
@@ -683,7 +683,7 @@ Proof.
683683
unfold etrans_branch in Heqtb.
684684
destruct (find (fun x => _)) as [ p0 | ] eqn:Hnm.
685685
2: subst; simpl; auto.
686-
destruct p0 as [pt e1]. cbn in *. rewrite map_length in *.
686+
destruct p0 as [pt e1]. cbn in *. rewrite length_map in *.
687687
destruct (#|pVars pt| =? #|tys|)%nat eqn:Hlen; auto.
688688
2: subst; simpl; auto.
689689
apply find_some in Hnm. destruct Hnm as [Hin' Heqs]; cbn in *.
@@ -698,7 +698,7 @@ Proof.
698698
propify; split.
699699
** rewrite map_map.
700700
now apply closedn_ctx_branches.
701-
** rewrite map_length,combine_length. rewrite_all map_length.
701+
** rewrite length_map,length_combine. rewrite_all length_map.
702702
rewrite Hlen. replace (min #|tys| #|tys|) with (#|tys|) by lia.
703703
apply forallb_Forall in H3.
704704
eapply Forall_In in H; eauto; cbn in *.
@@ -718,8 +718,8 @@ Lemma closed_exprs_len_iff e n (ρ : env val) :
718718
iclosed_n (n + #|ρ|) e = true.
719719
Proof.
720720
split.
721-
intros H. rewrite map_length in H. assumption.
722-
intros H. rewrite map_length. assumption.
721+
intros H. rewrite length_map in H. assumption.
722+
intros H. rewrite length_map. assumption.
723723
Qed.
724724

725725

@@ -876,7 +876,7 @@ Proof.
876876
cbn in *. destruct p as [ind tys]. unfold is_true in *; simpl in *.
877877
propify. destruct Hc as [Hce1 Hce2].
878878
destruct (resolve_inductive Σ ind) eqn:Hres; auto.
879-
rewrite map_length. destruct (_ =? _)%nat eqn:Hnparams; auto.
879+
rewrite length_map. destruct (_ =? _)%nat eqn:Hnparams; auto.
880880
cbn.
881881
repeat f_equal.
882882
* unfold map_predicate_k; cbn.
@@ -894,7 +894,7 @@ Proof.
894894
reln xs n (map (vass (aRelevant nAnon)) ys2)).
895895
{ induction ys1; intros ys2 xs n Heq; destruct ys2; cbn in *; inversion Heq; cbn; auto. }
896896
rewrite <- map_map. rewrite <- map_map with (f := fun x => T⟦ x ⟧ {n1 := t⟦ e0 ⟧ Σ}).
897-
apply Hreln. now repeat rewrite map_length.
897+
apply Hreln. now repeat rewrite length_map.
898898
** rewrite commut_lift_subst. auto with all hints solve_subterm.
899899
* apply IHe; auto with solve_subterm.
900900
* rewrite_all map_map. simpl.
@@ -920,10 +920,10 @@ Proof.
920920
(#|pVars (fst a)| + S n1) by lia.
921921
assumption. }
922922
rewrite <- Hmap. unfold id in *. rewrite Hfnd. simpl.
923-
rewrite map_length.
923+
rewrite length_map.
924924
destruct (Nat.eqb #|pVars (fst p0)| #|l0|) eqn:Hlen; simpl; auto.
925-
unfold map_branch_k; cbn. rewrite_all map_length. rewrite combine_length.
926-
rewrite_all map_length. rewrite PeanoNat.Nat.eqb_eq in Hlen.
925+
unfold map_branch_k; cbn. rewrite_all length_map. rewrite length_combine.
926+
rewrite_all length_map. rewrite PeanoNat.Nat.eqb_eq in Hlen.
927927
rewrite Hlen. replace (min _ _) with #|l0| by lia.
928928
f_equal.
929929
** change (fun x : pat * term => pName (fst x) =? s)%string with
@@ -1324,8 +1324,8 @@ Proof.
13241324
+ unfold subst_env_i. destruct x as [nm e0]. simpl in *.
13251325
apply All_app in Hall as [Hl He0]. inversion He0; subst; clear He0. simpl in *.
13261326
unfold subst_env_i. rewrite map_app. simpl.
1327-
rewrite subst_app_simpl. rewrite map_length. simpl.
1328-
rewrite app_length in *. simpl in *.
1327+
rewrite subst_app_simpl. rewrite length_map. simpl.
1328+
rewrite length_app in *. simpl in *.
13291329
replace (#|l| + 1) with (1 + #|l|) in Hc by lia.
13301330
replace (k + (1 + #|l|)) with (1+ k + #|l|) in Hc by lia.
13311331
rewrite subst_term_subst_env_rec with (e := e)(nm := nm) by eauto with hints.
@@ -1677,7 +1677,7 @@ Proof.
16771677
simpl in Hge_ok. rewrite Hres in *.
16781678
inversion Hok_constr. subst. clear Hok_constr.
16791679
apply All_app_inv; eauto with hints.
1680-
rewrite app_length; cbn.
1680+
rewrite length_app; cbn.
16811681
now propify; cbn in *.
16821682
* simpl in *. unfold is_true in *; repeat rewrite Bool.andb_true_iff in *.
16831683
assert (Hok_v0 : val_ok Σ v0) by now eapply IHn.
@@ -1725,7 +1725,7 @@ Proof.
17251725
{ apply rev_env_ok; apply All_env_ok; eauto; eapply All_skipn; eauto. }
17261726

17271727
assert (iclosed_n #|rev (combine (pVars pt) (skipn n1 l1)) ++ ρ| e2 = true).
1728-
{ rewrite app_length. rewrite rev_length,combine_length,skipn_length.
1728+
{ rewrite length_app. rewrite length_rev,length_combine,length_skipn.
17291729
replace (min #|pVars pt| (#|l1| - n1)) with #|pVars pt| by lia.
17301730
now specialize (find_forallb _ H H4) as Hc. }
17311731
eapply IHn with (ρ := (rev (combine (pVars pt) (skipn n1 l1)) ++ ρ)); eauto.
@@ -1880,11 +1880,11 @@ Lemma of_val_closed_0 e ρ :
18801880
iclosed_n 0 (e.[exprs ρ]) = true -> iclosed_n #|ρ| e.
18811881
Proof.
18821882
intros H ?.
1883-
replace #|ρ| with (#|exprs ρ|) by now apply map_length.
1883+
replace #|ρ| with (#|exprs ρ|) by now apply length_map.
18841884
eauto with hints.
18851885
Qed.
18861886

1887-
#[export] Hint Resolve map_length of_val_closed_0 val_ok_ge_val_ok rev_length
1887+
#[export] Hint Resolve length_map of_val_closed_0 val_ok_ge_val_ok length_rev
18881888
subst_env_compose_1 subst_env_compose_2 : hints.
18891889

18901890
#[export] Hint Constructors PcbvCurr.value : hints.

embedding/theories/pcuic/PCUICFacts.v

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ Section Values.
383383
unfold AllEnv,compose,fun_prod in *.
384384
eapply All_impl_inner. apply X0.
385385
now eapply (All_impl X).
386-
** now rewrite map_length.
386+
** now rewrite length_map.
387387
* unfold subst_env_i. simpl in *.
388388
inversion Hv. subst.
389389
propify. destruct_and_split.
@@ -404,7 +404,7 @@ Section Values.
404404
unfold AllEnv,compose,fun_prod in *.
405405
eapply All_impl_inner. apply X0.
406406
now eapply (All_impl X).
407-
*** now rewrite map_length.
407+
*** now rewrite length_map.
408408
+ simpl in *.
409409
inversion Hv. subst. clear Hv.
410410
eapply iclosed_m_n with (n := 1).
@@ -414,7 +414,7 @@ Section Values.
414414
unfold AllEnv,compose,fun_prod in *.
415415
eapply All_impl_inner. apply X0. simpl.
416416
now eapply (All_impl X).
417-
** now rewrite map_length.
417+
** now rewrite length_map.
418418
+ simpl.
419419
inversion Hv. subst.
420420
eauto with facts.

embedding/theories/pcuic/PCUICTranslate.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Import ListNotations.
2727

2828
(** ** Translation of types *)
2929

30-
Reserved Notation "T⟦ ty ⟧ " (at level 5).
30+
Reserved Notation "T⟦ ty ⟧ " (at level 0).
3131

3232
(** Translation of types to PCUIC terms. Universal types become Pi-types with the
3333
first argument being of type [Set]. Keeping them in [Set] is crucial,

examples/AllTests.v

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Set Warnings "-extraction-inside-module".
22

33
From Coq Require Import BinNat.
44
From ConCert.Execution Require Import Blockchain.
5+
#[warnings="-notation-incompatible-prefix"]
56
From ConCert.Execution.Test Require Import QCTest.
67
From ConCert.Examples.Congress Require CongressTests.
78
From ConCert.Examples.Congress Require Congress_BuggyTests.
@@ -174,7 +175,7 @@ Module EIP20Token.
174175
Time QuickChick (token_cb ~~> person_has_tokens creator 0).
175176
(* Success - found witness satisfying the predicate!
176177
+++ Failed (as expected) after 1 tests and 0 shrinks. (0 discards)*)
177-
178+
178179
Time QuickChick (expectFailure (
179180
token_cb
180181
~~~> (fun cs => if person_has_tokens creator 5 cs.(chain_state_env) then Some tt else None)

0 commit comments

Comments
 (0)