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
Model registry
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
Iris
stdpp
Commits
81766ef4
Commit
81766ef4
authored
2 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
make solve_ndisj work on goals of the form 'X1 ∪ X2 ## Y'
parent
d4458085
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!427
make solve_ndisj work on goals of the form 'X1 ∪ X2 ## Y'
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
stdpp/namespaces.v
+5
-0
5 additions, 0 deletions
stdpp/namespaces.v
tests/solve_ndisj.v
+9
-0
9 additions, 0 deletions
tests/solve_ndisj.v
with
14 additions
and
0 deletions
stdpp/namespaces.v
+
5
−
0
View file @
81766ef4
...
@@ -102,6 +102,11 @@ Local Definition coPset_disjoint_empty_l := disjoint_empty_l (C:=coPset).
...
@@ -102,6 +102,11 @@ Local Definition coPset_disjoint_empty_l := disjoint_empty_l (C:=coPset).
Global
Hint
Resolve
coPset_disjoint_empty_l
:
ndisj
.
Global
Hint
Resolve
coPset_disjoint_empty_l
:
ndisj
.
Local
Definition
coPset_disjoint_empty_r
:=
disjoint_empty_r
(
C
:=
coPset
)
.
Local
Definition
coPset_disjoint_empty_r
:=
disjoint_empty_r
(
C
:=
coPset
)
.
Global
Hint
Resolve
coPset_disjoint_empty_r
:
ndisj
.
Global
Hint
Resolve
coPset_disjoint_empty_r
:
ndisj
.
(** If-and-only-if rules for ∪ on the left/right. *)
Local
Definition
coPset_disjoint_union_l
X1
X2
Y
:=
proj2
(
disjoint_union_l
(
C
:=
coPset
)
X1
X2
Y
)
.
Global
Hint
Resolve
coPset_disjoint_union_l
:
ndisj
.
Local
Definition
coPset_disjoint_union_r
X
Y1
Y2
:=
proj2
(
disjoint_union_r
(
C
:=
coPset
)
X
Y1
Y2
)
.
Global
Hint
Resolve
coPset_disjoint_union_r
:
ndisj
.
(** We prefer ∖ on the left of ## (for the [disjoint_difference] lemmas to
(** We prefer ∖ on the left of ## (for the [disjoint_difference] lemmas to
apply), so try moving it there. *)
apply), so try moving it there. *)
Global
Hint
Extern
10
(_
##
(_
∖
_))
=>
Global
Hint
Extern
10
(_
##
(_
∖
_))
=>
...
...
This diff is collapsed.
Click to expand it.
tests/solve_ndisj.v
+
9
−
0
View file @
81766ef4
...
@@ -47,3 +47,12 @@ Proof. solve_ndisj. Qed.
...
@@ -47,3 +47,12 @@ Proof. solve_ndisj. Qed.
Lemma
test10
N1
N2
E
:
Lemma
test10
N1
N2
E
:
↑
N1
∪
E
##
⊤
∖
↑
N1
∖
↑
N2
∖
E
.
↑
N1
∪
E
##
⊤
∖
↑
N1
∖
↑
N2
∖
E
.
Proof
.
solve_ndisj
.
Qed
.
Proof
.
solve_ndisj
.
Qed
.
Lemma
test11
N
:
↑
N
.
@
"other"
⊆@
{
coPset
}
⊤
∖
(
↑
N
.
@
"this"
∪
↑
N
.
@
"that"
)
.
Proof
.
solve_ndisj
.
Qed
.
Lemma
test12
N
:
↑
N
.
@
"other"
##@
{
coPset
}
↑
N
.
@
"this"
∪
↑
N
.
@
"that"
∧
↑
N
.
@
"other"
∪
↑
N
.
@
"this"
##@
{
coPset
}
↑
N
.
@
"that"
.
Proof
.
split
;
solve_ndisj
.
Qed
.
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