Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions docs/PROOF-STATUS.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,14 @@ now call one `+integrity_gate+` (`+src/rust/integrity/solver_integrity.rs+`).
It parses each key into a `+ProverKind+`, and it fails when any matching
report is bad, whatever order the reports come in. Tests: `+gate_tests+` in
that file. A test also checks that every key in the shipped manifest names a
prover. Tested only, not proved. Three of the four paths above are unchanged
until the owner decides which statuses the gate accepts (D9 in the placement
ledger, `+docs/PROOF-PLACEMENT.adoc+`): `+Uninitialized+`, a prover missing
from the manifest, and no checker. The fourth path is unreachable:
`+verify_all()+` has no error path.
prover. Tested only, not proved. The owner ruled on 2026-11-30 (D9 in the
placement ledger, `+docs/PROOF-PLACEMENT.adoc+`) that the gate accepts
`+Verified+` only. `+Uninitialized+` now fails the gate (test
`+uninitialized_entry_fails+`). A prover missing from the manifest, and no
checker, still pass; each is closed by its own change. The fourth path is
unreachable: `+verify_all()+` has no error path. All 17 entries in the
shipped manifest are placeholders, and no code in `+src/+` attaches a checker,
so no production path reaches the gate with reports today.
Row stays `+open+` until a Creusot or Verus run on shipped code yields a receipt
with a commit hash.

Expand Down
25 changes: 14 additions & 11 deletions src/rust/integrity/solver_integrity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,12 +402,12 @@ pub fn manifest_key_prover(key: &str) -> Option<crate::provers::ProverKind> {
/// A report counts for `prover` when its manifest key parses to that
/// `ProverKind` (so `lean4` counts for `Lean` and `hol_light` for
/// `HOLLight`, and `mizar` does not count for `MizAR`). The gate fails when
/// any counting report is not `Verified` or `Uninitialized`, whatever order
/// the reports come in.
/// any counting report is not `Verified`, whatever order the reports come
/// in. `Uninitialized` (a placeholder manifest hash) fails: it pins nothing
/// (owner decision D9, 2026-11-30).
///
/// Unchanged from the code this replaces, pending owner decision D9: with
/// no checker (`reports` is `None`) or no counting report the gate passes,
/// and `Uninitialized` passes.
/// Still passing, each to be closed by its own change under D9: no checker
/// (`reports` is `None`) and no counting report.
pub fn integrity_gate(
reports: Option<&[SolverIntegrityReport]>,
prover: crate::provers::ProverKind,
Expand All @@ -418,12 +418,7 @@ pub fn integrity_gate(
reports
.iter()
.filter(|r| manifest_key_prover(&r.name) == Some(prover))
.all(|r| {
matches!(
r.status,
IntegrityStatus::Verified | IntegrityStatus::Uninitialized
)
})
.all(|r| r.status == IntegrityStatus::Verified)
}
#[cfg(test)]
mod tests {
Expand Down Expand Up @@ -596,6 +591,14 @@ mod gate_tests {
}
}

/// D9 (owner, 2026-11-30): a placeholder manifest hash pins nothing, so an
/// Uninitialized report does not pass the gate.
#[test]
fn uninitialized_entry_fails() {
let reports = vec![report("lean4", IntegrityStatus::Uninitialized)];
assert!(!integrity_gate(Some(&reports), ProverKind::Lean));
}

#[test]
fn verified_entry_passes() {
let reports = vec![report("lean4", IntegrityStatus::Verified)];
Expand Down
Loading