lean-pkg 0.27.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.
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/CHANGELOG.md +55 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/CITATION.cff +5 -2
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/PKG-INFO +1 -1
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/README.md +3 -1
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/pyproject.toml +1 -1
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/__init__.py +1 -1
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/claims.py +4 -4
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/cli.py +5 -4
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/comparator_receipt.py +55 -5
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/coverage.py +87 -9
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/host_routes.py +5 -1
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/hypotheses.py +5 -1
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/page.py +92 -17
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg.egg-info/PKG-INFO +1 -1
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg.egg-info/SOURCES.txt +2 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_comparator_attempts.py +2 -2
- lean_pkg-0.28.0/tests/test_comparator_evidence_dir.py +79 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_comparator_readiness.py +2 -2
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_comparator_receipt.py +4 -4
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_comparator_stage.py +1 -1
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_conditional_claims.py +8 -2
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_coverage_offline.py +3 -2
- lean_pkg-0.28.0/tests/test_coverage_witness.py +149 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_host_routes.py +2 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_internal_claims.py +64 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_olean_manifest.py +1 -1
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/LICENSE +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/MANIFEST.in +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/PYPI.md +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/setup.cfg +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/adapters/__init__.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/adapters/github.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/adapters/leansearch.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/adapters/loogle.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/adapters/palomar.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/adapters/reservoir.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/anchor.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/audit.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/binding_file.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/blueprint.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/build_scope.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/ci_github.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/claim_axioms.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/claims_mark.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/cli_parser.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/command_tree.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/comparator_config.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/comparator_contracts.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/comparator_stage.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/comparator_types.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/container.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/core.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/data/stacks/lts-2026.10.yaml +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/data/toolchain-advisories.yaml +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/data/upgrade-breaking.yaml +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/data/verify-workflow-pins.yaml +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/deps_closure.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/deps_fill.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/dup_constants.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/exercise.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/exercise_forbid.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/export_paths.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/extract.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/extract_decls.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/extract_ledger.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/extract_summary.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/extract_types.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/extract_write.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/formalization.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/formalization_kept.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/fresh_repo.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/gate.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/headline.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/help_topics.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/holes.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/html_blocks.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/index.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/json_stdout.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/lake_hygiene.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/lean_diag.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/lean_scan.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/ledger.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/next_step.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/page_html.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/palomar.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/palomar_check.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/port_modules.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/prior_art.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/producer.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/producer_skew.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/public_safety.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/publish.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/rebase.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/receipt.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/receipt_check.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/receipt_ci.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/receipt_systemd.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/recommended.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/report.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/reservoir.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/scaffold.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/schemas/formalization-0.4.schema.json +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/schemas/formalization-0.4.schema.source.txt +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/scripts/ClaimAxioms.lean +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/scripts/ContractsOnly.lean +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/scripts/DupConstants.lean +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/scripts/HypProbe.lean +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/scripts/comparator-check.sh +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/scripts/verify-comparator.sh +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/seal_bundle.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/search.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/site_profiles/easley.yaml +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/site_profiles/github-actions.yaml +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/sites.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/stacks.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/statements_module.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/templates/Apache-2.0.txt +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/toolchain_advisories.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/upgrade.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg/verify.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg.egg-info/dependency_links.txt +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg.egg-info/entry_points.txt +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg.egg-info/requires.txt +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/src/lean_pkg.egg-info/top_level.txt +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_adapters.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_append_note.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_audit_claims_coverage.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_audit_gh_outcomes.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_audit_missing_path.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_audit_no_github_mirror.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_audit_palomar.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_audit_receipts_paths.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_audit_reference_branch.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_binding_file.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_binding_file_g3.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_blueprint_check.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_bootstrap_collaborator.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_branch_notice.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_campaign_recovery_docs.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_check_changelog_releases.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_ci_attested.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_ci_comparator.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_ci_corroborate.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_ci_receipt_level1.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_claim_axioms.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_claims.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_claims_ledger.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_claims_mark.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_claims_rebase.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_cli.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_cli_consistency.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_cli_contract_argv.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_cli_contract_corpus.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_cli_contract_help.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_cli_contract_json.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_cli_contract_names.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_columns.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_command_docs.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_command_tree_stage2.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_commit.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_comparator.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_comparator_config.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_comparator_contracts.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_comparator_coverage.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_comparator_host_label.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_comparator_list_defaults.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_comparator_log_transport.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_comparator_mismatch_next.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_comparator_name_hints.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_comparator_no_mathlib.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_comparator_replace.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_comparator_repo_claims_file.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_comparator_sacct_seal.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_comparator_tool_toolchain.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_comparator_types.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_compressed_log_bindings.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_conditional_closeout.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_conditional_outputs.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_consent_dedupe.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_core_split.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_coverage_conclusion.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_cut_release.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_defaults.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_docs.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_docs_classifier_preflight.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_docs_descendants.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_docs_old_spellings.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_doctor.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_dup_constants.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_evidence_formalization.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_exercise.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_exercise_course.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_extract_decls.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_extract_ledger.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_extract_plan.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_extract_summary.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_extract_types.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_fields_only.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_formalization.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_formalization_anchor.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_formalization_kept.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_formalization_refresh.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_formats.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_fresh_repo.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_gate.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_gate_binding.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_gate_binding_scope.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_gate_check.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_gate_check_next.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_gate_claims.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_gate_pins.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_gate_receipt_path.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_gate_refresh.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_gate_regate.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_headline.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_help_topics.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_hints_and_time.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_host_check.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_hypotheses_ledger.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_hypotheses_probe.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_ignored_evidence.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_index_add.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_index_built_on.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_index_check.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_index_claims.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_index_docs_descendants.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_index_render.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_index_schema.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_init.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_input_hygiene.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_json.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_json_control_chars.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_json_stdout.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_judged_as.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_lake_cache_systemd.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_lake_hygiene.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_large_artifacts_recipe.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_lean_diag.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_lean_scan_extract.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_lease.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_lease_actor.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_lease_expiry_notice.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_lease_registry_stamp.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_ledger_exact_covers.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_ledger_golden.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_lifecycle_notes.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_llms.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_locking.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_manuscript_findings.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_mathlib_none.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_migrate.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_migrate_v3.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_namespace_notes.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_new.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_next.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_noninteractive.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_outputs_golden.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_package_fields.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_packaging.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_page.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_page_repo_head.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_page_site.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_palomar_check.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_palomar_prepare.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_palomar_snapshot.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_paper.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_port_modules.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_prior_art.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_producer_skew.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_promote_audit.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_promote_scope.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_public_allow.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_public_safety.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_public_safety_gzip.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_public_safety_long_line_stream.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_public_safety_scope.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_publication_hold.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_publish.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_receipt_check.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_receipt_check_opt_in.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_receipt_ci.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_receipt_container.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_receipt_private_scan.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_receipt_producer.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_receipt_slurm.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_receipt_slurm_artifacts.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_receipt_slurm_contracts_preflight.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_receipt_slurm_fill_plan.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_receipt_slurm_preflight_deps.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_receipt_slurm_runtime_preflight.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_receipt_slurm_sacct_seal.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_receipt_slurm_template_src.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_receipt_subdir_package.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_receipt_systemd.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_recommended.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_record.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_record_evidence.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_record_transitions.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_refresh_descendant.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_register.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_registry_core.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_registry_snapshot.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_release_script.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_release_version.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_repo_override.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_report.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_report_log_required.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_reservoir_check.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_review_fixes_prior_art.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_robustness.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_seal_bundle.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_search.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_search_completeness.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_search_declarations.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_search_field_coverage.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_search_scan.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_search_sources.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_sibling_packages.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_signoff_sidecar.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_sites.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_skills.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_smoke_configs.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_source_paper_ai.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_stack_opt_in.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_stacks.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_statements_module.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_status_scope.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_subdir_package.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_template_module_headers.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_toolchain_advisories.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_toolchain_floor.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_trust.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_update_publication_fields.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_update_relocate.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_upgrade.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_user_default.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_validate.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_verdict_first.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_verify_preflight.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_verify_workflow_oidc.py +0 -0
- {lean_pkg-0.27.0 → lean_pkg-0.28.0}/tests/test_wiki.py +0 -0
|
@@ -9,6 +9,59 @@ 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
|
+
|
|
12
65
|
## [0.27.0] - 2026-11-07
|
|
13
66
|
|
|
14
67
|
### Added
|
|
@@ -97,6 +150,8 @@ full policy, and the criteria for 1.0.0, are in RELEASING.md, "When to tag".
|
|
|
97
150
|
|
|
98
151
|
public-safety (make public-safety, --strict, history): 0 hit(s) (0 tree, 0 history); 0 blocking, 0 warning(s)
|
|
99
152
|
|
|
153
|
+
Zenodo version DOI: [10.5281/zenodo.24041994](https://doi.org/10.5281/zenodo.24041994)
|
|
154
|
+
|
|
100
155
|
## [0.26.0] - 2026-11-06
|
|
101
156
|
|
|
102
157
|
### Added
|
|
@@ -6,8 +6,8 @@ authors:
|
|
|
6
6
|
- family-names: Chen
|
|
7
7
|
given-names: Le
|
|
8
8
|
affiliation: "Auburn University"
|
|
9
|
-
version: "0.
|
|
10
|
-
date-released: "2026-11-
|
|
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
|
|
@@ -201,6 +201,9 @@ identifiers:
|
|
|
201
201
|
- type: doi
|
|
202
202
|
value: 10.5281/zenodo.24025862
|
|
203
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
|
|
204
207
|
url: "https://lean-pkg.github.io/lean-pkg/"
|
|
205
208
|
keywords:
|
|
206
209
|
- Lean 4
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lean-pkg
|
|
3
|
-
Version: 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.
|
|
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.
|
|
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).
|
|
@@ -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).
|
|
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
|
-
|
|
314
|
-
|
|
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), 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
|
|
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> (
|
|
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
|
|
|
@@ -712,7 +712,51 @@ SETUP_STAGES = STAGES[:3]
|
|
|
712
712
|
STAGES_DIR = "comparator-stages"
|
|
713
713
|
STAGES_FILE = "stages.json"
|
|
714
714
|
STAGES_SCHEMA = "comparator-stages/1"
|
|
715
|
-
|
|
715
|
+
# The default evidence directory sits in the project but outside .lake, which `lake clean` and disk cleanups
|
|
716
|
+
# delete whole (a cleanup took a package's stage logs on 2026-11-09). Its parent ignores itself for git (a
|
|
717
|
+
# .gitignore holding `*`, which also matches the .gitignore) and carries a README saying what it holds. Evidence
|
|
718
|
+
# a run left at the legacy default under .lake is used in place while the new default does not exist; lean-pkg
|
|
719
|
+
# never moves or deletes it, and prints the command that moves it.
|
|
720
|
+
EVIDENCE_ROOT = pathlib.Path(".lean-pkg-evidence")
|
|
721
|
+
DEFAULT_EVIDENCE = EVIDENCE_ROOT / "comparator-receipt"
|
|
722
|
+
LEGACY_EVIDENCE = pathlib.Path(".lake") / "comparator-receipt" # the default before 0.28.0
|
|
723
|
+
EVIDENCE_GITIGNORE = "# written by lean-pkg: git ignores everything here, this file included\n*\n"
|
|
724
|
+
EVIDENCE_README = """\
|
|
725
|
+
Written by lean-pkg (comparator-receipt). Do not delete this directory with build cleanups.
|
|
726
|
+
|
|
727
|
+
It holds the comparator runner's evidence for this checkout: the stage logs and stages.json of the
|
|
728
|
+
last run (comparator-receipt/comparator-stages/), the olean manifest, the per-unit judge logs and,
|
|
729
|
+
under comparator-stages/attempts/NNN/, read-only records of earlier runs. lean-pkg never deletes an
|
|
730
|
+
attempt; prune one by hand (docs/comparator.md, "Stages and --prepare"). The committed receipts live in
|
|
731
|
+
.lean-receipts/, not here. git ignores this directory (its .gitignore holds `*`).
|
|
732
|
+
"""
|
|
733
|
+
|
|
734
|
+
|
|
735
|
+
def default_evidence(project: pathlib.Path) -> tuple[pathlib.Path, str | None]:
|
|
736
|
+
"""The evidence directory to use when --evidence-dir is not given, and a notice when it is the legacy one:
|
|
737
|
+
<project>/.lake/comparator-receipt is used in place while it holds stage files and the new default does not
|
|
738
|
+
exist, so a resume, --attempts or --verify-oleans still finds an earlier run's evidence."""
|
|
739
|
+
new, old = project / DEFAULT_EVIDENCE, project / LEGACY_EVIDENCE
|
|
740
|
+
if not new.exists() and (old / STAGES_DIR).is_dir():
|
|
741
|
+
return old, (f"using the evidence under {LEGACY_EVIDENCE.as_posix()}/ (the default before 0.28.0, which "
|
|
742
|
+
f"`lake clean` deletes); to keep it, move it: mkdir -p {EVIDENCE_ROOT.as_posix()} && "
|
|
743
|
+
f"mv {LEGACY_EVIDENCE.as_posix()} {DEFAULT_EVIDENCE.as_posix()}")
|
|
744
|
+
return new, None
|
|
745
|
+
|
|
746
|
+
|
|
747
|
+
def ensure_evidence_root(project: pathlib.Path, evidence: pathlib.Path) -> None:
|
|
748
|
+
"""Create <project>/.lean-pkg-evidence/ with its .gitignore and README when evidence is the new default;
|
|
749
|
+
an existing file is never rewritten, and any other evidence directory is left alone."""
|
|
750
|
+
root = project / EVIDENCE_ROOT
|
|
751
|
+
if evidence.resolve() != (project / DEFAULT_EVIDENCE).resolve():
|
|
752
|
+
return
|
|
753
|
+
root.mkdir(parents=True, exist_ok=True)
|
|
754
|
+
for name, text in ((".gitignore", EVIDENCE_GITIGNORE), ("README", EVIDENCE_README)):
|
|
755
|
+
f = root / name
|
|
756
|
+
if not f.exists():
|
|
757
|
+
f.write_text(text)
|
|
758
|
+
|
|
759
|
+
|
|
716
760
|
LAKE_CMD_ENV = "COMPARATOR_LAKE" # the lake the setup stages run (default: `lake` on PATH)
|
|
717
761
|
DONE = ("ok", "skipped", "prepared")
|
|
718
762
|
|
|
@@ -2041,7 +2085,10 @@ def run(project: pathlib.Path, check: pathlib.Path, host_policy: str = "",
|
|
|
2041
2085
|
out: pathlib.Path | None = None) -> dict:
|
|
2042
2086
|
if not (project / "lean-toolchain").is_file():
|
|
2043
2087
|
raise RunnerError(f"{project}: not a Lake project (no lean-toolchain)")
|
|
2044
|
-
|
|
2088
|
+
if evidence is None:
|
|
2089
|
+
evidence, legacy = default_evidence(project)
|
|
2090
|
+
if legacy:
|
|
2091
|
+
print(f"comparator-receipt: {legacy}", file=sys.stderr)
|
|
2045
2092
|
set_redactions(project, evidence=evidence) # #41: no checkout/evidence/HOME/TMPDIR path reaches a log or receipt
|
|
2046
2093
|
for what, where in (("--from-prepared", from_prepared), ("--evidence-dir", evidence)):
|
|
2047
2094
|
if where is not None and in_attempt(where): # a kept attempt is never reused, resumed or rewritten
|
|
@@ -2148,6 +2195,7 @@ def run(project: pathlib.Path, check: pathlib.Path, host_policy: str = "",
|
|
|
2148
2195
|
except ValueError as e:
|
|
2149
2196
|
raise RunnerError(f"{e}; nothing written") from e
|
|
2150
2197
|
stack_lines += thread_lines
|
|
2198
|
+
ensure_evidence_root(project, evidence)
|
|
2151
2199
|
stages = Stages(evidence, binding, prepare)
|
|
2152
2200
|
stages.resolution = resolution
|
|
2153
2201
|
stages.contracts_next = lambda: contracts_next(project, registry_args) # #397
|
|
@@ -2504,7 +2552,7 @@ def verify_oleans(project: pathlib.Path, where: pathlib.Path) -> dict:
|
|
|
2504
2552
|
def verify_oleans_main(args) -> int:
|
|
2505
2553
|
project = pathlib.Path(args.project).resolve()
|
|
2506
2554
|
where = pathlib.Path(args.verify_oleans).expanduser().resolve() if args.verify_oleans else \
|
|
2507
|
-
(pathlib.Path(args.evidence_dir).expanduser().resolve() if args.evidence_dir else project
|
|
2555
|
+
(pathlib.Path(args.evidence_dir).expanduser().resolve() if args.evidence_dir else default_evidence(project)[0])
|
|
2508
2556
|
try:
|
|
2509
2557
|
res = verify_oleans(project, where)
|
|
2510
2558
|
except RunnerError as e:
|
|
@@ -2523,7 +2571,7 @@ def verify_oleans_main(args) -> int:
|
|
|
2523
2571
|
def attempts_main(args) -> int:
|
|
2524
2572
|
project = pathlib.Path(args.project).resolve()
|
|
2525
2573
|
where = pathlib.Path(args.attempts).expanduser().resolve() if args.attempts else \
|
|
2526
|
-
(pathlib.Path(args.evidence_dir).expanduser().resolve() if args.evidence_dir else project
|
|
2574
|
+
(pathlib.Path(args.evidence_dir).expanduser().resolve() if args.evidence_dir else default_evidence(project)[0])
|
|
2527
2575
|
set_redactions(project, evidence=where)
|
|
2528
2576
|
res = list_attempts(where)
|
|
2529
2577
|
if args.json:
|
|
@@ -2607,7 +2655,9 @@ def add_arguments(ap: argparse.ArgumentParser) -> None:
|
|
|
2607
2655
|
ap.add_argument("--evidence-dir", default=None, metavar="DIR",
|
|
2608
2656
|
help="where the stage logs and stages.json go (only those: the receipt goes to "
|
|
2609
2657
|
"<project>/.lean-receipts/ unless --out), kept on failure "
|
|
2610
|
-
f"(default: <project>/{DEFAULT_EVIDENCE.as_posix()}
|
|
2658
|
+
f"(default: <project>/{DEFAULT_EVIDENCE.as_posix()}, git-ignored, outside .lake so "
|
|
2659
|
+
f"`lake clean` keeps it; an earlier run's <project>/{LEGACY_EVIDENCE.as_posix()} is used in "
|
|
2660
|
+
f"place until moved; its {STAGES_DIR}/ subdirectory); "
|
|
2611
2661
|
"outside the project its path is written as <evidence> in every log and receipt")
|
|
2612
2662
|
ap.add_argument("--prepare", action="store_true",
|
|
2613
2663
|
help="run only the setup stages (dependency checkout, Mathlib cache, build of the "
|