{"id":50708496,"url":"https://github.com/fraware/lean-containers","last_synced_at":"2026-06-09T13:31:54.888Z","repository":{"id":363509157,"uuid":"1055697843","full_name":"fraware/lean-containers","owner":"fraware","description":"lean-containers is a container library for Lean 4 that provides type-safe, mathematically rigorous implementations of container types and operations. ","archived":false,"fork":false,"pushed_at":"2026-06-09T08:12:30.000Z","size":104,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-09T08:31:09.693Z","etag":null,"topics":["category-theory","lean4","polynomial-functors","type-theory","w-types"],"latest_commit_sha":null,"homepage":"","language":"Batchfile","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/fraware.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":"CODEOWNERS","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-12T16:55:30.000Z","updated_at":"2026-06-09T08:12:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/fraware/lean-containers","commit_stats":null,"previous_names":["fraware/lean-containers"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/fraware/lean-containers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fraware%2Flean-containers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fraware%2Flean-containers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fraware%2Flean-containers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fraware%2Flean-containers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fraware","download_url":"https://codeload.github.com/fraware/lean-containers/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fraware%2Flean-containers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34110011,"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-06-09T02:00:06.510Z","response_time":63,"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":["category-theory","lean4","polynomial-functors","type-theory","w-types"],"created_at":"2026-06-09T13:31:54.230Z","updated_at":"2026-06-09T13:31:54.881Z","avatar_url":"https://github.com/fraware.png","language":"Batchfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# lean-containers\n\n`lean-containers` is a Lean 4 library for container signatures, polynomial functors, and W-types.  \nThe package is intentionally small, mathlib-free, and focused on a clear core API.\n\n\u003c/div\u003e\n\n## Install and import\n\nAdd this to your `Lakefile.lean`:\n\n```lean\nrequire lean-containers from git\n  \"https://github.com/fraware/lean-containers.git\" @ \"v0.1.0\"\n```\n\nThen import:\n\n```lean\nimport Containers\n```\n\n## Minimal example\n\n```lean\nimport Containers\n\nopen Containers\n\ndef p : Poly ListSig Nat :=\n  { shape := some (), children := fun _ =\u003e 42 }\n\n#check Poly.map (fun n =\u003e n + 1) p\n```\n\n## API surface\n\n- `Container`: container signatures (`shape`, `pos`)\n- `Poly sig α`: polynomial functor representation\n- `Poly.map`: functorial map on `Poly`\n- `W sig`, `W.fold`: inductive W-types and fold\n- `M sig`: nominal placeholder for future coalgebra-oriented expansion\n- example signatures: `ListSig`, `TreeSig`\n\n## Compatibility\n\n| Item | Value |\n|------|-------|\n| Lean toolchain | `leanprover/lean4:v4.31.0-rc2` (`lean-toolchain`) |\n| Lake manifest | root `lake-manifest.json` |\n| Package version | `0.1.0` (`VERSION`) and `v!\"0.1.0\"` in `Lakefile.lean` |\n| SPDX license | `MIT` |\n\n## Local development\n\n```bash\nlake build\nlake env lean FinalProductionTest.lean\nlake exe lean-containers\n```\n\nWindows release checks:\n\n```bat\nscripts\\check-release-consistency.bat\n```\n\nUnix release checks:\n\n```bash\nbash scripts/check-release-consistency.sh\n```\n\n## Docker (optional)\n\n```bash\ndocker build -t lean-containers .\ndocker run --rm lean-containers Main.lean\ndocker run --rm lean-containers FinalProductionTest.lean\n```\n\n## Scope and limitations\n\n- No mathlib dependency\n- No category-theory bridge layer yet\n- `M sig` is not a full final-coalgebra development\n\n## Contributing\n\nSee `CONTRIBUTING.md`.\n\n## Maintainer release process\n\nSee `DISTRIBUTION_README.md`.\n\n## License\n\nMIT license in `LICENSE`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffraware%2Flean-containers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffraware%2Flean-containers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffraware%2Flean-containers/lists"}