Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Actris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Iris
Actris
Commits
62a64267
Commit
62a64267
authored
4 years ago
by
Jonas Kastberg
Browse files
Options
Downloads
Patches
Plain Diff
Elaborated on value typing judgement
parent
456899ea
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#34421
passed
4 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
papers/CPP21.md
+2
-2
2 additions, 2 deletions
papers/CPP21.md
theories/logrel/term_typing_judgment.v
+8
-1
8 additions, 1 deletion
theories/logrel/term_typing_judgment.v
with
10 additions
and
3 deletions
papers/CPP21.md
+
2
−
2
View file @
62a64267
...
...
@@ -12,8 +12,8 @@
-
The disjunction of the compute client list invariant is encoded using a boolean
flag, as it makes mechanisation easier.
-
The mechanisation employs a typing judgement for values (
`ltyped_val`
),
for technical reasons.
for technical reasons.
More details on this is found in
[
theories/logrel/term_typing_judgment.v
](
../theories/logrel/term_typing_judgment.v
)
## Examples
-
The parallel receive example in Section 4 can be found in
...
...
This diff is collapsed.
Click to expand it.
theories/logrel/term_typing_judgment.v
+
8
−
1
View file @
62a64267
...
...
@@ -42,7 +42,14 @@ Section ltyped.
Qed
.
End
ltyped
.
(* TODO: Elaborate on why this is needed *)
(** Expressions and values are defined mutually recursive in HeapLang,
which means that only after a step of reduction we get that e.g.
Pair (Val v1, Val v2) = PairV (v1,v2).
Robbert Krebbers
@robbertkrebbers
·
Sep 22, 2020
Owner
Coq doc, don't use = for reduction. Say X reduces to Y.
Coq doc, don't use = for reduction. Say X reduces to Y.
Please
register
or
sign in
to reply
This makes typing of values tricky, for technical reasons.
To circumvent this, we make use of the following typing judgement for values,
that lets us type check values without requiring reduction steps.
The value typing judgement subsumes the typing judgement on expressions,
as made precise by the [ltyped_val_ltyped] lemma. *)
Definition
ltyped_val
`{
!
heapG
Σ
}
(
v
:
val
)
(
A
:
ltty
Σ
)
:
iProp
Σ
:=
tc_opaque
(
■
ltty_car
A
v
)
%
I
.
Instance
:
Params
(
@
ltyped_val
)
3
:=
{}
.
...
...
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