Fixtures compile-fail rejeitam dosagem com ε abaixo do limiar ASHP (≥ 0.82)
O compilador não aceita a sua palavra.
Atalho para revisores e comités clínicos. Cada secção liga a um ficheiro no repositório, a um comando reproduzível e — quando possível — a uma citação directa do compilador ou do test runner.
Verified snapshot from repository artifacts
0 active entrypoints
Unsigned or unverifiable in current workspace
0 attested binary targets
What is still intentionally bounded.
Files this page reads.
- Release provenance
artifacts/omega/souc_release_provenance.v1.jsonunknown - GPU public contract
artifacts/omega/gpu_public_contract.v1.jsonunknown - Stdlib reliability status
artifacts/stdlib/stdlib_reliability_status.v1.jsonunknown
Published provenance reports unknown for vunpublished.
The trust story is strongest where release provenance, stdlib reliability, and the public GPU contract overlap. This hub does not claim equal maturity across every research lane.
Live artifact status
These tables are generated directly from committed artifact JSONs in the repository. They are not hand-curated marketing copy. If a feature is marked Verified, the artifact gate passed. If it is Blocked, the artifact gate failed and the reason is quoted from the test runner.
Compiler & Toolchain
Synced from artifacts/Production-grade per KNOWN_LIMITATIONS.md; no active known bugs
selftest_passed=true, scalar_smoke_present=true, fail_closed=true
172 files, 105058 lines, cycle parity=true
Optional omega/JIT profile — not the default bin/souc onboarding path. Stdlib gate: 251/251 stdlib reliability tests pass, 0 skipped
Production per KNOWN_LIMITATIONS.md; wired via `--backend llvm`
smoke status=pass, strict_no_rust=true
status=fail, blockers=[remote_env_missing]
full_concat=pass, knowledge_bootstrap=pass
Generated 2026-06-04T14:55:55.217Z
Standard Library & Science Lanes
Synced from artifacts/251/251 stdlib reliability tests pass, 0 skipped
lanes=2, status_summary=pass
lanes=7, status_summary=pass
Generated 2026-06-04T14:55:55.217Z
The 168 Theorem
While developing Sounio's octonion backend, we found a combinatorial fact that does not appear to have been stated explicitly in the literature: the number of ordered triples (i, j, k) in {1,…,7}³ for which the octonion associator [ei, ej, ek] is nonzero is exactly 168 = |PSL(2,7)|. The decomposition reads 343 = 133 + 42 + 168.
The computation was performed in Sounio and independently reproduced in Python/NumPy. Verification repository: agourakis82/168-sedenion-bijection (14/14 pytest passing).
Paper: "The 168 Theorem: PSL(2,7) Governs Non-Associativity and Zero-Divisor Structure in the Cayley-Dickson Tower" — Agourakis & Gerenutti (2026). Submitted to Advances in Applied Clifford Algebras.
Self-hosted bit-identical bootstrap
Sounio bootstraps from a 2,792-line C compiler (bootstrap/stage0.c) through
a multi-stage chain into a self-hosted compiler. Stage 2 and Stage 3
produce byte-identical binaries — the canonical definition of a
self-hosted fixed point. This was achieved on 2026-03-23.
Reproduce:
# Stage 0 → gen1 (from C compiler)
./artifacts/self-hosted/souc-self-hosted-x86_64 \
self-hosted/compiler/lean_single.sio gen1.elf
# gen1 → gen2 (first self-hosted compile)
./gen1.elf self-hosted/compiler/lean_single.sio gen2.elf
# gen2 → gen3 (fixed-point check)
./gen2.elf self-hosted/compiler/lean_single.sio gen3.elf
# Verify
sha256sum gen2.elf gen3.elf
Expected: identical hashes. Recorded fixed-point SHA-256 (CHANGELOG): 7b588877f870e0011a9ace62eb12c7cd (741 KB). Cycle parity artifact: true.
Compile-time rejection of under-confident dosing
ASHP 2020 §8.3 requires ε ≥ 0.82 for AUC-guided vancomycin dosing. The
Sounio test tests/compile-fail/vancomycin_low_conf.sio attempts to pass
a value with ε = 0.40 to a function with the signature
fn prescribe_vancomycin(dose: Knowledge[f64, ε >= 0.82]).
The compiler rejects the program. Not a lint, not a test suite — the
type checker refuses to emit the program.
//@ compile-fail
//@ error-pattern: ε
// Vancomycin prescription safety: compile-time ε-bound enforcement.
//
// ASHP 2020 §8.3 mandates ε >= 0.82 before AUC-guided dosing is permitted.
// A dose derived solely from Cockcroft-Gault (ε=0.40, CV ~60%) is too uncertain.
// The compiler must reject assignment to the prescription slot at compile time.
// Prescribing function: only accepts dose estimates with ε >= 0.82.
fn prescribe_vancomycin(dose: Knowledge[f64, ε >= 0.82]) with IO {
println("Vancomycin prescribed")
}
fn main() with IO {
// CrCl-derived dose: 40% confidence only (severe renal impairment + age 84,
// CG formula CV >> 28%, multiple co-morbidities).
let risky_dose: Knowledge[f64, ε=0.40] = Knowledge { value: 500.0, epsilon: 0.40 }
// ERROR: ε=0.40 violates the ε >= 0.82 lower bound required by
// prescribe_vancomycin. The compiler must reject this call.
prescribe_vancomycin(risky_dose)
}
Compiler output (captured from ./bin/souc check tests/compile-fail/vancomycin_low_conf.sio):
error: Type mismatch — expected confidence level not satisfied: Knowledge ε boundary violation at line 27
typecheck: failed
Exit code: 1. Output captured 2026-04-20. The gate criterion //@ error-pattern: ε is satisfied.
Standard library test gate
The committed stdlib reliability gate reports 251 pass / 0 fail / 0 skip across 251 gate tests (source: artifacts/stdlib/stdlib_reliability_status.v1.json). If this page disagrees with README.md or the artifacts, those sources win.
$ bash scripts/run_sio_test_suite.sh
=== Sounio Test Suite ===
Using souc: ./bin/souc
Parallel jobs: 64
Found {gate.total} stdlib reliability gate tests
=== Results ===
Pass: {gate.pass}
Fail: {gate.fail}
Skip: {gate.skip}
Total: {gate.total}
All tests passed! Lean 4 verification of epistemic invariants
The formal/ directory contains Lean 4 proofs of the core
invariants of the epistemic type system — in particular, that uncertainty
propagation preserves monotonicity and that confidence gates are sound
under composition. No sorry. No Mathlib.
Selected theorems
-
knowledgeLeq_trans— confidence ordering is transitive SounioEpistemic.lean -
derive_decreases_confidence— derived knowledge is never more confident than its source SounioEpistemic.lean -
combine_monotone— knowledge combination is monotone in confidence SounioEpistemic.lean -
interval_monotone— uncertainty intervals grow monotonically under GUM propagation Epistemic.lean -
composition_eps_bound— confidence gates are sound under sequential composition Epistemic.lean -
confMeet_assoc,confJoin_comm— confidence lattice laws (meet/join associativity, commutativity, idempotence) SounioEpistemic.lean
If you can falsify any claim on this page, open an issue. The repository is public, the tests are runnable, the theorem is in submission. This page is under the same discipline as the language.