Skip to main content

Logic definitions for Metamath projects

Project description

metamath-logic

metamath-logic is a small Python package that exports the “logic” layer used by ProofScaffold-based Metamath projects. It provides reusable propositional and predicate logic artifacts that downstream packages can depend on and link against.

Versioning

  • Package version: 0.0.2
  • ProofScaffold dependency: proof-scaffold==0.0.5
  • Prelude dependency: metamath-prelude==0.0.2

Installation

This package is published on PyPI: https://pypi.org/project/metamath-logic/

With uv:

uv add metamath-logic

What this package contains

  • A ProofScaffold build.py entrypoint that emits the logic layer as a linkable unit.
  • Authoring-facing propositional and predicate logic libraries (Hilbert-style systems).
  • A migration guide for the logic layer refactor.

Migration guide

Verification

This repository uses uv for reproducible installs and runs skfd verify --level 1 as the primary correctness gate.

From the metamath-logic/ directory:

uv sync --locked --dev
uv run --frozen ruff check .
uv run --frozen mypy .
uv run --frozen python -m pytest
uv run --frozen skfd verify --level 1 metamath-logic

skfd verify builds the package into a verification monolith (under target/) and checks it with the configured verifiers.

When using a ProofScaffold version that supports proof coverage declarations, the package declares its Hilbert theorem registry during build(ctx). To require that every declared theorem is emitted into the verification monolith, run:

uv run --frozen skfd verify --coverage declared --level 1 metamath-logic

This is stricter than artifact verification and is expected to fail until the declared registry and emitted proof closure are aligned.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

metamath_logic-0.0.3.tar.gz (31.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

metamath_logic-0.0.3-py3-none-any.whl (38.0 kB view details)

Uploaded Python 3

File details

Details for the file metamath_logic-0.0.3.tar.gz.

File metadata

  • Download URL: metamath_logic-0.0.3.tar.gz
  • Upload date:
  • Size: 31.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for metamath_logic-0.0.3.tar.gz
Algorithm Hash digest
SHA256 47a25dd50ff6800a18544b4c66afc91641825994e37a39831e28454875fbe569
MD5 871a7933ce23a5c7055f9e1f72af2cd0
BLAKE2b-256 b9ab289628e750463187e8b716109ddc38843439219bf3cb5a16c4f099b7d9e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for metamath_logic-0.0.3.tar.gz:

Publisher: release.yml on epistemic-frontier/metamath-logic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file metamath_logic-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: metamath_logic-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 38.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for metamath_logic-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dd52a8d2a8949fc2b58267e0efd93891a627c2fac26e7c00d1db0d2445f09e08
MD5 88ee9ced1eaea80ea30969b81dea856f
BLAKE2b-256 f4ea32eb2073104d190a66e3b9cb2bf57bbda2e447460a6c82dbed21890d7adf

See more details on using hashes here.

Provenance

The following attestation bundles were made for metamath_logic-0.0.3-py3-none-any.whl:

Publisher: release.yml on epistemic-frontier/metamath-logic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page