Skip to content

Formal Verification & Security Model

trusted-ts pairs audited workspace unsafe discipline (unsafe_op_in_unsafe_fn = "deny", clippy::undocumented_unsafe_blocks = "deny", zero unsafe in parser, compiler, Z3 verifier, JSON parser, or OSV auditor) with layered mechanized proofs:

1. Verus Unbounded Kernel Proofs (143 Verified, 0 Errors)

Section titled “1. Verus Unbounded Kernel Proofs (143 Verified, 0 Errors)”

Proves functional correctness, absence of arithmetic overflow, and memory bounds across Meter, NaN-boxed Value (Tag::Set and Tag::Map isolation), power-of-two Buddy allocators (arena.rs), Region, Object/Array/Str, and Map.

Audited automatically by lean/AxiomAudit.lean:

  • NanBox.lean, Crossing.lean, StackSafety.lean, and Preemption.lean
  • 5 meta-theorems in Verify.lean:
    1. rollback_preserves_invariant
    2. inductive_vc_sound
    3. taint_crossing_noninterference
    4. hoare_loop_sound (/** @invariant ... */)
    5. cps_frame_isolation_sound

3. Kani Bounded Model Checking (18 / 18 Harnesses Verified)

Section titled “3. Kani Bounded Model Checking (18 / 18 Harnesses Verified)”

Verifies NaN-boxing, buddy coalescing, heap_and_stack_never_alias, 64-bit x86_64/aarch64 seccomp BPF specs (never_list_is_always_refused_with_enosys), Map/Array/Object layouts, operand-stack safety, bounded Thompson NFA compilation (<= 256 states), tts_kernel::crypto SHA-256/HMAC/ct_eq, and strict Base64 round-trips.

4. @tsmodel Protocol Specs (6 / 6) & Incremental Z3 (tts prove)

Section titled “4. @tsmodel Protocol Specs (6 / 6) & Incremental Z3 (tts prove)”

tts prove runs persistent incremental Z3Session workers (--jobs=1..64) discharging init_invariant, loop_invariant, handle_no_panic, inductive_invariant, and phantom __label crossing taint flows—caching only VERIFIED SHA-256 results (--cache) and emitting deterministic --json, SARIF 2.1.0 (--sarif), and Markdown Proof & Capability Certificates (--cert).