-
Notifications
You must be signed in to change notification settings - Fork 5
/
conj_True_repeat_constructor.v
40 lines (36 loc) · 1.19 KB
/
conj_True_repeat_constructor.v
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
33
34
35
36
37
38
39
40
Require Import PerformanceExperiments.Harness.
Fixpoint and_True (n : nat)
:= match n with
| 0 => True
| S n => True /\ and_True n
end.
Definition args_of_size (s : size) : list nat
:= match s with
| Sanity => seq 1 3
| SuperFast => seq 1 100
| Fast => seq 100 200
++ List.map (fun x => 200 + x * 2) (seq 0 50)
++ List.map (fun x => 300 + x * 5) (seq 0 20)
++ List.map (fun x => 400 + x * 10) (seq 0 10)
++ List.map (fun x => 500 + x * 50) (seq 0 10)
++ List.map (fun x => 1000 + x * 100) (seq 0 10)
| Medium => []
| Slow => []
| VerySlow => []
end.
Ltac mkgoal n := constr:(and_True (pred n)).
Ltac redgoal _ := vm_compute.
Ltac time_solve_goal0 n :=
cut True;
[ intros _;
time "abstract-repeat-constructor"
abstract
(cut True;
[ intros _;
time "repeat-constructor" repeat constructor
| restart_timer; exact I ])
| finish_timing ("Tactic call close-abstract") ].
Ltac run0 sz := Harness.runtests args_of_size default_describe_goal mkgoal redgoal time_solve_goal0 sz.
(*
Goal True. run0 SuperFast.
*)