TinyLean
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
The typechecker knows if any case is impossible (i.e. dependent pattern matching):
def v0: Vec N Z := Nil
example :=
match v0 with
| Nil => Z
/- Cons is impossible, leaving it here yields errors. -/
So a bottom type eliminator is trivial via DPM:
inductive Weird (n: N) where
| MkWeird (n := Z)
open Weird
/- Impossible to construct a term for type `Weird (S Z)`. -/
example {A: Type} (x: Weird (S Z)): A := nomatch x
License
MIT
Metadata
Release files for TinyLean 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tinylean-0.7.0.tar.gz | 21.4 kB | With provenance | Details for tinylean-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tinylean-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for tinylean-0.7.0-py3-none-any.whl |
Total release size: 45.1 kB
Release files / tinylean-0.7.0.tar.gz
| Download URL | tinylean-0.7.0.tar.gz |
|---|---|
| Size | 21.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3dd660e625158a927645803cee77c15c3d7ec916f50ce2cec073cf5a58e3299f
|
|
BLAKE2b-256 checksum How to use checksums |
b7d26bbe44460a0d9043a863495e1394da4b3787680fd5fa7756d7835c43a1a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 11, 2025.
Transparency logRelease files / tinylean-0.7.0-py3-none-any.whl
| Download URL | tinylean-0.7.0-py3-none-any.whl |
|---|---|
| Size | 23.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
92b60fa7c9775257423be75865ec3ff95cc2b302852c8256283a2dfdaef0a00f
|
|
BLAKE2b-256 checksum How to use checksums |
d3c52f4f815c83be359c0f43a17d821c162733b454896fdf5023627f72c7b94e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 11, 2025.
Transparency logSecurity for TinyLean 0.7.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for tinylean-0.7.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 11, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.