Skip to main content

Tiny theorem prover with syntax like Lean 4

Project description

TinyLean

Supported Python versions Lines of Python Test codecov

Tiny theorem prover in Python, with syntax like Lean 4.

Tour

An identity function in TinyLean:

def id {T: Type} (a: T): T := a

example := id Type

Inductive data types:

inductive Maybe (A: Type) where
| Nothing
| Just (a: A)
open Maybe

inductive N where
| Z
| S (n: N)
open N

inductive Vec (A: Type) (n: N) where
| Nil (n := Z)
| Cons {m: N} (a: A) (v: Vec A m) (n := S m)
open Vec

License

MIT

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

tinylean-0.4.0.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

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

TinyLean-0.4.0-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file tinylean-0.4.0.tar.gz.

File metadata

  • Download URL: tinylean-0.4.0.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tinylean-0.4.0.tar.gz
Algorithm Hash digest
SHA256 5122a1d2b4e8e96597213ef897333d3d29eb1b1d0e075bbb7ea530d45b833766
MD5 a002db4320576a15dcc69cf2dc70e071
BLAKE2b-256 b054c87345d468909f9282d45a501da543d92e6fa0dc66fe64a08bbcda0d9b6e

See more details on using hashes here.

Provenance

The following attestation bundles were made for tinylean-0.4.0.tar.gz:

Publisher: release.yml on anqurvanillapy/TinyLean

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

File details

Details for the file TinyLean-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: TinyLean-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for TinyLean-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 afe0590dde3d0c03a3ffe6c74a68fbfe8afd3dd4888aad0214723af051187944
MD5 fb54f2daccb0e5deac203dd28e70fe42
BLAKE2b-256 c6207088c9bf134a9a9e5e5e3e1fd57c20028c8393f054a0bde6c70f172ebcf5

See more details on using hashes here.

Provenance

The following attestation bundles were made for TinyLean-0.4.0-py3-none-any.whl:

Publisher: release.yml on anqurvanillapy/TinyLean

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