An atomic unit of computation or data.
λεξις — When the Diagram Is the Code
A formal language designed for the era of human–AI collaborative computation. Ten geometric primitives. Five ontological levels. One unified notation where drawing and programming are the same act.
The Problem
Software systems are designed in one notation (diagrams, whiteboards, flowcharts) and implemented in another (code). This translation gap is where intent is lost, where AI assistants hallucinate, and where formal verification becomes impractical.
λεξις collapses the gap. A λεξις diagram is the program. There is no translation step — only increasing levels of formalization applied to the same underlying structure.
Six Design Principles
- Diagram = Code. The visual representation and the executable specification are the same artifact.
- Geometric universality. Primitives are geometric symbols — not programming-language keywords — so they are language-agnostic and AI-legible.
- Incremental formality. A system can be sketched at L1 and progressively refined to L5 without changing notation.
- AI co-authorship. The language is designed to be generated, reviewed, and critiqued by AI assistants — not just humans.
- Inline proof obligations. Formal invariants and type constraints live inside the diagram, not in a separate verification tool.
- Composability. Any λεξις graph can be embedded inside a Box primitive of another graph, enabling fractal system architecture.
Ten Primitive Atoms
Every λεξις system — no matter how complex — is built from ten geometric primitives. Each primitive has a precise semantic definition and a corresponding visual glyph in Morphē.
Directed relation between two entities.
Convergence of multiple flows.
Divergence into parallel paths.
Encapsulated sub-system boundary.
Conditional branching point.
Persistent state or memory location.
Recursive or iterative structure.
Inline formal obligation or invariant.
Terminal state or empty type.
The Ontological Framework
λεξις structures computation across five ontological levels, from informal sketch to formally verified specification:
Free-form nodes and arrows. No semantic constraints.
Typed nodes. Edges carry flow direction.
State transitions, guards, and temporal ordering.
Message-passing semantics. Typed channels.
Formal invariants. Inline proof obligations. Decidable verification.
The Paper
The full language design — including formal grammar, ontological framework, proof calculus, and worked examples — is published open-access on Zenodo (CERN).
"λεξις (Lexis): A Language Design for Human–AI Collaborative Computation"Read the Paper →
Paolo Tanzi & Claude (AI assistant) · March 2026 · DOI: 10.5281/zenodo.19302004