Contributing to the Gnosis math sandbox
- Policy: MATH_SANDBOX.md
- Dependency graph: GNOSIS_MATH_DEPENDENCY_GRAPH.md
What belongs in MathSandbox
- Init-first: modules that build without
import Mathlib(useGnosisMathPreludefor sharedNat/Listhelpers). - Named axioms: follow the same discipline as the physics sandbox — no anonymous
sorryon promoted surfaces.
What belongs elsewhere
- Heavy Mathlib: keep in
ForkRaceFoldTheoremsuntil peeled; document debt inMATH_SANDBOX.md. - GreekLogicCanon split: new Init-only slices go under
ForkRaceFoldTheorems/GreekLogicCanon/; promote stable slices withimportlines inMathSandbox.lean(seeDiscreteBoundary). UseMathSandboxExtrasonly for transitional or experimental wiring.
Verification
cd open-source/gnosis && pnpm run validate:lean-minimalThis runs lean-minimal lake build and node scripts/validate-init-only-import-closure.mjs (see init-only-import-closure.json).