Corobs/BIBLE
Corobs — Project Bible
Single source of truth for what Corobs IS, is NOT, and the rules that keep it coherent. README says how to build and use it; this says how to think about it. The finish line lives in
docs/RELEASE.md.
1. The one sentence
Corobs is a pure, deterministic implementation of Dr. P. Nick Lawrence's Correlithm Object Technology (2004): a C# reference library plus bit-exact ports in nine other languages.
2. The product promise
Give any catalog of things a geometry. A thing's facts become points in a high-dimensional unit cube; proximity between points is information. From that the library finds patterns tighter than chance, proposes rules between subspaces, and ranks the contradictions a human should look at first. Same seed, same inputs, same bits, on any machine and in any of the ten languages.
3. What it is NOT
- Not a product. It names no consumer and holds nothing written for one; product adapters (
Corobs.<Product>) live in that product's repository. - Not an extension point for new ideas. It implements the book and nothing more; generic extensions are separate libraries that reference Corobs.
- Not a decision maker. It measures, ranks and cues; confirming a pattern or rule and resolving a hit are the caller's decisions, carried as ids.
- Not I/O. No file, database, network or LLM access in any language.
- Not a home for the book. The copyrighted text lives only in the private
Corobs-Bookrepo, checked out atbook/(git-ignored).
4. Architecture canon
book/ (private, git-ignored) --- the specification
|
Corobs.Csharp/Corobs (reference, net9.0;net10.0)
| |
Corobs.Csharp/Corobs.Tests Corobs.Csharp/Corobs.TestVectors
(NUnit, Bugs/ invariants) | build.ps1 -Profile Vectors
v
conformance/vectors.json
|
Corobs.Python Corobs.Cpp Corobs.Java Corobs.Rust Corobs.TypeScript
Corobs.Go Corobs.Swift Corobs.Julia Corobs.Kotlin (each: library,
invariant tests, purity test, conformance test against vectors.json)
4.1 Projects
Corobs.Csharp/ is the reference. Each Corobs.<Lang>/ is a port with its own build and tests. build.ps1 -Profile <Lang>|All|Vectors [-Test] builds one language, all of them, or regenerates the vectors.
4.2 Domain model (the nouns)
N-cube, correlithm object (point CO, soft token), standard distance μ = √(N/6), σ ≈ 0.2415, string CO (line, ring, plane), ply (subspace), converter (cardinal, ordinal, continuous, planar), pattern, rule s.p >: t.q, cue, seed.
4.3 Namespaces (the verbs)
| Namespace | Does |
|---|---|
| Geometry | NCube statistics (Table II-1, Eq. III-H/J/Q); Correlithm distance, centroid, superposition
|
| Seeding | SeededPrng (xoshiro256**) and Derive(label) child streams
|
| Strings | StringCo line, ring and plane string COs
|
| Converters | cardinal, ordinal, continuous (optionally wrapping), planar; midpoint for missing |
| Mining | PatternMiner, RuleMiner, Cue
|
| Bench | hold-out recall, reach and cascade yield over abstract ids |
5. The Laws
Inherits MindAttic.HouseRules.md by reference. Full text of each law is in AGENTS.md.
- Pure. No reference to any MindAttic app, database, network or LLM client; a purity test in every language enforces it. Test-only dependencies are allowed.
- The book is the specification. Numbers from the book cite chapter, table or equation.
- The core stays pristine. New capability is an extension in another library.
- Bugs are fixed here, proven and catalogued. Own fix ticket; old code behind
COROBS_BUG_COR_Tn[_PART]; an invariant test inCorobs.Tests/Bugs/that the old code fails; the proof indocs/BUGS.md. - One reference, many ports. Behaviour changes land in C# first, the vectors are regenerated in the same commit, then each port follows bit for bit.
- The bug ledger lives in the reference only. Ports carry fixed behaviour and the same invariant tests.
- Measurement, never judgment.
6. Verified state
- C# reference with NUnit tests, purity test and the COR-T4/COR-T5 bug invariants (13cf299, efc4fce, f7205da, bbf08ce).
- Multi-language layout,
build.ps1profiles andconformance/vectors.json(5d2862c). - Ports, each with invariant, purity and conformance tests: Python (ddca174), Java (b38fa44), C++ (c791bd7), Rust (30c2f4b), TypeScript (62b0b55), Julia (62d51a2), Go (272008f), Swift (e5dfd43), Kotlin (70b1b0b).
- Docs site published from README via the shared GitHub Pages pipeline (d1e24bc).
- Consumer:
IdiotProof.Evidencereferences the C# project directly.
7. Active frontier
See docs/RELEASE.md: the milestone (Corobs 1.0) and its epics. No RFCs.
8. Quality bar
A change is done when the C# reference builds and its tests pass, the vectors are regenerated if behaviour changed, every port reproduces them bit for bit (transcendental statistics to 1e-12 relative), the purity tests pass, and any fix follows LAW-4.
9. Glossary
- Correlithm object (CO): a point in a unit N-cube used as a token.
- Standard distance: the near-constant distance between two random points, μ = √(N/6).
- Soft token: a point that stands for its datum to a degree falling off with distance.
- String CO: a chain of points embedding a line, ring or surface into the cube.
- Ply: a subspace holding one kind of fact.
- Cue: a ranked candidate inside a rule's source that misses its target.
- Conformance vectors: the reference's exact outputs that every port must reproduce.