Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Paolo G. Giarrusso
iris
Commits
a19d201e
Commit
a19d201e
authored
7 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
use sections to scope options
parent
c654a73e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/algebra/cmra.v
+24
-23
24 additions, 23 deletions
theories/algebra/cmra.v
theories/algebra/ofe.v
+8
-7
8 additions, 7 deletions
theories/algebra/ofe.v
with
32 additions
and
30 deletions
theories/algebra/cmra.v
+
24
−
23
View file @
a19d201e
...
@@ -39,29 +39,30 @@ Notation "x ≼{ n } y" := (includedN n x y)
...
@@ -39,29 +39,30 @@ Notation "x ≼{ n } y" := (includedN n x y)
Instance
:
Params
(
@
includedN
)
4
.
Instance
:
Params
(
@
includedN
)
4
.
Hint
Extern
0
(_
≼
{_}
_)
=>
reflexivity
.
Hint
Extern
0
(_
≼
{_}
_)
=>
reflexivity
.
Set
Primitive
Projections
.
Section
mixin
.
Record
CMRAMixin
A
`{
Dist
A
,
Equiv
A
,
PCore
A
,
Op
A
,
Valid
A
,
ValidN
A
}
:=
{
Local
Set
Primitive
Projections
.
(* setoids *)
Record
CMRAMixin
A
`{
Dist
A
,
Equiv
A
,
PCore
A
,
Op
A
,
Valid
A
,
ValidN
A
}
:=
{
mixin_cmra_op_ne
(
x
:
A
)
:
NonExpansive
(
op
x
);
(* setoids *)
mixin_cmra_pcore_ne
n
x
y
cx
:
mixin_cmra_op_ne
(
x
:
A
)
:
NonExpansive
(
op
x
);
x
≡
{
n
}
≡
y
→
pcore
x
=
Some
cx
→
∃
cy
,
pcore
y
=
Some
cy
∧
cx
≡
{
n
}
≡
cy
;
mixin_cmra_pcore_ne
n
x
y
cx
:
mixin_cmra_validN_ne
n
:
Proper
(
dist
n
==>
impl
)
(
validN
n
);
x
≡
{
n
}
≡
y
→
pcore
x
=
Some
cx
→
∃
cy
,
pcore
y
=
Some
cy
∧
cx
≡
{
n
}
≡
cy
;
(* valid *)
mixin_cmra_validN_ne
n
:
Proper
(
dist
n
==>
impl
)
(
validN
n
);
mixin_cmra_valid_validN
x
:
✓
x
↔
∀
n
,
✓
{
n
}
x
;
(* valid *)
mixin_cmra_validN_S
n
x
:
✓
{
S
n
}
x
→
✓
{
n
}
x
;
mixin_cmra_valid_validN
x
:
✓
x
↔
∀
n
,
✓
{
n
}
x
;
(* monoid *)
mixin_cmra_validN_S
n
x
:
✓
{
S
n
}
x
→
✓
{
n
}
x
;
mixin_cmra_assoc
:
Assoc
(
≡
)
(
⋅
);
(* monoid *)
mixin_cmra_comm
:
Comm
(
≡
)
(
⋅
);
mixin_cmra_assoc
:
Assoc
(
≡
)
(
⋅
);
mixin_cmra_pcore_l
x
cx
:
pcore
x
=
Some
cx
→
cx
⋅
x
≡
x
;
mixin_cmra_comm
:
Comm
(
≡
)
(
⋅
);
mixin_cmra_pcore_idemp
x
cx
:
pcore
x
=
Some
cx
→
pcore
cx
≡
Some
cx
;
mixin_cmra_pcore_l
x
cx
:
pcore
x
=
Some
cx
→
cx
⋅
x
≡
x
;
mixin_cmra_pcore_mono
x
y
cx
:
mixin_cmra_pcore_idemp
x
cx
:
pcore
x
=
Some
cx
→
pcore
cx
≡
Some
cx
;
x
≼
y
→
pcore
x
=
Some
cx
→
∃
cy
,
pcore
y
=
Some
cy
∧
cx
≼
cy
;
mixin_cmra_pcore_mono
x
y
cx
:
mixin_cmra_validN_op_l
n
x
y
:
✓
{
n
}
(
x
⋅
y
)
→
✓
{
n
}
x
;
x
≼
y
→
pcore
x
=
Some
cx
→
∃
cy
,
pcore
y
=
Some
cy
∧
cx
≼
cy
;
mixin_cmra_extend
n
x
y1
y2
:
mixin_cmra_validN_op_l
n
x
y
:
✓
{
n
}
(
x
⋅
y
)
→
✓
{
n
}
x
;
✓
{
n
}
x
→
x
≡
{
n
}
≡
y1
⋅
y2
→
mixin_cmra_extend
n
x
y1
y2
:
∃
z1
z2
,
x
≡
z1
⋅
z2
∧
z1
≡
{
n
}
≡
y1
∧
z2
≡
{
n
}
≡
y2
✓
{
n
}
x
→
x
≡
{
n
}
≡
y1
⋅
y2
→
}
.
∃
z1
z2
,
x
≡
z1
⋅
z2
∧
z1
≡
{
n
}
≡
y1
∧
z2
≡
{
n
}
≡
y2
Unset
Primitive
Projections
.
}
.
End
mixin
.
(** Bundeled version *)
(** Bundeled version *)
Structure
cmraT
:=
CMRAT'
{
Structure
cmraT
:=
CMRAT'
{
...
...
This diff is collapsed.
Click to expand it.
theories/algebra/ofe.v
+
8
−
7
View file @
a19d201e
...
@@ -33,13 +33,14 @@ Tactic Notation "ofe_subst" :=
...
@@ -33,13 +33,14 @@ Tactic Notation "ofe_subst" :=
|
H
:
@
dist
?A
?d
?n
_
?x
|
-
_
=>
symmetry
in
H
;
setoid_subst_aux
(
@
dist
A
d
n
)
x
|
H
:
@
dist
?A
?d
?n
_
?x
|
-
_
=>
symmetry
in
H
;
setoid_subst_aux
(
@
dist
A
d
n
)
x
end
.
end
.
Set
Primitive
Projections
.
Section
mixin
.
Record
OfeMixin
A
`{
Equiv
A
,
Dist
A
}
:=
{
Local
Set
Primitive
Projections
.
mixin_equiv_dist
x
y
:
x
≡
y
↔
∀
n
,
x
≡
{
n
}
≡
y
;
Record
OfeMixin
A
`{
Equiv
A
,
Dist
A
}
:=
{
mixin_dist_equivalence
n
:
Equivalence
(
dist
n
);
mixin_equiv_dist
x
y
:
x
≡
y
↔
∀
n
,
x
≡
{
n
}
≡
y
;
mixin_dist_S
n
x
y
:
x
≡
{
S
n
}
≡
y
→
x
≡
{
n
}
≡
y
mixin_dist_equivalence
n
:
Equivalence
(
dist
n
);
}
.
mixin_dist_S
n
x
y
:
x
≡
{
S
n
}
≡
y
→
x
≡
{
n
}
≡
y
Unset
Primitive
Projections
.
}
.
End
mixin
.
(** Bundeled version *)
(** Bundeled version *)
Structure
ofeT
:=
OfeT'
{
Structure
ofeT
:=
OfeT'
{
...
...
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