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
3f996021
Commit
3f996021
authored
6 months ago
by
Janggun Lee
Browse files
Options
Downloads
Patches
Plain Diff
Apply review comments and add `discrete_fun_updateP'`.
parent
fe3f50a8
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
iris/algebra/functions.v
+9
-8
9 additions, 8 deletions
iris/algebra/functions.v
with
9 additions
and
8 deletions
iris/algebra/functions.v
+
9
−
8
View file @
3f996021
...
...
@@ -162,21 +162,22 @@ Section cmra.
eauto
using
discrete_fun_singleton_updateP_empty
with
subst
.
Qed
.
Lemma
discrete_fun_updateP
`{
Hfin
:
Finite
A
}
f
P
:
(
∀
a
,
f
a
~~>:
P
a
)
→
f
~~>:
(
λ
f'
,
∀
a
,
P
a
(
f'
a
))
.
Lemma
discrete_fun_updateP
`{
!
Finite
A
}
f
P
Q
:
(
∀
a
,
f
a
~~>:
P
a
)
→
(
∀
f'
,
(
∀
a
,
P
a
(
f'
a
))
→
Q
f'
)
→
f
~~>:
Q
.
Proof
.
rewrite
cmra_total_updateP
.
setoid_rewrite
cmra_total_updateP
.
intros
Hf
n
z
Hfz
.
repeat
setoid_rewrite
cmra_total_updateP
.
intros
Hf
HP
n
h
Hh
.
destruct
(
finite_choice
(
λ
a
y
,
P
a
y
∧
✓
{
n
}
(
y
⋅
(
z
a
)))
ltac
:(
naive_solver
))
as
[
f'
Hf'
]
.
(
λ
a
y
,
P
a
y
∧
✓
{
n
}
(
y
⋅
(
h
a
))))
as
[
f'
Hf'
];
first
naive_solver
.
naive_solver
.
Qed
.
Lemma
discrete_fun_updateP'
`{
!
Finite
A
}
f
P
:
(
∀
a
,
f
a
~~>:
P
a
)
→
f
~~>:
λ
f'
,
∀
a
,
P
a
(
f'
a
)
.
Proof
.
eauto
using
discrete_fun_updateP
.
Qed
.
Lemma
discrete_fun_update
f
g
:
(
∀
a
,
f
a
~~>
g
a
)
→
f
~~>
g
.
Proof
.
re
write
cmra_total_update
.
setoid_rewrite
cmra_total_update
.
intros
Hfg
n
zf
H
z
a
.
apply
(
Hfg
a
),
H
z
.
re
peat
setoid_rewrite
cmra_total_update
.
intros
Hfg
n
h
H
h
a
.
apply
(
Hfg
a
),
H
h
.
Qed
.
End
cmra
.
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