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
Yixuan Chen
Iris
Commits
3cb65333
Commit
3cb65333
authored
3 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Bump std++ (merge changes).
parent
8a12ebc2
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
coq-iris.opam
+1
-1
1 addition, 1 deletion
coq-iris.opam
iris/algebra/gmap.v
+8
-6
8 additions, 6 deletions
iris/algebra/gmap.v
with
9 additions
and
7 deletions
coq-iris.opam
+
1
−
1
View file @
3cb65333
...
@@ -15,7 +15,7 @@ iris.prelude, iris.algebra, iris.si_logic, iris.bi, iris.proofmode, iris.base_lo
...
@@ -15,7 +15,7 @@ iris.prelude, iris.algebra, iris.si_logic, iris.bi, iris.proofmode, iris.base_lo
depends: [
depends: [
"coq" { (>= "8.12" & < "8.14~") | (= "dev") }
"coq" { (>= "8.12" & < "8.14~") | (= "dev") }
"coq-stdpp" { (= "dev.2021-06-11.
0.ca70af1d
") | (= "dev") }
"coq-stdpp" { (= "dev.2021-06-11.
2.b2a8bf65
") | (= "dev") }
]
]
build: ["./make-package" "iris" "-j%{jobs}%"]
build: ["./make-package" "iris" "-j%{jobs}%"]
...
...
This diff is collapsed.
Click to expand it.
iris/algebra/gmap.v
+
8
−
6
View file @
3cb65333
...
@@ -107,11 +107,13 @@ Qed.
...
@@ -107,11 +107,13 @@ Qed.
Global
Arguments
gmapO
_
{_
_}
_
.
Global
Arguments
gmapO
_
{_
_}
_
.
(** Non-expansiveness of higher-order map functions and big-ops *)
(** Non-expansiveness of higher-order map functions and big-ops *)
Lemma
merge_ne
`{
Countable
K
}
{
A
B
C
:
ofe
}
(
f
g
:
option
A
→
option
B
→
option
C
)
Global
Instance
merge_ne
`{
Countable
K
}
{
A
B
C
:
ofe
}
n
:
`{
!
DiagNone
f
,
!
DiagNone
g
}
n
:
Proper
(((
dist
(
A
:=
option
A
)
n
)
==>
(
dist
(
A
:=
option
B
)
n
)
==>
(
dist
(
A
:=
option
C
)
n
))
==>
((
dist
n
)
==>
(
dist
n
)
==>
(
dist
n
))
%
signature
f
g
→
(
dist
n
)
==>
(
dist
n
)
==>
(
dist
n
))
(
merge
(
M
:=
gmap
K
))
.
((
dist
n
)
==>
(
dist
n
)
==>
(
dist
n
))
%
signature
(
merge
(
M
:=
gmap
K
)
f
)
(
merge
g
)
.
Proof
.
Proof
.
by
intros
Hf
??
Hm1
??
Hm2
i
;
rewrite
!
lookup_merge
//
;
apply
Hf
.
Qed
.
intros
??
Hf
??
Hm1
??
Hm2
i
.
rewrite
!
lookup_merge
.
destruct
(
Hm1
i
),
(
Hm2
i
);
try
apply
Hf
;
by
constructor
.
Qed
.
Global
Instance
union_with_proper
`{
Countable
K
}
{
A
:
ofe
}
n
:
Global
Instance
union_with_proper
`{
Countable
K
}
{
A
:
ofe
}
n
:
Proper
(((
dist
n
)
==>
(
dist
n
)
==>
(
dist
n
))
==>
Proper
(((
dist
n
)
==>
(
dist
n
)
==>
(
dist
n
))
==>
(
dist
n
)
==>
(
dist
n
)
==>
(
dist
n
))
(
union_with
(
M
:=
gmap
K
A
))
.
(
dist
n
)
==>
(
dist
n
)
==>
(
dist
n
))
(
union_with
(
M
:=
gmap
K
A
))
.
...
@@ -157,7 +159,7 @@ Local Instance gmap_validN_instance : ValidN (gmap K A) := λ n m, ∀ i, ✓{n}
...
@@ -157,7 +159,7 @@ Local Instance gmap_validN_instance : ValidN (gmap K A) := λ n m, ∀ i, ✓{n}
Lemma
gmap_op
m1
m2
:
m1
⋅
m2
=
merge
op
m1
m2
.
Lemma
gmap_op
m1
m2
:
m1
⋅
m2
=
merge
op
m1
m2
.
Proof
.
done
.
Qed
.
Proof
.
done
.
Qed
.
Lemma
lookup_op
m1
m2
i
:
(
m1
⋅
m2
)
!!
i
=
m1
!!
i
⋅
m2
!!
i
.
Lemma
lookup_op
m1
m2
i
:
(
m1
⋅
m2
)
!!
i
=
m1
!!
i
⋅
m2
!!
i
.
Proof
.
by
apply
lookup_merge
.
Qed
.
Proof
.
rewrite
lookup_merge
.
by
destruct
(
m1
!!
i
),
(
m2
!!
i
)
.
Qed
.
Lemma
lookup_core
m
i
:
core
m
!!
i
=
core
(
m
!!
i
)
.
Lemma
lookup_core
m
i
:
core
m
!!
i
=
core
(
m
!!
i
)
.
Proof
.
by
apply
lookup_omap
.
Qed
.
Proof
.
by
apply
lookup_omap
.
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