Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Simon Spies
stdpp
Commits
6907a08a
Commit
6907a08a
authored
Sep 03, 2014
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make collection tactics work with guards.
parent
0ec18c14
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
theories/collections.v
theories/collections.v
+2
-0
No files found.
theories/collections.v
View file @
6907a08a
...
@@ -182,6 +182,7 @@ Ltac unfold_elem_of :=
...
@@ -182,6 +182,7 @@ Ltac unfold_elem_of :=
|
context
[
_
∈
mret
_
]
=>
setoid_rewrite
elem_of_ret
in
H
|
context
[
_
∈
mret
_
]
=>
setoid_rewrite
elem_of_ret
in
H
|
context
[
_
∈
_
≫
=
_
]
=>
setoid_rewrite
elem_of_bind
in
H
|
context
[
_
∈
_
≫
=
_
]
=>
setoid_rewrite
elem_of_bind
in
H
|
context
[
_
∈
mjoin
_
]
=>
setoid_rewrite
elem_of_join
in
H
|
context
[
_
∈
mjoin
_
]
=>
setoid_rewrite
elem_of_join
in
H
|
context
[
_
∈
guard
_;
_
]
=>
setoid_rewrite
elem_of_guard
in
H
end
)
;
end
)
;
repeat
match
goal
with
repeat
match
goal
with
|
|-
context
[
_
⊆
_
]
=>
setoid_rewrite
elem_of_subseteq
|
|-
context
[
_
⊆
_
]
=>
setoid_rewrite
elem_of_subseteq
...
@@ -199,6 +200,7 @@ Ltac unfold_elem_of :=
...
@@ -199,6 +200,7 @@ Ltac unfold_elem_of :=
|
|-
context
[
_
∈
mret
_
]
=>
setoid_rewrite
elem_of_ret
|
|-
context
[
_
∈
mret
_
]
=>
setoid_rewrite
elem_of_ret
|
|-
context
[
_
∈
_
≫
=
_
]
=>
setoid_rewrite
elem_of_bind
|
|-
context
[
_
∈
_
≫
=
_
]
=>
setoid_rewrite
elem_of_bind
|
|-
context
[
_
∈
mjoin
_
]
=>
setoid_rewrite
elem_of_join
|
|-
context
[
_
∈
mjoin
_
]
=>
setoid_rewrite
elem_of_join
|
|-
context
[
_
∈
guard
_;
_
]
=>
setoid_rewrite
elem_of_guard
end
.
end
.
(** The tactic [solve_elem_of tac] composes the above tactic with [intuition].
(** 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