Skip to main content

Crate rexact_check

Crate rexact_check 

Source
Expand description

Independent checker for certificates and witnesses (NFR-M01, FR-G01).

Contract: consumes only the documented serialisations (the term “spec” format and the certificate JSON); it has its own term type, normaliser, derivative function, matcher and JSON reader, written in a deliberately simple, unoptimised style. INVARIANT: this crate depends on no other project crate (enforced by scripts/check_independence.py), so a defect in the engine cannot also be present here.

Failure modes: every problem is a CheckError carrying the catalogue code RX-E001 (evidence rejected) or RX-E004 (malformed or unknown version). Deep terms are handled by running on a thread with a large stack.

Structs§

CertInfo
Summary of a verified certificate.
CheckError
A rejected or malformed piece of evidence.

Functions§

check_certificate
Verify a certificate document. Returns a summary or the first problem.
check_counterexample
Acceptance of input by each of two specs: (by_a, by_b).
check_witness
Does spec accept input? Simple derivative simulation.