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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Arthur Azevedo de Amorim
stdpp
Commits
d1b91fbe
Commit
d1b91fbe
authored
5 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
move some general set lemmas to sets.v; organize ndisj hints a bit
parent
7c3203e7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/namespaces.v
+8
-13
8 additions, 13 deletions
theories/namespaces.v
theories/sets.v
+6
-0
6 additions, 0 deletions
theories/sets.v
with
14 additions
and
13 deletions
theories/namespaces.v
+
8
−
13
View file @
d1b91fbe
...
...
@@ -67,13 +67,6 @@ Section namespace.
Lemma
ndot_preserve_disjoint_r
N
E
x
:
E
##
↑
N
→
E
##
↑
N
.
@
x
.
Proof
.
intros
.
by
apply
symmetry
,
ndot_preserve_disjoint_l
.
Qed
.
Lemma
namespace_subseteq_difference
E1
E2
E3
:
E1
##
E3
→
E1
⊆
E2
→
E1
⊆
E2
∖
E3
.
Proof
.
set_solver
.
Qed
.
Lemma
namespace_subseteq_difference_l
E1
E2
E3
:
E1
⊆
E3
→
E1
∖
E2
⊆
E3
.
Proof
.
set_solver
.
Qed
.
Lemma
ndisj_difference_l
E
N1
N2
:
↑
N2
⊆
(
↑
N1
:
coPset
)
→
E
∖
↑
N1
##
↑
N2
.
Proof
.
set_solver
.
Qed
.
End
namespace
.
...
...
@@ -84,14 +77,16 @@ of the forms:
- [↑N1 ⊆ E ∖ ↑N2 ∖ .. ∖ ↑Nn]
- [E1 ∖ ↑N1 ⊆ E2 ∖ ↑N2 ∖ .. ∖ ↑Nn] *)
Create
HintDb
ndisj
.
Hint
Resolve
namespace_subseteq_difference
:
ndisj
.
Hint
Extern
0
(_
##
_)
=>
apply
ndot_ne_disjoint
;
congruence
:
ndisj
.
Hint
Resolve
ndot_preserve_disjoint_l
ndot_preserve_disjoint_r
:
ndisj
.
Hint
Resolve
nclose_subseteq'
ndisj_difference_l
:
ndisj
.
(* Rules for goals of the form [_ ⊆ _] *)
Hint
Resolve
(
subseteq_difference_r
(
A
:=
positive
)
(
C
:=
coPset
))
:
ndisj
.
Hint
Resolve
nclose_subseteq'
:
ndisj
.
Hint
Resolve
(
empty_subseteq
(
A
:=
positive
)
(
C
:=
coPset
))
:
ndisj
.
Hint
Resolve
(
union_least
(
A
:=
positive
)
(
C
:=
coPset
))
:
ndisj
.
(* Fall-back rules that lose information (but let other rules above apply). *)
Hint
Resolve
namespace_subseteq_difference_l
|
100
:
ndisj
.
Hint
Resolve
(
subseteq_difference_l
(
A
:=
positive
)
(
C
:=
coPset
))
|
100
:
ndisj
.
(* Rules for goals of the form [_ ## _] *)
Hint
Extern
0
(_
##
_)
=>
apply
ndot_ne_disjoint
;
congruence
:
ndisj
.
Hint
Resolve
ndot_preserve_disjoint_l
ndot_preserve_disjoint_r
:
ndisj
.
Hint
Resolve
ndisj_difference_l
:
ndisj
.
Hint
Resolve
(
disjoint_difference_l
(
A
:=
positive
)
(
C
:=
coPset
))
|
100
:
ndisj
.
Ltac
solve_ndisj
:=
...
...
This diff is collapsed.
Click to expand it.
theories/sets.v
+
6
−
0
View file @
d1b91fbe
...
...
@@ -653,6 +653,12 @@ Section set.
Lemma
difference_mono_r
X1
X2
Y
:
X1
⊆
X2
→
X1
∖
Y
⊆
X2
∖
Y
.
Proof
.
set_solver
.
Qed
.
Lemma
subseteq_difference_r
X
Y1
Y2
:
X
##
Y2
→
X
⊆
Y1
→
X
⊆
Y1
∖
Y2
.
Proof
.
set_solver
.
Qed
.
Lemma
subseteq_difference_l
X1
X2
Y
:
X1
⊆
Y
→
X1
∖
X2
⊆
Y
.
Proof
.
set_solver
.
Qed
.
(** Disjointness *)
Lemma
disjoint_intersection
X
Y
:
X
##
Y
↔
X
∩
Y
≡
∅.
Proof
.
set_solver
.
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