{"id":13992795,"url":"https://github.com/ufmg-smite/lean-smt","last_synced_at":"2026-04-07T13:32:17.767Z","repository":{"id":37229816,"uuid":"431250460","full_name":"ufmg-smite/lean-smt","owner":"ufmg-smite","description":"Tactics for discharging Lean goals into SMT solvers.","archived":false,"fork":false,"pushed_at":"2026-04-05T20:53:28.000Z","size":1110,"stargazers_count":273,"open_issues_count":22,"forks_count":36,"subscribers_count":8,"default_branch":"main","last_synced_at":"2026-04-05T22:23:20.415Z","etag":null,"topics":["lean4","smt"],"latest_commit_sha":null,"homepage":"","language":"Lean","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ufmg-smite.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-11-23T20:54:14.000Z","updated_at":"2026-04-01T23:58:17.000Z","dependencies_parsed_at":"2025-12-30T07:05:37.625Z","dependency_job_id":null,"html_url":"https://github.com/ufmg-smite/lean-smt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ufmg-smite/lean-smt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufmg-smite%2Flean-smt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufmg-smite%2Flean-smt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufmg-smite%2Flean-smt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufmg-smite%2Flean-smt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ufmg-smite","download_url":"https://codeload.github.com/ufmg-smite/lean-smt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufmg-smite%2Flean-smt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31515144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["lean4","smt"],"created_at":"2024-08-09T14:02:08.356Z","updated_at":"2026-04-07T13:32:17.750Z","avatar_url":"https://github.com/ufmg-smite.png","language":"Lean","funding_links":[],"categories":["Lean","Packages"],"sub_categories":[],"readme":"# Lean-SMT\n\nThis project provides Lean tactics to discharge goals into SMT solvers.\nIt is under active development and is currently in a beta phase. While it is\nusable, it is important to note that there are still some rough edges and\nongoing improvements being made.\n\n## Supported Theories\n`lean-smt` currently supports the theories of Uninterpreted Functions and Linear\nInteger/Real Arithmetic with quantifiers. Mathlib is required for Real\nArithmetic. Support for the theory of Bitvectors is at an experimental stage.\nSupport for additional theories is in progress.\n\n## Setup\nTo use `lean-smt` in your project, add the following lines to your list of\ndependencies in `lakefile.toml`:\n```toml\n[[require]]\nname = \"smt\"\nscope = \"ufmg-smite\"\nrev = \"main\"\n```\nIf your build configuration is in `lakefile.lean`, add the following line to\nyour dependencies:\n```lean\nrequire smt from git \"https://github.com/ufmg-smite/lean-smt.git\" @ \"main\"\n```\n\n## Usage\n`lean-smt` comes with one main tactic, `smt`, that translates the current goal\ninto an SMT query, sends the query to cvc5, and (if the solver returns `unsat`)\nreplays cvc5's proof in Lean. cvc5's proofs may contain holes, returned as Lean\ngoals. You can fill these holes manually or with other tactics. To use the `smt`\ntactic, you just need to import the `Smt` library:\n```lean\nimport Smt\n\nexample [Nonempty U] {f : U → U → U} {a b c d : U}\n  (h0 : a = b) (h1 : c = d) (h2 : p1 ∧ True) (h3 : (¬ p1) ∨ (p2 ∧ p3))\n  (h4 : (¬ p3) ∨ (¬ (f a c = f b d))) : False := by\n  smt [h0, h1, h2, h3, h4]\n```\nTo use the `smt` tactic on Real arithmetic goals, import `Smt.Real`:\n```lean\nimport Smt\nimport Smt.Real\n\nexample (ε : Real) (h1 : ε \u003e 0) : ε / 2 + ε / 3 + ε / 7 \u003c ε := by\n  smt [h1]\n```\n`lean-smt` utilizes\n[`lean-auto`](https://github.com/leanprover-community/lean-auto) to monomorphize\ngoals in dependent type theory and higher-order logic into first-order logic.\nEnable auto's monomorphization procedure via `smt +mono`:\n```lean\nimport Smt\n\nvariable [Group G]\n\ntheorem inverse : ∀ (a : G), a * a⁻¹ = 1 := by\n  smt +mono [mul_assoc, one_mul, inv_mul_cancel]\n\ntheorem identity : ∀ (a : G), a * 1 = a := by\n  smt +mono [mul_assoc, one_mul, inv_mul_cancel, inverse]\n\ntheorem unique_identity : ∀ (e : G), (∀ a, e * a = a) ↔ e = 1 := by\n  smt +mono [mul_assoc, one_mul, inv_mul_cancel]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fufmg-smite%2Flean-smt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fufmg-smite%2Flean-smt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fufmg-smite%2Flean-smt/lists"}