Evidence labels and external claims¶
Every result the system returns says what it rests on (the architecture note, section 30.2): its checking level, and the classes of the declarations its proof depends on.
Labels¶
Definition E-1 (dependency classes). Each declaration a judgment can depend on has one class, which the session assigns: structural forms by their kind, imported statements with the provenance the session records on import, and profile axioms with the provenance the session records on their declaration or reads from the snapshot it was opened over (L2.4):
| Class | Declarations |
|---|---|
CORE |
the logic core's axiom propext |
PROFILE_AXIOM |
axioms of a semantic profile (for example scalar's), including classical principles: an axiom declared with Session.profile_axiom, or one a snapshot lists as a profile axiom (a sealed session's, or the classical principles of a Store library's profile) |
LITERAL_KIND |
literal kinds and the laws they cite |
ACU |
ACU declarations and the laws they cite |
DEFINITION |
definitions (their equations), type definitions, specifications, instance definitions of overloaded constants, and class predicates (the kernel's K2.6 to K2.8): each preserves models, so none adds logical strength |
THEOREM |
Proven declarations (their own dependencies are in the closure) |
INSTANCE |
class instance declarations and the theorems they cite (the kernel's K2.8) |
IMPORTED_STATEMENT |
axioms of an import theory: theorems of another prover (a pinned Isabelle release) used without a proof our kernel checked, each with its source and name; nothing is admitted by a numeric test |
EXTERNAL |
outstanding hypotheses or explicitly tracked exported guards standing for external claims (Definition E-3) |
CHECKER |
admitted certificate checkers, by version (reserved: the kernel has none) |
UNCLASSIFIED |
dependencies with neither a structural class nor recorded provenance, including ordinary axioms (Session.axiom); the class is visible, never hidden |
Definition E-2 (label). The evidence label of a result is its
level (Checked when the result is a kernel judgment, Unchecked when it
is a recipe that was not run) together with the set of classes of the
declarations in the judgment's full dependency closure, and the list of
external claims among its outstanding hypotheses and explicitly tracked
exported guards. Exported guards retain their original hypothesis identity
through the library's claim helpers (L2.5).
Theorem E-1 (labels are complete). For a Checked result, every
axiom, literal kind, ACU declaration, instance, imported statement, and checker on
which the judgment depends, directly or through Proven theorems, has its
class in the label.
Proof. The label is computed from the step's dependencies
(Step.dependencies), the transitive closure of its proof's declarations
through Proven declarations, together with the canonical signature, which
is part of every step's dependencies (K1.7). Every declaration in it has a
class, UNCLASSIFIED at least. \(\square\)
The session walks the signature separately from the proof's closure. It
follows ACU and literal laws, definitional witnesses, and their theorem
closures. All instances in the signature theory are conservatively
included; unrelated ordinary axioms in its theory prefix are excluded.
A law axiom without provenance stays UNCLASSIFIED, even when cited by
an automatically classified ACU or literal declaration; one declared with
Session.profile_axiom is PROFILE_AXIOM.
A profile axiom's class is recorded with its declaration and goes with
it. A rollback, checkout, or discarded transaction that drops the
declaration drops the class, so a later declaration reusing its row is not
classified by it; a committed transaction, a fork, and its merge keep it. A
seal lists the session's profile axioms in the new snapshot after the
earlier snapshot's, and every session opened over a snapshot records the
snapshot's profile axioms as PROFILE_AXIOM. A declaration's class is
fixed by these records alone, never by its name or statement.
The level is computed from the handle (the kernel's invariant B-I1): a
result is Checked only with a kernel judgment.
External claims¶
Definition E-3 (external claim). An external claim is a proposition \(Q\) asserted by a decision procedure that gave no certificate (an RCF decider, an SMT solver, floating-point interval propagation), recorded with the query as sent, the decider's name, and its version.
Theorem E-2 (claims enter as hypotheses). Assuming \(Q\) in a context
\(\Gamma\) gives \(\Gamma, h : Q\); deriving a result \(R\) there and exporting
to \(\Gamma\) gives the kernel judgment \(\Gamma \vdash Q \to R\), which holds
whatever the decider's correctness. Given later a kernel judgment
\(\Gamma \vdash Q\) (a certificate found, or a proof), imp_elim gives
\(\Gamma \vdash R\), whose label no longer lists the eliminated guard's claim.
If the supplied proof itself still uses that claim as an open assumption,
the label retains it through the result's kernel dependency summary.
Proof. The kernel's assume, export (its Theorem D-4), and
imp_elim. \(\square\)
So an uncertified decision costs nothing in trust, stays visible in the result's statement and label, and can be discharged later. Whether a request accepts results with a given decider's claims is a policy of the request, not a property of the kernel.
Proposition E-3 (the label of a guarded answer). A conditional answer \(\Gamma \vdash G \to (e = e')\) in generic mode carries in its label the classes of its proof; its guard \(G\) is part of the statement, not of the label. External claims appear in both: as guards in the exported statement, and as the label's list. \(\square\)
Implementation. export_claims records the original claim frames at
their positions in the generated binder prefix, on the exact returned step.
discharge removes associations only at the eliminated guard and carries
deeper associations forward. Labels merge these with open claim frames by
identity. Export discharges the claim frames, so this explicit association
is what lets a label keep the claims of an exported statement; matching
proposition text is not provenance.
These associations describe claims in the tracked conditional statement, not extra logical assumptions of a closed theorem. A conditional theorem used as discharge evidence certifies the entire guard; its own statement annotations are not transferred. Its actual open dependencies still are. Association propagation is explicit through the two tracked helpers; arbitrary kernel, recipe, and theorem transformations require their own metadata integration. A fresh or unrelated table cannot reconstruct an external query history from a judgment alone.