Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
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
Package Registry
Model registry
Operate
Terraform modules
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
William Mansky
Iris
Commits
c66ceaed
Commit
c66ceaed
authored
4 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Remove lemma `view_equivI` and document that.
parent
12796181
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/algebra/auth.v
+3
-0
3 additions, 0 deletions
theories/algebra/auth.v
theories/algebra/view.v
+6
-6
6 additions, 6 deletions
theories/algebra/view.v
with
9 additions
and
6 deletions
theories/algebra/auth.v
+
3
−
0
View file @
c66ceaed
...
...
@@ -62,6 +62,9 @@ Notation "●{ q } a" := (auth_auth q a) (at level 20, format "●{ q } a").
Notation
"● a"
:=
(
auth_auth
1
a
)
(
at
level
20
)
.
(** * Laws of the authoritative camera *)
(** We omit the usual [equivI] lemma because it is hard to state a suitably
general version in terms of [●] and [◯], and because such a lemma has never
been needed in practice. *)
Section
auth
.
Context
{
A
:
ucmraT
}
.
Implicit
Types
a
b
:
A
.
...
...
This diff is collapsed.
Click to expand it.
theories/algebra/view.v
+
6
−
6
View file @
c66ceaed
...
...
@@ -71,6 +71,9 @@ Class ViewRelDiscrete {A B} (rel : view_rel A B) :=
view_rel_discrete
n
a
b
:
rel
0
a
b
→
rel
n
a
b
.
(** * Definition of the view camera *)
(** To make use of the lemmas provided in this file, elements of [view] should
always be constructed using [●V] and [◯V], and never using the constructor
[View]. *)
Record
view
{
A
B
}
(
rel
:
nat
→
A
→
B
→
Prop
)
:=
View
{
view_auth_proj
:
option
(
frac
*
agree
A
)
;
view_frag_proj
:
B
}
.
Add
Printing
Constructor
view
.
...
...
@@ -94,6 +97,9 @@ Notation "●V a" := (view_auth 1 a) (at level 20).
Notation
"◯V a"
:=
(
view_frag
a
)
(
at
level
20
)
.
(** * The OFE structure *)
(** We omit the usual [equivI] lemma because it is hard to state a suitably
general version in terms of [●V] and [◯V], and because such a lemma has never
been needed in practice. *)
Section
ofe
.
Context
{
A
B
:
ofeT
}
(
rel
:
nat
→
A
→
B
→
Prop
)
.
Implicit
Types
a
:
A
.
...
...
@@ -132,12 +138,6 @@ Section ofe.
Global
Instance
view_ofe_discrete
:
OfeDiscrete
A
→
OfeDiscrete
B
→
OfeDiscrete
viewO
.
Proof
.
intros
??
[??];
apply
_
.
Qed
.
(** Internalized properties *)
Lemma
view_equivI
{
M
}
x
y
:
x
≡
y
⊣⊢@
{
uPredI
M
}
view_auth_proj
x
≡
view_auth_proj
y
∧
view_frag_proj
x
≡
view_frag_proj
y
.
Proof
.
by
uPred
.
unseal
.
Qed
.
End
ofe
.
(** * The camera structure *)
...
...
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