This repository is an early-stage experimental project that aims to be a complete, authoritative formal model of the Rust MIR. Presuming these experiments bear fruit, the intention is to bring this model into Rust as an RFC and develop it as an official part of the language definition.
Like any Rust project:
cargo test --allCheck out a-mir-formality book for an overview and introduction to a-mir-formality.
Formality is structured into several layers:
#[term] as well as various derives.
These are used to generate the boilerplate code for parsing, pretty printing, folding, etc.grammar/ (AST definitions),
check/ (semantic checking, with check_all_crates as the entry point),
and prove/ (trait solving and type normalization).(top 30 of 38)
Rust
99.6%
This repository is an early-stage experimental project that aims to be a complete, authoritative formal model of the Rust MIR. Presuming these experiments bear fruit, the intention is to bring this model into Rust as an RFC and develop it as an official part of the language definition.
Like any Rust project:
cargo test --allCheck out a-mir-formality book for an overview and introduction to a-mir-formality.
Formality is structured into several layers:
#[term] as well as various derives.
These are used to generate the boilerplate code for parsing, pretty printing, folding, etc.grammar/ (AST definitions),
check/ (semantic checking, with check_all_crates as the entry point),
and prove/ (trait solving and type normalization).(top 30 of 38)
Rust
99.6%