{"id":32443386,"url":"https://github.com/leanprover/adt","last_synced_at":"2026-07-13T15:31:26.461Z","repository":{"id":314160295,"uuid":"1053871095","full_name":"leanprover/adt","owner":"leanprover","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-12T00:07:23.000Z","size":127,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-21T13:12:49.572Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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":"CONTRIBUTING.md","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":null,"dco":null,"cla":null}},"created_at":"2025-09-10T03:52:40.000Z","updated_at":"2025-10-08T17:17:03.000Z","dependencies_parsed_at":"2025-09-11T00:20:50.441Z","dependency_job_id":"b04f8cb4-c05e-4507-be99-651bee63a00e","html_url":"https://github.com/leanprover/adt","commit_stats":null,"previous_names":["leanprover/adt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leanprover/adt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanprover%2Fadt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanprover%2Fadt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanprover%2Fadt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanprover%2Fadt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leanprover","download_url":"https://codeload.github.com/leanprover/adt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanprover%2Fadt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35427834,"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-13T02:00:06.543Z","response_time":119,"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":"2025-10-26T03:01:10.799Z","updated_at":"2026-07-13T15:31:26.457Z","avatar_url":"https://github.com/leanprover.png","language":"Lean","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ADT\nAbstract Datatypes for Lean 4\n\nThis library defines uniform APIs for data structures that have common operations:\n* Dependently typed maps: `DHashMap`, `DTreeMap`, `ExtDHashMap`, `ExtDTreeMap`\n* Maps: `HashMap`, `TreeMap`, `ExtHashMap`, `ExtTreeMap`\n* Sets: `HashSet`, `TreeSet`, `ExtHashSet`, `ExtTreeSet`\n\nTo increase modularity, this library also have low-level typeclasses for basic operations on data structures\n* The `Size` class: `Size.size`\n* The `Foldl`, `FoldlM`, `Foldr`, and `FoldrM` classes: `Foldl.foldl`, `FoldlM.foldlM`, `Foldr.foldr`, `FoldrM.foldrM`\n* The `ToList` class: `ToList.toList`\n* The `DGetElem` and `DGetElem?` classes: `dGetElem, dGetElem?` and `dGetElem!`. We also defined notations for these operations\n  * `dGetElem`: `x[m]ᵈ`\n  * `dGetElem?`: `x[m]ᵈ?`\n  * `dGetElem!`: `x[m]ᵈ!`\n\nThe `IndexMap` file is an example use case of the `MapLike` class. We also included a utility that automatically generates equational theorems for functions that return structure instances. This utility is used by `IndexMap`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleanprover%2Fadt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleanprover%2Fadt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleanprover%2Fadt/lists"}