pub struct LeanVerification {Show 19 fields
pub schema: String,
pub verification_id: String,
pub anchor_id: String,
pub theorem_id: u32,
pub module: String,
pub module_sha256: String,
pub lean_toolchain: String,
pub mathlib_revision: String,
pub verifier_output_hash: String,
pub status: String,
pub verified_at: String,
pub verifier_actor: String,
pub tcb_id: String,
pub axioms: Vec<String>,
pub axiom_verdict: Option<AxiomVerdict>,
pub kernel_recheck: Option<KernelRecheck>,
pub axioms_output_hash: String,
pub verifier_pubkey_hex: String,
pub signature_hex: String,
}Fields§
§schema: String§verification_id: String§anchor_id: StringThe vla_* anchor this verification attests to.
theorem_id: u32§module: String§module_sha256: StringThe module_sha256 the anchor pinned; the verifier confirms it matched at verification time.
lean_toolchain: StringLean toolchain pin (e.g. “leanprover/lean4:v4.29.1”).
mathlib_revision: StringMathlib revision (commit or tag) the build used.
verifier_output_hash: Stringsha256 over the verifier’s full stdout+stderr+exit-code canonical bytes. Lets a re-verifier confirm byte-for-byte they got the same output.
status: String“verified” | “failed” | “toolchain_mismatch” | “failed_axiom_check”
| “compiler_checked”. "verified" requires axiom_verdict = kernel_clean and kernel_recheck != failed.
verified_at: String§verifier_actor: StringFree-form verifier identity (e.g. “github-action:vela-science/vela:verify-lean-bundle”).
tcb_id: StringThe vtcb_ policy this verification was judged against. Empty on
legacy v0.1 records.
axioms: Vec<String>The exact axiom names #print axioms <decl> reported, sorted. Empty
on legacy records (axioms unknown).
axiom_verdict: Option<AxiomVerdict>Verdict of TcbPolicy::classify(axioms). None on legacy records.
kernel_recheck: Option<KernelRecheck>Outcome of the external kernel re-check. None on legacy records.
axioms_output_hash: Stringsha256 over the #print axioms stdout for this decl. Empty on legacy.
verifier_pubkey_hex: String§signature_hex: StringImplementations§
Source§impl LeanVerification
impl LeanVerification
pub fn build(draft: VerificationDraft, key: &SigningKey) -> Result<Self, String>
Sourcepub fn to_attachment_integrity(&self) -> MethodIntegrity
pub fn to_attachment_integrity(&self) -> MethodIntegrity
Map this verification’s axiom result to the method integrity the gate
consumes (G5). A kernel-clean axiom set with no failed external
re-check is Sound; a forbidden/unlisted axiom or a failed re-check is
Compromised; an axiom-unknown (legacy) record is Unattested. The
gate never imports Lean types — only this MethodIntegrity.
Trait Implementations§
Source§impl Clone for LeanVerification
impl Clone for LeanVerification
Source§fn clone(&self) -> LeanVerification
fn clone(&self) -> LeanVerification
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LeanVerification
impl Debug for LeanVerification
Source§impl<'de> Deserialize<'de> for LeanVerification
impl<'de> Deserialize<'de> for LeanVerification
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for LeanVerification
Source§impl PartialEq for LeanVerification
impl PartialEq for LeanVerification
Source§impl Serialize for LeanVerification
impl Serialize for LeanVerification
impl StructuralPartialEq for LeanVerification
Auto Trait Implementations§
impl Freeze for LeanVerification
impl RefUnwindSafe for LeanVerification
impl Send for LeanVerification
impl Sync for LeanVerification
impl Unpin for LeanVerification
impl UnsafeUnpin for LeanVerification
impl UnwindSafe for LeanVerification
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.