Skip to main content

Pre-alpha scanner for direct Mathlib dependency evidence.

Project description

zero-mathlib-checker

zero-mathlib-checker is a pre-alpha package for scanning a repository or fixture tree for direct Mathlib import/dependency evidence.

Mathlib is valuable. This tool is only for projects that intentionally choose a no-Mathlib dependency boundary.

Status

  • Version: 0.0.1
  • Published for early testing.
  • Not a theorem prover.
  • Not a safety certifier.
  • Not production controller evidence.
  • Not a replacement for Mathlib.
  • No public theorem/proof/open-problem claim.

Install

python -m pip install zero-mathlib-checker

For repository development:

python -m pip install -e package_candidates/zero_mathlib_checker

Usage

zero-mathlib-checker scan .
zero-mathlib-checker scan . --json
zero-mathlib-checker scan . --allow-policy-text
zero-mathlib-checker scan . --include "*.lean"
zero-mathlib-checker scan . --exclude-dir node_modules
python -m zero_mathlib_checker.cli scan . --json

JSON Output Example

{
  "dependency_evidence_count": 0,
  "direct_match_count": 0,
  "evidence": [],
  "passed": true,
  "policy_text_count": 0,
  "root": "/path/to/repo",
  "scanned_files": 1,
  "skipped_files": 0
}

Exit Codes

  • 0: no dependency evidence found
  • 1: dependency evidence found

Scanner Scope

The scanner recursively reads text-like files, skips common cache/build/vendor directories, and detects:

  • IMPORT_MATHLIB
  • FROM_MATHLIB
  • MATHLIB_DOT_REFERENCE
  • MATHLIB_DEPENDENCY_DECLARATION

Policy or historical text can be ignored only when the line is explicitly marked and --allow-policy-text is set.

Relationship To Monogate/MachLib

This package is a small evidence-boundary helper used around Monogate/MachLib workflows. It can support a no-Mathlib dependency policy, but it does not replace repository-specific gates, review, or human judgment.

Limitations

  • String-pattern scanner only.
  • Does not certify a repository.
  • Does not validate proofs or theorem content.
  • Does not upload, deploy, or publish anything.
  • Does not handle credentials or tokens.

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

zero_mathlib_checker-0.0.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

zero_mathlib_checker-0.0.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file zero_mathlib_checker-0.0.1.tar.gz.

File metadata

  • Download URL: zero_mathlib_checker-0.0.1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for zero_mathlib_checker-0.0.1.tar.gz
Algorithm Hash digest
SHA256 433a5abcd930ae3ee4ffc9e874426456863ed74c6b805700116911a3c66b5102
MD5 eb57f8d9ad9ef532587f6cef7262aec5
BLAKE2b-256 2470bdb0497f8e9edbb2e690d1ca61669571aa4160f6f34818d3d34b3365ec30

See more details on using hashes here.

File details

Details for the file zero_mathlib_checker-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for zero_mathlib_checker-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d67e38f3aa00201c6944d896d152d78c1911a191139fe9d1c099bd21e036a02b
MD5 c10e47ab90ead5c89f19c12d5008a659
BLAKE2b-256 04201720809589fd8af2d15dbbf7576f91dad6362c1864ddfa28e7d36e1ba05a

See more details on using hashes here.

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