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
Gaëtan Gilbert
Iris
Commits
c8814e31
Commit
c8814e31
authored
7 years ago
by
Jacques-Henri Jourdan
Browse files
Options
Downloads
Patches
Plain Diff
New instances for monpred_car and bi_plainly.
parent
36c9602c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/proofmode/monpred.v
+19
-14
19 additions, 14 deletions
theories/proofmode/monpred.v
with
19 additions
and
14 deletions
theories/proofmode/monpred.v
+
19
−
14
View file @
c8814e31
...
...
@@ -58,10 +58,6 @@ Proof. rewrite /MakeMonPredCar=><-. by unseal. Qed.
Global
Instance
make_monPred_car_absorbingly
i
P
𝓟
:
MakeMonPredCar
i
P
𝓟
→
MakeMonPredCar
i
(
bi_absorbingly
P
)
(
bi_absorbingly
𝓟
)
.
Proof
.
rewrite
/
MakeMonPredCar
=>
<-.
by
unseal
.
Qed
.
Global
Instance
make_monPred_car_plainly
i
P
Φ
:
(
∀
j
,
MakeMonPredCar
j
P
(
Φ
j
))
→
MakeMonPredCar
i
(
bi_plainly
P
)
(
∀
j
,
bi_plainly
(
Φ
j
))
.
Proof
.
rewrite
/
MakeMonPredCar
=>
H
.
unseal
.
by
do
3
f_equiv
.
Qed
.
Global
Instance
make_monPred_car_persistently_if
i
P
𝓟
p
:
MakeMonPredCar
i
P
𝓟
→
MakeMonPredCar
i
(
bi_persistently_if
p
P
)
(
bi_persistently_if
p
𝓟
)
.
...
...
@@ -251,16 +247,14 @@ Proof.
rewrite
/
IntoExist
/
MakeMonPredCar
=>
->
H
.
setoid_rewrite
<-
H
.
by
unseal
.
Qed
.
Global
Instance
from_forall_monPred_car
{
A
}
P
(
Φ
:
A
→
monPred
)
(
Ψ
:
A
→
PROP
)
i
:
FromForall
P
Φ
→
(
∀
a
,
MakeMonPredCar
i
(
Φ
a
)
(
Ψ
a
))
→
FromForall
(
P
i
)
Ψ
.
Proof
.
rewrite
/
FromForall
/
MakeMonPredCar
=>
<-
H
.
setoid_rewrite
<-
H
.
by
unseal
.
Qed
.
Global
Instance
into_forall_monPred_car
{
A
}
P
(
Φ
:
A
→
monPred
)
(
Ψ
:
A
→
PROP
)
i
:
IntoForall
P
Φ
→
(
∀
a
,
MakeMonPredCar
i
(
Φ
a
)
(
Ψ
a
))
→
IntoForall
(
P
i
)
Ψ
.
Proof
.
rewrite
/
IntoForall
/
MakeMonPredCar
=>
->
H
.
setoid_rewrite
<-
H
.
by
unseal
.
Qed
.
Global
Instance
foram_forall_monPred_car_plainly
i
P
Φ
:
(
∀
i
,
MakeMonPredCar
i
P
(
Φ
i
))
→
FromForall
(
bi_plainly
P
i
)
(
λ
j
,
bi_plainly
(
Φ
j
))
.
Proof
.
rewrite
/
FromForall
/
MakeMonPredCar
=>
H
.
unseal
.
do
3
f_equiv
.
rewrite
H
//.
Qed
.
Global
Instance
into_forall_monPred_car_plainly
i
P
Φ
:
(
∀
i
,
MakeMonPredCar
i
P
(
Φ
i
))
→
IntoForall
(
bi_plainly
P
i
)
(
λ
j
,
bi_plainly
(
Φ
j
))
.
Proof
.
rewrite
/
IntoForall
/
MakeMonPredCar
=>
H
.
unseal
.
do
3
f_equiv
.
rewrite
H
//.
Qed
.
Global
Instance
from_forall_monPred_car_all
P
(
Φ
:
I
→
PROP
)
i
:
(
∀
i
,
MakeMonPredCar
i
P
(
Φ
i
))
→
FromForall
(
monPred_all
P
i
)
Φ
.
...
...
@@ -273,6 +267,17 @@ Proof.
rewrite
/
IntoForall
/
MakeMonPredCar
=>
H
.
setoid_rewrite
<-
H
.
by
unseal
.
Qed
.
Global
Instance
from_forall_monPred_car
{
A
}
P
(
Φ
:
A
→
monPred
)
(
Ψ
:
A
→
PROP
)
i
:
FromForall
P
Φ
→
(
∀
a
,
MakeMonPredCar
i
(
Φ
a
)
(
Ψ
a
))
→
FromForall
(
P
i
)
Ψ
.
Proof
.
rewrite
/
FromForall
/
MakeMonPredCar
=>
<-
H
.
setoid_rewrite
<-
H
.
by
unseal
.
Qed
.
Global
Instance
into_forall_monPred_car
{
A
}
P
(
Φ
:
A
→
monPred
)
(
Ψ
:
A
→
PROP
)
i
:
IntoForall
P
Φ
→
(
∀
a
,
MakeMonPredCar
i
(
Φ
a
)
(
Ψ
a
))
→
IntoForall
(
P
i
)
Ψ
.
Proof
.
rewrite
/
IntoForall
/
MakeMonPredCar
=>
->
H
.
setoid_rewrite
<-
H
.
by
unseal
.
Qed
.
(* FIXME : there are two good ways to frame under a call to
monPred_car. This may cause some backtracking in the typeclass
search, and hence performance issues. *)
...
...
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