Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lambda-rust
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
Model registry
Operate
Environments
Monitor
Service Desk
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
lambda-rust
Commits
81d722c3
There was a problem fetching the pipeline summary.
Commit
81d722c3
authored
7 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
README
parent
72c19059
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+29
-10
29 additions, 10 deletions
README.md
with
29 additions
and
10 deletions
README.md
+
29
−
10
View file @
81d722c3
# LAMBDA-RUST COQ DEVELOPMENT
# LAMBDA-RUST COQ DEVELOPMENT
This is the Coq
formalization of
lambda-Rust.
This is the Coq
development accompanying
lambda-Rust.
## Prerequisites
## Prerequisites
...
@@ -11,21 +11,40 @@ This version is known to compile with:
...
@@ -11,21 +11,40 @@ This version is known to compile with:
-
A development version of
[
Iris
](
https://gitlab.mpi-sws.org/FP/iris-coq/
)
-
A development version of
[
Iris
](
https://gitlab.mpi-sws.org/FP/iris-coq/
)
The easiest way to install the correct versions of the dependencies is through
The easiest way to install the correct versions of the dependencies is through
opam. Once you got opam set up, just run
`make build-dep`
to install the right
opam. Coq packages are available on the coq-released repository, set up by the
versions of the dependencies. When the dependencies change (e.g., a newer
command:
version of Iris is needed), just run
`make build-dep`
again.
Alternatively, you can manually determine the required Iris commit by consulting
opam repo add coq-released https://coq.inria.fr/opam/released
the
`opam.pins`
file.
Once you got opam set up, just run
`make build-dep`
to install the right
versions of the dependencies. When the dependencies change, just run
`make
build-dep`
again.
## Building Instructions
## Building Instructions
Run
`make`
to build the full development.
Run
`make`
to build the full development.
## Structure
*
The folder
[
lang
](
theories/lang
)
contains the formalization of the lambda-Rust
core language, including the theorem showing that programs with data races get
stuck.
*
The folder
[
lifetime
](
theories/lifetime
)
proves the rules of the lifetime
logic, including derived constructions like (non-)atomic persistent borrows.
*
The folder
[
typing
](
theories/typing
)
defines the domain of semantic types,
interpretations of all the judgments, as well as proofs of all typing rules.
*
The subfolder
[
examples
](
theories/typing/examples
)
shows how the examples
from the technical appendix can be type-checked in Coq.
*
The subfolder
[
lib
](
theories/typing/lib
)
contains proofs of safety of some
unsafely implement types from the Rust standard library and some user
crates:
`Cell`
,
`RefCell`
,
`Rc`
,
`Arc`
,
`Mutex`
,
`RwLock`
,
`mem::swap`
,
`thread::spawn`
,
`take_mut::take`
,
`alias::once`
as well as converting
`&&T`
to
`&Box<T>`
.
## For Developers: How to update the Iris dependency
## For Developers: How to update the Iris dependency
-
Do the change in Iris, push it.
*
Do the change in Iris, push it.
-
In lambdaRust, change opam.pins to point to the new commit.
*
In lambdaRust, change opam.pins to point to the new commit.
-
Run "make build-dep" (in lambdaRust) to install the new version of Iris.
*
Run "make build-dep" (in lambdaRust) to install the new version of Iris.
-
You may have to do "make clean" as Coq will likely complain about .vo file
*
You may have to do "make clean" as Coq will likely complain about .vo file
mismatches.
mismatches.
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