Skip to main content

A command line tool to help improve the quality of Lean code by converting any "simp" to "simp only".

Project description

Simpleafier

Simpleafier is a command line tool to help improve the quality of Lean code by converting any simp to simp only. This can help make Lean proofs more robust and maintainable by restricting the set of lemmas used by simp.

Requirements

  • Python 3.6+
  • Lean 4
  • lake must be installed and available in your PATH.

Installation

Simpleafier is available on PyPI and can be installed using pip.

python -m pip install simpleafier

Usage

To convert all simp calls in a Lean file to simp only:

simpleafier path/to/your/file.lean --simponly

simpleafier must be invoked from the root of your lake project. The lean file provided must be compilable without any errors. simpleafier will create a temporary file in the same directory as the original file for processing. At the end of the process, the temporary file will be deleted and the original file will be replaced with the modified version.

[!WARNING] This tool is still under development and does not guarantee perfect results. You may have to manually fix the output in some cases.

License

This project is licensed under the MIT License.

Contributing

Contributions, bug reports, and feature requests are welcome! Please open an issue or submit a pull request on GitHub.

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

simpleafier-0.1.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

Simpleafier-0.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file simpleafier-0.1.0.tar.gz.

File metadata

  • Download URL: simpleafier-0.1.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for simpleafier-0.1.0.tar.gz
Algorithm Hash digest
SHA256 91fae27c646d08948dcb1ee49582c4deba7e00cd0de944afb3628a15a2c4b35d
MD5 8828fcd574237a34015539197fcb84ed
BLAKE2b-256 6b0c52af2920e47084328682c3f1b661e404cbf8af557778c6b4188a5297e7ab

See more details on using hashes here.

File details

Details for the file Simpleafier-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: Simpleafier-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for Simpleafier-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 85de12bb35bee75e1cafb476e64f0e983266854b5a394f95556545b7ce05a6ea
MD5 15ea15d0234f87b2c2be61fedb886ddf
BLAKE2b-256 3e8e51143ae59abf66810155e47a31f79598af443dfae0c35f0773173f336416

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