Architecture, Formal Proofs & AI Evals
Compiler & Runtime Pipeline
Section titled “Compiler & Runtime Pipeline”- Front End (
syntax,check): Parses.danafiles without whitespace sensitivity, resolves local & SHA-256 hash-pinnedvendor/modules, and checks structuralTabletypes + sensitivity tag propagation. - Dana Core IR (
lower,core): Desugars pipelines into a typed relational + capability IR with canonical text wire format shared with Lean 4. - Differential Verification (
formal/,src/oracle/): Cross-checks the 2,048-row vectorized columnar VM and SQL pushdown backends against both a minimal row-by-row Rust oracle and Lean 4 formal semantics. - Zero-Crate Rust Policy:
Cargo.tomlhas zero external Rust crate dependencies; only three audited C foundations (sqlite3, system OpenSSL TLS,zlib/zstd) connect via minimalsrc/ffi/shims, with#![forbid(unsafe_code)]everywhere else.
Formal Verification & Fuzzing
Section titled “Formal Verification & Fuzzing”- 0-conflict Bison IELR(1) grammar (
make grammar) verifying syntax unambiguity across the Language Reference and examples. - Lean 4 formal core (
make formal) proving schema/type soundness and PII/FERPA non-interference over Dana Core IR. - 13-parser zero-crate fuzzer + adversarial privacy hardening suite.
Blind 4-Model / 2-Family AI Learnability Evaluations
Section titled “Blind 4-Model / 2-Family AI Learnability Evaluations”Dana is empirically benchmarked for how accurately fresh AI models write compliant pipelines solely from dana guide with zero prior repo history:
| Evaluation | Models Tested (2 Families) |
Stage 2 Strict Pass | Attempt-1 Hidden E2E + Privacy | Privacy / Policy Leaks | Canonical Formatting |
|---|---|---|---|---|---|
v0.7 (v0.7.2) |
claude-sonnet-5-5, claude-haiku-5-5, gemini-4-neon, gemini-4-argon |
16 / 16 (100%) | 15 / 16 (93.8%) | 0 leaks | 16 / 16 (100%) |
v0.3 (v0.3.0) |
Same 4-model / 2-family blind protocol | 24 / 24 (100%) | 21 / 24 (87.5% functional) | 0 leaks | 24 / 24 (100%) |