Skip to content
hotdocxPublic

Repository files navigation

emdash & endash — Functorial Type Theory

Read the Books & Research Papers:


Overview

emdash is a research programme, formal mathematical library, and AI-native scientific computing workbench for Functorial Type Theory: a dependent type theory in which categorical variance, functoriality, naturality, and higher cells are native computational operations rather than external proof obligations bolted onto set-based encodings.

The Functorial Type Theory book on an ivory study desk, with a QR code linking to the emdash repository.

The repository unites two complementary realizations of the same foundational mathematics:

  1. emdash (v3.2, emdash2/ + src/v3_2/ + packages/emdash/): The authoritative Lambdapi logical-framework specification (emdash2/emdash3_2.lp and one-way extension modules), paired with a backend-neutral explicit Core checker in TypeScript, a client-side browser reviewer, native polynomial/homological algebra engines, and AI-native workspace/plugin workflows (plugins/emdash/ & plugins/emdash-cloud/).
  2. endash (v0.1.3, endash/ & github.com/hotdocx/endash): A standalone, zero-dependency direct Glued Normalization-by-Evaluation (NbE) prover, Lean 4-compatible .en surface language, 14-tactic LCF-certified BigInt CAS, CLI/MCP server, < 190 KiB gzipped browser prover, and three-volume 0-axiom monograph library (@hotdocx/endash-kernel & @hotdocx/endash-stdlib).

Repository Architecture

Directory / Package Role Key Entrypoints
emdash2/ Active Lambdapi v3.2 mathematical authority (strict $\omega$-categories, strict functors, lax transformations, Cat_cart families, Homd ladder, simplicial/cubical nerves, sites, & homological algebra) emdash2/emdash3_2.lp, EMDASH_FOUNDATIONS.md
src/v3_2/ & packages/emdash/ TypeScript surface elaborator, backend-neutral explicit Core checker, native algebra/proof–CAS lowering, and AI-native proof-plan/goal-graph SDK (@hotdocx/emdash) TYPESCRIPT_ELABORATOR_V3_2_HANDOFF.md
emdash-template/ Standalone client-side browser workbench & live integrated reviewer ./scripts/pnpmw run reviewer:dev
emdash2/print/ & emdash2/book/ Deterministic monograph & overview typesetting and PDF verification pipeline for the emdash book ./scripts/pnpmw run book:check
plugins/ Local & cloud Codex/MCP algebra goal-assistant plugins (emdash & emdash-cloud) EMDASH_SCIENTIFIC_COMPUTING_STRATEGY.md
endash/ Standalone direct Glued-NbE prover (v0.1.3), 68 plain .en + 39 plain .ts 0-axiom library modules (7,721 declarations), CLI/MCP/Playground, and 3-volume monograph PDFs endash/README.md, endash/FORMAL_TYPE_THEORY.md, endash/RESEARCH_PAPER.md

Quickstart

1. Browser Workbenches (Zero Install)

2. Local Contributor & CLI Setup (Node >= 22.13)

# Bootstrap workspace dependencies (uses pinned pnpm via Corepack)
./scripts/bootstrap-worktree.sh

# Inspect environment prerequisites & gate matrix
./scripts/emdash dev doctor
./scripts/emdash dev check --explain

# Launch local emdash browser reviewer or terminal walkthrough
./scripts/pnpmw run reviewer:dev
./scripts/pnpmw run demo:external-review

# Focused validation gates
./scripts/pnpmw run check:ts        # Root TypeScript workbench & reviewer contracts
./scripts/pnpmw run kernel:check    # Lambdapi v3.2 formal kernel (requires lambdapi on PATH)
./scripts/pnpmw run book:check      # Authored emdash book & PDF contracts

# Run standalone endash CLI, MCP server, & 3-volume monograph audit
node endash/prebuilt/endash-cli.cjs check endash/stdlib/en/HigherAlgebraShowcase.en --strict-axioms
node endash/prebuilt/endash-cli.cjs book check endash/books
npm --prefix endash test

For contributor workflow, SOPs, and multi-agent handoffs, see AGENTS.md, emdash2/AGENTS.md, docs/DEVOPS.md, and docs/AGENT_COLLABORATION.md.


Qualification & Mathematical Boundaries

  • emdash v3.2 Workbench Scope: The current v3.2 edition is a checked development draft and a working, bounded product—not a finished foundation, complete proof assistant, or claim of global metatheory.
    • The textual surface adapter accepts reviewed mathematical constructions and fails closed outside them.
    • Displayed contexts support arbitrary finite depth in the canonical ordered sibling/Sigma normal form (including displayed-functorial and displayed-natural witnesses), together with qualified depth-generic finite Hom-category recursion. Arbitrary dependency or variance DAGs, general mixed introduction/curry, exchange across dependency, and unrestricted displayed coherence remain open; see EMDASH_FOUNDATIONS_MAIN_HANDOFF.md and EMDASH_FOUNDATIONS.md.
    • Historical TypeScript feasibility-prototype mechanisms retained in repository history are documented in TYPESCRIPT_ELABORATOR_V3_2_HANDOFF.md and are not an authority over v3.2.
  • endash v0.1.3 Direct-Kernel Scope: Every library declaration (7,721 total) and every checked claim across Volumes 0, I, and II is machine-verified with zero postulated axioms (printAxioms === []). Global external metatheorems (normalization/confluence of the combined calculus) and explicit classical/analytic boundary hypotheses in the Volume II arithmetic spine (rh-spine-map.json v2 four-status concordance) remain strictly separated from unconditional 0-axiom theorems; see endash/FORMAL_TYPE_THEORY.md §8.4 and endash/RESEARCH_PAPER.md §§6–7.

Related Projects

  • hotdocx/endash — Standalone public distribution of the endash prover, plain-source .en/.ts standard libraries, and 3-volume monograph (@hotdocx/endash-kernel & @hotdocx/endash-stdlib).
  • Arrowgram — Commutative diagrams and structured mathematical documents.
  • Hotdocx / One Big Math — Browser mathematical publishing, live .en challenge verification, and research workspaces.
  • LastRevision.pro — Hosted AI scientific workspaces and automation.