Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Rice Wine
Iris
Commits
44cfd7d3
Commit
44cfd7d3
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Patch naive_solver to deal with Coq bug #2901.
parent
d6c38891
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
prelude/tactics.v
+8
-3
8 additions, 3 deletions
prelude/tactics.v
with
8 additions
and
3 deletions
prelude/tactics.v
+
8
−
3
View file @
44cfd7d3
...
...
@@ -478,8 +478,12 @@ Tactic Notation "naive_solver" tactic(tac) :=
|
|
-
∀
_,
_
=>
intro
(**i simplification of assumptions *)
|
H
:
False
|
-
_
=>
destruct
H
|
H
:
_
∧
_
|
-
_
=>
destruct
H
|
H
:
∃
_,
_
|
-
_
=>
destruct
H
|
H
:
_
∧
_
|
-
_
=>
let
H1
:=
fresh
in
let
H2
:=
fresh
in
destruct
H
as
[
H1
H2
];
try
clear
H
|
H
:
∃
_,
_
|
-
_
=>
let
x
:=
fresh
in
let
Hx
:=
fresh
in
destruct
H
as
[
x
Hx
];
try
clear
H
|
H
:
?P
→
?Q
,
H2
:
?P
|
-
_
=>
specialize
(
H
H2
)
|
H
:
Is_true
(
bool_decide
_)
|
-
_
=>
apply
(
bool_decide_unpack
_)
in
H
|
H
:
Is_true
(_
&&
_)
|
-
_
=>
apply
andb_True
in
H
;
destruct
H
...
...
@@ -491,7 +495,8 @@ Tactic Notation "naive_solver" tactic(tac) :=
|
|
-
_
∧
_
=>
split
|
|
-
Is_true
(
bool_decide
_)
=>
apply
(
bool_decide_pack
_)
|
|
-
Is_true
(_
&&
_)
=>
apply
andb_True
;
split
|
H
:
_
∨
_
|
-
_
=>
destruct
H
|
H
:
_
∨
_
|
-
_
=>
let
H1
:=
fresh
in
destruct
H
as
[
H1
|
H1
];
try
clear
H
(**i solve the goal using the user supplied tactic *)
|
|
-
_
=>
solve
[
tac
]
end
;
...
...
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