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
Pierre Roux
Iris
Commits
3eb275ad
Commit
3eb275ad
authored
5 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
add proof mode instances for array splitting
parent
fd74b574
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
tests/heap_lang.v
+6
-0
6 additions, 0 deletions
tests/heap_lang.v
theories/heap_lang/array.v
+19
-0
19 additions, 0 deletions
theories/heap_lang/array.v
with
25 additions
and
0 deletions
tests/heap_lang.v
+
6
−
0
View file @
3eb275ad
...
...
@@ -155,6 +155,12 @@ Section tests.
by
iApply
"HΦ"
.
Qed
.
Lemma
test_array_app
l
vs1
vs2
:
l
↦∗
(
vs1
++
vs2
)
-∗
l
↦∗
(
vs1
++
vs2
)
.
Proof
.
iIntros
"[H1 H2]"
.
iSplitL
"H1"
;
done
.
Qed
.
End
tests
.
Section
printing_tests
.
...
...
This diff is collapsed.
Click to expand it.
theories/heap_lang/array.v
+
19
−
0
View file @
3eb275ad
...
...
@@ -61,6 +61,25 @@ Proof.
rewrite
drop_insert
;
last
by
lia
.
done
.
Qed
.
(** Proofmode instances *)
Global
Instance
into_sep_array_cons
l
vs
v
vs'
:
IsCons
vs
v
vs'
→
IntoSep
(
l
↦∗
vs
)
(
l
↦
v
)
((
l
+
ₗ
1
)
↦∗
vs'
)
.
Proof
.
rewrite
/
IsCons
=>
->
.
by
rewrite
/
IntoSep
array_cons
.
Qed
.
Global
Instance
into_sep_array_app
l
vs
vs1
vs2
:
IsApp
vs
vs1
vs2
→
IntoSep
(
l
↦∗
vs
)
(
l
↦∗
vs1
)
((
l
+
ₗ
length
vs1
)
↦∗
vs2
)
.
Proof
.
rewrite
/
IsApp
=>
->
.
by
rewrite
/
IntoSep
array_app
.
Qed
.
Global
Instance
from_sep_array_cons
l
vs
v
vs'
:
IsCons
vs
v
vs'
→
FromSep
(
l
↦∗
vs
)
(
l
↦
v
)
((
l
+
ₗ
1
)
↦∗
vs'
)
.
Proof
.
rewrite
/
IsCons
=>
->
.
by
rewrite
/
FromSep
array_cons
.
Qed
.
Global
Instance
from_sep_array_app
l
vs
vs1
vs2
:
IsApp
vs
vs1
vs2
→
FromSep
(
l
↦∗
vs
)
(
l
↦∗
vs1
)
((
l
+
ₗ
length
vs1
)
↦∗
vs2
)
.
Proof
.
rewrite
/
IsApp
=>
->
.
by
rewrite
/
FromSep
array_app
.
Qed
.
(** Allocation *)
Lemma
mapsto_seq_array
l
v
n
:
([
∗
list
]
i
∈
seq
0
n
,
(
l
+
ₗ
(
i
:
nat
))
↦
v
)
-∗
...
...
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