Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pierre-Marie Pédrot
stdpp
Commits
6907a08a
Commit
6907a08a
authored
Sep 03, 2014
by
Robbert Krebbers
Browse files
Make collection tactics work with guards.
parent
0ec18c14
Changes
1
Hide whitespace changes
Inline
Side-by-side
theories/collections.v
View file @
6907a08a
...
...
@@ -182,6 +182,7 @@ Ltac unfold_elem_of :=
|
context
[
_
∈
mret
_
]
=>
setoid_rewrite
elem_of_ret
in
H
|
context
[
_
∈
_
≫
=
_
]
=>
setoid_rewrite
elem_of_bind
in
H
|
context
[
_
∈
mjoin
_
]
=>
setoid_rewrite
elem_of_join
in
H
|
context
[
_
∈
guard
_;
_
]
=>
setoid_rewrite
elem_of_guard
in
H
end
)
;
repeat
match
goal
with
|
|-
context
[
_
⊆
_
]
=>
setoid_rewrite
elem_of_subseteq
...
...
@@ -199,6 +200,7 @@ Ltac unfold_elem_of :=
|
|-
context
[
_
∈
mret
_
]
=>
setoid_rewrite
elem_of_ret
|
|-
context
[
_
∈
_
≫
=
_
]
=>
setoid_rewrite
elem_of_bind
|
|-
context
[
_
∈
mjoin
_
]
=>
setoid_rewrite
elem_of_join
|
|-
context
[
_
∈
guard
_;
_
]
=>
setoid_rewrite
elem_of_guard
end
.
(** The tactic [solve_elem_of tac] composes the above tactic with [intuition].
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment