This directory is the deeper companion to AGENTS.md. Use
AGENTS.md for the one-screen overview and this wiki for details that are
too specific or too changeable to keep at the repo root.
These pages are the long-form companion to AGENTS.md.
They are maintained with the Lean source and should move in the same PR as
load-bearing changes to commands, module layout, generated files, or public
APIs.
- If a page contradicts a Lean source file, the source wins.
- Fix stale guidance in the same PR you noticed it in.
- The repo's load-bearing files (the actual Lean source under
PolyFun/,AGENTS.md,CONTRIBUTING.md,REFERENCES.md) are the source of truth. The wiki is supporting commentary.
See the Wiki Maintenance Contract section in
AGENTS.md for the canonical policy.
quickstart.md: canonical agent command and validation playbook.repo-map.md: where to edit and how the main subtrees relate.generated-files.md: derived outputs and their sources of truth.
pfunctor.md: the polynomial-functor substrate (PFunctor, lenses, charts, equivalences, free monadFreeM, displayedFreeM,Cofree/ M-type).ipfunctor.md: the state-indexed polynomial functor substrate (IPFunctor, single-indexFreeM, two-indexFreeM₂withIndexedMonadinstance).ipfunctor-do-notation.md: worked walkthrough of the threedo-notation flavors forIPFunctor.FreeM/FreeM₂, with a small two-phase-protocol example.itree.md: coinductive interaction trees.interaction.md: the generic interaction framework (sequentialTypeTree, two-party, multiparty local views, concurrent processes, UC open systems).
bisimulation.md: glossary of the bisimulation and behavioural-equivalence notions (strong / delay / weak), the genericControl.LTSframework, and how the ITree, dynamical, and UC layers relate.notation.md: notation reference. Currently scoped to UC composition (∥,⊞,⊠) and boundary tensor / swap.gotchas.md: recurring Lean traps and PolyFun-specific pitfalls.
AGENTS.mdis the canonical root guide.CLAUDE.mdis only a symlink.- Keep one primary owner topic per page. The current pages are:
quickstart.mdfor commands, validation, and when to run which checks.repo-map.mdfor repo structure and main work areas.generated-files.mdfor derived outputs and source-of-truth rules.pfunctor.mdfor thePFunctor/FreeM/Cofreesubstrate.ipfunctor.mdfor the state-indexedIPFunctor/FreeM/FreeM₂substrate.itree.mdfor interaction trees, bisimulation, and handlers.interaction.mdfor the interaction framework aboveFreeM.notation.mdfor notation cross-references.gotchas.mdfor recurring traps.
- Add new pages when a recurring topic no longer fits cleanly in an existing guide.
- If a PR changes commands, repo structure, generated-file behavior, file naming, namespaces, or load-bearing public APIs, update the matching page in the same PR.
- Keep these files committed so worktrees and delegated agents see the same guidance.
- Promote recurring, repo-specific agent learnings here once they prove
stable. Do not let stable guidance live only in ephemeral
*-NEVER-COMMIT.mdnotes. - Prefer links to canonical docs (Lean source, Mathlib, public papers) over copying their contents.
../../README.md: project overview, scope, and build status.../../AGENTS.md: canonical agent guide (alsoCLAUDE.mdas a symlink).../../CONTRIBUTING.md: style, naming, attribution, and large-contribution policy.../../REFERENCES.md: bibliography backing module docstrings.