Repository navigation
Description
Background
Owner directive 2026-06-01: cross-reference VeriSimDB against four sibling repos that bear on its design — vcl-ut (VCL-total: next-gen interaction language, certified Idris2 + Rust trusted parser + Ed25519 attestation), kategoria (10-level type-safety challenge / teaching surface), echo-types (constructive Agda for proof-relevant structured loss; Pillars A–D complete), tropical-resource-typing (max-plus tropical algebra for worst-case bounds; AFP-grade Isabelle).
This issue surfaces the top concrete hooks each sibling gives VeriSimDB, the five cross-repo opportunities, and the foundation-pack alignment (which of the 8 proof targets from #77 fit which sibling).
Per-sibling top hooks
vcl-ut (VCL-total)
src/vql/VQLBidir.res+VQLProofObligation.res←vcl-ut/src/core/Checker.idr+Levels.idr. Sibling provides the dependentSafetyCertificateand 10-level evidence-carrying predicates already mechanized. VeriSimDB's bidirectional checker becomes a thin wrapper overcertifiedLevel, replacing the ad-hoc obligation-kind enum with proof-carrying receipts.rust-core/verisim-api/src/vql.rs+connectors/clients/elixir/lib/verisim_client/vcl.ex←vcl-ut/src/interface/attest+recompute-wasm. Switch the/api/v1/vql/executepath to the deterministic wire format (vcl-ut/src/interface/parse/WIRE-FORMAT.adoc) + add the Tier-2 Ed25519 attestation. Every query gains aRefl-pinned conformance receipt the client can verify offline.docs/VQL-SPEC.adoc←vcl-ut/docs/vcl-total-grammar.ebnf(25 KB). Replace VeriSimDB's informal grammar with a re-export of the EBNF thatvcl-ut/src/core/Grammar.idrcertifies. Single-source-of-truth move.
Maturity: Phase 5 complete; 12 certified Idris2 modules; 49 tests passing; believe_me: 0.
kategoria
src/vql/VQLTypes.res←kategoria/routes/alpha-extend/Level0[1-6]_*.idr. Tag each VeriSimDB type-primitive with its kategoria level so the planner can emit per-level certificates rather than a flat "type-safe" boolean.rust-core/verisim-planner/src/cost.rs←Level07_LinearTypes.idr(QTT). AnnotateBaseCostper modality with multiplicity (Semantic-ZKP =1, Vector-HNSW =ω); rewrite sequential/parallel combinators to reject double-consumption of a1-graded modality at plan time.connectors/clients/elixir/lib/verisim_client/octad.ex←Level09_SessionTypes.idr. Express octad CRDT write protocol as a session type — fixing the lonebelieve_mein the kategoria file lands both repos.
Maturity: mid-alpha skeleton (Route α only); thesis LaTeX is the real product right now. Best fit as VCL-total per-level conformance test suite, not as a prover engine.
echo-types
rust-core/verisim-drift/src/calculator.rs(scalardrift_score: f64at lines 67, 127, 177, 193, 228, 245, 266, 284) ←EchoResidueTaxonomy.agda. Each modality view is a functionf_m : Octad → ModalityView_m. Drift between two views = an echo at the disagreement set. Replace the scalar score with aResidueForm-instance (lower: Echo f y → R y) and pick the residue carrier per drift type —trivial-residuefor QualityDrift,identity-residuefor ProvenanceDrift,linear-affine-residuefor SchemaDrift. "No drift" becomes the theorem "echo is canonically trivial", not a magic 0.0.rust-core/verisim-normalizer/src/{conflict.rs, regeneration.rs}←EchoDecorationStructure.agda+ the compositional iso family inEcho.agda. Re-stateConflictPolicy::ModalityPriority(Vec<Modality>)as aDecorationStructureinstance. The pentagon coherence + cancel-iso prove commute-with-composition;≤-join-univ/degrade-compose/degrade-via-joingive commutative/associative/idempotent merge as theorems — directly closes the N2 foundation-pack target.rust-core/verisim-octad/src/query_octad.rs←EchoOFSUnivF5Iso.agda+EchoImageFactorization.agda. The octad query "8 modality views → unified result" is the (equivalence, projection) factorization.Image f := Σ B (Echo f)+ the factorization trianglef = proj₁ ∘ encode fgive query results a residue witness recording which modalities contributed — provenance for free.
Maturity: late-alpha / publication-ready for the internal programme. Pillars A–D complete 2026-05-17; Pillar E paper drafted with [EXPAND] tags. Open headline: Bachmann-Howard rank-mono <ᵇ-+1 joint-bplus.
tropical-resource-typing
rust-core/verisim-planner/src/cost.rs(CostEstimate::sequentialline 89 sumstime_ms;CostEstimate::parallelline 100 takesmax) ←Tropical.thy+TropicalSessionTypes.lean. The planner is already secretly tropical:parallel = max(tropical add),sequential = +(tropical mul). Make it explicit. Re-stateCostEstimateover the tropical semiring(ℕ ∪ {-∞}, max, +);CostEstimate::combinebecomes a tropical matrix-power product; thefloyd_warshalltheorem becomes the planner's correctness theorem. Closes Q1 for free.rust-core/verisim-planner/src/profiler.rs←Tropical_Kleene.thy(Kleene star = max-weight simple path). Slow-query analysis = path through modality DAG with worst-case weight.floyd_warshallover the cost matrix gives certified p99 bounds rather than empirical.rust-core/verisim-api/src/rbac.rs+ proof-obligation cost layer ←TropicalSessionTypes.leangrading. Speculative parallel proof obligations (e.g.,INTEGRITY ‖ PROVENANCE) get bottleneck cost not sum cost.
Maturity: research note + AFP-grade Isabelle (paper outline targets AFP submission). Tropical_Ordinal_Bridge.thy is a forward hook for the echo-types Bachmann-Howard milestone.
Five cross-repo opportunities (ranked)
-
Drift = echo + tropical cost (verisim + echo-types + tropical). Each
DriftCalculator::*_driftbecomes the echo at a modality-disagreement set with residue carrier picked by drift type; the severity is the tropical cost (worst-case bound) over the residue's collapse path. Single most natural composition the four siblings invite. Closes both D1 (drift-score soundness) and Q1 (planner-cost soundness) under one algebraic structure. -
Octad merge =
DecorationStructurejoin (verisim + echo-types). N2 (normalizer-merge CRDT laws) becomes the existingEchoDecorationStructurelemmas applied toConflictPolicy::ModalityPriority. Commutativity / associativity / idempotence by re-export. -
VCL-total + tropical = session-typed query plan (vcl-ut + tropical + kategoria). VCL-total L8 (Effects) + L10 (Linearity) are in the 10-level grammar; grade each effect with a tropical session type so a VCL
EFFECTS { Read, Write }clause carries aRefl-pinned worst-case latency bound through the wire codec. -
Kategoria 10-levels as VCL-total conformance suite (kategoria + vcl-ut + verisim).
kategoria/shared/test-suite/CHALLENGES.adocalready specifies 10 challenge programs — wire each as a VCL-total fragment so the kategoria test-suite doubles as VCL-total's per-level conformance suite. -
Ordinal track unblocks long-game alignment (echo-types + tropical). When echo-types' Buchholz track reaches Bachmann-Howard,
Tropical_Ordinal_Bridge.thybecomes the cross-prover alignment target (Agda BT ↔ IsabelletropO). Firewalled perecho-types/docs/bridges/tropical-correspondence.md— track, don't pull forward.
Foundation-pack alignment (8 theorems × 4 siblings)
| Theorem (from #77) | Best sibling | Hook |
|---|---|---|
| P3 parser totality / round-trip | vcl-ut | VclTotal.Interface.WireConformance already proves byte-for-byte Refl round-trip; lift the technique into the VeriSimDB API path |
| D1 drift-score soundness | echo-types | ResidueForm + lower : Echo f y → R y + no-section-collapse-to-residue |
| D2 drift-detector completeness | echo-types | EchoCanonicalIdentitySuite is exactly "the residue characterises what was lost" |
| C2 cross-modal consistency | echo-types + tropical | EchoChoreo for modality-pair consistency + the tropical bridge for multi-prover discipline |
| C7 CRDT octad merge laws | echo-types | EchoDecorationStructure + degrade-compose-abstract + degrade-via-join-abstract |
| Q1 query-cost soundness | tropical | Tropical_Kleene.thy::floyd_warshall + tropical_grade_le_sequentialTotal |
| V2 VCL type-checker soundness | vcl-ut | Already proved: Core.Checker.certifyAt assembles a genuine SafetyCertificate — direct port |
| N2 normalizer commutativity / idempotence | echo-types | EchoDecorationStructure.≤-join-univ + EchoObservationalEquivalence._≡m_ |
5 of 8 → echo-types, 2 → vcl-ut, 1 → tropical, 0 → kategoria (kategoria's role is teaching/test-bed, not prover).
VQL → VCL rename: scope quantified
- 90 files in verisimdb still reference VQL (
*.res,*.rs,*.adoc) - 11 ReScript modules in
src/vql/namedVQL*.res(4,974 LOC): VQLTypes, VQLError, VQLBidir, VQLExplain, VQLTypeChecker, VQLProofObligation, VQLContext, VQLParser_test, VQLSubtyping, VQLCircuit, VQLParser - Rust touchpoints:
verisim-repl/src/vql_fmt.rs,verisim-planner/src/vql_bridge.rs,verisim-api/src/vql.rs,verisim-semantic/src/zkp_bridge.rs,verisim-octad/src/query_octad.rs,fuzz/fuzz_targets/fuzz_vql_parser.rs, SDK clients inconnectors/clients/{rust,rescript}/ - Already migrated:
connectors/clients/elixir/lib/verisim_client/vcl.ex(lone outpost) - User-facing route:
/api/v1/vql/execute(still old name) - 0 files reference
VclTotal— clean separation from the vcl-ut upstream
Recommended strategy: single PR adding vcl/ modules as pub use re-exports of vql/ so old call-sites compile; follow-up batches switch call-sites. Estate-flavour fanout (similar to standards#288 CodeQL cron sweep), not per-call-site PRs.
Relevant paths
- VeriSimDB:
rust-core/verisim-drift/src/calculator.rs,rust-core/verisim-planner/src/{cost.rs,profiler.rs},rust-core/verisim-normalizer/src/{conflict.rs,regeneration.rs},rust-core/verisim-octad/src/query_octad.rs,src/vql/{VQLBidir,VQLProofObligation,VQLTypeChecker}.res,connectors/clients/elixir/lib/verisim_client/vcl.ex - vcl-ut:
src/core/{Checker,Levels,Grammar}.idr,src/interface/{parse/WIRE-FORMAT.adoc,attest,recompute-wasm,WireConformance.idr},docs/{THE-10-LEVELS-EXPLAINED.adoc,vcl-total-grammar.ebnf} - echo-types:
proofs/agda/{EchoResidueTaxonomy,EchoDecorationStructure,EchoNoSectionGeneric,EchoOFSUnivF5Iso,EchoImageFactorization,EchoCanonicalIdentitySuite,EchoChoreo,EchoObservationalEquivalence}.agda,docs/bridges/tropical-correspondence.md - tropical-resource-typing:
Tropical.thy,Tropical_Kleene.thy,Tropical_Matrices_Clean.thy,TropicalSessionTypes.lean,Tropical_Ordinal_Bridge.thy - kategoria:
routes/alpha-extend/Level0[1-9]_*.idr+Level10_CubicalTypes.idr,shared/test-suite/CHALLENGES.adoc
Activity
hyperpolymath commentedon Jun 2, 2026
Status update 2026-06-02 — sibling umbrellas #82 (license inconsistency) + #83 (Elixir warnings) closed today via #88 + #101. #77/#78/#79/#80/#81 still open.
Cross-repo upstream state per memory (Foundation pack: P3+V2 → vcl-ut, D1/D2/C7/N2 → echo-types, Q1 → tropical):
Drift = echo + tropical-cost composition remains the most natural keystone — still un-touched.
docs: correct legacy query-framing -> consonance (CLAUDE.md/STATE) + …
docs(#84): VCL rename stage A — reframe language prose, rename 9 vql-…
refactor(elixir): VCL rename stage C — VQL* modules -> VCL* (internal)
docs: VCL rename — bare-VQL doc-token sweep (#84)
refactor(rust): VCL rename stage B (1/5) — rust-core server + openapi
refactor(clients): VCL rename stage B (2/5) — Rust/Zig/Julia/Elixir SDKs
hyperpolymath commentedon Jul 21, 2026
Re-measured 2026-07-21 — the VQL → VCL rename is substantially DONE
The "scope quantified" section of this issue is now well out of date. Measured against
origin/main:src/vql/— 11 ReScript modules, 4,974 LOCsrc/vql/no longer exists.src/vcl/holds 11 modulesvql_fmt.rs,vql_bridge.rs,vql.rs…verisim-repl/src/vcl_fmt.rsrenamedverisim_client/vcl.exmigratedvcl_executor.ex,vcl_type_checker.ex,vcl_bridge.ex,vclt_gate.exall migrated0 filesreferenceVclTotalsrc/now readsabi/ registry/ vcl/. The recommended strategy in this issue — "single PR addingvcl/modules aspub usere-exports ofvql/, follow-up batches switch call-sites" — appears to have been superseded by a direct rename. The remaining 24 files are mostly.adocdocs and thevql-bridge/directory name.Suggested action: strike the rename section from this issue (or spin the 24-file residual into its own cleanup task) so the issue is purely the cross-repo synthesis it is titled for.
On the synthesis itself — unchanged, and still the keystone
Nothing in #185 touches the four-sibling synthesis. Your 2026-06-02 status note still holds: "Drift = echo + tropical-cost composition remains the most natural keystone — still un-touched."
One measurement that bears on opportunity 1 and the Q1 target: I compiled the Coq tree today under coqc 8.20.1 (all 9 modules OK,
check-assumptionsgate exit 0) and confirmedoptimize_is_permutationis still anAxiomin bothPlanner.v:63andPlannerSemantic.v:94. So the tropical route to Q1 described here — restatingCostEstimateover(ℕ ∪ {-∞}, max, +)soTropical_Kleene.thy::floyd_warshallbecomes the planner's correctness theorem — is still discharging a genuinely open axiom, not duplicating existing work. That remains the single highest-leverage item in this issue.ci: green the six red workflows + close the #47 residual (#185)
docs(#204,#113,#86) + security(#203): the seven open issues, re-measu…