Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
examples
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo Stefanesco
examples
Commits
c8c015c7
Commit
c8c015c7
authored
Jun 22, 2020
by
Amin Timany
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify persistent predicates as Robbert suggested
parent
fcd6ddd3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
28 deletions
+12
-28
theories/logrel/persistent_pred.v
theories/logrel/persistent_pred.v
+12
-28
No files found.
theories/logrel/persistent_pred.v
View file @
c8c015c7
...
...
@@ -18,42 +18,26 @@ Section persistent_pred.
Global
Instance
persistent_pred_dist
:
Dist
persistent_pred
:
=
λ
n
Φ
Φ
'
,
∀
x
,
Φ
x
≡
{
n
}
≡
Φ
'
x
.
Definition
persistent_pred_ofe_mixin
:
OfeMixin
persistent_pred
.
Proof
.
split
.
-
intros
?
?
;
split
;
first
by
intros
Heq
?
?
;
rewrite
Heq
.
intros
Heq
?
;
apply
equiv_dist
;
intros
?
;
apply
Heq
.
-
intros
n
;
split
.
+
by
intros
?
?.
+
by
intros
?
?
?
?.
+
by
intros
?
?
?
?
?
?
;
etrans
;
eauto
.
-
intros
?
?
?
?
?
;
apply
dist_S
;
done
.
Qed
.
Proof
.
by
apply
(
iso_ofe_mixin
(
pers_pred_car
:
_
→
A
-
d
>
_
)).
Qed
.
Global
Canonical
Structure
persistent_predC
:
=
OfeT
persistent_pred
persistent_pred_ofe_mixin
.
Program
Definition
persistent_pred_chain
(
c
:
chain
persistent_predC
)
(
x
:
A
)
:
chain
(
uPredO
M
)
:
=
{|
chain_car
n
:
=
c
n
x
|}.
Next
Obligation
.
intros
c
vv
n
i
?.
by
apply
(
chain_cauchy
c
).
Qed
.
Program
Definition
persistent_pred_compl
:
Compl
persistent_predC
:
=
λ
c
,
{|
pers_pred_car
x
:
=
compl
(
persistent_pred_chain
c
x
)
|}.
Next
Obligation
.
intros
c
x
.
eapply
@
limit_preserving
;
apply
_
.
Qed
.
Global
Program
Instance
persistent_pred_cofe
:
Cofe
persistent_predC
:
=
{|
compl
:
=
persistent_pred_compl
|}.
Next
Obligation
.
intros
?
?
?.
rewrite
/
persistent_pred_compl
/
pers_pred_car
/=.
rewrite
conv_compl
;
done
.
Global
Instance
persistent_pred_cofe
:
Cofe
persistent_predC
.
Proof
.
apply
(
iso_cofe_subtype'
(
λ
Φ
:
A
-
d
>
uPredO
M
,
∀
w
,
Persistent
(
Φ
w
))
PersPred
pers_pred_car
)=>
//.
-
apply
_
.
-
apply
limit_preserving_forall
=>
w
.
by
apply
bi
.
limit_preserving_Persistent
=>
n
??.
Qed
.
Global
Instance
pers_pred_car_ne
n
:
Proper
(
dist
n
==>
@
dist
A
(@
discrete_dist
A
(@
equivL
A
))
n
==>
dist
n
)
Proper
(
dist
n
==>
(=)
==>
dist
n
)
pers_pred_car
.
Proof
.
intros
f
g
Hfg
?
?
->
;
apply
Hfg
.
Qed
.
Proof
.
by
intros
?
?
?
?
?
->
.
Qed
.
Global
Instance
pers_pred_car_proper
:
Proper
((
≡
)
==>
@
equivL
A
==>
(
≡
))
pers_pred_car
:
=
(@
ne_proper_2
_
(
leibnizO
A
)
_
pers_pred_car
_
)
.
Proper
((
≡
)
==>
(=)
==>
(
≡
))
pers_pred_car
.
Proof
.
by
intros
?
?
?
?
?
->.
Qed
.
Lemma
domain_ext
(
f
g
:
persistent_pred
)
:
f
≡
g
↔
∀
x
,
f
x
≡
g
x
.
Proof
.
done
.
Qed
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment