{"id":16312505,"url":"https://github.com/kiranandcode/cleango","last_synced_at":"2025-03-22T20:35:10.163Z","repository":{"id":236252139,"uuid":"792230911","full_name":"kiranandcode/cleango","owner":"kiranandcode","description":"Bindings to libclingo for the lean4 prover and programming language!","archived":false,"fork":false,"pushed_at":"2024-07-03T15:10:56.000Z","size":89,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-11T21:48:30.377Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kiranandcode.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}},"created_at":"2024-04-26T08:39:14.000Z","updated_at":"2024-07-03T15:11:00.000Z","dependencies_parsed_at":"2024-04-26T09:46:40.642Z","dependency_job_id":"b2b55c1a-3721-42fb-acb4-401ed35f06d7","html_url":"https://github.com/kiranandcode/cleango","commit_stats":null,"previous_names":["gopiandcode/cleango","kiranandcode/cleango"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiranandcode%2Fcleango","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiranandcode%2Fcleango/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiranandcode%2Fcleango/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiranandcode%2Fcleango/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kiranandcode","download_url":"https://codeload.github.com/kiranandcode/cleango/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221839292,"owners_count":16889592,"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","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":"2024-10-10T21:48:16.457Z","updated_at":"2025-03-22T20:35:10.139Z","avatar_url":"https://github.com/kiranandcode.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CLeanGo - Bindings to libclingo for Lean 4\n\nThis repository includes bindings to the Clingo ASP programming system\nfor the Lean 4 Theorem Prover.\n\nThe bindings are currently work in progress, but the final goal is to\nhave a DSL from which you can write Clingo queries in Lean and have\nthen sent directly to Clingo and their results returned in a Lean\nformat.\n\nUsing: https://github.com/Anderssorby/SDL.lean/blob/main/bindings/sdl2-shim.c and https://github.com/leanprover/lean4/blob/master/src/include/lean/lean.h for reference\n\nRequires Clingo 5.4.0 (important, as the FFI has changed in newer releases).\n\nExample file:\n\n```lean\ndef main : IO Unit := do\n\n   let control \u003c- Clingo.makeControl\n\n   add_clingo_query! control :\n\n     p(X) :- q(X).\n     q(a).\n     q(b).\n\n\n   Clingo.ground control\n   Clingo.solve control\n\n   println! \"finished!\"\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiranandcode%2Fcleango","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkiranandcode%2Fcleango","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiranandcode%2Fcleango/lists"}