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
Pierre Roux
Iris
Commits
aef49c51
Commit
aef49c51
authored
5 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Misc auth consistency fixes.
parent
e561f965
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/algebra/auth.v
+8
-8
8 additions, 8 deletions
theories/algebra/auth.v
with
8 additions
and
8 deletions
theories/algebra/auth.v
+
8
−
8
View file @
aef49c51
...
@@ -21,9 +21,9 @@ Instance: Params (@Auth) 1 := {}.
...
@@ -21,9 +21,9 @@ Instance: Params (@Auth) 1 := {}.
Instance
:
Params
(
@
auth_auth_proj
)
1
:=
{}
.
Instance
:
Params
(
@
auth_auth_proj
)
1
:=
{}
.
Instance
:
Params
(
@
auth_frag_proj
)
1
:=
{}
.
Instance
:
Params
(
@
auth_frag_proj
)
1
:=
{}
.
Definition
auth_frag
{
A
:
ucmraT
}
(
a
:
A
)
:
auth
A
:=
(
Auth
None
a
)
.
Definition
auth_frag
{
A
:
ucmraT
}
(
a
:
A
)
:
auth
A
:=
Auth
None
a
.
Definition
auth_auth
{
A
:
ucmraT
}
(
q
:
Qp
)
(
a
:
A
):
auth
A
:=
Definition
auth_auth
{
A
:
ucmraT
}
(
q
:
Qp
)
(
a
:
A
)
:
auth
A
:=
(
Auth
(
Some
(
q
,
to_agree
a
))
ε
)
.
Auth
(
Some
(
q
,
to_agree
a
))
ε
.
Typeclasses
Opaque
auth_auth
auth_frag
.
Typeclasses
Opaque
auth_auth
auth_frag
.
...
@@ -34,8 +34,8 @@ Notation "◯ a" := (auth_frag a) (at level 20).
...
@@ -34,8 +34,8 @@ Notation "◯ a" := (auth_frag a) (at level 20).
Notation
"●{ q } a"
:=
(
auth_auth
q
a
)
(
at
level
20
,
format
"●{ q } a"
)
.
Notation
"●{ q } a"
:=
(
auth_auth
q
a
)
(
at
level
20
,
format
"●{ q } a"
)
.
Notation
"● a"
:=
(
auth_auth
1
a
)
(
at
level
20
)
.
Notation
"● a"
:=
(
auth_auth
1
a
)
(
at
level
20
)
.
(*
COFE
*)
(*
Ofe
*)
Section
c
ofe
.
Section
ofe
.
Context
{
A
:
ofeT
}
.
Context
{
A
:
ofeT
}
.
Implicit
Types
a
:
option
(
frac
*
agree
A
)
.
Implicit
Types
a
:
option
(
frac
*
agree
A
)
.
Implicit
Types
b
:
A
.
Implicit
Types
b
:
A
.
...
@@ -69,11 +69,11 @@ Global Instance Auth_discrete a b :
...
@@ -69,11 +69,11 @@ Global Instance Auth_discrete a b :
Proof
.
by
intros
??
[??]
[??];
split
;
apply
:
discrete
.
Qed
.
Proof
.
by
intros
??
[??]
[??];
split
;
apply
:
discrete
.
Qed
.
Global
Instance
auth_ofe_discrete
:
OfeDiscrete
A
→
OfeDiscrete
authC
.
Global
Instance
auth_ofe_discrete
:
OfeDiscrete
A
→
OfeDiscrete
authC
.
Proof
.
intros
?
[??];
apply
_
.
Qed
.
Proof
.
intros
?
[??];
apply
_
.
Qed
.
End
c
ofe
.
End
ofe
.
Arguments
authC
:
clear
implicits
.
Arguments
authC
:
clear
implicits
.
(* C
MRA
*)
(* C
amera
*)
Section
cmra
.
Section
cmra
.
Context
{
A
:
ucmraT
}
.
Context
{
A
:
ucmraT
}
.
Implicit
Types
a
b
:
A
.
Implicit
Types
a
b
:
A
.
...
@@ -288,7 +288,7 @@ Lemma auth_frag_mono a b : a ≼ b → ◯ a ≼ ◯ b.
...
@@ -288,7 +288,7 @@ Lemma auth_frag_mono a b : a ≼ b → ◯ a ≼ ◯ b.
Proof
.
intros
[
c
->
]
.
rewrite
auth_frag_op
.
apply
cmra_included_l
.
Qed
.
Proof
.
intros
[
c
->
]
.
rewrite
auth_frag_op
.
apply
cmra_included_l
.
Qed
.
Global
Instance
auth_frag_sep_homomorphism
:
Global
Instance
auth_frag_sep_homomorphism
:
MonoidHomomorphism
op
op
(
≡
)
(
@
A
uth
A
None
)
.
MonoidHomomorphism
op
op
(
≡
)
(
@
a
uth
_frag
A
)
.
Proof
.
by
split
;
[
split
;
try
apply
_|]
.
Qed
.
Proof
.
by
split
;
[
split
;
try
apply
_|]
.
Qed
.
Lemma
auth_both_frac_op
q
a
b
:
Auth
(
Some
(
q
,
to_agree
a
))
b
≡
●
{
q
}
a
⋅
◯
b
.
Lemma
auth_both_frac_op
q
a
b
:
Auth
(
Some
(
q
,
to_agree
a
))
b
≡
●
{
q
}
a
⋅
◯
b
.
...
...
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