Skip to main content

RebuiltEnvironment

Struct RebuiltEnvironment 

Source
pub struct RebuiltEnvironment {
    pub context: Context,
    pub target: String,
    pub target_level_params: Vec<String>,
    pub target_type: Term,
    pub target_proof: Term,
    pub target_is_theorem: bool,
    pub target_is_opaque: bool,
    pub independent: Vec<(String, IndependentVerdict)>,
    pub axioms: AxiomUsage,
    pub assumptions: Vec<(String, Vec<String>, Term)>,
    pub proofs: BTreeMap<String, Term>,
    pub depth: usize,
}
Expand description

A rebuilt environment: the checked context and what the checks found.

Fields§

§context: Context

The context, rebuilt from the base with every entry kernel-checked.

§target: String§target_level_params: Vec<String>

The target’s universe parameters, type and proof.

§target_type: Term§target_proof: Term§target_is_theorem: bool

Whether the target is a theorem whose proof may unfold during conversion.

§target_is_opaque: bool

Whether the target is a checked opaque value or proof whose body stays sealed.

§independent: Vec<(String, IndependentVerdict)>

Every checked declaration term under the second kernel, by declaration name.

§axioms: AxiomUsage

The transitive assumptions of the target’s statement AND proof — #print axioms.

§assumptions: Vec<(String, Vec<String>, Term)>

Each assumption the environment declares, with its universe parameters and type.

§proofs: BTreeMap<String, Term>

The checked proofs of the environment’s opaque theorems — evidence the context does not publish, kept for re-emission.

§depth: usize

The maximum term depth in the certificate, which sized the stack the rebuild needs.

Implementations§

Source§

impl RebuiltEnvironment

Source

pub fn independently_agreed(&self) -> bool

true when every checked term was corroborated by the independent kernel.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.