Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris-coq
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
Michael Sammler
iris-coq
Commits
e2ece00a
Commit
e2ece00a
authored
6 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Use `IsCons` and `IsApp` more consistently.
parent
a3a4c80f
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/class_instances_bi.v
+16
-12
16 additions, 12 deletions
theories/proofmode/class_instances_bi.v
with
16 additions
and
12 deletions
theories/proofmode/class_instances_bi.v
+
16
−
12
View file @
e2ece00a
...
...
@@ -536,15 +536,17 @@ Global Instance from_and_embed `{BiEmbed PROP PROP'} P Q1 Q2 :
FromAnd
P
Q1
Q2
→
FromAnd
⎡
P
⎤
⎡
Q1
⎤
⎡
Q2
⎤.
Proof
.
by
rewrite
/
FromAnd
-
embed_and
=>
<-.
Qed
.
Global
Instance
from_and_big_sepL_cons_persistent
{
A
}
(
Φ
:
nat
→
A
→
PROP
)
x
l
:
Global
Instance
from_and_big_sepL_cons_persistent
{
A
}
(
Φ
:
nat
→
A
→
PROP
)
l
x
l'
:
IsCons
l
x
l'
→
Persistent
(
Φ
0
x
)
→
FromAnd
([
∗
list
]
k
↦
y
∈
x
::
l
,
Φ
k
y
)
(
Φ
0
x
)
([
∗
list
]
k
↦
y
∈
l
,
Φ
(
S
k
)
y
)
.
Proof
.
intros
.
by
rewrite
/
FromAnd
big_opL_cons
persistent_and_sep_1
.
Qed
.
Global
Instance
from_and_big_sepL_app_persistent
{
A
}
(
Φ
:
nat
→
A
→
PROP
)
l1
l2
:
FromAnd
([
∗
list
]
k
↦
y
∈
l
,
Φ
k
y
)
(
Φ
0
x
)
([
∗
list
]
k
↦
y
∈
l'
,
Φ
(
S
k
)
y
)
.
Proof
.
rewrite
/
IsCons
=>
->
?
.
by
rewrite
/
FromAnd
big_sepL_cons
persistent_and_sep_1
.
Qed
.
Global
Instance
from_and_big_sepL_app_persistent
{
A
}
(
Φ
:
nat
→
A
→
PROP
)
l
l1
l2
:
IsApp
l
l1
l2
→
(
∀
k
y
,
Persistent
(
Φ
k
y
))
→
FromAnd
([
∗
list
]
k
↦
y
∈
l
1
++
l2
,
Φ
k
y
)
FromAnd
([
∗
list
]
k
↦
y
∈
l
,
Φ
k
y
)
([
∗
list
]
k
↦
y
∈
l1
,
Φ
k
y
)
([
∗
list
]
k
↦
y
∈
l2
,
Φ
(
length
l1
+
k
)
y
)
.
Proof
.
intros
.
by
rewrite
/
FromAnd
big_
o
pL_app
persistent_and_sep_1
.
Qed
.
Proof
.
rewrite
/
IsApp
=>
->
?
.
by
rewrite
/
FromAnd
big_
se
pL_app
persistent_and_sep_1
.
Qed
.
(** FromSep *)
Global
Instance
from_sep_sep
P1
P2
:
FromSep
(
P1
∗
P2
)
P1
P2
|
100
.
...
...
@@ -575,13 +577,15 @@ Global Instance from_sep_embed `{BiEmbed PROP PROP'} P Q1 Q2 :
FromSep
P
Q1
Q2
→
FromSep
⎡
P
⎤
⎡
Q1
⎤
⎡
Q2
⎤.
Proof
.
by
rewrite
/
FromSep
-
embed_sep
=>
<-.
Qed
.
Global
Instance
from_sep_big_sepL_cons
{
A
}
(
Φ
:
nat
→
A
→
PROP
)
x
l
:
FromSep
([
∗
list
]
k
↦
y
∈
x
::
l
,
Φ
k
y
)
(
Φ
0
x
)
([
∗
list
]
k
↦
y
∈
l
,
Φ
(
S
k
)
y
)
.
Proof
.
by
rewrite
/
FromSep
big_sepL_cons
.
Qed
.
Global
Instance
from_sep_big_sepL_app
{
A
}
(
Φ
:
nat
→
A
→
PROP
)
l1
l2
:
FromSep
([
∗
list
]
k
↦
y
∈
l1
++
l2
,
Φ
k
y
)
Global
Instance
from_sep_big_sepL_cons
{
A
}
(
Φ
:
nat
→
A
→
PROP
)
l
x
l'
:
IsCons
l
x
l'
→
FromSep
([
∗
list
]
k
↦
y
∈
l
,
Φ
k
y
)
(
Φ
0
x
)
([
∗
list
]
k
↦
y
∈
l'
,
Φ
(
S
k
)
y
)
.
Proof
.
rewrite
/
IsCons
=>
->
.
by
rewrite
/
FromSep
big_sepL_cons
.
Qed
.
Global
Instance
from_sep_big_sepL_app
{
A
}
(
Φ
:
nat
→
A
→
PROP
)
l
l1
l2
:
IsApp
l
l1
l2
→
FromSep
([
∗
list
]
k
↦
y
∈
l
,
Φ
k
y
)
([
∗
list
]
k
↦
y
∈
l1
,
Φ
k
y
)
([
∗
list
]
k
↦
y
∈
l2
,
Φ
(
length
l1
+
k
)
y
)
.
Proof
.
by
rewrite
/
FromSep
big_opL_app
.
Qed
.
Proof
.
rewrite
/
IsApp
=>
->
.
by
rewrite
/
FromSep
big_opL_app
.
Qed
.
Global
Instance
from_sep_bupd
`{
BiBUpd
PROP
}
P
Q1
Q2
:
FromSep
P
Q1
Q2
→
FromSep
(|
==>
P
)
(|
==>
Q1
)
(|
==>
Q2
)
.
...
...
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