Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Monitor
Incidents
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
Abel Nieto
Iris
Commits
a988acd6
Commit
a988acd6
authored
4 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Make use of OFE isomorphisms in COFE solver.
parent
415685af
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/cofe_solver.v
+2
-7
2 additions, 7 deletions
theories/algebra/cofe_solver.v
theories/base_logic/lib/iprop.v
+5
-4
5 additions, 4 deletions
theories/base_logic/lib/iprop.v
with
7 additions
and
11 deletions
theories/algebra/cofe_solver.v
+
2
−
7
View file @
a988acd6
...
...
@@ -4,13 +4,8 @@ Set Default Proof Using "Type".
Record
solution
(
F
:
oFunctor
)
:=
Solution
{
solution_car
:>
ofeT
;
solution_cofe
:
Cofe
solution_car
;
solution_unfold
:
solution_car
-
n
>
F
solution_car
_;
solution_fold
:
F
solution_car
_
-
n
>
solution_car
;
solution_fold_unfold
X
:
solution_fold
(
solution_unfold
X
)
≡
X
;
solution_unfold_fold
X
:
solution_unfold
(
solution_fold
X
)
≡
X
solution_iso
:>
ofe_iso
(
F
solution_car
_)
solution_car
;
}
.
Arguments
solution_unfold
{_}
_
.
Arguments
solution_fold
{_}
_
.
Existing
Instance
solution_cofe
.
Module
solver
.
Section
solver
.
...
...
@@ -210,7 +205,7 @@ Proof. by intros n X Y HXY k; rewrite /fold /= HXY. Qed.
Theorem
result
:
solution
F
.
Proof
using
Type
*.
apply
(
Solution
F
T
_
(
OfeMor
un
fold
)
(
OfeMor
fold
))
.
refine
(
Solution
F
T
_
(
OfeIso
(
OfeMor
fold
)
(
OfeMor
un
fold
)
_
_)
)
.
-
move
=>
X
/=.
rewrite
equiv_dist
=>
n
k
;
rewrite
/
unfold
/
fold
/=.
rewrite
-
g_tower
-
(
gg_tower
_
n
);
apply
(_
:
Proper
(_
==>
_)
(
g
_))
.
trans
(
map
(
ff
n
,
gg
n
)
(
X
(
S
(
n
+
k
))))
.
...
...
This diff is collapsed.
Click to expand it.
theories/base_logic/lib/iprop.v
+
5
−
4
View file @
a988acd6
...
...
@@ -147,12 +147,13 @@ Module Export iProp_solution : iProp_solution_sig.
Notation
iPropO
Σ
:=
(
uPredO
(
iResUR
Σ
))
.
Definition
iProp_unfold
{
Σ
}
:
iPropO
Σ
-
n
>
iPrePropO
Σ
:=
solution_fold
(
iProp_result
Σ
)
.
Definition
iProp_fold
{
Σ
}
:
iPrePropO
Σ
-
n
>
iPropO
Σ
:=
solution_unfold
_
.
ofe_iso_1
(
iProp_result
Σ
)
.
Definition
iProp_fold
{
Σ
}
:
iPrePropO
Σ
-
n
>
iPropO
Σ
:=
ofe_iso_2
(
iProp_result
Σ
)
.
Lemma
iProp_fold_unfold
{
Σ
}
(
P
:
iProp
Σ
)
:
iProp_fold
(
iProp_unfold
P
)
≡
P
.
Proof
.
apply
solution_unfold_fold
.
Qed
.
Proof
.
apply
ofe_iso_21
.
Qed
.
Lemma
iProp_unfold_fold
{
Σ
}
(
P
:
iPrePropO
Σ
)
:
iProp_unfold
(
iProp_fold
P
)
≡
P
.
Proof
.
apply
solution_fold_unfold
.
Qed
.
Proof
.
apply
ofe_iso_12
.
Qed
.
End
iProp_solution
.
...
...
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