Lean project

The Lean 4 project that proves the formalised statements of the paper; the formalisation page maps each statement to its declarations and says how to check the project.

Download: everything needed for checking (the Lean project and the ancillary files, with instructions) or the Lean project alone.

Project files

Modules

Each module page shows the source with the declarations that the paper links to. The table lists the top-level modules; the proofs of the RSC reduction are in the modules under MaxLeafFormal/RSC/, which these import, and the RSC data modules are generated (ancillary/README.md).

Module Source
MaxLeafFormal.Antinorm3 MaxLeafFormal/Antinorm3.lean
MaxLeafFormal.Antinorm8 MaxLeafFormal/Antinorm8.lean
MaxLeafFormal.Budget MaxLeafFormal/Budget.lean
MaxLeafFormal.CCData MaxLeafFormal/CCData.lean
MaxLeafFormal.CCGibbs MaxLeafFormal/CCGibbs.lean
MaxLeafFormal.CCRate MaxLeafFormal/CCRate.lean
MaxLeafFormal.CCT MaxLeafFormal/CCT.lean
MaxLeafFormal.CDS MaxLeafFormal/CDS.lean
MaxLeafFormal.DSTCert MaxLeafFormal/DSTCert.lean
MaxLeafFormal.DSTData MaxLeafFormal/DSTData.lean
MaxLeafFormal.DSTGraph MaxLeafFormal/DSTGraph.lean
MaxLeafFormal.DetRate MaxLeafFormal/DetRate.lean
MaxLeafFormal.Enclose MaxLeafFormal/Enclose.lean
MaxLeafFormal.EncloseH MaxLeafFormal/EncloseH.lean
MaxLeafFormal.Lobster MaxLeafFormal/Lobster.lean
MaxLeafFormal.LobsterData MaxLeafFormal/LobsterData.lean
MaxLeafFormal.LobsterGraph MaxLeafFormal/LobsterGraph.lean
MaxLeafFormal.MLS MaxLeafFormal/MLS.lean
MaxLeafFormal.MLSNec MaxLeafFormal/MLSNec.lean
MaxLeafFormal.PDGraph MaxLeafFormal/PDGraph.lean
MaxLeafFormal.PDRate MaxLeafFormal/PDRate.lean
MaxLeafFormal.RSCCert MaxLeafFormal/RSCCert.lean
MaxLeafFormal.RSCCheck MaxLeafFormal/RSCCheck.lean
MaxLeafFormal.RSCCheckExtras MaxLeafFormal/RSCCheckExtras.lean
MaxLeafFormal.RSCCompose MaxLeafFormal/RSCCompose.lean
MaxLeafFormal.RSCFinal MaxLeafFormal/RSCFinal.lean
MaxLeafFormal.RSCFinalExtras MaxLeafFormal/RSCFinalExtras.lean
MaxLeafFormal.RSCGraph MaxLeafFormal/RSCGraph.lean
MaxLeafFormal.RSCGraphDefs MaxLeafFormal/RSCGraphDefs.lean
MaxLeafFormal.RSCHeadline MaxLeafFormal/RSCHeadline.lean
MaxLeafFormal.RSCParams MaxLeafFormal/RSCParams.lean
MaxLeafFormal.RSCRec MaxLeafFormal/RSCRec.lean
MaxLeafFormal.RSCStages MaxLeafFormal/RSCStages.lean
MaxLeafFormal.RSCSteiner MaxLeafFormal/RSCSteiner.lean
MaxLeafFormal.RSCTreeDefs MaxLeafFormal/RSCTreeDefs.lean
MaxLeafFormal.RSCTreeGen MaxLeafFormal/RSCTreeGen.lean
MaxLeafFormal.RSCTreeModel MaxLeafFormal/RSCTreeModel.lean
MaxLeafFormal.RSCTrials MaxLeafFormal/RSCTrials.lean
MaxLeafFormal.RSCheck MaxLeafFormal/RSCheck.lean
MaxLeafFormal.RSCover0 MaxLeafFormal/RSCover0.lean
MaxLeafFormal.RSCover1 MaxLeafFormal/RSCover1.lean
MaxLeafFormal.RSCover10 MaxLeafFormal/RSCover10.lean
MaxLeafFormal.RSCover11 MaxLeafFormal/RSCover11.lean
MaxLeafFormal.RSCover12 MaxLeafFormal/RSCover12.lean
MaxLeafFormal.RSCover13 MaxLeafFormal/RSCover13.lean
MaxLeafFormal.RSCover14 MaxLeafFormal/RSCover14.lean
MaxLeafFormal.RSCover15 MaxLeafFormal/RSCover15.lean
MaxLeafFormal.RSCover16 MaxLeafFormal/RSCover16.lean
MaxLeafFormal.RSCover17 MaxLeafFormal/RSCover17.lean
MaxLeafFormal.RSCover18 MaxLeafFormal/RSCover18.lean
MaxLeafFormal.RSCover19 MaxLeafFormal/RSCover19.lean
MaxLeafFormal.RSCover2 MaxLeafFormal/RSCover2.lean
MaxLeafFormal.RSCover20 MaxLeafFormal/RSCover20.lean
MaxLeafFormal.RSCover21 MaxLeafFormal/RSCover21.lean
MaxLeafFormal.RSCover3 MaxLeafFormal/RSCover3.lean
MaxLeafFormal.RSCover4 MaxLeafFormal/RSCover4.lean
MaxLeafFormal.RSCover5 MaxLeafFormal/RSCover5.lean
MaxLeafFormal.RSCover6 MaxLeafFormal/RSCover6.lean
MaxLeafFormal.RSCover7 MaxLeafFormal/RSCover7.lean
MaxLeafFormal.RSCover8 MaxLeafFormal/RSCover8.lean
MaxLeafFormal.RSCover9 MaxLeafFormal/RSCover9.lean
MaxLeafFormal.RSRate MaxLeafFormal/RSRate.lean
MaxLeafFormal.RSRateAB MaxLeafFormal/RSRateAB.lean
MaxLeafFormal.RSThetaCert MaxLeafFormal/RSThetaCert.lean
MaxLeafFormal.RSThetaRate MaxLeafFormal/RSThetaRate.lean
MaxLeafFormal.RSXConst MaxLeafFormal/RSXConst.lean
MaxLeafFormal.RateAssembly MaxLeafFormal/RateAssembly.lean
MaxLeafFormal.Rooted MaxLeafFormal/Rooted.lean
MaxLeafFormal.SteinerCDS MaxLeafFormal/SteinerCDS.lean
MaxLeafFormal.SteinerDir MaxLeafFormal/SteinerDir.lean

Scripts

scripts/ holds the axiom checks of each part and the programs that wrote the data modules from the ancillary certificates: AxiomsAntinorm3.lean, AxiomsAntinorm8.lean, AxiomsBudget.lean, AxiomsCCGibbs.lean, AxiomsCCT.lean, AxiomsCDS.lean, AxiomsCertificates.lean, AxiomsDSTGraph.lean, AxiomsLobsterGraph.lean, AxiomsMLS.lean, AxiomsPDGraph.lean, AxiomsRSCCert.lean, AxiomsRSCCheck.lean, AxiomsRSCCheckExtras.lean, AxiomsRSCCompose.lean, AxiomsRSCFinal.lean, AxiomsRSCFinalExtras.lean, AxiomsRSCHeadline.lean, AxiomsRSCSteiner.lean, AxiomsRSCTree.lean, AxiomsRSRateAB.lean, RSCReductionChecks.lean, StatementsDSTGraph.lean, StatementsDstRec.lean, StatementsPDGraph.lean, StatementsRSC.lean, StatementsRSCExtras.lean, StatementsRSRate.lean, StatementsRSRateAB.lean, export_cc_cert.py, export_dst_cert.py, export_lobster_cells.py, export_rs_cover.py, export_rsc_cert.py, export_rsc_extras.py, export_rstheta_cert.py, rsc_data_audit.py, rsc_extras_audit.py. The docstring of export_rsc_cert.py predates the switch of the RSC data check to native_decide; the file is unchanged because the generated data modules pin its checksum.

Back to top