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
William Mansky
Iris
Commits
0a593561
Commit
0a593561
authored
9 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
add a derived 'skip' to heap_lang
parent
960ac942
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
heap_lang/derived.v
+4
-0
4 additions, 0 deletions
heap_lang/derived.v
with
4 additions
and
0 deletions
heap_lang/derived.v
+
4
−
0
View file @
0a593561
...
...
@@ -8,6 +8,7 @@ Notation Seq e1 e2 := (Let "" e1 e2).
Notation
LamV
x
e
:=
(
RecV
""
x
e
)
.
Notation
LetCtx
x
e2
:=
(
AppRCtx
(
LamV
x
e2
))
.
Notation
SeqCtx
e2
:=
(
LetCtx
""
e2
)
.
Notation
Skip
:=
(
Seq
(
Lit
LitUnit
)
(
Lit
LitUnit
))
.
Section
derived
.
Context
{
Σ
:
iFunctor
}
.
...
...
@@ -29,6 +30,9 @@ Proof.
by
rewrite
-
wp_let'
//=
?to_of_val
?subst_empty
.
Qed
.
Lemma
wp_skip
E
Q
:
▷
(
Q
(
LitV
LitUnit
))
⊑
wp
E
Skip
Q
.
Proof
.
rewrite
-
wp_seq
-
wp_value
//
-
wp_value
//.
Qed
.
Lemma
wp_le
E
(
n1
n2
:
Z
)
P
Q
:
(
n1
≤
n2
→
P
⊑
▷
Q
(
LitV
$
LitBool
true
))
→
(
n2
<
n1
→
P
⊑
▷
Q
(
LitV
$
LitBool
false
))
→
...
...
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