Skip to content

Commit c8874ee

Browse files
claudehyperpolymath
authored andcommitted
docs(krl): ground KRL identity + 5-role stack per canonical spec
KRL is QuandleDB's canonical resolution DSL: a database-facing language whose domain is knot/tangle identity, equivalence, transformation, and disambiguation. Database-facing but not merely a query language; the two anti-framings ('a database language' = SQL-for-knots; 'surface DSL over Tangle' = QuandleDB incidental) are called out explicitly. Architecture position now enumerates 5 roles, each with the question it answers: KRL (resolution DSL) -> TangleIR (lowered IR) -> Tangle (compute substrate) -> QuandleDB (persistence + invariant/equivalence DB) + Skein.jl (backend library). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017TXizM5c1Yd9HWf7Y15YH2
1 parent 8c1796c commit c8874ee

1 file changed

Lines changed: 44 additions & 17 deletions

File tree

README.adoc

Lines changed: 44 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,61 @@ link:docs/krl_map.html[→ KRL architecture map (HTML)]
1515

1616
== What it is
1717

18-
KRL (Knot Resolution Language) is a compositional language for constructing,
19-
transforming, resolving, and retrieving topological objects: tangles, knots,
20-
and links.
18+
KRL (Knot Resolution Language) is QuandleDB's canonical resolution DSL: a
19+
database-facing language whose domain is knot/tangle identity, equivalence,
20+
transformation, and disambiguation. It is the user- and author-facing language for
21+
constructing, transforming, resolving, and retrieving knot/tangle presentations,
22+
invariants, fingerprints, equivalence classes, witnesses, and disambiguation
23+
results.
2124

2225
The name reflects the central operation: _resolution_.
2326
In knot theory, resolution is how crossings are resolved in the skein relation —
2427
the algebraic heart of invariant computation. KRL extends this to cover
2528
every interaction with the system: resolving structure, resolving equivalence,
2629
resolving queries.
2730

28-
"Query" would name only one of four operations. "Resolution" names the mathematical
29-
act that runs through all of them.
31+
KRL is database-facing but not _merely_ a query language. "Query" would name only
32+
one of four operations; "resolution" names the mathematical act that runs through
33+
all of them. Two framings to avoid: "a database language" alone wrongly suggests
34+
SQL-for-knots, and "a surface DSL over Tangle" alone makes QuandleDB incidental and
35+
KRL too compiler-ish. KRL is precisely QuandleDB's resolution DSL — it lowers through
36+
TangleIR into Tangle-level computation, with QuandleDB and Skein.jl as its
37+
persistence and computation backends.
3038

3139
== Architecture position
3240

33-
KRL is the surface language of a four-layer federated stack:
41+
KRL is the surface language of a federated resolution stack. Each layer answers a
42+
distinct question:
3443

35-
----
36-
KRL surface syntax ← this repository (spec, ABI, FFI scaffolds)
37-
implementations: KRLAdapter.jl,
38-
quandledb/server/krl/
39-
TangleIR ← canonical interchange object
40-
defined in KRLAdapter.jl, consumed by
41-
hyperpolymath/tangle
42-
Tangle core ← proven type-safe small-step semantics
43-
(hyperpolymath/tangle/proofs/Tangle.lean)
44-
Skein.jl + QuandleDB ← persistence and semantic indexing
45-
----
44+
[cols="1,4"]
45+
|===
46+
| Layer | Role — and the question it answers
47+
48+
| *KRL* +
49+
(this repository)
50+
| User-/author-facing resolution DSL. _"What question or claim are we making about
51+
knot-structured identity?"_ Spec, ABI, FFI scaffolds; implementations in
52+
`KRLAdapter.jl` (canonical) and `quandledb/server/krl/`.
53+
54+
| *TangleIR*
55+
| Lowered intermediate representation. _"What normalized computational object
56+
represents that resolution task?"_ Defined in `KRLAdapter.jl`, consumed by
57+
`hyperpolymath/tangle`.
58+
59+
| *Tangle*
60+
| Full computational / programming substrate. _"What executable knot-theoretic
61+
program or transformation system carries this out?"_ Proven type-safe small-step
62+
semantics (`hyperpolymath/tangle/proofs/Tangle.lean`).
63+
64+
| *QuandleDB*
65+
| Persistence + invariant/equivalence database. _"Where presentations, invariants,
66+
fingerprints, equivalence classes, witnesses, and results live."_
67+
(`hyperpolymath/quandledb`)
68+
69+
| *Skein.jl*
70+
| Computational / backend library. _"One engine that computes, transforms,
71+
normalizes, or evaluates the objects."_ (`hyperpolymath/Skein.jl`)
72+
|===
4673

4774
*This repo* is responsible for:
4875

0 commit comments

Comments
 (0)