lean-pkg 0.30.2__tar.gz → 0.30.3__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 (350) hide show
  1. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/CHANGELOG.md +19 -0
  2. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/CITATION.cff +5 -2
  3. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/PKG-INFO +1 -1
  4. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/README.md +1 -1
  5. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/pyproject.toml +1 -1
  6. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/__init__.py +1 -1
  7. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/coverage.py +27 -8
  8. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg.egg-info/PKG-INFO +1 -1
  9. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_verify_preflight.py +57 -0
  10. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/LICENSE +0 -0
  11. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/MANIFEST.in +0 -0
  12. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/PYPI.md +0 -0
  13. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/setup.cfg +0 -0
  14. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/adapters/__init__.py +0 -0
  15. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/adapters/github.py +0 -0
  16. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/adapters/leansearch.py +0 -0
  17. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/adapters/loogle.py +0 -0
  18. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/adapters/palomar.py +0 -0
  19. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/adapters/reservoir.py +0 -0
  20. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/anchor.py +0 -0
  21. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/audit.py +0 -0
  22. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/binding_file.py +0 -0
  23. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/blueprint.py +0 -0
  24. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/build_scope.py +0 -0
  25. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/ci_github.py +0 -0
  26. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/claim_axioms.py +0 -0
  27. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/claims.py +0 -0
  28. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/claims_mark.py +0 -0
  29. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/cli.py +0 -0
  30. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/cli_parser.py +0 -0
  31. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/command_tree.py +0 -0
  32. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/comparator_config.py +0 -0
  33. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/comparator_contracts.py +0 -0
  34. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/comparator_receipt.py +0 -0
  35. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/comparator_stage.py +0 -0
  36. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/comparator_types.py +0 -0
  37. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/container.py +0 -0
  38. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/controls.py +0 -0
  39. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/core.py +0 -0
  40. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/data/stacks/lts-2026.10.yaml +0 -0
  41. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/data/toolchain-advisories.yaml +0 -0
  42. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/data/upgrade-breaking.yaml +0 -0
  43. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/data/verify-workflow-pins.yaml +0 -0
  44. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/deps_closure.py +0 -0
  45. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/deps_fill.py +0 -0
  46. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/dup_constants.py +0 -0
  47. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/exercise.py +0 -0
  48. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/exercise_forbid.py +0 -0
  49. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/export_paths.py +0 -0
  50. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/extract.py +0 -0
  51. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/extract_decls.py +0 -0
  52. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/extract_ledger.py +0 -0
  53. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/extract_summary.py +0 -0
  54. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/extract_types.py +0 -0
  55. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/extract_write.py +0 -0
  56. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/formalization.py +0 -0
  57. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/formalization_kept.py +0 -0
  58. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/fresh_repo.py +0 -0
  59. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/gate.py +0 -0
  60. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/headline.py +0 -0
  61. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/help_topics.py +0 -0
  62. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/holes.py +0 -0
  63. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/host_routes.py +0 -0
  64. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/html_blocks.py +0 -0
  65. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/hypotheses.py +0 -0
  66. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/index.py +0 -0
  67. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/json_stdout.py +0 -0
  68. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/lake_hygiene.py +0 -0
  69. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/lean_diag.py +0 -0
  70. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/lean_scan.py +0 -0
  71. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/ledger.py +0 -0
  72. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/next_step.py +0 -0
  73. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/page.py +0 -0
  74. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/page_html.py +0 -0
  75. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/palomar.py +0 -0
  76. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/palomar_check.py +0 -0
  77. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/port_modules.py +0 -0
  78. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/prior_art.py +0 -0
  79. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/producer.py +0 -0
  80. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/producer_skew.py +0 -0
  81. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/public_safety.py +0 -0
  82. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/publish.py +0 -0
  83. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/rebase.py +0 -0
  84. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/receipt.py +0 -0
  85. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/receipt_check.py +0 -0
  86. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/receipt_ci.py +0 -0
  87. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/receipt_systemd.py +0 -0
  88. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/recommended.py +0 -0
  89. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/report.py +0 -0
  90. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/reservoir.py +0 -0
  91. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/scaffold.py +0 -0
  92. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/schemas/formalization-0.4.schema.json +0 -0
  93. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/schemas/formalization-0.4.schema.source.txt +0 -0
  94. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/scripts/ClaimAxioms.lean +0 -0
  95. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/scripts/ContractsOnly.lean +0 -0
  96. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/scripts/ControlsProbe.lean +0 -0
  97. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/scripts/DupConstants.lean +0 -0
  98. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/scripts/HypProbe.lean +0 -0
  99. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/scripts/comparator-check.sh +0 -0
  100. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/scripts/verify-comparator.sh +0 -0
  101. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/seal_bundle.py +0 -0
  102. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/search.py +0 -0
  103. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/site_check.py +0 -0
  104. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/site_profiles/easley.yaml +0 -0
  105. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/site_profiles/github-actions.yaml +0 -0
  106. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/sites.py +0 -0
  107. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/stacks.py +0 -0
  108. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/statements_module.py +0 -0
  109. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/templates/Apache-2.0.txt +0 -0
  110. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/toolchain_advisories.py +0 -0
  111. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/upgrade.py +0 -0
  112. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg/verify.py +0 -0
  113. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg.egg-info/SOURCES.txt +0 -0
  114. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg.egg-info/dependency_links.txt +0 -0
  115. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg.egg-info/entry_points.txt +0 -0
  116. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg.egg-info/requires.txt +0 -0
  117. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/src/lean_pkg.egg-info/top_level.txt +0 -0
  118. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_adapters.py +0 -0
  119. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_append_note.py +0 -0
  120. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_audit_claims_coverage.py +0 -0
  121. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_audit_gh_outcomes.py +0 -0
  122. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_audit_missing_path.py +0 -0
  123. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_audit_no_github_mirror.py +0 -0
  124. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_audit_palomar.py +0 -0
  125. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_audit_receipts_paths.py +0 -0
  126. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_audit_reference_branch.py +0 -0
  127. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_binding_file.py +0 -0
  128. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_binding_file_g3.py +0 -0
  129. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_blueprint_check.py +0 -0
  130. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_bootstrap_collaborator.py +0 -0
  131. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_branch_notice.py +0 -0
  132. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_campaign_recovery_docs.py +0 -0
  133. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_check_changelog_releases.py +0 -0
  134. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_ci_attested.py +0 -0
  135. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_ci_comparator.py +0 -0
  136. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_ci_corroborate.py +0 -0
  137. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_ci_receipt_level1.py +0 -0
  138. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_claim_axioms.py +0 -0
  139. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_claims.py +0 -0
  140. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_claims_ledger.py +0 -0
  141. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_claims_mark.py +0 -0
  142. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_claims_rebase.py +0 -0
  143. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_cli.py +0 -0
  144. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_cli_consistency.py +0 -0
  145. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_cli_contract_argv.py +0 -0
  146. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_cli_contract_corpus.py +0 -0
  147. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_cli_contract_help.py +0 -0
  148. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_cli_contract_json.py +0 -0
  149. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_cli_contract_names.py +0 -0
  150. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_columns.py +0 -0
  151. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_command_docs.py +0 -0
  152. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_command_tree_stage2.py +0 -0
  153. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_commit.py +0 -0
  154. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_comparator.py +0 -0
  155. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_comparator_attempts.py +0 -0
  156. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_comparator_config.py +0 -0
  157. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_comparator_contracts.py +0 -0
  158. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_comparator_coverage.py +0 -0
  159. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_comparator_evidence_dir.py +0 -0
  160. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_comparator_host_label.py +0 -0
  161. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_comparator_list_defaults.py +0 -0
  162. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_comparator_log_transport.py +0 -0
  163. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_comparator_mismatch_next.py +0 -0
  164. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_comparator_name_hints.py +0 -0
  165. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_comparator_no_mathlib.py +0 -0
  166. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_comparator_readiness.py +0 -0
  167. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_comparator_receipt.py +0 -0
  168. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_comparator_replace.py +0 -0
  169. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_comparator_repo_claims_file.py +0 -0
  170. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_comparator_sacct_seal.py +0 -0
  171. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_comparator_stage.py +0 -0
  172. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_comparator_tool_toolchain.py +0 -0
  173. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_comparator_types.py +0 -0
  174. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_comparator_types_deep.py +0 -0
  175. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_compressed_log_bindings.py +0 -0
  176. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_conditional_claims.py +0 -0
  177. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_conditional_closeout.py +0 -0
  178. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_conditional_outputs.py +0 -0
  179. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_consent_dedupe.py +0 -0
  180. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_controls.py +0 -0
  181. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_core_split.py +0 -0
  182. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_coverage_accounted.py +0 -0
  183. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_coverage_conclusion.py +0 -0
  184. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_coverage_extensions.py +0 -0
  185. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_coverage_offline.py +0 -0
  186. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_coverage_witness.py +0 -0
  187. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_cut_release.py +0 -0
  188. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_defaults.py +0 -0
  189. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_docs.py +0 -0
  190. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_docs_classifier_preflight.py +0 -0
  191. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_docs_descendants.py +0 -0
  192. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_docs_old_spellings.py +0 -0
  193. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_doctor.py +0 -0
  194. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_dup_constants.py +0 -0
  195. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_evidence_formalization.py +0 -0
  196. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_exercise.py +0 -0
  197. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_exercise_course.py +0 -0
  198. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_extract_decls.py +0 -0
  199. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_extract_ledger.py +0 -0
  200. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_extract_plan.py +0 -0
  201. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_extract_summary.py +0 -0
  202. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_extract_types.py +0 -0
  203. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_fields_only.py +0 -0
  204. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_formalization.py +0 -0
  205. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_formalization_anchor.py +0 -0
  206. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_formalization_kept.py +0 -0
  207. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_formalization_refresh.py +0 -0
  208. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_formats.py +0 -0
  209. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_fresh_repo.py +0 -0
  210. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_gate.py +0 -0
  211. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_gate_binding.py +0 -0
  212. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_gate_binding_scope.py +0 -0
  213. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_gate_check.py +0 -0
  214. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_gate_check_next.py +0 -0
  215. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_gate_claims.py +0 -0
  216. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_gate_pins.py +0 -0
  217. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_gate_receipt_path.py +0 -0
  218. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_gate_refresh.py +0 -0
  219. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_gate_regate.py +0 -0
  220. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_headline.py +0 -0
  221. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_help_topics.py +0 -0
  222. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_hints_and_time.py +0 -0
  223. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_host_check.py +0 -0
  224. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_host_routes.py +0 -0
  225. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_hypotheses_ledger.py +0 -0
  226. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_hypotheses_probe.py +0 -0
  227. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_ignored_evidence.py +0 -0
  228. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_index_add.py +0 -0
  229. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_index_built_on.py +0 -0
  230. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_index_check.py +0 -0
  231. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_index_claims.py +0 -0
  232. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_index_docs_descendants.py +0 -0
  233. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_index_render.py +0 -0
  234. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_index_schema.py +0 -0
  235. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_init.py +0 -0
  236. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_input_hygiene.py +0 -0
  237. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_internal_claims.py +0 -0
  238. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_json.py +0 -0
  239. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_json_control_chars.py +0 -0
  240. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_json_stdout.py +0 -0
  241. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_judged_as.py +0 -0
  242. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_lake_cache_systemd.py +0 -0
  243. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_lake_hygiene.py +0 -0
  244. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_large_artifacts_recipe.py +0 -0
  245. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_lean_diag.py +0 -0
  246. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_lean_scan_extract.py +0 -0
  247. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_lease.py +0 -0
  248. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_lease_actor.py +0 -0
  249. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_lease_expiry_notice.py +0 -0
  250. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_lease_registry_stamp.py +0 -0
  251. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_ledger_exact_covers.py +0 -0
  252. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_ledger_golden.py +0 -0
  253. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_lifecycle_notes.py +0 -0
  254. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_llms.py +0 -0
  255. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_locking.py +0 -0
  256. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_manuscript_findings.py +0 -0
  257. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_mathlib_none.py +0 -0
  258. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_migrate.py +0 -0
  259. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_migrate_v3.py +0 -0
  260. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_namespace_notes.py +0 -0
  261. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_new.py +0 -0
  262. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_next.py +0 -0
  263. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_noninteractive.py +0 -0
  264. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_olean_manifest.py +0 -0
  265. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_outputs_golden.py +0 -0
  266. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_package_fields.py +0 -0
  267. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_packaging.py +0 -0
  268. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_page.py +0 -0
  269. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_page_repo_head.py +0 -0
  270. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_page_site.py +0 -0
  271. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_palomar_check.py +0 -0
  272. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_palomar_prepare.py +0 -0
  273. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_palomar_snapshot.py +0 -0
  274. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_paper.py +0 -0
  275. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_port_modules.py +0 -0
  276. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_prior_art.py +0 -0
  277. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_producer_skew.py +0 -0
  278. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_promote_audit.py +0 -0
  279. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_promote_scope.py +0 -0
  280. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_public_allow.py +0 -0
  281. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_public_safety.py +0 -0
  282. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_public_safety_gzip.py +0 -0
  283. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_public_safety_long_line_stream.py +0 -0
  284. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_public_safety_scope.py +0 -0
  285. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_publication_hold.py +0 -0
  286. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_publish.py +0 -0
  287. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_receipt_check.py +0 -0
  288. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_receipt_check_opt_in.py +0 -0
  289. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_receipt_ci.py +0 -0
  290. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_receipt_container.py +0 -0
  291. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_receipt_private_scan.py +0 -0
  292. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_receipt_producer.py +0 -0
  293. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_receipt_slurm.py +0 -0
  294. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_receipt_slurm_artifacts.py +0 -0
  295. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_receipt_slurm_contracts_preflight.py +0 -0
  296. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_receipt_slurm_fill_plan.py +0 -0
  297. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_receipt_slurm_preflight_deps.py +0 -0
  298. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_receipt_slurm_runtime_preflight.py +0 -0
  299. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_receipt_slurm_sacct_seal.py +0 -0
  300. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_receipt_slurm_template_src.py +0 -0
  301. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_receipt_subdir_package.py +0 -0
  302. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_receipt_systemd.py +0 -0
  303. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_recommended.py +0 -0
  304. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_record.py +0 -0
  305. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_record_evidence.py +0 -0
  306. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_record_transitions.py +0 -0
  307. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_refresh_descendant.py +0 -0
  308. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_register.py +0 -0
  309. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_registry_core.py +0 -0
  310. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_registry_snapshot.py +0 -0
  311. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_release_script.py +0 -0
  312. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_release_version.py +0 -0
  313. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_render_cache.py +0 -0
  314. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_repo_override.py +0 -0
  315. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_report.py +0 -0
  316. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_report_log_required.py +0 -0
  317. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_reservoir_check.py +0 -0
  318. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_review_fixes_prior_art.py +0 -0
  319. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_robustness.py +0 -0
  320. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_seal_bundle.py +0 -0
  321. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_search.py +0 -0
  322. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_search_completeness.py +0 -0
  323. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_search_declarations.py +0 -0
  324. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_search_field_coverage.py +0 -0
  325. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_search_scan.py +0 -0
  326. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_search_sources.py +0 -0
  327. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_sibling_packages.py +0 -0
  328. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_signoff_sidecar.py +0 -0
  329. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_site_check.py +0 -0
  330. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_sites.py +0 -0
  331. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_skills.py +0 -0
  332. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_smoke_configs.py +0 -0
  333. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_source_paper_ai.py +0 -0
  334. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_stack_opt_in.py +0 -0
  335. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_stacks.py +0 -0
  336. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_statements_module.py +0 -0
  337. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_status_scope.py +0 -0
  338. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_subdir_package.py +0 -0
  339. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_template_module_headers.py +0 -0
  340. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_toolchain_advisories.py +0 -0
  341. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_toolchain_floor.py +0 -0
  342. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_trust.py +0 -0
  343. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_update_publication_fields.py +0 -0
  344. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_update_relocate.py +0 -0
  345. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_upgrade.py +0 -0
  346. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_user_default.py +0 -0
  347. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_validate.py +0 -0
  348. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_verdict_first.py +0 -0
  349. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_verify_workflow_oidc.py +0 -0
  350. {lean_pkg-0.30.2 → lean_pkg-0.30.3}/tests/test_wiki.py +0 -0
@@ -9,6 +9,23 @@ 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.30.3] - 2026-12-04
13
+
14
+ ### Changed
15
+
16
+ - `verify`'s preflight accepts a compared theorem that is the declaration
17
+ of an `internal` or `reusable` claim Lean generates (a structure field,
18
+ an `@[ext]` lemma) when the gate receipt committed at `HEAD` read it
19
+ from the built environment (its `claim_axioms`), as `coverage check
20
+ NAME`, `page --check` and `receipt check` have since 0.30.2 (#465). The
21
+ preflight runs before the build and read only the claims' files, so a
22
+ field report's 106 generated helper declarations stopped `verify`
23
+ unless their configuration was marked as a smoke check. The check's
24
+ line names the receipt it relied on; `coverage check --file` is
25
+ unchanged.
26
+
27
+ public-safety (make public-safety, --strict, history): 0 hit(s) (0 tree, 0 history); 0 blocking, 0 warning(s)
28
+
12
29
  ## [0.30.2] - 2026-12-02
13
30
 
14
31
  ### Changed
@@ -51,6 +68,8 @@ full policy, and the criteria for 1.0.0, are in RELEASING.md, "When to tag".
51
68
 
52
69
  public-safety (make public-safety, --strict, history): 0 hit(s) (0 tree, 0 history); 0 blocking, 0 warning(s)
53
70
 
71
+ Zenodo version DOI: [10.5281/zenodo.24762717](https://doi.org/10.5281/zenodo.24762717)
72
+
54
73
  ## [0.30.1] - 2026-11-30
55
74
 
56
75
  ### Changed
@@ -6,8 +6,8 @@ authors:
6
6
  - family-names: Chen
7
7
  given-names: Le
8
8
  affiliation: "Auburn University"
9
- version: "0.30.2"
10
- date-released: "2026-12-02"
9
+ version: "0.30.3"
10
+ date-released: "2026-12-04"
11
11
  license: Apache-2.0
12
12
  repository-code: "https://github.com/lean-pkg/lean-pkg"
13
13
  doi: 10.5281/zenodo.23272098
@@ -216,6 +216,9 @@ identifiers:
216
216
  - type: doi
217
217
  value: 10.5281/zenodo.24690284
218
218
  description: Version DOI for 0.30.1
219
+ - type: doi
220
+ value: 10.5281/zenodo.24762717
221
+ description: Version DOI for 0.30.2
219
222
  url: "https://lean-pkg.github.io/lean-pkg/"
220
223
  keywords:
221
224
  - Lean 4
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lean-pkg
3
- Version: 0.30.2
3
+ Version: 0.30.3
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
@@ -365,7 +365,7 @@ DOIs. To cite a state between releases, cite the repository at a commit:
365
365
  author = {Chen, Le},
366
366
  title = {lean-pkg: a registry and trust gate for Lean 4 formalization packages},
367
367
  year = {2026},
368
- version = {0.30.2},
368
+ version = {0.30.3},
369
369
  url = {https://github.com/lean-pkg/lean-pkg},
370
370
  note = {commit <sha>}
371
371
  }
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "lean-pkg"
7
- version = "0.30.2"
7
+ version = "0.30.3"
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.30.2"
3
+ __version__ = "0.30.3"
@@ -1143,13 +1143,16 @@ UNPOSTED_PROBLEM = ("manuscript.version: unposted: theorem numbers of a private
1143
1143
 
1144
1144
  def offline_check(text: str, where: str, *, claims_text: str | None = None, claims_where: str = "claims.yaml",
1145
1145
  configs: dict[str, bytes] | None = None, sidecar: dict | None = None, read_file=None,
1146
- profiles: dict | None = None, allow_private: bool = False, draft: bool = False) -> dict:
1146
+ profiles: dict | None = None, allow_private: bool = False, draft: bool = False,
1147
+ built: frozenset[str] = frozenset(), built_from: str = "") -> dict:
1147
1148
  """Every check of `coverage check` that needs no registry record and no receipt, on the coverage file's
1148
1149
  text: the coverage/1 schema and its length limits, the manuscript version, lean_pkg_version; with the
1149
1150
  claims file's text, its claims/1 schema, each row's claim ids (present, not superseded) and a warning for
1150
1151
  each reusable claim no row names; with comparator configurations ({path: bytes}), R10/R11 (each theorem
1151
1152
  the declaration of a claim a row names or of an internal or reusable claim; `sidecar` marks smoke
1152
- configurations; `read_file(rel)` reads the claims' Lean files, skipped when one is unreadable). draft (verify's preflight): placeholder text and an
1153
+ configurations; `read_file(rel)` reads the claims' Lean files, skipped when one is unreadable; `built`, the
1154
+ decls an earlier gate receipt's claim_axioms read from the built environment (built_decls), described by
1155
+ `built_from`). draft (verify's preflight): placeholder text and an
1153
1156
  unposted manuscript are warnings, not problems (`coverage check` and `page` still refuse them).
1154
1157
  {doc, errors, warnings, checks[{check, status pass|fail|warn|skipped, detail}], skipped[]}."""
1155
1158
  from . import claims as claims_mod
@@ -1247,15 +1250,16 @@ def offline_check(text: str, where: str, *, claims_text: str | None = None, clai
1247
1250
  else:
1248
1251
  _add("reusable claims", "pass", "every reusable claim is named by a row")
1249
1252
  _offline_comparator(_add, doc if valid else None, claims, configs, sidecar, read_file,
1250
- why_not if not valid else None, claims_text is None)
1253
+ why_not if not valid else None, claims_text is None, built, built_from)
1251
1254
  for check, why in OFFLINE_SKIPPED:
1252
1255
  _add(check, "skipped", why)
1253
1256
  return out
1254
1257
 
1255
1258
 
1256
1259
  def _offline_comparator(_add, doc, claims, configs, sidecar, read_file, invalid: str | None,
1257
- no_claims: bool) -> None:
1260
+ no_claims: bool, built: frozenset[str] = frozenset(), built_from: str = "") -> None:
1258
1261
  """The R10/R11 entry of offline_check."""
1262
+ from . import comparator_config as cc
1259
1263
  from . import holes
1260
1264
  check = "comparator theorems"
1261
1265
  if configs is None:
@@ -1289,10 +1293,15 @@ def _offline_comparator(_add, doc, claims, configs, sidecar, read_file, invalid:
1289
1293
  + ", ".join(unreadable[:5]) + "): a decl counts only when its file declares it")
1290
1294
  return
1291
1295
  p = theorem_mapping_problems(doc, claims, parsed, holes.smoke_paths(sidecar), read_file,
1292
- "comparator configuration")
1296
+ "comparator configuration", built)
1293
1297
  n = sum(len(c["theorem_names"]) for c in parsed)
1298
+ # the decls R11 counted only because the earlier build had them: no file's text declares them
1299
+ generated = {str(c.get("decl") or "") for c in claims.values()} & set(built)
1300
+ generated -= cc.qualified_decls(read_file, list(claims.values()))
1294
1301
  _add(check, "fail" if p else "pass", f"each of {n} theorem(s) in {len(parsed)} configuration(s) is the "
1295
- f"declaration of a claim a row names or of an internal or reusable claim (R11)", p)
1302
+ f"declaration of a claim a row names or of an internal or reusable claim (R11)"
1303
+ + (f"; {len(generated)} generated declaration(s) counted because {built_from} read them from the "
1304
+ f"built environment (claim_axioms)" if generated else ""), p)
1296
1305
 
1297
1306
 
1298
1307
  def _offline_reader(root: pathlib.Path):
@@ -1392,7 +1401,8 @@ def do_coverage_check_file(file: str, claims_path: str | None, comparator_paths:
1392
1401
  def preflight_at_head(name: str, pkg: dict, repo: pathlib.Path) -> dict:
1393
1402
  """verify's step 0 (#325): at HEAD, the claims/1 check `claims check --file` runs on the claims file
1394
1403
  (refused: its errors), and, when coverage.yaml is committed, offline_check in draft mode against that
1395
- claims file and the comparator configurations committed at HEAD. Reads only HEAD, never the working tree.
1404
+ claims file and the comparator configurations committed at HEAD; R11 also counts the generated declarations
1405
+ the gate receipt committed at HEAD read from its build (built_decls). Reads only HEAD, never the working tree.
1396
1406
  {ok, claims {file, present, claims, errors[]}, coverage {file, present, ...offline_check} , lines[]}."""
1397
1407
  from . import claims as claims_mod
1398
1408
  from . import comparator_config as cc
@@ -1431,9 +1441,18 @@ def preflight_at_head(name: str, pkg: dict, repo: pathlib.Path) -> dict:
1431
1441
  verdict = f"{where}: coverage: INVALID (1 problem(s); offline)"
1432
1442
  res["lines"] = lines + [verdict, f" {e}", verdict]
1433
1443
  return res
1444
+ # R11's generated declarations (a structure field, an @[ext] lemma) are in no file's text: before the build,
1445
+ # the gate receipt committed at HEAD is the only evidence that they exist (built_decls; the new gate receipt,
1446
+ # which `coverage check`, `page --check` and `receipt check` read after the run, must show them again)
1447
+ gate_rel = (pkg.get("gate") or {}).get("receipt")
1448
+ lower, _raw = receipt_at_head(repo, gate_rel) if gate_rel else (None, None)
1449
+ built = built_decls(repo, lower)
1450
+ built_from = (f"the gate receipt {gate_rel} (commit {str((lower or {}).get('commit'))[:12]})"
1451
+ if built else "")
1434
1452
  rep = offline_check(craw.decode("utf-8", errors="replace"), where, claims_text=claims_text,
1435
1453
  claims_where=f"{rel} at {c12}", configs=cc._configs_at(repo, "HEAD"), sidecar=sidecar,
1436
- read_file=claims_mod._reader(repo, "HEAD"), profiles=profiles, draft=True)
1454
+ read_file=claims_mod._reader(repo, "HEAD"), profiles=profiles, draft=True,
1455
+ built=built, built_from=built_from)
1437
1456
  res["coverage"].update(present=True, errors=rep["errors"], warnings=rep["warnings"], checks=rep["checks"],
1438
1457
  skipped=rep["skipped"])
1439
1458
  payload = offline_payload(rep, name, where, rel if claims_text is not None else None,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lean-pkg
3
- Version: 0.30.2
3
+ Version: 0.30.3
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
@@ -207,3 +207,60 @@ def test_verify_passes_memory_max_to_the_lower_tier_receipt(lp, vpkg, capsys, mo
207
207
  calls.clear()
208
208
  verify(lp, capsys, reg, tmp_path)
209
209
  assert all("--memory-max" not in c for c in calls) # absent: receipt systemd's 8G default
210
+
211
+
212
+ # --- R11's generated declarations before the build: the gate receipt committed at HEAD (a field report) ------
213
+
214
+ GENERATED = "Demo.Good.smooth" # a structure field: Lean declares it, no line of Demo/Main.lean does
215
+ CLAIMS_GENERATED = CLAIMS + f"""\
216
+ - id: v/good-smooth
217
+ decl: {GENERATED}
218
+ kind: lemma
219
+ summary: The smoothness field of a good kernel.
220
+ file: Demo/Main.lean
221
+ status: internal
222
+ """
223
+
224
+
225
+ def _preflight_repo(tmp_path, missing: list[str] | None) -> tuple:
226
+ """A package whose comparator compares a generated internal claim; with `missing` not None, a gate receipt
227
+ committed at HEAD whose claim_axioms checked claims.yaml at the package commit, `missing` absent."""
228
+ repo = tmp_path / "pkg"
229
+ repo.mkdir(parents=True)
230
+ _git(repo, "init", "-q")
231
+ cfg = {"challenge_module": "Challenge", "solution_module": "Solution",
232
+ "theorem_names": ["Demo.main_bound", GENERATED]}
233
+ built = commit(repo, {"claims.yaml": CLAIMS_GENERATED, "Demo/Main.lean": LEAN, "comparator.json": json.dumps(cfg),
234
+ "coverage.yaml": yaml.safe_dump(COVERAGE, sort_keys=False)})
235
+ pkg: dict = {}
236
+ if missing is not None:
237
+ lower = {"commit": built, "claim_axioms": {"checked": 2 - len(missing), "nonstandard": [], "missing": missing}}
238
+ commit(repo, {".lean-receipts/gate.json": json.dumps(lower)})
239
+ pkg = {"gate": {"receipt": ".lean-receipts/gate.json"}}
240
+ return repo, pkg, built
241
+
242
+
243
+ def _r11(res: dict) -> dict:
244
+ return next(c for c in res["coverage"]["checks"] if c["check"] == "comparator theorems")
245
+
246
+
247
+ def test_the_preflight_counts_a_generated_declaration_the_gate_receipt_read(tmp_path):
248
+ """verify's preflight runs before any build, so R11 cannot see a declaration Lean generates. The gate receipt
249
+ committed at HEAD read it from the last build (claim_axioms): the preflight counts it, and says so."""
250
+ from lean_pkg import coverage as cov
251
+ repo, pkg, built = _preflight_repo(tmp_path, [])
252
+ res = cov.preflight_at_head("v", pkg, repo)
253
+ assert res["ok"] is True, res["coverage"]["errors"]
254
+ detail = _r11(res)["detail"]
255
+ assert _r11(res)["status"] == "pass"
256
+ assert (f"1 generated declaration(s) counted because the gate receipt .lean-receipts/gate.json "
257
+ f"(commit {built[:12]}) read them from the built environment") in detail
258
+
259
+
260
+ def test_the_preflight_without_that_evidence_still_refuses_a_generated_declaration(tmp_path):
261
+ from lean_pkg import coverage as cov
262
+ for missing in (None, [GENERATED]): # no gate receipt; a gate receipt whose build lacked it
263
+ repo, pkg, _built = _preflight_repo(tmp_path / str(missing is None), missing)
264
+ res = cov.preflight_at_head("v", pkg, repo)
265
+ assert res["ok"] is False and any(f"'{GENERATED}'" in e for e in res["coverage"]["errors"])
266
+ assert "generated declaration" not in _r11(res)["detail"]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes