Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stdpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Iris
stdpp
Commits
a66332fa
Commit
a66332fa
authored
1 year ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
split tests/tactics
parent
a65dd68e
No related branches found
No related tags found
1 merge request
!512
add odestruct and other "open term" tactics
Pipeline
#90366
passed
1 year ago
Stage: build
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
tests/tactics.ref
+2
-0
2 additions, 0 deletions
tests/tactics.ref
tests/tactics.v
+7
-18
7 additions, 18 deletions
tests/tactics.v
tests/tactics_more.ref
+0
-0
0 additions, 0 deletions
tests/tactics_more.ref
tests/tactics_more.v
+10
-0
10 additions, 0 deletions
tests/tactics_more.v
with
19 additions
and
18 deletions
tests/tactics.ref
+
2
−
0
View file @
a66332fa
...
...
@@ -4,6 +4,8 @@ The command has indeed failed with message:
Failed to progress.
The command has indeed failed with message:
Failed to progress.
"otest"
: string
The command has indeed failed with message:
Cannot infer this placeholder of type "nat" in
environment:
...
...
This diff is collapsed.
Click to expand it.
tests/tactics.v
+
7
−
18
View file @
a66332fa
(** Basic tests for atctics that don't import anything else
(and hence can be run even when nothing else even builds. *)
From
Coq
Require
Import
String
.
From
stdpp
Require
Import
tactics
.
Local
Unset
Mangle
Names
.
(* for stable goal printing *)
Local
Open
Scope
string_scope
.
Goal
∀
P1
P2
P3
P4
(
P
:
Prop
),
P1
∨
(
Is_true
(
P2
||
P3
))
∨
P4
→
...
...
@@ -106,7 +110,7 @@ Proof.
Abort
.
(** o-tactic tests *)
(*
Check "otest".
*)
Check
"otest"
.
Lemma
otest
(
P
Q
R
:
nat
→
Prop
)
(
HPQR1
:
∀
m
n
,
P
n
→
Q
m
→
R
(
n
+
m
))
(
HPQR2
:
∀
m
n
,
P
n
→
Q
m
→
R
(
n
+
m
)
∧
R
2
)
...
...
@@ -164,23 +168,8 @@ Restart.
opose
proof
*
HR
as
HR'
;
[
exact
HP
|
exact
HQ
|
exact
HR'
]
.
Qed
.
(** Now that we have seen that the basic tactics are working,
we are okay importing some other files. We don't want to do this
above since it can make debugging hard: if a tactic breaks,
[option] breaks, and then we cannot even use the tests here to figure out
what is going on! *)
From
stdpp
Require
Import
option
.
(** Make sure that [done] is not called recursively when solving [is_Some],
which might leave an unresolved evar before performing ex falso. *)
Goal
False
→
is_Some
(
@
None
nat
)
.
Proof
.
done
.
Qed
.
Goal
∀
mx
,
mx
=
Some
10
→
is_Some
mx
.
Proof
.
done
.
Qed
.
Goal
∀
mx
,
Some
10
=
mx
→
is_Some
mx
.
Proof
.
done
.
Qed
.
(** Regression tests for [naive_solver]. *)
(** Regression tests for [naive_solver].
Requires a bunch of other tactics to work so it comes last in this file. *)
Lemma
naive_solver_issue_115
(
P
:
nat
→
Prop
)
(
x
:
nat
)
:
(
∀
x'
,
P
x'
→
x'
=
10
)
→
P
x
→
x
+
1
=
11
.
Proof
.
naive_solver
.
Qed
.
This diff is collapsed.
Click to expand it.
tests/tactics_more.ref
0 → 100644
+
0
−
0
View file @
a66332fa
This diff is collapsed.
Click to expand it.
tests/tactics_more.v
0 → 100644
+
10
−
0
View file @
a66332fa
From
stdpp
Require
Import
tactics
option
.
(** Make sure that [done] is not called recursively when solving [is_Some],
which might leave an unresolved evar before performing ex falso. *)
Goal
False
→
is_Some
(
@
None
nat
)
.
Proof
.
done
.
Qed
.
Goal
∀
mx
,
mx
=
Some
10
→
is_Some
mx
.
Proof
.
done
.
Qed
.
Goal
∀
mx
,
Some
10
=
mx
→
is_Some
mx
.
Proof
.
done
.
Qed
.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment