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
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
Simon Friis Vindum
stdpp
Commits
1e9a5ae9
Commit
1e9a5ae9
authored
5 years ago
by
Armaël Guéneau
Browse files
Options
Downloads
Patches
Plain Diff
Have destruct_and take care of [True] and destruct_or of [False]
The opposite was true before to this commit.
parent
07c0cb06
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/tactics.v
+2
-2
2 additions, 2 deletions
theories/tactics.v
with
2 additions
and
2 deletions
theories/tactics.v
+
2
−
2
View file @
1e9a5ae9
...
@@ -112,7 +112,7 @@ Tactic Notation "split_and" "!" := hnf; split_and; split_and?.
...
@@ -112,7 +112,7 @@ Tactic Notation "split_and" "!" := hnf; split_and; split_and?.
Ltac
destruct_and_go
H
:=
Ltac
destruct_and_go
H
:=
try
lazymatch
type
of
H
with
try
lazymatch
type
of
H
with
|
Fals
e
=>
destruct
H
|
Tru
e
=>
clear
H
|
_
∧
_
=>
|
_
∧
_
=>
let
H1
:=
fresh
in
let
H1
:=
fresh
in
let
H2
:=
fresh
in
let
H2
:=
fresh
in
...
@@ -148,7 +148,7 @@ Tactic Notation "destruct_and" "!" :=
...
@@ -148,7 +148,7 @@ Tactic Notation "destruct_and" "!" :=
*)
*)
Tactic
Notation
"destruct_or"
"?"
ident
(
H
)
:=
Tactic
Notation
"destruct_or"
"?"
ident
(
H
)
:=
repeat
match
type
of
H
with
repeat
match
type
of
H
with
|
Tru
e
=>
clear
H
|
Fals
e
=>
destruct
H
|
_
∨
_
=>
destruct
H
as
[
H
|
H
]
|
_
∨
_
=>
destruct
H
as
[
H
|
H
]
|
Is_true
(
bool_decide
_)
=>
apply
(
bool_decide_unpack
_)
in
H
|
Is_true
(
bool_decide
_)
=>
apply
(
bool_decide_unpack
_)
in
H
|
Is_true
(_
||
_)
=>
apply
orb_True
in
H
;
destruct
H
as
[
H
|
H
]
|
Is_true
(_
||
_)
=>
apply
orb_True
in
H
;
destruct
H
as
[
H
|
H
]
...
...
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