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
Package Registry
Model registry
Operate
Terraform modules
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
Adam
stdpp
Commits
723ad25f
Commit
723ad25f
authored
3 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Add test for `destruct select`.
parent
a1272450
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/tactics.v
+11
-0
11 additions, 0 deletions
tests/tactics.v
with
11 additions
and
0 deletions
tests/tactics.v
+
11
−
0
View file @
723ad25f
...
@@ -55,6 +55,17 @@ Proof. intros ?. rename select nat into m. exists m. done. Qed.
...
@@ -55,6 +55,17 @@ Proof. intros ?. rename select nat into m. exists m. done. Qed.
Goal
∀
(
P
:
nat
→
Prop
),
P
3
→
P
4
→
P
4
.
Goal
∀
(
P
:
nat
→
Prop
),
P
3
→
P
4
→
P
4
.
Proof
.
intros
P
**.
rename
select
(
P
_)
into
HP4
.
apply
HP4
.
Qed
.
Proof
.
intros
P
**.
rename
select
(
P
_)
into
HP4
.
apply
HP4
.
Qed
.
Goal
∀
P
Q
:
Prop
,
True
∨
True
→
P
∨
Q
→
Q
∨
P
.
Proof
.
intros
P
Q
??
.
(* should select the last hypothesis *)
destruct
select
(_
∨
_);
by
constructor
.
Restart
.
intros
P
Q
??
.
(* should select the last hypothesis *)
destruct
select
(_
∨
_)
as
[
H1
|
H2
]
.
-
right
.
exact
H1
.
-
left
.
exact
H2
.
Qed
.
(** Regression tests for [naive_solver]. *)
(** Regression tests for [naive_solver]. *)
Lemma
naive_solver_issue_115
(
P
:
nat
→
Prop
)
(
x
:
nat
)
:
Lemma
naive_solver_issue_115
(
P
:
nat
→
Prop
)
(
x
:
nat
)
:
(
∀
x'
,
P
x'
→
x'
=
10
)
→
P
x
→
x
+
1
=
11
.
(
∀
x'
,
P
x'
→
x'
=
10
)
→
P
x
→
x
+
1
=
11
.
...
...
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