Enum mm0b_parser::NumdStmtCmd [−][src]
pub enum NumdStmtCmd {
Sort {
sort_id: SortId,
},
Axiom {
thm_id: ThmId,
},
TermDef {
term_id: TermId,
local: bool,
},
Thm {
thm_id: ThmId,
local: bool,
},
}
Expand description
StmtCmd
aware of its position (represented by a typesafe integer)
in the mmb file relative to other declarations.
Variants
A new sort. Equivalent to sort foo;
. This is followed by no data,
as the sort data is stored in the header.
Fields of Sort
sort_id: SortId
The sort ID, the index into the sort table
A new axiom. Equivalent to axiom foo ...
. This is followed by a proof
sequence, that should unify with the unify sequence in the header.
Fields of Axiom
thm_id: ThmId
The theorem ID, the index into the axiom/theorem table
A new term or def. Equivalent to term/def foo ...
.
If local
is true, then this is local def foo
. This is followed by
no data, as the header contains the unify sequence and can be checked on its own.
Fields of TermDef
A new theorem. Equivalent to (pub) theorem foo ...
, where local
means
that the theorem is not pub
. This is followed by a proof sequence,
that will construct the statement and proof, and should unify
with the unify sequence in the header.
Fields of Thm
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for NumdStmtCmd
impl Send for NumdStmtCmd
impl Sync for NumdStmtCmd
impl Unpin for NumdStmtCmd
impl UnwindSafe for NumdStmtCmd
Blanket Implementations
Mutably borrows from an owned value. Read more