An earlier unmerged sweep proposed a generic
ARCHITECTURE.mddescribing asrc/ tests/ config/layout with “modular, maintainable architecture designed for clarity, scalability and long-term sustainability”. This repository has none of those directories and that text described nothing. What follows is the actual structure.
GNPL narration: "what account does this evidence support?" <-- design only │ lowers to GQLdt query: "what is in the store?" <-- built, tested │ FFI (liblith_bridge.a) Form.Bridge Zig, C ABI <-- built, tested │ Lithoglyph Form.Model / Form.Blocks (Forth, append-only journal) <-- separate repo
This is why a repository named gnpl contains sources namespaced
GqlDt: GQLdt is not a leftover, it is GNPL’s compilation target. See
README.adoc, and docs/THEORY.adoc for why the narration layer is
the point.
| Path | Language | Role |
|---|---|---|
|
Lean 4 |
the query core — types, lexer, parser, IR, pipeline |
|
Lean 4 |
refinement types: |
|
Lean 4 |
|
|
Lean 4 |
PROMPT six-dimension source scoring |
|
Idris2 |
ABI definitions + memory-layout proofs |
|
Zig |
FFI implementation; emits
|
|
Lean 4 |
executable suites, run by |
|
Markdown/EBNF |
the normative grammar and lexical specification |
|
AsciiDoc/Markdown |
design rationale and proof debt |
Per the estate standard, ABI is Idris2 and FFI is Zig — no
hand-written C. bridge/ is the only Zig tree; two pre-0.15-API
skeletons were removed in #7.
lakefile.lean links against bridge/zig-out/lib/liblith_bridge.a,
so the Zig archive must exist before the Lean executables link:
cd bridge && zig build && zig build test # produces liblith_bridge.a
cd .. && lake build && lake testGetting this backwards is why the Containerfile used to mask both
steps with || echo, which meant a wholly broken build still produced
a “successful” image.
The claims this repository makes about itself are gated, and the gates are tested:
| Gate | What it establishes |
|---|---|
|
the Lean core typechecks |
|
163 executable checks across Lexer / Parser / TypeSafety |
|
Lean reports no
incomplete proof ( |
estate |
every |
|
the FFI bridge builds and its unit tests pass |
A green proof gate means “nothing is admitted mid-proof”, not
“nothing is assumed”. Lean’s sorry warning does not fire on
axiom, and 16 axioms remain — five of them in executable position,
so those functions have no implementation at all. Read
docs/proof-debt.md before relying on any verification claim here.
New gates are only accepted once they have been shown to go red on a seeded fault. The test driver and the proof gate were both canary-tested this way; the repository has a history of gates that could not fail, and the remedy is evidence, not intent.