Skip to main content

Module lean_format

Module lean_format 

Source

Structsยง

ConstraintFormatter
LeanAdt ๐Ÿ”’
LeanCtxt
LeanDataProj ๐Ÿ”’
LeanField ๐Ÿ”’
LeanKConstraint
LeanThyFunc ๐Ÿ”’
WithLeanCtxt

Staticsยง

IMPL_RE ๐Ÿ”’

Traitsยง

FormatNested
LeanFmt

Functionsยง

def_id_to_pascal_case
impl_header_name ๐Ÿ”’
is_reserved ๐Ÿ”’
sanitize_name ๐Ÿ”’
snake_case_to_pascal_case
stable_def_path ๐Ÿ”’
Like [rustc_hir::definitions::DefPath::to_filename_friendly_no_crate], but names impl blocks by their header (e.g., RawValIter_T_as_Iterator) instead of by their position in the enclosing module ({impl#10}). Lean names, and hence the names of user proof files, then stay the same when impl blocks are added, removed or reordered.
stable_impl_name ๐Ÿ”’
A name for an impl block derived from its header: SelfTy_as_Trait for trait impls and SelfTy for inherent impls. In the rare case where several impls in the same parent get the same name, e.g., because their generic parameters are named differently, they are suffixed with their index among those impls.