{"id":29315196,"url":"https://github.com/wvhulle/ennreal-arith","last_synced_at":"2026-07-07T04:31:27.055Z","repository":{"id":303065545,"uuid":"1013347752","full_name":"wvhulle/ennreal-arith","owner":"wvhulle","description":"Simplify arithmetic expressions of ENNReal numbers in Lean4","archived":false,"fork":false,"pushed_at":"2025-07-13T19:35:16.000Z","size":115,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-13T21:25:47.761Z","etag":null,"topics":["arithmetic","ennreal","lean4","mathematics","mathlib4","probability","proof-assistant","real","tactic"],"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/wvhulle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-07-03T18:43:29.000Z","updated_at":"2025-07-13T19:37:06.000Z","dependencies_parsed_at":"2025-07-05T13:54:37.335Z","dependency_job_id":"4c134e39-6a5f-47a6-b93a-bee1943d0bef","html_url":"https://github.com/wvhulle/ennreal-arith","commit_stats":null,"previous_names":["wvhulle/ennreal-arith"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wvhulle/ennreal-arith","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wvhulle%2Fennreal-arith","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wvhulle%2Fennreal-arith/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wvhulle%2Fennreal-arith/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wvhulle%2Fennreal-arith/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wvhulle","download_url":"https://codeload.github.com/wvhulle/ennreal-arith/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wvhulle%2Fennreal-arith/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266726609,"owners_count":23974925,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["arithmetic","ennreal","lean4","mathematics","mathlib4","probability","proof-assistant","real","tactic"],"created_at":"2025-07-07T11:20:14.326Z","updated_at":"2025-10-26T10:04:14.848Z","avatar_url":"https://github.com/wvhulle.png","language":"Lean","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arithmetic simplification for ENNReal\n\nENNReal appears frequently in Mathlib's probability theory and measure theory. This library provides a tactic `eq_as_reals` for ENNReal (extended non-negative real) numbers or arithmetic expressions. \n\n## Installation\n\nAdd this project as a dependency to your `lakefile.toml`:\n\n```toml\n[[require]]\nscope = \"wvhulle\"\nname = \"ennreal-arith\"\nrev = \"main\" # or a specific commit\n```\n\nOr if you use `leanfile.lean`, \n\n```lean\nimport Lake\nopen Lake DSL \n\nrequire «ennreal-arith» from git\n  \"https://github.com/wvhulle/ennreal-arith.git\" @ \"[COMMIT_HASH]\"\n```\n\n\n## Usage\n\nImport in your Lean files:\n\n```lean\nimport ENNRealArith\n```\n\nUse the `eq_as_reals` tactic to prove equality of probabilities (`ENNReal` in Mathlib4), lifted into the real numbers:\n\n```lean\nexample : (↑2 : ENNReal) * 1 + ↑3 * 0 + ↑5 = ↑7 := by eq_as_reals\n\nexample (a : ℕ) (ha : a ≠ 0) : (↑a : ENNReal) / ↑a = 1 := by eq_as_reals\n\nexample (a b c : ℕ) (hc : c ≠ 0) : \n  (↑(a * c) : ENNReal) / (↑(b * c)) = ↑a / ↑b := by eq_as_reals\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwvhulle%2Fennreal-arith","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwvhulle%2Fennreal-arith","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwvhulle%2Fennreal-arith/lists"}