Enum mm0b_parser::StmtCmd[][src]

pub enum StmtCmd {
    Sort,
    Axiom,
    TermDef {
        local: bool,
    },
    Thm {
        local: bool,
    },
}
Expand description

The main part of the proof consists of a sequence of declarations, and these commands denote the different kind of declaration that can be introduced.

Variants

Sort

A new sort. Equivalent to sort foo;. This is followed by no data, as the sort data is stored in the header.

Axiom

A new axiom. Equivalent to axiom foo .... This is followed by a proof sequence, that should unify with the unify sequence in the header.

TermDef

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

local: bool

Is this local def?

Thm

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

local: bool

Is this not pub theorem?

Implementations

Is this a “local” command, i.e. it does not appear in the corresponding MM0 file?

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.