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
3f03a57c
Commit
3f03a57c
authored
7 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Some documentation.
parent
59999b0f
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
theories/program_logic/ectx_language.v
+5
-0
5 additions, 0 deletions
theories/program_logic/ectx_language.v
theories/program_logic/ectxi_language.v
+22
-0
22 additions, 0 deletions
theories/program_logic/ectxi_language.v
with
27 additions
and
0 deletions
theories/program_logic/ectx_language.v
+
5
−
0
View file @
3f03a57c
...
@@ -4,6 +4,11 @@ From iris.algebra Require Export base.
...
@@ -4,6 +4,11 @@ From iris.algebra Require Export base.
From
iris
.
program_logic
Require
Import
language
.
From
iris
.
program_logic
Require
Import
language
.
Set
Default
Proof
Using
"Type"
.
Set
Default
Proof
Using
"Type"
.
(* TAKE CARE: When you define an [ectxLanguage] canonical structure for your
language, you need to also define a corresponding [language] canonical
structure. Use the coercion [LanguageOfEctx] as defined in the bottom of this
file for doing that. *)
Section
ectx_language_mixin
.
Section
ectx_language_mixin
.
Context
{
expr
val
ectx
state
:
Type
}
.
Context
{
expr
val
ectx
state
:
Type
}
.
Context
(
of_val
:
val
→
expr
)
.
Context
(
of_val
:
val
→
expr
)
.
...
...
This diff is collapsed.
Click to expand it.
theories/program_logic/ectxi_language.v
+
22
−
0
View file @
3f03a57c
...
@@ -4,6 +4,28 @@ From iris.algebra Require Export base.
...
@@ -4,6 +4,28 @@ From iris.algebra Require Export base.
From
iris
.
program_logic
Require
Import
language
ectx_language
.
From
iris
.
program_logic
Require
Import
language
ectx_language
.
Set
Default
Proof
Using
"Type"
.
Set
Default
Proof
Using
"Type"
.
(* TAKE CARE: When you define an [ectxiLanguage] canonical structure for your
language, you need to also define a corresponding [language] and [ectxLanguage]
canonical structure for canonical structure inference to work properly. You
should use the coercion [EctxLanguageOfEctxi] and [LanguageOfEctx] for that, and
not [ectxi_lang] and [ectxi_lang_ectx], otherwise the canonical projections will
not point to the right terms.
A full concrete example of setting up your language can be found in [heap_lang].
Below you can find the relevant parts:
Module heap_lang.
(* Your language definition *)
Lemma heap_lang_mixin : EctxiLanguageMixin of_val to_val fill_item head_step.
Proof. (* ... *) Qed.
End heap_lang.
Canonical Structure heap_ectxi_lang := EctxiLanguage heap_lang.heap_lang_mixin.
Canonical Structure heap_ectx_lang := EctxLanguageOfEctxi heap_ectxi_lang.
Canonical Structure heap_lang := LanguageOfEctx heap_ectx_lang.
*)
Section
ectxi_language_mixin
.
Section
ectxi_language_mixin
.
Context
{
expr
val
ectx_item
state
:
Type
}
.
Context
{
expr
val
ectx_item
state
:
Type
}
.
Context
(
of_val
:
val
→
expr
)
.
Context
(
of_val
:
val
→
expr
)
.
...
...
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