pub enum BlockType {
Show 14 variants
Theorem,
Main,
Definition,
Proof,
Example,
Logic,
Note,
Function,
TypeDef,
Policy,
Requires,
Hardware,
Property,
No,
}Expand description
Document structure block type markers.
LOGOS uses markdown-style ## Header syntax to delimit different
sections of a program or proof document.
Variants§
Theorem
## Theorem - Declares a proposition to be proved.
Main
## Main - Program entry point for imperative code.
Definition
## Definition - Introduces new terminology or type definitions.
Proof
## Proof - Contains proof steps for a theorem.
Example
## Example - Illustrative examples.
Logic
## Logic - Direct logical notation input.
Note
## Note - Explanatory documentation.
Function
## To - Function definition block.
TypeDef
Inline type definition: ## A Point has: or ## A Color is one of:.
Policy
## Policy - Security policy rule definitions.
Requires
## Requires - External crate dependency declarations.
Hardware
## Hardware - Signal declarations for hardware verification.
Property
## Property - Temporal assertions for hardware verification.
No
## No - Optimization annotation (followed by Memo, TCO, Peephole, Borrow, or Optimize).