{"id":28220168,"url":"https://github.com/mrigankpawagi/simpleafier","last_synced_at":"2026-05-02T03:06:36.013Z","repository":{"id":288597029,"uuid":"968647043","full_name":"mrigankpawagi/simpleafier","owner":"mrigankpawagi","description":"Command line tool to help improve the quality of Lean code by converting any \"simp\" to \"simp only\".","archived":false,"fork":false,"pushed_at":"2025-04-18T16:52:34.000Z","size":18,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-26T00:59:23.471Z","etag":null,"topics":["code-quality","lean4","python-module"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/Simpleafier","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrigankpawagi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-18T13:16:54.000Z","updated_at":"2025-05-05T04:59:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"e1d8ff94-aaf7-404b-9468-40e47a3f2065","html_url":"https://github.com/mrigankpawagi/simpleafier","commit_stats":null,"previous_names":["mrigankpawagi/simpleafier"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mrigankpawagi/simpleafier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrigankpawagi%2Fsimpleafier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrigankpawagi%2Fsimpleafier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrigankpawagi%2Fsimpleafier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrigankpawagi%2Fsimpleafier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrigankpawagi","download_url":"https://codeload.github.com/mrigankpawagi/simpleafier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrigankpawagi%2Fsimpleafier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32521113,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-quality","lean4","python-module"],"created_at":"2025-05-18T04:14:37.655Z","updated_at":"2026-05-02T03:06:36.003Z","avatar_url":"https://github.com/mrigankpawagi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simpleafier\n\nSimpleafier 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`.\n\n## Requirements\n\n- Python 3.6+\n- Lean 4\n- `lake` must be installed and available in your PATH.\n\n## Installation\n\nSimpleafier is available on PyPI and can be installed using `pip`.\n\n```bash\npython -m pip install Simpleafier\n```\n\n## Usage\n\nTo convert all `simp` calls in a Lean file to `simp only`:\n\n```bash\npython -m simpleafier path/to/your/file.lean --simponly --fast\n```\n\n`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.\n\nThe `--fast` flag provides significantly faster processing, but may result in less accurate results that may need more manual fixes. However it is currently the **recommended mode** for using `simpleafier` as it is more stable and gives reasonably good results.\n\n\u003e [!WARNING]\n\u003e This tool is still under development and does not guarantee perfect results. You may have to manually fix the output in some cases.\n\n\u003e [!NOTE]\n\u003e At the end of this processing, your code might contain some `simp only` or `simp only at ...` statements that may not be necessary. These are currently not automatically removed.\n\n## License\n\nThis project is licensed under the MIT License.\n\n## Contributing\n\nContributions, bug reports, and feature requests are welcome! Please open an issue or submit a pull request on GitHub.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrigankpawagi%2Fsimpleafier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrigankpawagi%2Fsimpleafier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrigankpawagi%2Fsimpleafier/lists"}