Logicaffeine Documentation
API documentation for the Logicaffeine workspace — the LOGOS English
programming language, its logic pipeline, proof engines, execution tiers,
and platform crates.
AI agents: start at llms.txt — a plain-text map of
every crate, module and item, with one file per crate.
Start here
Logic: English in, first-order logic out
Proof: every theorem checked by a small kernel
Solving: SAT and certified refutations
Mathematics: exact, and certified where it counts
Verification: specifications against implementations
Programs: running English code
- Compile a LOGOS program — The compilation pipeline.
- Run a program on the tree-walking interpreter — The tree-walking interpreter for imperative LOGOS.
- Run a program on the bytecode VM — The register VM the JIT tiers up from.
- Generate Rust from LOGOS — Code generation from the LOGOS AST to Rust source.
- Extract a program from a proof — Program extraction from kernel terms to Rust.
- Run concurrent programs deterministically — The scheduler, channels, seeds and choice traces behind reproducible concurrency.
- Replicate data without conflicts — Conflict-free replicated data types.
- Reach files, storage and the network — Platform IO, persistence, HTTP and post-quantum crypto kernels.
- Drive the toolchain from the command line — largo: new, build, run, check, verify, publish.
- Serve LOGOS to an editor — The language server.
Crates
- logicaffeine_language — The LOGOS front end: English sentences to first-order logic, and the parser for LOGOS programs and LGX pages · map
- logicaffeine_compile — The LOGOS compiler: type checking, the optimizer, the interpreter and bytecode VM, and the Rust, C, WASM, RISC-V, CUDA and hardware backends · map
- logicaffeine_proof — Kernel-checked proof search and tactics, certified SAT/CDCL with DRAT/LRAT output, and a number-theory and cryptanalysis library · map
- logicaffeine_kernel — Calculus of Constructions proof kernel with inductive types, universes, quotients, a second checker and Lean 4 import · map
- logicaffeine_verify — Z3-based static verification and model checking for Logicaffeine · map
- logicaffeine_tv — Translation validation for LOGOS: a symbolic encoder of the source, checked with Z3 against the tree-walking interpreter per program · map
- logicaffeine_lexicon — The English vocabulary behind LOGOS: verb, noun and adjective metadata for build-time lookup tables, plus an optional runtime JSON index · map
- logicaffeine_base — Foundation types for Logicaffeine: arenas, string interning, spans, and exact integers, decimals, quantities, money, dates and UUIDs · map
- logicaffeine_data — LOGOS runtime values, collections, wire format and CRDTs, shared by native and WASM builds · map
- logicaffeine_system — Platform IO, networking, HTTP serving, persistence, and post-quantum crypto (Keccak/SHA-3, ChaCha20-Poly1305, ML-KEM, ML-DSA) for LOGOS · map
- logicaffeine_runtime — Deterministic, replayable concurrency runtime for the LOGOS interpreter and VM: task scheduler, channels, Select, timers, seed and trace · map
- logicaffeine_forge — The machine-code layer of the LOGOS copy-and-patch JIT: W^X executable memory, build-time stencils, a register-allocating x86-64 backend · map
- logicaffeine_jit — Native execution tier for the LOGOS bytecode VM: hot functions and loops tier up to x86-64 machine code · map
- logicaffeine_lsp — The LOGOS language server (LSP): diagnostics, completion, hover, navigation and refactoring for .lg files, literate .md files and LGX pages · map
- logicaffeine_cli — largo — the LOGOS build tool: projects, builds, tests, serving, proofs, and the package registry · map
- logicaffeine_web — The logicaffeine.com site (Dioxus/WASM): LOGOS Studio with live LGX previews, Learn, Syntax Guide, benchmarks, news and the registry browser · map