Each backend adapts Typell’s verification kernel for a specific query language. Backends handle parsing, AST construction, and language-specific type rules, then delegate to the kernel for core type checking, proof management, and effect inference.
backends/
├── vcl/ # VCL-dt++ backend (VeriSimDB)
│ 8-modality queries, cross-modal proofs, hexad types.
│ Ported from nextgen-databases/verisim/src/vcl/ (ReScript).
│
├── gql/ # GQL-dt++ backend (LithoGlyph)
│ Knowledge graph queries, RATIONALE clause, refinement types.
│ Bridged from nextgen-databases/lithoglyph/gql-dt/ (Lean 4).
│ NOT ported — Lean 4's type system is kept intact.
│
└── kql/ # KQL-dt++ backend (QuandleDB)
Knot invariant queries, category-theoretic schema model,
equality saturation, HoTT identity types.
Designed from scratch — no existing implementation to port.
-
Parse query source into language-specific AST
-
Transform AST into kernel-compatible representation
-
Provide language-specific typing rules to the kernel
-
Handle language-specific proof kinds (e.g. VCL’s EXISTENCE, GQL’s RATIONALE)
-
Format kernel results back into language-specific feedback