Expand description
Lean files generated from Aeneas’s model: the aliases of the loops, the obligations, the
functions calling the Rust functions (rs: externs) and the @[csimp] replacements.
Structs§
- Aeneas
Decl - A declaration of Aeneas’s output.
- Binder
- A binder of the signature of a definition of Aeneas’s output.
- Generic
Parts - The parts of the obligation of a generic function before the arguments: the binders of the
type parameters, the instances and the hypotheses on them (
∀ {T : Type} [LinearOrder T] (ord : core.cmp.Ord T) [LeanRust.OrdModel ord],), and the instance arguments of the model. - Spec
- A resolved spec of an obligation.
Constants§
- AENEAS_
MODEL_ MODULE - The module of
crate::AENEAS_MODEL_LEANin the crate’s Lean package. - LEAN_
HEADER - RESERVED_
LABELS - The names reserved below a model name.
Functions§
- aeneas_
unit - The unit name (see
crate::model::ModelFn::rust) of a Rust path of Aeneas’s docstrings:probe::inv::{probe::inv::Item}::new→crate::inv::Item::new,probe::inv::{impl probe::inv::Weigh for probe::inv::Item}::weight→crate::inv::<Item as Weigh>::weight.Nonefor paths outside the crate. - crate_
instance - The instance of the trait structure
trait_structfor the crate’s typerust(its last path segment) in Aeneas’s outputfuns:def Id.Insts.CoreCmpOrd : core.cmp.Ord Id := {. - decl_
binders - The binders of the definition at the start of
body(def f {T : Type _} (inst : ..) (a : T) : Result T := ..), up to the colon of its type. - generic_
parts - The obligation parts of a generic model from the binders of Aeneas’s definition: every
type parameter with the classes its bounds need, every instance followed by the hypothesis
of its laws.
valuesare the parameters of the Rust function. - law_
classes - The Lean classes of a trait structure of Aeneas (the head of the type of an instance binder): the classes of the type parameter and the class of the laws of the instance.
- lean_
ident - A Lean identifier for
s, quoted with«»when it is a keyword. - lean_
params - The parameter names of a model in Lean.
- library_
instance - The traits Aeneas’s library implements for each
library_type: the scalars implement all oflaw_classes,boolPartialEq,CloneandCopy,()PartialEq. - library_
type - The suffix of Aeneas’s instances of a Rust type of its library (
U32incore.cmp.OrdU32): the scalars,booland(). - loop_
aliases - The aliases of the loops of
f(modellean): label paths and Aeneas names. - model_
module - The Lean module of the model’s functions.
- module_
of <prefix>.<crate>.<module path>(LeanRustGen.Obligation.probe.inv).- module_
path - The path of the file of a Lean module relative to the package.
- obligation_
statement - The statement of an obligation:
∀ args, pre args = true → M args ⦃ r => post args r = true ⦄forensures,∀ args, M args = ok (spec args)forrefines(a labelrefinesorrefines.<type>). - parse_
aeneas - The declarations of a file of Aeneas’s output (
Funs.lean,Types.lean), in order. - reachable_
units - The units of the crate the model of
root(a Lean name) depends on: the declarations it refers to, transitively, with their Rust paths. - rust_
extern - The Rust expression of the
rs:extern off:rs:crate::a::f(_,&), with->()when it returns().typesare the types of the type parameters of a generic function.
Type Aliases§
- Pos
- A line and a column.