pub struct VerifiedProof {
pub derivation: Option<DerivationTree>,
pub proof_term: Option<Term>,
pub kernel_ctx: Context,
pub verified: bool,
pub verification_error: Option<String>,
}Expand description
Outcome of running a goal through prove → certify → kernel type-check.
The invariant: verified == true iff proof_term.is_some() and that
term type-checks in kernel_ctx. When verification fails, derivation may
still be present (the chainer found a derivation) but it is never reported
as verified — verification_error explains where the chain broke.
Fields§
§derivation: Option<DerivationTree>The derivation found by backward chaining, if any.
proof_term: Option<Term>The certified kernel proof term, present only when verified.
kernel_ctx: ContextThe kernel context the proof term was checked in (predicates, constants, and premise hypotheses registered).
verified: boolTrue iff a proof term was certified and kernel type-checked.
verification_error: Option<String>Where the chain broke (search, certification, or type-check), if it did.
Implementations§
Source§impl VerifiedProof
impl VerifiedProof
Sourcepub fn axiom_footprint(&self) -> AxiomFootprint
pub fn axiom_footprint(&self) -> AxiomFootprint
The axioms this proof transitively rests on — see AxiomFootprint.
Read off the kernel TERM, never the derivation: the derivation is producer
data the kernel has not vouched for, while the term is exactly what
infer_type accepted. An unverified proof has no term, so it reports
nothing — there is no proof for anything to rest on.
Transitive through definitions, which is the half no per-declaration
warning can reach: a term whose body is the bare name taintedLemma rests
on everything taintedLemma rests on, and mentions none of it.