lean-pkg 0.26.0__tar.gz → 0.28.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/CHANGELOG.md +145 -0
  2. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/CITATION.cff +8 -2
  3. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/PKG-INFO +1 -1
  4. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/README.md +3 -1
  5. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/pyproject.toml +1 -1
  6. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/__init__.py +1 -1
  7. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/claims.py +4 -4
  8. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/cli.py +5 -4
  9. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/cli_parser.py +4 -0
  10. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/comparator_receipt.py +103 -18
  11. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/coverage.py +87 -9
  12. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/data/upgrade-breaking.yaml +1 -0
  13. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/formalization.py +6 -2
  14. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/gate.py +33 -13
  15. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/host_routes.py +5 -1
  16. lean_pkg-0.28.0/src/lean_pkg/html_blocks.py +77 -0
  17. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/hypotheses.py +5 -1
  18. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/page.py +96 -17
  19. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/public_safety.py +22 -1
  20. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/receipt_systemd.py +37 -5
  21. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg.egg-info/PKG-INFO +1 -1
  22. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg.egg-info/SOURCES.txt +3 -0
  23. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_branch_notice.py +26 -0
  24. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_comparator_attempts.py +2 -2
  25. lean_pkg-0.28.0/tests/test_comparator_evidence_dir.py +79 -0
  26. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_comparator_readiness.py +2 -2
  27. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_comparator_receipt.py +68 -5
  28. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_comparator_stage.py +1 -1
  29. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_conditional_claims.py +8 -2
  30. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_coverage_offline.py +3 -2
  31. lean_pkg-0.28.0/tests/test_coverage_witness.py +149 -0
  32. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_docs.py +52 -0
  33. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_host_routes.py +2 -0
  34. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_index_built_on.py +1 -1
  35. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_internal_claims.py +64 -0
  36. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_olean_manifest.py +1 -1
  37. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_page_site.py +66 -0
  38. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_public_safety.py +28 -0
  39. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_receipt_systemd.py +24 -0
  40. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/LICENSE +0 -0
  41. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/MANIFEST.in +0 -0
  42. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/PYPI.md +0 -0
  43. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/setup.cfg +0 -0
  44. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/adapters/__init__.py +0 -0
  45. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/adapters/github.py +0 -0
  46. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/adapters/leansearch.py +0 -0
  47. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/adapters/loogle.py +0 -0
  48. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/adapters/palomar.py +0 -0
  49. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/adapters/reservoir.py +0 -0
  50. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/anchor.py +0 -0
  51. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/audit.py +0 -0
  52. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/binding_file.py +0 -0
  53. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/blueprint.py +0 -0
  54. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/build_scope.py +0 -0
  55. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/ci_github.py +0 -0
  56. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/claim_axioms.py +0 -0
  57. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/claims_mark.py +0 -0
  58. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/command_tree.py +0 -0
  59. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/comparator_config.py +0 -0
  60. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/comparator_contracts.py +0 -0
  61. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/comparator_stage.py +0 -0
  62. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/comparator_types.py +0 -0
  63. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/container.py +0 -0
  64. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/core.py +0 -0
  65. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/data/stacks/lts-2026.10.yaml +0 -0
  66. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/data/toolchain-advisories.yaml +0 -0
  67. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/data/verify-workflow-pins.yaml +0 -0
  68. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/deps_closure.py +0 -0
  69. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/deps_fill.py +0 -0
  70. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/dup_constants.py +0 -0
  71. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/exercise.py +0 -0
  72. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/exercise_forbid.py +0 -0
  73. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/export_paths.py +0 -0
  74. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/extract.py +0 -0
  75. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/extract_decls.py +0 -0
  76. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/extract_ledger.py +0 -0
  77. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/extract_summary.py +0 -0
  78. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/extract_types.py +0 -0
  79. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/extract_write.py +0 -0
  80. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/formalization_kept.py +0 -0
  81. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/fresh_repo.py +0 -0
  82. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/headline.py +0 -0
  83. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/help_topics.py +0 -0
  84. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/holes.py +0 -0
  85. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/index.py +0 -0
  86. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/json_stdout.py +0 -0
  87. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/lake_hygiene.py +0 -0
  88. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/lean_diag.py +0 -0
  89. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/lean_scan.py +0 -0
  90. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/ledger.py +0 -0
  91. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/next_step.py +0 -0
  92. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/page_html.py +0 -0
  93. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/palomar.py +0 -0
  94. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/palomar_check.py +0 -0
  95. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/port_modules.py +0 -0
  96. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/prior_art.py +0 -0
  97. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/producer.py +0 -0
  98. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/producer_skew.py +0 -0
  99. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/publish.py +0 -0
  100. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/rebase.py +0 -0
  101. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/receipt.py +0 -0
  102. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/receipt_check.py +0 -0
  103. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/receipt_ci.py +0 -0
  104. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/recommended.py +0 -0
  105. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/report.py +0 -0
  106. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/reservoir.py +0 -0
  107. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/scaffold.py +0 -0
  108. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/schemas/formalization-0.4.schema.json +0 -0
  109. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/schemas/formalization-0.4.schema.source.txt +0 -0
  110. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/scripts/ClaimAxioms.lean +0 -0
  111. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/scripts/ContractsOnly.lean +0 -0
  112. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/scripts/DupConstants.lean +0 -0
  113. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/scripts/HypProbe.lean +0 -0
  114. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/scripts/comparator-check.sh +0 -0
  115. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/scripts/verify-comparator.sh +0 -0
  116. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/seal_bundle.py +0 -0
  117. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/search.py +0 -0
  118. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/site_profiles/easley.yaml +0 -0
  119. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/site_profiles/github-actions.yaml +0 -0
  120. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/sites.py +0 -0
  121. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/stacks.py +0 -0
  122. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/statements_module.py +0 -0
  123. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/templates/Apache-2.0.txt +0 -0
  124. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/toolchain_advisories.py +0 -0
  125. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/upgrade.py +0 -0
  126. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg/verify.py +0 -0
  127. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg.egg-info/dependency_links.txt +0 -0
  128. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg.egg-info/entry_points.txt +0 -0
  129. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg.egg-info/requires.txt +0 -0
  130. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/src/lean_pkg.egg-info/top_level.txt +0 -0
  131. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_adapters.py +0 -0
  132. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_append_note.py +0 -0
  133. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_audit_claims_coverage.py +0 -0
  134. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_audit_gh_outcomes.py +0 -0
  135. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_audit_missing_path.py +0 -0
  136. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_audit_no_github_mirror.py +0 -0
  137. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_audit_palomar.py +0 -0
  138. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_audit_receipts_paths.py +0 -0
  139. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_audit_reference_branch.py +0 -0
  140. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_binding_file.py +0 -0
  141. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_binding_file_g3.py +0 -0
  142. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_blueprint_check.py +0 -0
  143. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_bootstrap_collaborator.py +0 -0
  144. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_campaign_recovery_docs.py +0 -0
  145. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_check_changelog_releases.py +0 -0
  146. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_ci_attested.py +0 -0
  147. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_ci_comparator.py +0 -0
  148. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_ci_corroborate.py +0 -0
  149. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_ci_receipt_level1.py +0 -0
  150. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_claim_axioms.py +0 -0
  151. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_claims.py +0 -0
  152. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_claims_ledger.py +0 -0
  153. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_claims_mark.py +0 -0
  154. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_claims_rebase.py +0 -0
  155. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_cli.py +0 -0
  156. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_cli_consistency.py +0 -0
  157. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_cli_contract_argv.py +0 -0
  158. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_cli_contract_corpus.py +0 -0
  159. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_cli_contract_help.py +0 -0
  160. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_cli_contract_json.py +0 -0
  161. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_cli_contract_names.py +0 -0
  162. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_columns.py +0 -0
  163. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_command_docs.py +0 -0
  164. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_command_tree_stage2.py +0 -0
  165. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_commit.py +0 -0
  166. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_comparator.py +0 -0
  167. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_comparator_config.py +0 -0
  168. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_comparator_contracts.py +0 -0
  169. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_comparator_coverage.py +0 -0
  170. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_comparator_host_label.py +0 -0
  171. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_comparator_list_defaults.py +0 -0
  172. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_comparator_log_transport.py +0 -0
  173. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_comparator_mismatch_next.py +0 -0
  174. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_comparator_name_hints.py +0 -0
  175. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_comparator_no_mathlib.py +0 -0
  176. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_comparator_replace.py +0 -0
  177. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_comparator_repo_claims_file.py +0 -0
  178. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_comparator_sacct_seal.py +0 -0
  179. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_comparator_tool_toolchain.py +0 -0
  180. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_comparator_types.py +0 -0
  181. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_compressed_log_bindings.py +0 -0
  182. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_conditional_closeout.py +0 -0
  183. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_conditional_outputs.py +0 -0
  184. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_consent_dedupe.py +0 -0
  185. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_core_split.py +0 -0
  186. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_coverage_conclusion.py +0 -0
  187. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_cut_release.py +0 -0
  188. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_defaults.py +0 -0
  189. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_docs_classifier_preflight.py +0 -0
  190. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_docs_descendants.py +0 -0
  191. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_docs_old_spellings.py +0 -0
  192. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_doctor.py +0 -0
  193. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_dup_constants.py +0 -0
  194. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_evidence_formalization.py +0 -0
  195. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_exercise.py +0 -0
  196. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_exercise_course.py +0 -0
  197. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_extract_decls.py +0 -0
  198. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_extract_ledger.py +0 -0
  199. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_extract_plan.py +0 -0
  200. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_extract_summary.py +0 -0
  201. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_extract_types.py +0 -0
  202. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_fields_only.py +0 -0
  203. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_formalization.py +0 -0
  204. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_formalization_anchor.py +0 -0
  205. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_formalization_kept.py +0 -0
  206. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_formalization_refresh.py +0 -0
  207. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_formats.py +0 -0
  208. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_fresh_repo.py +0 -0
  209. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_gate.py +0 -0
  210. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_gate_binding.py +0 -0
  211. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_gate_binding_scope.py +0 -0
  212. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_gate_check.py +0 -0
  213. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_gate_check_next.py +0 -0
  214. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_gate_claims.py +0 -0
  215. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_gate_pins.py +0 -0
  216. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_gate_receipt_path.py +0 -0
  217. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_gate_refresh.py +0 -0
  218. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_gate_regate.py +0 -0
  219. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_headline.py +0 -0
  220. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_help_topics.py +0 -0
  221. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_hints_and_time.py +0 -0
  222. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_host_check.py +0 -0
  223. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_hypotheses_ledger.py +0 -0
  224. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_hypotheses_probe.py +0 -0
  225. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_ignored_evidence.py +0 -0
  226. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_index_add.py +0 -0
  227. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_index_check.py +0 -0
  228. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_index_claims.py +0 -0
  229. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_index_docs_descendants.py +0 -0
  230. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_index_render.py +0 -0
  231. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_index_schema.py +0 -0
  232. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_init.py +0 -0
  233. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_input_hygiene.py +0 -0
  234. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_json.py +0 -0
  235. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_json_control_chars.py +0 -0
  236. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_json_stdout.py +0 -0
  237. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_judged_as.py +0 -0
  238. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_lake_cache_systemd.py +0 -0
  239. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_lake_hygiene.py +0 -0
  240. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_large_artifacts_recipe.py +0 -0
  241. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_lean_diag.py +0 -0
  242. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_lean_scan_extract.py +0 -0
  243. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_lease.py +0 -0
  244. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_lease_actor.py +0 -0
  245. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_lease_expiry_notice.py +0 -0
  246. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_lease_registry_stamp.py +0 -0
  247. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_ledger_exact_covers.py +0 -0
  248. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_ledger_golden.py +0 -0
  249. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_lifecycle_notes.py +0 -0
  250. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_llms.py +0 -0
  251. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_locking.py +0 -0
  252. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_manuscript_findings.py +0 -0
  253. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_mathlib_none.py +0 -0
  254. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_migrate.py +0 -0
  255. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_migrate_v3.py +0 -0
  256. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_namespace_notes.py +0 -0
  257. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_new.py +0 -0
  258. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_next.py +0 -0
  259. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_noninteractive.py +0 -0
  260. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_outputs_golden.py +0 -0
  261. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_package_fields.py +0 -0
  262. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_packaging.py +0 -0
  263. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_page.py +0 -0
  264. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_page_repo_head.py +0 -0
  265. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_palomar_check.py +0 -0
  266. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_palomar_prepare.py +0 -0
  267. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_palomar_snapshot.py +0 -0
  268. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_paper.py +0 -0
  269. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_port_modules.py +0 -0
  270. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_prior_art.py +0 -0
  271. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_producer_skew.py +0 -0
  272. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_promote_audit.py +0 -0
  273. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_promote_scope.py +0 -0
  274. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_public_allow.py +0 -0
  275. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_public_safety_gzip.py +0 -0
  276. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_public_safety_long_line_stream.py +0 -0
  277. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_public_safety_scope.py +0 -0
  278. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_publication_hold.py +0 -0
  279. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_publish.py +0 -0
  280. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_receipt_check.py +0 -0
  281. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_receipt_check_opt_in.py +0 -0
  282. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_receipt_ci.py +0 -0
  283. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_receipt_container.py +0 -0
  284. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_receipt_private_scan.py +0 -0
  285. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_receipt_producer.py +0 -0
  286. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_receipt_slurm.py +0 -0
  287. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_receipt_slurm_artifacts.py +0 -0
  288. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_receipt_slurm_contracts_preflight.py +0 -0
  289. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_receipt_slurm_fill_plan.py +0 -0
  290. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_receipt_slurm_preflight_deps.py +0 -0
  291. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_receipt_slurm_runtime_preflight.py +0 -0
  292. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_receipt_slurm_sacct_seal.py +0 -0
  293. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_receipt_slurm_template_src.py +0 -0
  294. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_receipt_subdir_package.py +0 -0
  295. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_recommended.py +0 -0
  296. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_record.py +0 -0
  297. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_record_evidence.py +0 -0
  298. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_record_transitions.py +0 -0
  299. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_refresh_descendant.py +0 -0
  300. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_register.py +0 -0
  301. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_registry_core.py +0 -0
  302. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_registry_snapshot.py +0 -0
  303. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_release_script.py +0 -0
  304. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_release_version.py +0 -0
  305. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_repo_override.py +0 -0
  306. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_report.py +0 -0
  307. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_report_log_required.py +0 -0
  308. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_reservoir_check.py +0 -0
  309. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_review_fixes_prior_art.py +0 -0
  310. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_robustness.py +0 -0
  311. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_seal_bundle.py +0 -0
  312. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_search.py +0 -0
  313. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_search_completeness.py +0 -0
  314. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_search_declarations.py +0 -0
  315. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_search_field_coverage.py +0 -0
  316. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_search_scan.py +0 -0
  317. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_search_sources.py +0 -0
  318. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_sibling_packages.py +0 -0
  319. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_signoff_sidecar.py +0 -0
  320. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_sites.py +0 -0
  321. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_skills.py +0 -0
  322. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_smoke_configs.py +0 -0
  323. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_source_paper_ai.py +0 -0
  324. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_stack_opt_in.py +0 -0
  325. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_stacks.py +0 -0
  326. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_statements_module.py +0 -0
  327. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_status_scope.py +0 -0
  328. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_subdir_package.py +0 -0
  329. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_template_module_headers.py +0 -0
  330. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_toolchain_advisories.py +0 -0
  331. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_toolchain_floor.py +0 -0
  332. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_trust.py +0 -0
  333. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_update_publication_fields.py +0 -0
  334. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_update_relocate.py +0 -0
  335. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_upgrade.py +0 -0
  336. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_user_default.py +0 -0
  337. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_validate.py +0 -0
  338. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_verdict_first.py +0 -0
  339. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_verify_preflight.py +0 -0
  340. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_verify_workflow_oidc.py +0 -0
  341. {lean_pkg-0.26.0 → lean_pkg-0.28.0}/tests/test_wiki.py +0 -0
@@ -9,6 +9,149 @@ full policy, and the criteria for 1.0.0, are in RELEASING.md, "When to tag".
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
+ ## [0.28.0] - 2026-11-09
13
+
14
+ ### Added
15
+
16
+ - Non-vacuity witnesses on coverage rows (proposal 0011, #437): a `claims.yaml`
17
+ `witness` is accepted on any claim, not only a conditional one, and a claim
18
+ that sets only `witness` keeps its status when the facts to judge it are
19
+ missing. A `coverage.yaml` row (paper or library) may name the `witness` of
20
+ one of its claims; `lean-pkg page` then says **Hypotheses can be met.**
21
+ with the probe's state (checked, not yet checked, wrong type), the header
22
+ counts the verified results with a checked witness, and `coverage check
23
+ --json` gains `witnesses`, `page --json` `verified_with_witness`. Files
24
+ without the key render as before; a file that uses it needs this release
25
+ or later. See docs/page.md, "Hypotheses that can be met (a witness)".
26
+
27
+ ### Changed
28
+
29
+ - The comparator runner's default evidence directory moved out of `.lake/`,
30
+ which `lake clean` and disk cleanups delete whole (#442): stage logs,
31
+ `stages.json`, the olean manifest, unit logs and the read-only
32
+ `attempts/NNN/` now go to `<project>/.lean-pkg-evidence/comparator-receipt/`.
33
+ The runner creates `.lean-pkg-evidence/` with a `.gitignore` holding `*`
34
+ (git ignores the directory, that file included) and a `README` saying what
35
+ it holds, and never rewrites either. Evidence an earlier run left under
36
+ `.lake/comparator-receipt` is used in place by a run, `--attempts` and
37
+ `--verify-oleans` while the new default does not exist, with one stderr
38
+ line giving the `mv` that keeps it; lean-pkg never moves or deletes
39
+ evidence. `--evidence-dir` is unchanged; `comparator host-check --routes`
40
+ packs the new directory and notes the old one. See docs/comparator.md,
41
+ "Stages and `--prepare`" (where the evidence lives).
42
+
43
+ ### Fixed
44
+
45
+ - `lean-pkg page` no longer calls an internal result "work in progress" when
46
+ the build accepted it and only the statement comparison is missing (#441).
47
+ A result block whose claims that are not verified are all internal theorems
48
+ or lemmas that no comparator configuration judged, with no other problem
49
+ recorded (or open only for `no-comparator-config`, issue 398), now reads
50
+ "**Built, not compared.** Lean accepts the proof (the build passed), but its
51
+ statement has not been compared by a second checker, which lean-pkg needs
52
+ before it counts the result as verified." Display only: the ledger status
53
+ (`out-of-scope`), the verified counts and `page --json` are unchanged, and
54
+ an internal definition or a claim with any other problem keeps "Not yet
55
+ verified".
56
+
57
+ ### Documentation
58
+
59
+ - The README, the documentation's front page and llms.txt say in one line that
60
+ lean-pkg is unrelated to `leanpkg`, the build tool of Lean 3, after the
61
+ names were found to be confusable (#439).
62
+
63
+ public-safety (make public-safety, --strict, history): 0 hit(s) (0 tree, 0 history); 0 blocking, 0 warning(s)
64
+
65
+ ## [0.27.0] - 2026-11-07
66
+
67
+ ### Added
68
+
69
+ - `receipt comparator --out PATH` (`comparator-receipt --out`) writes the
70
+ receipt to `PATH` and its per-configuration logs beside it, instead of
71
+ `.lean-receipts/` in the checkout, so a probe or rehearsal receipt stays
72
+ out of the package tree (#435). The receipt still names its logs under
73
+ `.lean-receipts/`, so copying the files there makes it a receipt the gate
74
+ reads. `PATH` must not exist; not with `--prepare` or `--estimate`. The
75
+ help now says that `--evidence-dir` moves only the stage logs and
76
+ `stages.json`
77
+ ([receipt comparator](docs/commands/receipt-comparator.md)).
78
+ - `gate --expect-branch NAME` (#438): a release branch gated before its merge
79
+ is now stated as intended. When the checkout is on `NAME`, the `WARN:
80
+ evaluating branch NAME, not the default D` becomes a note; on another
81
+ branch a `WARN` names both. Never a refusal; `gate --check` repeats the flag
82
+ in its `next:` command ([gate](docs/commands/gate.md)).
83
+
84
+ ### Changed
85
+
86
+ - `formalization render --help` says that `--write --no-registry` still
87
+ checks the lease (#436): the command writes `formalization.yaml` into the
88
+ package's checkout, so another agent's live lease refuses unless `--agent
89
+ HOLDER` (or `--force --reason`), although nothing is written to the
90
+ registry. Help text only; the check is unchanged.
91
+
92
+ - `page --check --site DIR` also reads the hand-written pages under `DIR`
93
+ (#428): an HTML block (`<details>`, `<div>`, `<section>`, ...) that holds
94
+ Markdown without a `markdown` attribute exits 1, naming the file and line,
95
+ because GitHub Pages and MkDocs publish its tables and code fences as
96
+ literal text while github.com shows them rendered. Write the tag as
97
+ `<details markdown="1">`. `page --check --site --json` gains `html_blocks[]`
98
+ ([docs/page.md](docs/page.md#hand-written-pages-beside-the-generated-ones)).
99
+ - Index: `markovprocess-pilot` re-pinned at `6e94db2aea80` (#429), the commit
100
+ that moves its MarkovProcess dependency to `2486404` (its upstream `main`,
101
+ Lean and Mathlib v4.35.0). Re-gated with lean-pkg 0.26.0 at that commit:
102
+ lower tier `receipt systemd --run` of `verify.sh`, comparator receipt
103
+ (toolchain mechanism, all 3 configurations pass). Entry replaced with `index
104
+ add --from-registry` (headline and its `judged_as`, field tags, consent and
105
+ notes kept; the `built_on` pin is `2486404`; the DOIs add release v0.1.2,
106
+ which Zenodo filed under a new concept DOI), and `index check` re-derives it
107
+ from the bytes at the pin.
108
+
109
+ ### Fixed
110
+
111
+ - `receipt comparator` (`comparator-receipt`) no longer refuses a tree that
112
+ is dirty only because of the receipts of the commit being receipted
113
+ (#433): untracked `.lean-receipts/<c12>-*` files for HEAD and the
114
+ `.lean-receipts/README.md` that `receipt systemd` writes are exempt from the
115
+ dirty-tree check, so the lower-tier receipt made for the same commit just
116
+ before no longer has to be moved aside and back (both tiers bind HEAD). A
117
+ modified tracked receipt, or a receipt for another commit, still counts.
118
+ - `receipt systemd --run` accepts systemd's own value forms (#434):
119
+ `--runtime-max` takes any finite systemd time span, such as `1h 30min`
120
+ (the form systemd prints; it was refused) or `1.5h`, and a bare
121
+ `--cpu-quota 200` is read as `200%` (it reached `systemd-run`, which
122
+ refused it). When `systemd-run` itself fails, the refusal names it and no
123
+ longer adds "the unit wrote no verify log", which read like a verify
124
+ failure.
125
+ - `public-safety` no longer turns common workflow words into private
126
+ patterns (#432). A record's or lease's `workspace` is free text, and each of
127
+ its tokens became a blocking pattern: a lease taken with the workspace
128
+ "public-allow commit" made `commit` private, and one package then reported
129
+ 172 false hits, because every receipt and log says "commit". Words such as
130
+ `commit`, `push`, `receipt`, `gate`, `lean`, `notes` or `refresh` (git, Lean
131
+ and lean-pkg vocabulary, and everyday English) are no longer derived; an
132
+ identifier in the same text, such as a machine name, still is.
133
+
134
+ ### Documentation
135
+
136
+ - Fourteen links on the documentation site returned 404 (#427): a relative
137
+ `.md` link whose text wrapped onto the next line was published unconverted,
138
+ because jekyll-relative-links matches link text on one line. The text of
139
+ each such link is now on one line, and the proposal 0003 prototype link
140
+ opens the directory on GitHub, since Pages serves no listing for it.
141
+ - Proposal 0011, non-vacuity witnesses on coverage rows, accepted 2026-11-07
142
+ (#430): proposal 0003's `witness` on any claim with a hypothesis, a row
143
+ `witness` key, and a page line saying the result's hypotheses can be met
144
+ ([docs/proposals](docs/proposals/README.md)).
145
+ - The ten wrapped links left in the released upgrade pages 0.17.0, 0.18.1,
146
+ 0.19.0 and 0.20.0 now convert on the site too (#431): only their line
147
+ breaks moved. A released record keeps its words; a test compares each
148
+ released page with its tag, and another refuses relative `.md` link text
149
+ that crosses a line (RELEASING.md, "Released records").
150
+
151
+ public-safety (make public-safety, --strict, history): 0 hit(s) (0 tree, 0 history); 0 blocking, 0 warning(s)
152
+
153
+ Zenodo version DOI: [10.5281/zenodo.24041994](https://doi.org/10.5281/zenodo.24041994)
154
+
12
155
  ## [0.26.0] - 2026-11-06
13
156
 
14
157
  ### Added
@@ -97,6 +240,8 @@ full policy, and the criteria for 1.0.0, are in RELEASING.md, "When to tag".
97
240
 
98
241
  public-safety (make public-safety, --strict, history): 0 hit(s) (0 tree, 0 history); 0 blocking, 0 warning(s)
99
242
 
243
+ Zenodo version DOI: [10.5281/zenodo.24025862](https://doi.org/10.5281/zenodo.24025862)
244
+
100
245
  ## [0.25.0] - 2026-11-02
101
246
 
102
247
  ### Added
@@ -6,8 +6,8 @@ authors:
6
6
  - family-names: Chen
7
7
  given-names: Le
8
8
  affiliation: "Auburn University"
9
- version: "0.26.0"
10
- date-released: "2026-11-06"
9
+ version: "0.28.0"
10
+ date-released: "2026-11-09"
11
11
  license: Apache-2.0
12
12
  repository-code: "https://github.com/lean-pkg/lean-pkg"
13
13
  doi: 10.5281/zenodo.23272098
@@ -198,6 +198,12 @@ identifiers:
198
198
  - type: doi
199
199
  value: 10.5281/zenodo.23901343
200
200
  description: Version DOI for 0.25.0
201
+ - type: doi
202
+ value: 10.5281/zenodo.24025862
203
+ description: Version DOI for 0.26.0
204
+ - type: doi
205
+ value: 10.5281/zenodo.24041994
206
+ description: Version DOI for 0.27.0
201
207
  url: "https://lean-pkg.github.io/lean-pkg/"
202
208
  keywords:
203
209
  - Lean 4
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lean-pkg
3
- Version: 0.26.0
3
+ Version: 0.28.0
4
4
  Summary: Lifecycle registry and trust gate for Lean 4 formalization packages: leases, receipt-bound gates, comparator (Palomar) evidence, one-way promotion.
5
5
  Author: Le Chen
6
6
  License-Expression: Apache-2.0
@@ -9,6 +9,8 @@
9
9
  A registry and trust gate for Lean 4 formalization packages: know which packages exist, who holds each one, and what evidence binds it to a verified commit, before anything becomes public.
10
10
  </p>
11
11
 
12
+ <p align="center"><sub>lean-pkg is unrelated to <code>leanpkg</code>, the build tool of Lean 3.</sub></p>
13
+
12
14
  <p align="center">
13
15
  <a href="https://github.com/lean-pkg/lean-pkg/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/lean-pkg/lean-pkg/actions/workflows/ci.yml/badge.svg"></a>
14
16
  <a href="LICENSE"><img alt="License: Apache-2.0" src="https://img.shields.io/badge/license-Apache--2.0-blue.svg"></a>
@@ -363,7 +365,7 @@ DOIs. To cite a state between releases, cite the repository at a commit:
363
365
  author = {Chen, Le},
364
366
  title = {lean-pkg: a registry and trust gate for Lean 4 formalization packages},
365
367
  year = {2026},
366
- version = {0.26.0},
368
+ version = {0.28.0},
367
369
  url = {https://github.com/lean-pkg/lean-pkg},
368
370
  note = {commit <sha>}
369
371
  }
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "lean-pkg"
7
- version = "0.26.0"
7
+ version = "0.28.0"
8
8
  description = "Lifecycle registry and trust gate for Lean 4 formalization packages: leases, receipt-bound gates, comparator (Palomar) evidence, one-way promotion."
9
9
  # PyPI renders the long description without the repository around it, so README.md's relative links and
10
10
  # images would break there: PYPI.md is a short page whose links are all absolute (tests/test_packaging.py).
@@ -1,3 +1,3 @@
1
1
  """lean-pkg: lifecycle registry and trust gate for Lean 4 formalization packages."""
2
2
 
3
- __version__ = "0.26.0"
3
+ __version__ = "0.28.0"
@@ -46,7 +46,8 @@ CLAIM_STATUSES = ("reusable", "internal", "experimental", "superseded")
46
46
  # `hypotheses`, `discharges`, `witness` (proposal 0003, stage H2, #320): a conditional claim names the assumptions
47
47
  # its declaration takes as explicit binders; a corollary claim says which hypotheses of another claim it removes,
48
48
  # and with which proof claims; a witness claim shows that the hypotheses can hold together. Same package only
49
- # (open question 2). The ledger does not evaluate them yet: a claim using any of them is `hypotheses-unchecked`.
49
+ # (open question 2). Proposal 0011: `witness` is accepted on any claim, conditional or not; a claim that sets
50
+ # only `witness` stays verified when the facts to judge it are missing (its witness is then `unchecked`).
50
51
  OPTIONAL_CLAIM_KEYS = ("statement_basis", "manuscript_findings", "judged_as", "hypotheses", "discharges", "witness")
51
52
  CONDITIONAL_KEYS = ("hypotheses", "discharges", "witness")
52
53
  DISCHARGE_KEYS = ("claim", "hypotheses", "proofs")
@@ -310,9 +311,8 @@ def _conditional_errors(c: dict, where: str) -> list[str]:
310
311
  elif w == cid:
311
312
  errors.append(f"{where} ({cid}): witness names the claim itself; a witness is another claim showing "
312
313
  f"that the hypotheses can hold together")
313
- if not (isinstance(hyps, list) and hyps):
314
- errors.append(f"{where} ({cid}): witness is set but the claim has no hypotheses; a witness shows "
315
- f"that the hypotheses of a conditional claim can hold together")
314
+ # proposal 0011: any claim whose theorem has a hypothesis may name a witness, not only a conditional
315
+ # one; a declaration with no hypothesis at all is caught by the probe (witness-type-mismatch)
316
316
  return errors
317
317
 
318
318
 
@@ -3190,7 +3190,7 @@ verify NAME [--work-dir DIR] [--unit U] [--script verify.sh] [--judges N] [--
3190
3190
  comparator attach NAME --receipt PATH (old spelling: comparator NAME --receipt PATH) attach comparator evidence to a verified-private/public package;
3191
3191
  no status change; event comparator-attached; identical re-attach = no-op; another receipt for the same commit: --replace keeps the old one as <c12>-comparator.replaced-<stamp>.json, event comparator-replaced {replaced}. It is required by promote.
3192
3192
  The receipt is written by `lean-pkg receipt comparator` (the comparator-receipt program: the same code and flags) on a host its policy allows (a GitHub-hosted runner, checked first: GITHUB_ACTIONS=true and RUNNER_ENVIRONMENT=github-hosted, recorded as host_policy "GitHub Actions run R attempt A", job_id gha-R-A and the ci block of receipt ci less verify_log_sha256, refusing (exit 1, nothing written) on a runner variable missing or malformed, an event other than push/workflow_dispatch, a server other than github.com, the workflow file missing at GITHUB_WORKFLOW_SHA or GITHUB_SHA != the checkout's HEAD; GITHUB_ACTIONS without RUNNER_ENVIRONMENT, or a self-hosted runner, is not recognized and the other rules apply; proposal 0008 S5, verify.yml with comparator: true runs it after the AppArmor userns sysctl and comparator host-check --routes; a Slurm job, a host in
3193
- COMPARATOR_RECEIPT_ALLOWED_HOSTS, COMPARATOR_RECEIPT_ALLOW_HOST=1, or the workstation default: no allow-list set, no Slurm on the machine, COMPARATOR_RECEIPT_WORKSTATION_DEFAULT not 0; recorded as `host h-LABEL: the machine running the command (workstation default ...)`). Stages checkout, cache-get, build, comparator, receipt log to <evidence-dir>/comparator-stages/NN-<stage>.log + stages.json (kept on failure; the error names the stage and log; --evidence-dir DIR, default .lake/comparator-receipt); readiness before any expensive stage: a .lake/.lake/packages(/*) symlink resolving outside the project is refused (the lake comparator sandbox cannot read it), and the checkout stage ends with `lake --no-build build M` per configured module (unknown target: fails naming the missing [[lean_lib]]); a judge that stops before judging (sandboxed dependency resolution) is a tool/environment error, not a rejection; a refusal whose judge log carries Lake's `Challenge and solution theorem statement do not match` or `Const does not match between challenge and target` ends with one stderr line `next: lean-pkg comparator check NAME --contracts-only` (+ --repo DIR when the checkout is not the registered one; NAME from a best-effort read-only registry lookup by local_path, else by git remote, else the literal NAME and the docs section), once per run, and stages.json next_command (null otherwise; display only, verdict and exit unchanged; #397); --prepare runs only the setup stages (idempotent); a later run at the same commit/toolchain/config hash skips them (--from-prepared DIR: reuse DIR's, refuse a mismatch); receipt gains an additive stages[] summary; a run replacing an earlier run's stage files first keeps them read-only as comparator-stages/attempts/NNN/ + attempt.json {n, verdict, failed_stage, started_at, finished_at, olean_manifest_sha256, next_command, files sha256} (numbers never reused, never deleted or read back: resume/setup reuse/receipts use the current run only; prune by hand), `comparator-receipt --attempts [DIR] [--json]` lists them (exit 1 if a kept file changed). A receipt written in a Slurm job claims it only through SLURM_JOB_ID (job_id J, host_policy "Slurm job J on H"), which any shell can set: after the job finished, `comparator-receipt --seal-sacct R [--sacct-file F] [--user NAME] [--json]` (no host policy) corroborates it with sacct (main line J COMPLETED, 0:0; Start..End, with zone, containing generated_at; User = this account with live sacct or --user; NodeList = the receipt's host: its h- label against the node's label (or its first DNS label's), an older receipt's host name against the node name; an operator --host-label or a node range is not compared), refuses otherwise (exit 1, nothing written), and writes .lean-receipts/<c12>-comparator-sacct.txt (JobID|State|ExitCode|Start|End|Elapsed, UTC; no user or node names) plus the additive slurm_sacct {schema slurm-sacct-seal/1, job, file, sha256, state, exit_code, start, end, elapsed, checks, source} into R; only a sealed comparator receipt (seal committed at HEAD, rehashed and reparsed) backs a coverage.yaml compute job.
3193
+ COMPARATOR_RECEIPT_ALLOWED_HOSTS, COMPARATOR_RECEIPT_ALLOW_HOST=1, or the workstation default: no allow-list set, no Slurm on the machine, COMPARATOR_RECEIPT_WORKSTATION_DEFAULT not 0; recorded as `host h-LABEL: the machine running the command (workstation default ...)`). Stages checkout, cache-get, build, comparator, receipt log to <evidence-dir>/comparator-stages/NN-<stage>.log + stages.json (kept on failure; the error names the stage and log; --evidence-dir DIR, default .lean-pkg-evidence/comparator-receipt, git-ignored, outside .lake so lake clean keeps it; an earlier run's .lake/comparator-receipt is used in place, with the mv to run, until moved); readiness before any expensive stage: a .lake/.lake/packages(/*) symlink resolving outside the project is refused (the lake comparator sandbox cannot read it), and the checkout stage ends with `lake --no-build build M` per configured module (unknown target: fails naming the missing [[lean_lib]]); a judge that stops before judging (sandboxed dependency resolution) is a tool/environment error, not a rejection; a refusal whose judge log carries Lake's `Challenge and solution theorem statement do not match` or `Const does not match between challenge and target` ends with one stderr line `next: lean-pkg comparator check NAME --contracts-only` (+ --repo DIR when the checkout is not the registered one; NAME from a best-effort read-only registry lookup by local_path, else by git remote, else the literal NAME and the docs section), once per run, and stages.json next_command (null otherwise; display only, verdict and exit unchanged; #397); --prepare runs only the setup stages (idempotent); a later run at the same commit/toolchain/config hash skips them (--from-prepared DIR: reuse DIR's, refuse a mismatch); receipt gains an additive stages[] summary; a run replacing an earlier run's stage files first keeps them read-only as comparator-stages/attempts/NNN/ + attempt.json {n, verdict, failed_stage, started_at, finished_at, olean_manifest_sha256, next_command, files sha256} (numbers never reused, never deleted or read back: resume/setup reuse/receipts use the current run only; prune by hand), `comparator-receipt --attempts [DIR] [--json]` lists them (exit 1 if a kept file changed). A receipt written in a Slurm job claims it only through SLURM_JOB_ID (job_id J, host_policy "Slurm job J on H"), which any shell can set: after the job finished, `comparator-receipt --seal-sacct R [--sacct-file F] [--user NAME] [--json]` (no host policy) corroborates it with sacct (main line J COMPLETED, 0:0; Start..End, with zone, containing generated_at; User = this account with live sacct or --user; NodeList = the receipt's host: its h- label against the node's label (or its first DNS label's), an older receipt's host name against the node name; an operator --host-label or a node range is not compared), refuses otherwise (exit 1, nothing written), and writes .lean-receipts/<c12>-comparator-sacct.txt (JobID|State|ExitCode|Start|End|Elapsed, UTC; no user or node names) plus the additive slurm_sacct {schema slurm-sacct-seal/1, job, file, sha256, state, exit_code, start, end, elapsed, checks, source} into R; only a sealed comparator receipt (seal committed at HEAD, rehashed and reparsed) backs a coverage.yaml compute job.
3194
3194
  flags: --receipt PATH (required); `comparator check NAME --receipt PATH` (old spelling: --check) validates only, records nothing (works at any status), --check --repo DIR (validate against the checkout DIR, e.g. a worktree or feature branch, not the registered local_path; same rules as gate --check --repo: never saved, stderr note, JSON repo_override {path, registered_path, remote_match}, null without it; attaching refuses --repo, exit 2), --refuse-private, --refuse-dirty; `comparator check NAME --contracts-only [--config PATH]... [--export MODULE=FILE]... [--no-sandbox] [--repo DIR]` (no receipt; read-only, never acceptance): every comparator*.json and comparator/config*.json of the checkout at once, one leanexport per module (--ignore-missing, bwrap unless --no-sandbox), then Lake's own compareAt and checkAxioms per configuration (as lake comparator's compare step); no kernel, no receipt, no event, nothing in the checkout written; per configuration match/differs/error, a differing one with Lake's message, breadcrumb[] (target to the refused constant), first_field {field, path, challenge, solution} and a display-only hint; JSON {schema lean-pkg-comparator-contracts/1, ok, acceptance false, evidence false, verdict, counts, configs[], exports[]}; exit 0 all match / 1
3195
3195
  ex: lean-pkg comparator attach my-lean --receipt .lean-receipts/<c12>-comparator.json | comparator config --from-claims NAME [--out comparator.json] [--dry-run]: one TODO theorem_names entry per synced theorem/lemma claim not yet configured (name <Pkg>Audit.<decl>; the TODO markers go to lean-pkg-signoff.json configs[<config>].scaffold.todo, never into the config; a config still carrying the deprecated inline lean_pkg_scaffold is refused until migrated); never overwrites; counts existing/added/skipped; --challenge-from-type pre-fills Challenge (elaborated type) + Solution (`exact @_root_.<decl>`) via `lake env lean` [--lake-env DIR --jobs N --timeout S], or split it: --emit-script F (bash F OUT.json on a Slurm node, JSON comparator-types/1; ENFILE/EMFILE: halves jobs, retries) then --from-output OUT.json (commit must be HEAD; driver exits 1 on extraction errors, 2 if none filled; ingest refuses those unless --allow-partial: failures kept TODO, extraction_failed; --checkout DIR instead of local_path; --claims-file PATH: claims from that working-copy claims.yaml instead of the synced registry cache (no claims sync; schema-checked like claims check --file, package must be NAME; never written to the registry; same config as the registry route for the same claims; output line `claims source:` and JSON claims_source {kind registry|file, path, sha256, synced_commit, claims}); --no-registry --out FILE: scratch config, no lease check); per entry: type_error keeps the TODO, needs_restatement flags project vocabulary; each printed type re-elaborated vs the decl (example : (T) := @decl), failure keeps TODO, round_trip_failed | comparator config --coverage NAME: read-only; claims covered/not/TODO by the config tracked at the gate-bound commit (never a candidate); a changed or uncommitted config cannot certify that tree, a new gate at a commit tracking it is required; prints the exact next commands (JSON next_commands[]) | comparator config --migrate-signoff PATH [--write]: no registry; moves the deprecated inline judged_as (-> configs[<config>].definitions, one {reviewer, date, judged_as} per hole, config_sha256 bound to the migrated bytes) and lean_pkg_scaffold (-> configs[<config>].scaffold) of that configuration into lean-pkg-signoff.json at the package root; dry run by default (prints both would-be files); refuses an invalid inline sign-off or a conflicting sidecar entry; the Palomar keys and their values never change, but the file's bytes do: a gated package needs a new comparator receipt (receipt impact + next commands printed; JSON {moved[], dropped[], config_sha256_before/after, receipt_impact, next_commands[]}) | comparator host-check: read-only, no registry: kernel, landlock ABI, bwrap, go/cargo/jq/git/lean/lake/python3 ok|warn|fail, then `mechanism toolchain|legacy: ok|fail` (toolchain = bwrap+lean+lake+python3, what Palomar runs; legacy = Landlock ABI>=1 + go/cargo/git/jq/lean/lake); when toolchain is ok, a check only legacy needs that is not ok prints as `n/a ITEM: DETAIL (only the legacy mechanism needs it; toolchain is ok)` and a failing legacy as `mechanism legacy: n/a (not Palomar-predictive; not needed here: toolchain is ok): ...` (text only: JSON checks[] keep level and gain required_by [toolchain|legacy], [] for advisory checks) + verdict naming only usable ones (exit 0 can / 1 cannot); warn git-env (JSON env_warnings[]) when GIT_DIR/GIT_WORK_TREE/GIT_INDEX_FILE/GIT_OBJECT_DIRECTORY/GIT_ALTERNATE_OBJECT_DIRECTORIES/GIT_COMMON_DIR/GIT_NAMESPACE is set (comparator-receipt and package-checkout git drop them; stages.json git_env_scrubbed[]); --routes (field report #5; run it before sbatch inside the job's image with the job's binds and PATH): per route judge (`lake comparator` in bwrap: the toolchain mechanism's needs; no unsandboxed route ever) / prepare (comparator-receipt --prepare: kernel+lake/lean/git/python3) / transfer (build here, judge elsewhere: prepare + tar/sha256sum) `route R: yes|no (reason)` + `run:` lines, executables resolved like type -P (the receipt slurm --template HOST_TOOLS list included; time: binary only), locale (LANG/LC_ALL/LC_CTYPE, C.UTF-8 installed, warn when a set locale is not installed: stderr warning; export LC_ALL=C LANG=C PYTHONUTF8=1), limits (ulimit -n soft/hard, /proc/sys/fs/file-nr; tight: LEAN_NUM_THREADS=3), resources (sched_getaffinity CPUs, cgroup v1/v2 memory limit, MemAvailable, SLURM_* allocation), advice[]; JSON additive routes_schema host-routes/1, routes[{route, supported, needs, failing, reason, commands, notes}], executables{name: {path, level, required_by[], note?}}, locale, limits, resources, advice[]; read-only, no network; exit 0 when any route is supported
3196
3196
  publish NAME --yes (old spelling: promote NAME --yes; `publish NAME --yes --dry-run` is the old `promote NAME`) flips GitHub visibility to public (ONE-WAY) + one notification
@@ -3221,14 +3221,14 @@ index public catalog <index>/<name>/entry.yaml + receipts/ (root: --index, e
3221
3221
  migrate [--check] rewrite index-entry/1 entries as index-entry/2 (claims derived from the headline).
3222
3222
  claims claims.yaml (schema claims/1) at the package repo root: named reusable results, cached in the registry.
3223
3223
  sync NAME read claims.yaml at HEAD (committed bytes only); every decl must occur in its file; event claims-synced; a pin on no remote-tracking branch (unpushed) prints a stderr WARN (--json pin_published true|false|null).
3224
- mark NAME --from-comparator CONFIG.json --status reusable|internal|experimental [--write|--dry-run] [--agent A]: set status on exactly the claims whose decl the config's theorem_names cover (the --coverage/ledger rule: full name or <Prefix>.<decl> of a fully qualified decl), in the checkout's working copy; default prints the plan; --write edits only those status values (else re-dumps, reformatted true), never commits, never the registry; lists unmatched names, then the rule and a hint per name that differs from exactly one claim's decl only in its leading namespace component (never applied); --json {ok, name, file, config, status, matched[{id, decl, from, to, changed}], changed, unmatched[], written, reformatted, rule, hints[{name, decl, shape, rename_to, hint}]}. sync and check print `WARN NAME: gated, N claim(s), none with status reusable: ...` (--json warnings[]) for a gated package with no reusable claim. | list [NAME] | check [NAME] [--file PATH] cached claims with status and derived trust | re-validate; exit 0/1 (--file: schema-check a working-copy file, schema only: no checkout, so declarations unchecked; no registry; --json {ok, path, claims, errors[]}). With NAME both report coverage synced|empty|unsynced|none (--json: coverage, cached_claims, claims_yaml present|absent|unknown, legacy_claims[], hint); check NAME exits 1 on none/unsynced (no coverage is not ok) and names any legacy *claims.json in the checkout | migrate NAME --from PATH [--out claims.yaml] [--dry-run] [--agent A]: legacy JSON rows -> a claims/1 skeleton in the checkout (mapped fields; TODO markers, TODO.lean for the rest, which sync refuses); never overwrites, never writes the registry, grants nothing: commit it, then claims sync. | ledger NAME [--stage gate|promote]: read-only, nothing stored: each claim (claims.yaml at the gate-bound commit, else the cache) with named diagnostics from the recorded receipts, re-checked with gate's and promote's validators; a claim is verified only with zero diagnostics. Claim status: out-of-scope (superseded; internal unless judged: an internal theorem/lemma a configuration names, with the comparator tier clean, gets the reusable checks and can be verified, judged_internal true, never required) | blocked (a depends_on claim not closed) | unknown (unreadable evidence) | open (an open/failed code) | conditional (proposal 0003: the claim lists hypotheses, or inherits outstanding ones via depends_on, depends-on-conditional; never verified, even with every hypothesis discharged) | verified | open. Required = status reusable; --stage promote (default) also needs the comparator tier for reusable theorems/lemmas. Package status fails closed: unknown (no claims, none reusable, no checkout, unreadable evidence) | failed (evidence contradicts a required claim) | open | ready (every required claim verified or conditional). Conditional claims are judged from the hyp-probe/1 section of the gate receipt's sealed verify log at the bound commit, recomputed on every call: each hypothesis an explicit binder of the decl (and, promote stage, of its Challenge theorem) headed by a def or inductive Prop (else hypothesis-not-in-type / hypothesis-inadmissible, failed); discharged only at the promote stage with a clean comparator tier, through a corollary claim (discharges) whose Challenge type is the target's minus exactly the discharged binders (hyp-corollary) and proof claims of exactly the hypothesis (hyp-proof; a proof quantifying over data is attribution, the corollary alone the evidence), all three credited by exactly one non-smoke comparator name and clean (else discharge-type-mismatch failed / discharge-not-compared open); an outstanding hypothesis is hypothesis-open (class conditional, never blocks); missing facts (no section, a part not run, ambiguous credit) are hypotheses-unchecked (open); witness {claim, state checked|unchecked|mismatch}, a mismatch witness-type-mismatch (failed). Codes: docs/lifecycle.md. Exit 0 only when ready, else 1; --json {ok, package_status, reasons[], stage, bound_commit, receipt_sha256, comparator_sha256, counts, claims[{id, decl, kind, claim_status, required, judged_internal, status, statement_basis, manuscript_findings[], diagnostics[{code, detail}], hypotheses[{decl, state open|discharged, by {proof, corollary}|null, via}]?, discharges?, witness?}], manuscript_findings {total, open, fixed, by_kind, corrected_statements[], findings[], source}, ledger_digest; only when a claim uses the keys: counts.conditional, conditional_required[], outstanding_hypotheses[]} (sha256 over the canonical claims, codes and receipt hashes: recompute, never trust a stored one). Manuscript findings change no status (publish --dry-run and palomar prepare print the same one-line summary, JSON manuscript_findings); a lean_evidence decl missing at the bound commit is finding-evidence-missing. | rebase NAME --from-tex OLD.tex --to-tex NEW.tex --to-aux NEW.aux [--from-aux OLD.aux] [--from-sha256 HEX] [--to-version arXiv:IDvN | --to-commit HEX [--to-repo URL]] [--unwrap-macro NAME ...] [--claims-file PATH] [--coverage-file PATH] [--out-dir DIR] (#6): move claims.yaml + coverage.yaml (committed at HEAD) to a new manuscript version; never writes the registry or the checkout, never changes a claim status, never sets fixed_in. Refused: OLD.tex's sha256 differs from coverage.yaml's manuscript sha256, or is none of the .tex hashes of the data/source-baselines record of its arXiv version (none recorded: --from-sha256 must state it; the proposal drops eprint_sha256), TeX not UTF-8 or with unbalanced begin/end, a referenced label defined twice (OLD, NEW or NEW.aux). References: coverage rows (paper.label, else paper.number via --from-aux), manuscript_findings location.label (a TeX label, else a number via --from-aux), TeX labels named in a citation. Per label, the enclosing statement (theorem-like incl. \\newtheorem names) or equation environment in OLD vs NEW, normalized (comments, label commands, \\textcolor/\\colorbox/\\color, --unwrap-macro, ~, whitespace, trailing . , ; :; braces kept): unchanged (carried; number token re-keyed from NEW.aux, finding page from NEW.aux, tex_line shifted only when the environment is byte-identical, else null) | changed | missing | moved-into-proof | not-in-old | unsupported | unnumbered (no NEW.aux number); all but unchanged need review and are left as they were. --out-dir (new or empty; files read-only): claims.yaml, coverage.yaml (manuscript.version = --to-version or {repo, commit, sha256 of NEW.tex}; required when coverage.yaml exists), rebase-report.json (schema claims-rebase/1), rebase-report.md (old/new excerpts), review/NNN-LABEL.{old.tex,new.tex,diff}, MANIFEST.sha256; deterministic. Without --out-dir: report only. --json {ok, name, written, out_dir, counts, labels[], rows[], findings[], citations[], needs_review[{where, label, status, reason}], proposed_errors[], statuses_changed, normalizations[], inputs, to_version, warnings[], files[{path, sha256}]}; exit 0 everything carried / 1 something needs review or refused / 2 usage. docs/prior-art.md#move-to-a-new-manuscript-version
3224
+ mark NAME --from-comparator CONFIG.json --status reusable|internal|experimental [--write|--dry-run] [--agent A]: set status on exactly the claims whose decl the config's theorem_names cover (the --coverage/ledger rule: full name or <Prefix>.<decl> of a fully qualified decl), in the checkout's working copy; default prints the plan; --write edits only those status values (else re-dumps, reformatted true), never commits, never the registry; lists unmatched names, then the rule and a hint per name that differs from exactly one claim's decl only in its leading namespace component (never applied); --json {ok, name, file, config, status, matched[{id, decl, from, to, changed}], changed, unmatched[], written, reformatted, rule, hints[{name, decl, shape, rename_to, hint}]}. sync and check print `WARN NAME: gated, N claim(s), none with status reusable: ...` (--json warnings[]) for a gated package with no reusable claim. | list [NAME] | check [NAME] [--file PATH] cached claims with status and derived trust | re-validate; exit 0/1 (--file: schema-check a working-copy file, schema only: no checkout, so declarations unchecked; no registry; --json {ok, path, claims, errors[]}). With NAME both report coverage synced|empty|unsynced|none (--json: coverage, cached_claims, claims_yaml present|absent|unknown, legacy_claims[], hint); check NAME exits 1 on none/unsynced (no coverage is not ok) and names any legacy *claims.json in the checkout | migrate NAME --from PATH [--out claims.yaml] [--dry-run] [--agent A]: legacy JSON rows -> a claims/1 skeleton in the checkout (mapped fields; TODO markers, TODO.lean for the rest, which sync refuses); never overwrites, never writes the registry, grants nothing: commit it, then claims sync. | ledger NAME [--stage gate|promote]: read-only, nothing stored: each claim (claims.yaml at the gate-bound commit, else the cache) with named diagnostics from the recorded receipts, re-checked with gate's and promote's validators; a claim is verified only with zero diagnostics. Claim status: out-of-scope (superseded; internal unless judged: an internal theorem/lemma a configuration names, with the comparator tier clean, gets the reusable checks and can be verified, judged_internal true, never required) | blocked (a depends_on claim not closed) | unknown (unreadable evidence) | open (an open/failed code) | conditional (proposal 0003: the claim lists hypotheses, or inherits outstanding ones via depends_on, depends-on-conditional; never verified, even with every hypothesis discharged) | verified | open. Required = status reusable; --stage promote (default) also needs the comparator tier for reusable theorems/lemmas. Package status fails closed: unknown (no claims, none reusable, no checkout, unreadable evidence) | failed (evidence contradicts a required claim) | open | ready (every required claim verified or conditional). Conditional claims are judged from the hyp-probe/1 section of the gate receipt's sealed verify log at the bound commit, recomputed on every call: each hypothesis an explicit binder of the decl (and, promote stage, of its Challenge theorem) headed by a def or inductive Prop (else hypothesis-not-in-type / hypothesis-inadmissible, failed); discharged only at the promote stage with a clean comparator tier, through a corollary claim (discharges) whose Challenge type is the target's minus exactly the discharged binders (hyp-corollary) and proof claims of exactly the hypothesis (hyp-proof; a proof quantifying over data is attribution, the corollary alone the evidence), all three credited by exactly one non-smoke comparator name and clean (else discharge-type-mismatch failed / discharge-not-compared open); an outstanding hypothesis is hypothesis-open (class conditional, never blocks); missing facts (no section, a part not run, ambiguous credit) are hypotheses-unchecked (open); witness {claim, state checked|unchecked|mismatch, why?}, a mismatch witness-type-mismatch (failed). Codes: docs/lifecycle.md. Exit 0 only when ready, else 1; --json {ok, package_status, reasons[], stage, bound_commit, receipt_sha256, comparator_sha256, counts, claims[{id, decl, kind, claim_status, required, judged_internal, status, statement_basis, manuscript_findings[], diagnostics[{code, detail}], hypotheses[{decl, state open|discharged, by {proof, corollary}|null, via}]?, discharges?, witness?}], manuscript_findings {total, open, fixed, by_kind, corrected_statements[], findings[], source}, ledger_digest; only when a claim uses the keys: counts.conditional, conditional_required[], outstanding_hypotheses[]} (sha256 over the canonical claims, codes and receipt hashes: recompute, never trust a stored one). Manuscript findings change no status (publish --dry-run and palomar prepare print the same one-line summary, JSON manuscript_findings); a lean_evidence decl missing at the bound commit is finding-evidence-missing. | rebase NAME --from-tex OLD.tex --to-tex NEW.tex --to-aux NEW.aux [--from-aux OLD.aux] [--from-sha256 HEX] [--to-version arXiv:IDvN | --to-commit HEX [--to-repo URL]] [--unwrap-macro NAME ...] [--claims-file PATH] [--coverage-file PATH] [--out-dir DIR] (#6): move claims.yaml + coverage.yaml (committed at HEAD) to a new manuscript version; never writes the registry or the checkout, never changes a claim status, never sets fixed_in. Refused: OLD.tex's sha256 differs from coverage.yaml's manuscript sha256, or is none of the .tex hashes of the data/source-baselines record of its arXiv version (none recorded: --from-sha256 must state it; the proposal drops eprint_sha256), TeX not UTF-8 or with unbalanced begin/end, a referenced label defined twice (OLD, NEW or NEW.aux). References: coverage rows (paper.label, else paper.number via --from-aux), manuscript_findings location.label (a TeX label, else a number via --from-aux), TeX labels named in a citation. Per label, the enclosing statement (theorem-like incl. \\newtheorem names) or equation environment in OLD vs NEW, normalized (comments, label commands, \\textcolor/\\colorbox/\\color, --unwrap-macro, ~, whitespace, trailing . , ; :; braces kept): unchanged (carried; number token re-keyed from NEW.aux, finding page from NEW.aux, tex_line shifted only when the environment is byte-identical, else null) | changed | missing | moved-into-proof | not-in-old | unsupported | unnumbered (no NEW.aux number); all but unchanged need review and are left as they were. --out-dir (new or empty; files read-only): claims.yaml, coverage.yaml (manuscript.version = --to-version or {repo, commit, sha256 of NEW.tex}; required when coverage.yaml exists), rebase-report.json (schema claims-rebase/1), rebase-report.md (old/new excerpts), review/NNN-LABEL.{old.tex,new.tex,diff}, MANIFEST.sha256; deterministic. Without --out-dir: report only. --json {ok, name, written, out_dir, counts, labels[], rows[], findings[], citations[], needs_review[{where, label, status, reason}], proposed_errors[], statuses_changed, normalizations[], inputs, to_version, warnings[], files[{path, sha256}]}; exit 0 everything carried / 1 something needs review or refused / 2 usage. docs/prior-art.md#move-to-a-new-manuscript-version
3225
3225
  formalization NAME [--write] [--no-registry] [--out PATH] [--force [--reason TEXT]] [--author A ...] [--headline-config PATH] [--repo DIR] [--agent A] render formalization.yaml (mathlib-initiative
3226
3226
  v0.4, what Palomar reads) from the registry + the repo at HEAD. Derived every run: project.name/license (license_spdx),
3227
3227
  automation.notes, status.sorry_count/axioms/evidence (gate receipt), status.main_results (every tracked comparator config:
3228
3228
  comparator_config, declaration, file; definition holes carry judged_as, from lean-pkg-signoff.json or the deprecated inline key, null when unsigned; with a headline configuration (--headline-config PATH, else registry headline_config, else comparator.headline.json when tracked; Palomar's six keys only, else refused) its theorems only, when every name is covered (the --coverage rule) by a config with the same challenge/solution modules in the gate-bound comparator receipt validated at HEAD and every hole is signed in lean-pkg-signoff.json by such a config, else refused naming them; no receipt validating at HEAD: not applied, stderr warning, the default; --write records --headline-config; JSON headline {config, source, applied, reason, receipt, theorems} or null), alignment (claims.yaml). Every other
3229
3229
  key is KEPT from the file; first render seeds authors from consent[] owner/author, else "[PLACEHOLDER] ..." + stderr warning (never
3230
3230
  invented: no paper titles). --write: idempotent; lease + update checked BEFORE writing (foreign lease: --force --reason); a file differing only in derived keys is refreshed (JSON refreshed_derived), one whose kept keys differ needs --force (named; JSON kept_overwritten);
3231
- --write also sets the registry pointer (a registry write); --write --no-registry: the file only, registry untouched (no lock/--commit). --repo DIR: read that checkout instead of local_path for this call (never saved; not with --write, exit 2; the checkout rules and stderr note of page --repo): claims, comparator configs, the kept keys and the receipts at DIR's committed HEAD, never its working tree; the registry's gate receipt feeds status.sorry_count/axioms/evidence only when it validates at that HEAD, else they are omitted with a warning; JSON repo_override {path, registered_path, remote_match, head, source committed-head, receipt_facts {receipt, included, reason}}, null without it. Validated against the vendored v0.4 schema (jsonschema, else structural). audit: formalization-missing/-drift. docs/formalization.md | coverage check NAME [--file PATH] [--allow-private-manuscript] read-only; exit 0/1. coverage.yaml (schema coverage/1, package dir, committed at HEAD; --file: a working copy) is the paper-centric map: manuscript {title, version: "arXiv:IDvN" | {repo https, commit 40hex, sha256 64hex} | "unposted" (refused without --allow-private-manuscript)}, summary (one line), rows[{paper {number, title, label?}, class same-assumptions|inputs-supplied|outside, claims[] (ids in claims.yaml at HEAD; none for outside; superseded refused), inputs[] (required for inputs-supplied, refused for same-assumptions; each a one-line string or {hypothesis, text} (exact keys; hypothesis a name in the hypotheses of a claim the row names, each once; checked in both forms)), note?, conclusion? full|weaker|special-case (proposal 0010: how the Lean conclusion relates to the paper's, independently of class, which names the hypotheses; absent = full), conclusion_scope? (one line, what the Lean proves relative to the paper's result: required for weaker and special-case, refused when conclusion is absent or full; both keys refused on an outside row and on a library row; an older lean-pkg refuses them)}], nothing_excluded {reason} (only when no outside row; one of the two is required), compute[{cluster: easley, jobs: [slurm-J]}] (each job a Slurm receipt committed under .lean-receipts/; cluster github-actions: jobs gha-<run_id>-<run_attempt>, each a lower-tier or comparator receipt with that job_id whose ci block passes level 1; a gha- receipt without the block, or with a failing one, is named in the refusal), lean_pkg_version {version, doi} (checked against lean-pkg's own CITATION.cff when readable), stack lts-YYYY.04|10 (optional, both kinds: the LTS stack the package opts into, name shape checked here; doctor NAME, verify and page check the pins against it, never failing a check). The lean-scope-page rules that apply: no placeholder text (FILL-ME, TODO, TBD, FIXME, XXX), every named claim's file committed at HEAD, every theorem of the recorded comparator receipt the decl of a claim some row names (a configuration lean-pkg-signoff.json marks smoke {reason}, at the receipt's commit or HEAD, is exempt, its theorems the decl of no row's claim; a smoke theorem credits no claim anywhere and the page lists it as a smoke check, never a result), every configuration there with definition_names carrying judged_as.reviewer. Strict: exact key sets, closed enums, duplicate keys refused. --json {ok, name, file, rows, counts, conclusions ({full, weaker, special-case} over the rows with a Lean counterpart; null for a library or an invalid file), manuscript, private_manuscript, errors[], warnings[]}. Unlisted assumptions (proposal 0003, open question 7): a warning, never an error, for each assumption a theorem mapped by a same-assumptions or inputs-supplied row takes that is not listed (a binder headed by a Prop def of the package, per the hyp-decl lines of the gate receipt's sealed log, named neither by the claim's hypotheses nor by a {hypothesis, text} input of the row); no warning without that log or its hyp-probe/1 section; receipt check's coverage item carries the first one and stays PASS. Offline form (#328): coverage check --file PATH [--claims PATH] [--comparator PATH ...] [--allow-private-manuscript], no NAME: no registry, no receipt; runs the schema and length limits, manuscript version, lean_pkg_version, the claims file's claims/1 schema and the coverage package equal to its package, row claim ids (present, not superseded), a warning per reusable claim no row names, each --comparator theorem the decl of a claim a row names (lean-pkg-signoff.json smoke beside the coverage file exempts; skipped when a named claim's Lean file is not readable under the coverage file's directory); lists as skipped what needs the registry, HEAD or a receipt (compute receipts, claim files at HEAD, definition sign-off, e-print baseline) or a missing input; verdict first and last; --claims/--comparator with NAME, or neither NAME nor --file: exit 2; --json adds offline true, claims_file, comparator[], checks[{check, status pass|fail|warn|skipped, detail}], skipped[]. docs/page.md | page NAME [--write [--write-binding-file] | --check | --out PATH] [--site DIR] [--html PATH] [--repo DIR] [--strict-preview] [--corroborate] [--attested [--trusted-root FILE]] [--allow-private-manuscript] [--agent A] the README verification section, rendered between <!-- lean-pkg:page:begin --> and <!-- lean-pkg:page:end --> in the package README.md from coverage.yaml, claims.yaml, the claims ledger (promote stage: a row is "verified" only when the ledger closes every claim it names; a verified row with conclusion weaker or special-case says "Verified: a weaker statement." or "Verified: a special case.", never the bare "Verified.", every such row carries a "Conclusion." line with its conclusion_scope, and the header's verified count says how many of the verified prove a weaker statement or a special case; a row without the key or with full renders as before), the receipts committed under .lean-receipts/ (allow-listed fields only: commit, toolchain, Mathlib rev, sorry count, axioms, theorem/permitted-axiom/definition names, date, SHA-256, slurm-J job ids; never hosts, paths, users), lean-toolchain, lake-manifest.json, CITATION.cff (authors required), registry repo/status/license_spdx/doi. Sections: status capsule, paper-Lean map, Not formalized, trust boundary, reproduce, evidence, citation, license, acknowledgments (always the lean-pkg credit with the concept DOI; the Easley sentence only when coverage.yaml compute names easley jobs backed by committed Slurm receipts; a site's sentence needs its jobs backed AND their corroboration level >= its scheduler's sentence_level: offline every job is level 1, Slurm's level, so the GitHub Actions sentence (level 2, a corroborated run) is rendered only under --corroborate and a README carrying it fails --check and the publish --dry-run page line without it). --corroborate: ask the public GitHub REST API (api.github.com only, https, a timeout; GH_TOKEN or GITHUB_TOKEN only raises the rate limit, never printed or written) about every listed gha- job, as receipt check --corroborate does, against the registry's repository (by numeric id); the GitHub Actions sentence renders, {runs} filled with [run R attempt A](https://github.com/OWNER/REPO/actions/runs/R/attempts/A) links, only when every job reaches level 2; a failure (404, 403/429, network error, redirect off api.github.com) fails closed, is a warning naming why, and leaves the sentence out; JSON sites.github-actions gains corroboration {job: rows[]} and runs[]. --attested [--trusted-root FILE]: level 3 for every listed gha- job (receipt check --attested's checks: the committed Sigstore bundle verified by gh attestation verify); the sentence renders at level 3 too, so it survives the run's records expiring; sites.<name>.level/levels reach 3 (both flags: level 3 needs both answers). Deterministic; every rendered string passes the public-safety scanner + the package's .lean-pkg-private-patterns (a blocking hit refuses). Default: print the block. --write: replace only the marked block (append when absent; prose outside untouched; never commits; a foreign live lease refuses without --agent HOLDER); not a registry write (no lock/--commit). --check: exit 1 when README.md is missing, the block is missing or stale, the lean-pkg credit is missing, or the Easley sentence appears without backing; writes nothing. --site DIR: also write DIR/verification.md (the full page, one H1) and DIR/coverage.md (every row: claims, decls, each claim's ledger status, inputs, note) for MkDocs; --html PATH: one static HTML file of both (no script, no external asset, inline CSS, every text escaped, links only https/#anchor); the same bytes whatever DIR; atomic writes, symlink targets refused; with --check they are compared instead (missing/stale: exit 1). User text is escaped in every output (&<> as entities, Markdown markup backslash-escaped). --repo DIR: read that checkout instead of local_path for this call (CI; not with --write), at its committed HEAD: when the registry's gate receipt does not validate there (bound to HEAD or an evidence-only descendant), the links and Lean statements are read at HEAD, no receipt fact is shown, a 'Preview of commit' note names both commits, and repo_override gains head, anchor_commit, receipt_facts {receipt, commit, included, binds_head, reason}; a receipt that binds HEAD but does not validate is a failed check ('The recorded build check does not validate', never called drift by --check). --check --repo on a preview: its differences from the receipt-bound README block and --site/--html files are warnings (exit 0, JSON preview true, current null); real problems (block missing, markers, credit, unbacked site sentence, an invalid receipt binding HEAD) still exit 1; --strict-preview (only with --check --repo, else exit 2) makes the differences fail. publish --dry-run carries the same check as one checklist line (JSON `page`). --json {ok, name, readme, markdown, written, unchanged, current, preview, problems[], warnings[], site_files[{path, status written|unchanged|current|missing|stale|refused}], outputs[] (with --write/--out/--site/--html: the files this run wrote for the documentation commit, README.md relative to the package directory), deferred[] (--write on a gated package whose docs-only opt-in is only in the record: the lean-pkg-binding.yaml migration {id binding-file, path, state deferred|written|unchanged|refused, written, command `lean-pkg update NAME --write-binding-file`, when, advice}, never part of that commit; the file is written only with --write-binding-file), repo_override, rows, counts, verified_rows, verified_conclusions ({weaker, special-case}: the verified rows of each; only when a row carries conclusion), ledger_status, ledger_digest, private_manuscript, manuscript, paper_status (the record's paper.status or null), manuscript_note ("published-unanchored" when manuscript.version is unposted and paper.status published: the page then cites the paper as published with its exact source not publicly anchored, never "an unposted draft"; else null), easley {backed, jobs} (the legacy key, easley only), sites {NAME: {backed, jobs, level (lowest corroboration level of its jobs; null when none listed), levels {job: level}, sentence}}, receipts}. docs/page.md | formalization anchor NAME --arxiv <id>v<N> (--from-file E-PRINT | --fetch) [--compare-tex LOCAL.tex [--accept-diff REASON]] [--main-tex PATH] [--write] [--agent A] pin the companion to one arXiv version: the version is required (unversioned: exit 2); network only with --fetch (https, 60 s, 64 MiB); the e-print (tar.gz|gz|tar; PDF-only refused; absolute/../link/device members refuse it) is read in memory and recorded in data/source-baselines/arXiv-<id>v<N>.json (source-baseline/1, deterministic: e-print sha256, .tex/.bib/.bbl/.sty sha256, main_tex, compare, retrieved_at/arxiv_api only when fetched); without --write a dry run; --write refuses unless tied (coverage.yaml already that version, a bound {sha256} equal to an e-print file, or --compare-tex identical / --accept-diff REASON, recorded), then sets coverage.yaml manuscript.version + eprint_sha256 and the formalization.yaml sources[].id; never the registry or a commit; a move from another version prints rebase_command (claims rebase). | formalization kept [--repo DIR] [--file REL] [--at REV] [--against REV2] read-only, no registry: the kept view (formalization.DERIVED_PATHS and the renderer's acknowledgements lines removed; YAML 1.1 safe, timestamps kept as strings) as canonical JSON (sort_keys, separators ',' ':', ensure_ascii false, UTF-8, no trailing newline) + its sha256, for a release-input audit; --at REV: the committed file; --against REV2: changed_kept_keys, exit 1 when any; --json {schema formalization-kept/1, kept_view, canonical, sha256, commit, derived_paths, against {rev, commit, sha256}, changed_kept_keys, same}. docs/formalization.md#the-kept-view
3231
+ --write also sets the registry pointer (a registry write); --write --no-registry: the file only, registry untouched (no lock/--commit). --repo DIR: read that checkout instead of local_path for this call (never saved; not with --write, exit 2; the checkout rules and stderr note of page --repo): claims, comparator configs, the kept keys and the receipts at DIR's committed HEAD, never its working tree; the registry's gate receipt feeds status.sorry_count/axioms/evidence only when it validates at that HEAD, else they are omitted with a warning; JSON repo_override {path, registered_path, remote_match, head, source committed-head, receipt_facts {receipt, included, reason}}, null without it. Validated against the vendored v0.4 schema (jsonschema, else structural). audit: formalization-missing/-drift. docs/formalization.md | coverage check NAME [--file PATH] [--allow-private-manuscript] read-only; exit 0/1. coverage.yaml (schema coverage/1, package dir, committed at HEAD; --file: a working copy) is the paper-centric map: manuscript {title, version: "arXiv:IDvN" | {repo https, commit 40hex, sha256 64hex} | "unposted" (refused without --allow-private-manuscript)}, summary (one line), rows[{paper {number, title, label?}, class same-assumptions|inputs-supplied|outside, claims[] (ids in claims.yaml at HEAD; none for outside; superseded refused), inputs[] (required for inputs-supplied, refused for same-assumptions; each a one-line string or {hypothesis, text} (exact keys; hypothesis a name in the hypotheses of a claim the row names, each once; checked in both forms)), note?, conclusion? full|weaker|special-case (proposal 0010: how the Lean conclusion relates to the paper's, independently of class, which names the hypotheses; absent = full), conclusion_scope? (one line, what the Lean proves relative to the paper's result: required for weaker and special-case, refused when conclusion is absent or full; both keys refused on an outside row and on a library row; an older lean-pkg refuses them), witness? (proposal 0011: the claims.yaml witness of one of the row's claims, its headline; refused on an outside row; allowed on a library row; the page shows Hypotheses can be met with the ledger's state checked, not yet checked or wrong type)}], nothing_excluded {reason} (only when no outside row; one of the two is required), compute[{cluster: easley, jobs: [slurm-J]}] (each job a Slurm receipt committed under .lean-receipts/; cluster github-actions: jobs gha-<run_id>-<run_attempt>, each a lower-tier or comparator receipt with that job_id whose ci block passes level 1; a gha- receipt without the block, or with a failing one, is named in the refusal), lean_pkg_version {version, doi} (checked against lean-pkg's own CITATION.cff when readable), stack lts-YYYY.04|10 (optional, both kinds: the LTS stack the package opts into, name shape checked here; doctor NAME, verify and page check the pins against it, never failing a check). The lean-scope-page rules that apply: no placeholder text (FILL-ME, TODO, TBD, FIXME, XXX), every named claim's file committed at HEAD, every theorem of the recorded comparator receipt the decl of a claim some row names (a configuration lean-pkg-signoff.json marks smoke {reason}, at the receipt's commit or HEAD, is exempt, its theorems the decl of no row's claim; a smoke theorem credits no claim anywhere and the page lists it as a smoke check, never a result), every configuration there with definition_names carrying judged_as.reviewer. Strict: exact key sets, closed enums, duplicate keys refused. --json {ok, name, file, rows, counts, conclusions ({full, weaker, special-case} over the rows with a Lean counterpart; null for a library or an invalid file), manuscript, private_manuscript, errors[], warnings[]}. Unlisted assumptions (proposal 0003, open question 7): a warning, never an error, for each assumption a theorem mapped by a same-assumptions or inputs-supplied row takes that is not listed (a binder headed by a Prop def of the package, per the hyp-decl lines of the gate receipt's sealed log, named neither by the claim's hypotheses nor by a {hypothesis, text} input of the row); no warning without that log or its hyp-probe/1 section; receipt check's coverage item carries the first one and stays PASS. Offline form (#328): coverage check --file PATH [--claims PATH] [--comparator PATH ...] [--allow-private-manuscript], no NAME: no registry, no receipt; runs the schema and length limits, manuscript version, lean_pkg_version, the claims file's claims/1 schema and the coverage package equal to its package, row claim ids (present, not superseded), a warning per reusable claim no row names, each --comparator theorem the decl of a claim a row names (lean-pkg-signoff.json smoke beside the coverage file exempts; skipped when a named claim's Lean file is not readable under the coverage file's directory); lists as skipped what needs the registry, HEAD or a receipt (compute receipts, claim files at HEAD, definition sign-off, e-print baseline) or a missing input; verdict first and last; --claims/--comparator with NAME, or neither NAME nor --file: exit 2; --json adds offline true, claims_file, comparator[], checks[{check, status pass|fail|warn|skipped, detail}], skipped[]. docs/page.md | page NAME [--write [--write-binding-file] | --check | --out PATH] [--site DIR] [--html PATH] [--repo DIR] [--strict-preview] [--corroborate] [--attested [--trusted-root FILE]] [--allow-private-manuscript] [--agent A] the README verification section, rendered between <!-- lean-pkg:page:begin --> and <!-- lean-pkg:page:end --> in the package README.md from coverage.yaml, claims.yaml, the claims ledger (promote stage: a row is "verified" only when the ledger closes every claim it names; a verified row with conclusion weaker or special-case says "Verified: a weaker statement." or "Verified: a special case.", never the bare "Verified.", every such row carries a "Conclusion." line with its conclusion_scope, and the header's verified count says how many of the verified prove a weaker statement or a special case; a row without the key or with full renders as before), the receipts committed under .lean-receipts/ (allow-listed fields only: commit, toolchain, Mathlib rev, sorry count, axioms, theorem/permitted-axiom/definition names, date, SHA-256, slurm-J job ids; never hosts, paths, users), lean-toolchain, lake-manifest.json, CITATION.cff (authors required), registry repo/status/license_spdx/doi. Sections: status capsule, paper-Lean map, Not formalized, trust boundary, reproduce, evidence, citation, license, acknowledgments (always the lean-pkg credit with the concept DOI; the Easley sentence only when coverage.yaml compute names easley jobs backed by committed Slurm receipts; a site's sentence needs its jobs backed AND their corroboration level >= its scheduler's sentence_level: offline every job is level 1, Slurm's level, so the GitHub Actions sentence (level 2, a corroborated run) is rendered only under --corroborate and a README carrying it fails --check and the publish --dry-run page line without it). --corroborate: ask the public GitHub REST API (api.github.com only, https, a timeout; GH_TOKEN or GITHUB_TOKEN only raises the rate limit, never printed or written) about every listed gha- job, as receipt check --corroborate does, against the registry's repository (by numeric id); the GitHub Actions sentence renders, {runs} filled with [run R attempt A](https://github.com/OWNER/REPO/actions/runs/R/attempts/A) links, only when every job reaches level 2; a failure (404, 403/429, network error, redirect off api.github.com) fails closed, is a warning naming why, and leaves the sentence out; JSON sites.github-actions gains corroboration {job: rows[]} and runs[]. --attested [--trusted-root FILE]: level 3 for every listed gha- job (receipt check --attested's checks: the committed Sigstore bundle verified by gh attestation verify); the sentence renders at level 3 too, so it survives the run's records expiring; sites.<name>.level/levels reach 3 (both flags: level 3 needs both answers). Deterministic; every rendered string passes the public-safety scanner + the package's .lean-pkg-private-patterns (a blocking hit refuses). Default: print the block. --write: replace only the marked block (append when absent; prose outside untouched; never commits; a foreign live lease refuses without --agent HOLDER); not a registry write (no lock/--commit). --check: exit 1 when README.md is missing, the block is missing or stale, the lean-pkg credit is missing, or the Easley sentence appears without backing; writes nothing. --site DIR: also write DIR/verification.md (the full page, one H1) and DIR/coverage.md (every row: claims, decls, each claim's ledger status, inputs, note) for MkDocs; --html PATH: one static HTML file of both (no script, no external asset, inline CSS, every text escaped, links only https/#anchor); the same bytes whatever DIR; atomic writes, symlink targets refused; with --check they are compared instead (missing/stale: exit 1), and every hand-written *.md under DIR (outside _*, .*, site/, node_modules/, vendor/ directories) is read: a <details>/<div>/<section>/<aside>/<article>/<blockquote> block holding Markdown (a table row, fence, list item, heading, quote, or inline emphasis, code or link) without a markdown attribute (markdown="1" or bare markdown) is a problem (exit 1), since GitHub Pages (kramdown) and MkDocs (md_in_html) publish it as literal text; fenced code is never read. User text is escaped in every output (&<> as entities, Markdown markup backslash-escaped). --repo DIR: read that checkout instead of local_path for this call (CI; not with --write), at its committed HEAD: when the registry's gate receipt does not validate there (bound to HEAD or an evidence-only descendant), the links and Lean statements are read at HEAD, no receipt fact is shown, a 'Preview of commit' note names both commits, and repo_override gains head, anchor_commit, receipt_facts {receipt, commit, included, binds_head, reason}; a receipt that binds HEAD but does not validate is a failed check ('The recorded build check does not validate', never called drift by --check). --check --repo on a preview: its differences from the receipt-bound README block and --site/--html files are warnings (exit 0, JSON preview true, current null); real problems (block missing, markers, credit, unbacked site sentence, an invalid receipt binding HEAD) still exit 1; --strict-preview (only with --check --repo, else exit 2) makes the differences fail. publish --dry-run carries the same check as one checklist line (JSON `page`). --json {ok, name, readme, markdown, written, unchanged, current, preview, problems[], warnings[], site_files[{path, status written|unchanged|current|missing|stale|refused}], html_blocks[{path, line, tag, sample}] (only with --check --site: the blocks above), outputs[] (with --write/--out/--site/--html: the files this run wrote for the documentation commit, README.md relative to the package directory), deferred[] (--write on a gated package whose docs-only opt-in is only in the record: the lean-pkg-binding.yaml migration {id binding-file, path, state deferred|written|unchanged|refused, written, command `lean-pkg update NAME --write-binding-file`, when, advice}, never part of that commit; the file is written only with --write-binding-file), repo_override, rows, counts, verified_rows, verified_conclusions ({weaker, special-case}: the verified rows of each; only when a row carries conclusion), ledger_status, ledger_digest, private_manuscript, manuscript, paper_status (the record's paper.status or null), manuscript_note ("published-unanchored" when manuscript.version is unposted and paper.status published: the page then cites the paper as published with its exact source not publicly anchored, never "an unposted draft"; else null), easley {backed, jobs} (the legacy key, easley only), sites {NAME: {backed, jobs, level (lowest corroboration level of its jobs; null when none listed), levels {job: level}, sentence}}, receipts}. docs/page.md | formalization anchor NAME --arxiv <id>v<N> (--from-file E-PRINT | --fetch) [--compare-tex LOCAL.tex [--accept-diff REASON]] [--main-tex PATH] [--write] [--agent A] pin the companion to one arXiv version: the version is required (unversioned: exit 2); network only with --fetch (https, 60 s, 64 MiB); the e-print (tar.gz|gz|tar; PDF-only refused; absolute/../link/device members refuse it) is read in memory and recorded in data/source-baselines/arXiv-<id>v<N>.json (source-baseline/1, deterministic: e-print sha256, .tex/.bib/.bbl/.sty sha256, main_tex, compare, retrieved_at/arxiv_api only when fetched); without --write a dry run; --write refuses unless tied (coverage.yaml already that version, a bound {sha256} equal to an e-print file, or --compare-tex identical / --accept-diff REASON, recorded), then sets coverage.yaml manuscript.version + eprint_sha256 and the formalization.yaml sources[].id; never the registry or a commit; a move from another version prints rebase_command (claims rebase). | formalization kept [--repo DIR] [--file REL] [--at REV] [--against REV2] read-only, no registry: the kept view (formalization.DERIVED_PATHS and the renderer's acknowledgements lines removed; YAML 1.1 safe, timestamps kept as strings) as canonical JSON (sort_keys, separators ',' ':', ensure_ascii false, UTF-8, no trailing newline) + its sha256, for a release-input audit; --at REV: the committed file; --against REV2: changed_kept_keys, exit 1 when any; --json {schema formalization-kept/1, kept_view, canonical, sha256, commit, derived_paths, against {rev, commit, sha256}, changed_kept_keys, same}. docs/formalization.md#the-kept-view
3232
3232
  search TERM [--package NAME] [--offline] [--sources a,b,c] [--loogle] [--loogle-query PATTERN] [--require-complete] [--cache-dir DIR] [--record [--repo DIR]] [--json] prior-art search. Routed by shape: a Lean pattern (→ -> ∀ fun : ( ? _ ⊢ " math operators, Nat.x dotted names) is `signature` and goes to Loogle; prose is `natural-language` and Loogle is skipped ("natural-language query; Loogle takes declaration patterns ..."); --loogle forces it; --json: top-level and per-source route. Loogle parses Lean, not prose: a term mixing the two fails there ("query not understood: Unknown identifier ...; Loogle takes Lean names, terms and patterns ... --loogle-query"); keep the prose as TERM and pass the Lean part as --loogle-query PATTERN (Loogle gets PATTERN whatever the route, every other source the term; --json loogle_query; usage error when --sources leaves out loogle). --require-complete: exit 1 when complete is false (a source skipped, failed in part, capped or incomplete); the output is printed in full first, --json gets ok false + error "search incomplete (--require-complete): skipped: ...; <why>", stderr the same line; without it an incomplete search still exits 0. Cache: Palomar snapshots and the Reservoir index are cached under $XDG_CACHE_HOME/lean-pkg (default ~/.cache/lean-pkg) and refreshed by any online search, --record or not (the registry is never written without --record); each block's cache_writes[] and --json cache {root: --cache-dir|XDG_CACHE_HOME|default, writes[] (paths relative to the cache root)} say what was written, and the text adds "cache: wrote ... under ..."; --cache-dir DIR uses DIR as the lean-pkg cache for that search only (or set XDG_CACHE_HOME for a whole session).
3233
3233
  order: registry, index, loogle, leansearch, reservoir, palomar, github; each "ok" or "skipped: <reason>" (never zero hits).
3234
3234
  local score: exact alias or package name 3, keyword 2, every term word 1; registry hits: packages (name, notes, owner_project, repo; hit_kind package) and claims (a conditional claim, one that lists hypotheses or an index claim whose derived status is conditional, reads `(<status> (conditional), trust ...)` and its --json hit gains conditional: true; no key otherwise); a package without synced claims is searched by declaration in its checkout at HEAD (tracked *.lean names + docstrings; hit_kind "declaration (unclaimed)", trust none, file PATH:LINE, after claim hits), and a "registry coverage: N of M packages have no synced claims: D searched by declaration only, K not searched (no checkout: ...)" line precedes consulted: (a package the registry could not search makes the registry block incomplete: its reason counts them, truncated_sources gains registry, complete is false, --require-complete exits 1, and the record never says "Not found in" the registry) (--json coverage {claims, declaration_only, not_searched[], not_searched_reasons[] {package, code no-path|no-checkout|no-git-head|scan-error, remedy (read-only, no host path), detail (scan-error only, else null: "git grep exit N: <fixed cause>" or "git grep killed by signal N ...", never git's stderr), the coverage line names it: "scan error: NAME (git grep exit 128: ...)"}, declaration_hits_omitted}; coverage is computed per run from the registry file (read once, written atomically) and the checkouts at HEAD, with no shared cache, so two runs differ only when a checkout, its HEAD or a git grep outcome differs); any skipped source adds "incomplete: searched N of M sources; skipped: ..." before consulted: (--json complete, searched, skipped_sources[]); a source that answered only in part (GitHub code or repository search failed) stays ok with partial[] in its block, is listed in truncated_sources and named on the incomplete: line; a part that returned its result limit (GitHub 30) is listed in capped[] (cap_limit) and truncated_sources ("github: code search returned its 30-result limit"). exit 0 even with zero hits; 2 on usage errors.
@@ -3286,7 +3286,7 @@ palomar[{id, version}] doi|null reservoir|null formalization_yaml|null fields[]
3286
3286
  CLAIMS FILE SCHEMA ("claims/1"; claims.yaml at the package repo root; unknown keys refused; no local paths)
3287
3287
  schema package claims[{id = package/slug [a-z0-9][a-z0-9-]*, decl, kind definition|lemma|theorem|construction|library,
3288
3288
  summary (one line, at most 300 characters; claims check warns above 280), aliases[]?, keywords[]?, file (.lean), status reusable|internal|experimental|superseded, superseded_by|null
3289
- (required iff superseded; acyclic), citation|null, depends_on[]?, statement_basis? null|as-printed|corrected, manuscript_findings[]? [{id (slug, unique in the package), kind misprint|proof-gap, location{label, tex_line?, page?}, summary, lean_evidence[Lean name (in the claim's file) | {decl, file}] (each must occur at the checked commit, like decl), fixed_in null|arXiv:<id>v<N>}] (exact keys; a misprint needs statement_basis corrected, corrected needs a misprint; findings never change a status), judged_as? null|<comparator theorem name> (theorem/lemma only; one claim per name; replaces the naming rule for that claim; must be a configured theorem_names entry), hypotheses[]? (theorem/lemma only; distinct fully qualified names of the assumptions the decl takes as explicit binders, never TODO; [] = absent), discharges? {claim, hypotheses[], proofs[]} (exact keys; theorem/lemma only; claim: a theorem/lemma of this file, not itself, superseded_by followed, whose hypotheses include every discharged name; a Q/slug claim or proof is refused: cross-package discharge is not implemented (proposal 0003, open question 2); this claim's hypotheses = the target's minus the discharged, as sets; proofs: one theorem/lemma claim per discharged name, not itself), witness? <claim id> (only with non-empty hypotheses; a theorem/lemma claim of this file, not itself)}]; trust is derived, never typed. Conditional claims (proposal 0003): the claims ledger judges them from the sealed verify log's hyp-probe/1 facts; a claim with hypotheses is conditional, never verified (page, status, receipt check and the index render it: Conditional. / Verified under assumptions ...); claims list and search mark a claim with hypotheses (conditional) (--json conditional true); an older lean-pkg refuses a file using these keys. Top-level statements_module? <one Lean module name of the package, e.g. Demo.Statements> (#369): the one module of Prop definitions a Challenge may import beyond Mathlib (a list, a path, a Mathlib/Lean-core module refused); at the commit read (claims sync, claims check NAME, the claims check of gate, gate --check and receipt check) its file must be committed and hold only def/abbrev/inductive/structure typed Prop (or ... -> Prop), imports of Mathlib's vocabulary only: a theorem, lemma, axiom, opaque, instance, example, sorry or other command is refused (a text check by lean-pkg's scanner); claims sync --json statements_module; the page links it (Assumptions module.); palomar check prints a warn gap per Challenge import beyond Mathlib's vocabulary: challenge.statements_module (the declared module: trusted by declaration, read it) or challenge.import (any other module), never an error
3289
+ (required iff superseded; acyclic), citation|null, depends_on[]?, statement_basis? null|as-printed|corrected, manuscript_findings[]? [{id (slug, unique in the package), kind misprint|proof-gap, location{label, tex_line?, page?}, summary, lean_evidence[Lean name (in the claim's file) | {decl, file}] (each must occur at the checked commit, like decl), fixed_in null|arXiv:<id>v<N>}] (exact keys; a misprint needs statement_basis corrected, corrected needs a misprint; findings never change a status), judged_as? null|<comparator theorem name> (theorem/lemma only; one claim per name; replaces the naming rule for that claim; must be a configured theorem_names entry), hypotheses[]? (theorem/lemma only; distinct fully qualified names of the assumptions the decl takes as explicit binders, never TODO; [] = absent), discharges? {claim, hypotheses[], proofs[]} (exact keys; theorem/lemma only; claim: a theorem/lemma of this file, not itself, superseded_by followed, whose hypotheses include every discharged name; a Q/slug claim or proof is refused: cross-package discharge is not implemented (proposal 0003, open question 2); this claim's hypotheses = the target's minus the discharged, as sets; proofs: one theorem/lemma claim per discharged name, not itself), witness? <claim id> (a theorem/lemma claim of this file, not itself, whose type is ∃ over this claim's parameters of all its hypotheses; on any claim, conditional or not, proposal 0011; a claim with only witness keeps its status when the facts are missing, its witness unchecked with why)}]; trust is derived, never typed. Conditional claims (proposal 0003): the claims ledger judges them from the sealed verify log's hyp-probe/1 facts; a claim with hypotheses is conditional, never verified (page, status, receipt check and the index render it: Conditional. / Verified under assumptions ...); claims list and search mark a claim with hypotheses (conditional) (--json conditional true); an older lean-pkg refuses a file using these keys. Top-level statements_module? <one Lean module name of the package, e.g. Demo.Statements> (#369): the one module of Prop definitions a Challenge may import beyond Mathlib (a list, a path, a Mathlib/Lean-core module refused); at the commit read (claims sync, claims check NAME, the claims check of gate, gate --check and receipt check) its file must be committed and hold only def/abbrev/inductive/structure typed Prop (or ... -> Prop), imports of Mathlib's vocabulary only: a theorem, lemma, axiom, opaque, instance, example, sorry or other command is refused (a text check by lean-pkg's scanner); claims sync --json statements_module; the page links it (Assumptions module.); palomar check prints a warn gap per Challenge import beyond Mathlib's vocabulary: challenge.statements_module (the declared module: trusted by declaration, read it) or challenge.import (any other module), never an error
3290
3290
 
3291
3291
  EXECUTOR EVIDENCE
3292
3292
  The gate is executor-neutral. The frozen report named by report_sha256 must bind the exact
@@ -3318,6 +3318,7 @@ LLMS_TXT_HEADER = """\
3318
3318
  # lean-pkg — llms.txt
3319
3319
 
3320
3320
  > Registry and trust gate for Lean 4 formalization packages. Install: `pipx install lean-pkg`.
3321
+ > lean-pkg is unrelated to `leanpkg`, the build tool of Lean 3.
3321
3322
  > Human docs: https://lean-pkg.github.io/lean-pkg/ (source: docs/), README.md, DESIGN.md. Tests: `python3 -m pip install -e '.[test]' && python3 -m pytest -q`.
3322
3323
  > The block below is the exact output of `lean-pkg llms` (written by `make docs`; tests/test_docs.py checks it byte for byte).
3323
3324
 
@@ -499,6 +499,10 @@ def build_parser():
499
499
  s.add_argument("--refuse-dirty", action="store_true",
500
500
  help="refuse when tracked files are modified in the checkout; default is a WARN "
501
501
  "line (receipts are always checked against the bound commit)")
502
+ s.add_argument("--expect-branch", default=None, metavar="NAME",
503
+ help="the checkout is meant to be on branch NAME (a release branch gated before its "
504
+ "merge): when it is, the `evaluating branch NAME, not the default` WARN becomes a "
505
+ "note; when it is not, a WARN names both. Never a refusal; repeated in --check's next:")
502
506
  s.add_argument("--refresh-formalization", action="store_true",
503
507
  help="after the gate, regenerate the package's formalization.yaml (derived keys, "
504
508
  "including status.evidence; kept keys survive) and set its registry pointer; "