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
85d5291f
Commit
85d5291f
authored
2 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Rename seal lemmas from `_eq` to `_unseal` and make sealing stuff `Local`.
parent
53c9d7f7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!378
Rename seal lemmas from `_eq` to `_unseal` and make sealing stuff `Local`.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/namespaces.v
+11
-11
11 additions, 11 deletions
theories/namespaces.v
with
11 additions
and
11 deletions
theories/namespaces.v
+
11
−
11
View file @
85d5291f
...
...
@@ -8,17 +8,17 @@ Typeclasses Opaque namespace.
Definition
nroot
:
namespace
:=
nil
.
Definition
ndot_def
`{
Countable
A
}
(
N
:
namespace
)
(
x
:
A
)
:
namespace
:=
Local
Definition
ndot_def
`{
Countable
A
}
(
N
:
namespace
)
(
x
:
A
)
:
namespace
:=
encode
x
::
N
.
Definition
ndot_aux
:
seal
(
@
ndot_def
)
.
by
eexists
.
Qed
.
Local
Definition
ndot_aux
:
seal
(
@
ndot_def
)
.
by
eexists
.
Qed
.
Definition
ndot
{
A
A_dec
A_count
}:=
unseal
ndot_aux
A
A_dec
A_count
.
Definition
ndot_
eq
:
@
ndot
=
@
ndot_def
:=
seal_eq
ndot_aux
.
Local
Definition
ndot_
unseal
:
@
ndot
=
@
ndot_def
:=
seal_eq
ndot_aux
.
Definition
nclose_def
(
N
:
namespace
)
:
coPset
:=
Local
Definition
nclose_def
(
N
:
namespace
)
:
coPset
:=
coPset_suffixes
(
positives_flatten
N
)
.
Definition
nclose_aux
:
seal
(
@
nclose_def
)
.
by
eexists
.
Qed
.
Local
Definition
nclose_aux
:
seal
(
@
nclose_def
)
.
by
eexists
.
Qed
.
Global
Instance
nclose
:
UpClose
namespace
coPset
:=
unseal
nclose_aux
.
Definition
nclose_
eq
:
@
nclose
=
@
nclose_def
:=
seal_eq
nclose_aux
.
Local
Definition
nclose_
unseal
:
@
nclose
=
@
nclose_def
:=
seal_eq
nclose_aux
.
Notation
"N .@ x"
:=
(
ndot
N
x
)
(
at
level
19
,
left
associativity
,
format
"N .@ x"
)
:
stdpp_scope
.
...
...
@@ -33,14 +33,14 @@ Section namespace.
Implicit
Types
E
:
coPset
.
Global
Instance
ndot_inj
:
Inj2
(
=
)
(
=
)
(
=
)
(
@
ndot
A
_
_)
.
Proof
.
intros
N1
x1
N2
x2
;
rewrite
!
ndot_
eq
;
naive_solver
.
Qed
.
Proof
.
intros
N1
x1
N2
x2
;
rewrite
!
ndot_
unseal
;
naive_solver
.
Qed
.
Lemma
nclose_nroot
:
↑
nroot
=
(
⊤
:
coPset
)
.
Proof
.
rewrite
nclose_
eq
.
by
apply
(
sig_eq_pi
_)
.
Qed
.
Proof
.
rewrite
nclose_
unseal
.
by
apply
(
sig_eq_pi
_)
.
Qed
.
Lemma
nclose_subseteq
N
x
:
↑
N
.
@
x
⊆
(
↑
N
:
coPset
)
.
Proof
.
intros
p
.
unfold
up_close
.
rewrite
!
nclose_
eq
,
!
ndot_
eq
.
intros
p
.
unfold
up_close
.
rewrite
!
nclose_
unseal
,
!
ndot_
unseal
.
unfold
nclose_def
,
ndot_def
;
rewrite
!
elem_coPset_suffixes
.
intros
[
q
->
]
.
destruct
(
positives_flatten_suffix
N
(
ndot_def
N
x
))
as
[
q'
?]
.
{
by
exists
[
encode
x
]
.
}
...
...
@@ -51,11 +51,11 @@ Section namespace.
Proof
.
intros
.
etrans
;
eauto
using
nclose_subseteq
.
Qed
.
Lemma
nclose_infinite
N
:
¬
set_finite
(
↑
N
:
coPset
)
.
Proof
.
rewrite
nclose_
eq
.
apply
coPset_suffixes_infinite
.
Qed
.
Proof
.
rewrite
nclose_
unseal
.
apply
coPset_suffixes_infinite
.
Qed
.
Lemma
ndot_ne_disjoint
N
x
y
:
x
≠
y
→
N
.
@
x
##
N
.
@
y
.
Proof
.
intros
Hxy
a
.
unfold
up_close
.
rewrite
!
nclose_
eq
,
!
ndot_
eq
.
intros
Hxy
a
.
unfold
up_close
.
rewrite
!
nclose_
unseal
,
!
ndot_
unseal
.
unfold
nclose_def
,
ndot_def
;
rewrite
!
elem_coPset_suffixes
.
intros
[
qx
->
]
[
qy
Hqy
]
.
revert
Hqy
.
by
intros
[
=
?
%
(
inj
encode
)]
%
positives_flatten_suffix_eq
.
...
...
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