{"id":51428379,"url":"https://github.com/leanprover/hex","last_synced_at":"2026-07-05T03:00:28.217Z","repository":{"id":367530800,"uuid":"1279210826","full_name":"leanprover/hex","owner":"leanprover","description":"Verified computational algebra in Lean 4: aggregator for the released hex libraries","archived":false,"fork":false,"pushed_at":"2026-07-04T05:53:22.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-04T07:31:00.038Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://kim-em.github.io/hex-dev/","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/leanprover.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":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-06-24T13:28:19.000Z","updated_at":"2026-07-04T05:53:26.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/leanprover/hex","commit_stats":null,"previous_names":["kim-em/hex","leanprover/hex"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/leanprover/hex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanprover%2Fhex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanprover%2Fhex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanprover%2Fhex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanprover%2Fhex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leanprover","download_url":"https://codeload.github.com/leanprover/hex/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanprover%2Fhex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35141966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-05T02:00:06.290Z","response_time":100,"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":[],"created_at":"2026-07-05T03:00:21.377Z","updated_at":"2026-07-05T03:00:28.196Z","avatar_url":"https://github.com/leanprover.png","language":"Lean","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hex\n\nVerified computational algebra in Lean 4: an aggregator for the released\n`hex` libraries.\n\n- Manual: \u003chttps://kim-em.github.io/hex-dev/\u003e\n- API documentation: \u003chttps://leanprover.github.io/hex/docs\u003e\n\n# Quickstart\n\nAdd to your `lakefile.toml`:\n\n```toml\n[[require]]\nname = \"hex\"\ngit = \"https://github.com/leanprover/hex.git\"\nrev = \"main\"\n```\n\nThen `import Hex` re-exports every library in the table below at a single\ncoherent pinned set:\n\n```lean\nimport Hex\n\nopen Hex\n\n-- Exact, fraction-free integer determinant.\ndef M : Matrix Int 3 3 := #m[2, 1, 1; 1, 2, 1; 1, 1, 2]\n#eval M.det   -- 4\n\n-- LLL: reduce an integer lattice basis and read off a provably short vector.\n-- The `by decide` arguments discharge the reduction-factor side conditions.\ndef L : Matrix Int 3 3 := #m[1, 1, 1; 1, 0, 2; 3, 5, 6]\n#eval lllNative.firstShortVector L (3 / 4) (by decide +kernel) (by decide +kernel) (by decide)\n```\n\nTo depend on just one piece, require that library directly (for example\n[`hex-lll`](https://github.com/leanprover/hex-lll) for the Mathlib-free LLL\ncore) instead of the aggregator.\n\n# Libraries\n\nEach computational library is Mathlib-free; its Mathlib correspondence proofs\nand Mathlib-facing API, where they exist, live in a separate `*-mathlib`\nlibrary.\n\n| Component | Computational | Mathlib layer |\n|---|---|---|\n| Foundations | [HexBasic](https://github.com/leanprover/hex-basic) | — |\n| Matrices | [HexMatrix](https://github.com/leanprover/hex-matrix) | [HexMatrixMathlib](https://github.com/leanprover/hex-matrix-mathlib) |\n| Row reduction | [HexRowReduce](https://github.com/leanprover/hex-row-reduce) | [HexRowReduceMathlib](https://github.com/leanprover/hex-row-reduce-mathlib) |\n| Determinants | [HexDeterminant](https://github.com/leanprover/hex-determinant) | [HexDeterminantMathlib](https://github.com/leanprover/hex-determinant-mathlib) |\n| Bareiss | [HexBareiss](https://github.com/leanprover/hex-bareiss) | [HexBareissMathlib](https://github.com/leanprover/hex-bareiss-mathlib) |\n| Gram-Schmidt | [HexGramSchmidt](https://github.com/leanprover/hex-gram-schmidt) | [HexGramSchmidtMathlib](https://github.com/leanprover/hex-gram-schmidt-mathlib) |\n| LLL | [HexLLL](https://github.com/leanprover/hex-lll) | [HexLLLMathlib](https://github.com/leanprover/hex-lll-mathlib) |\n\nDevelopment of the full project (including unreleased libraries) happens in the\n[`hex-dev`](https://github.com/kim-em/hex-dev) monorepo.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleanprover%2Fhex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleanprover%2Fhex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleanprover%2Fhex/lists"}