{"id":19125592,"url":"https://github.com/dwrensha/chess.lean","last_synced_at":"2025-10-24T20:16:48.973Z","repository":{"id":261842301,"uuid":"864514982","full_name":"dwrensha/Chess.lean","owner":"dwrensha","description":"Chess in Lean 4","archived":false,"fork":false,"pushed_at":"2025-09-30T18:32:46.000Z","size":32,"stargazers_count":21,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-30T20:24:51.597Z","etag":null,"topics":["lean4"],"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/dwrensha.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}},"created_at":"2024-09-28T12:28:48.000Z","updated_at":"2025-09-30T18:32:50.000Z","dependencies_parsed_at":"2025-08-18T05:26:09.322Z","dependency_job_id":"47a5b7fa-ab67-48dd-921d-106dd3a5c63a","html_url":"https://github.com/dwrensha/Chess.lean","commit_stats":null,"previous_names":["dwrensha/chess.lean"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dwrensha/Chess.lean","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwrensha%2FChess.lean","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwrensha%2FChess.lean/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwrensha%2FChess.lean/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwrensha%2FChess.lean/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dwrensha","download_url":"https://codeload.github.com/dwrensha/Chess.lean/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwrensha%2FChess.lean/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001894,"owners_count":26083226,"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-10-09T02:00:07.460Z","response_time":59,"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":["lean4"],"created_at":"2024-11-09T05:36:08.466Z","updated_at":"2025-10-09T18:39:03.511Z","avatar_url":"https://github.com/dwrensha.png","language":"Lean","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chess in Lean 4\n\nThis is an (incomplete) implementation of chess in the Lean 4 theorem prover.\n\nIt was originally developed as part of https://github.com/dwrensha/animate-lean-proofs.\n\n## Usage\n\nSee [Examples.lean](./Chess/Examples.lean)\n```lean\ntheorem morphy_mates_in_two :\n    ForcedWin .white\n      ╔════════════════╗\n      ║░░▓▓░░▓▓♚]♝]░░♜]║\n      ║♟]░░▓▓♞]▓▓♟]♟]♟]║\n      ║░░▓▓░░▓▓♛]▓▓░░▓▓║\n      ║▓▓░░▓▓░░♟]░░♗]░░║\n      ║░░▓▓░░▓▓♙]▓▓░░▓▓║\n      ║▓▓♕]▓▓░░▓▓░░▓▓░░║\n      ║♙]♙]♙]▓▓░░♙]♙]♙]║\n      ║▓▓░░♔}♖]▓▓░░▓▓░░║\n      ╚════════════════╝ := by\n  move \"Qb8\"\n  opponent_move\n  move \"Rd8\"\n  checkmate\n```\n\n## Dependencies\n\nIf you plan to use the `get_next_move` tactic then you need:\n\n * a working python setup, including `python3-venv`\n * a stockfish executable\n\n### Linux\n```bash\nsudo apt-get install stockfish python3-venv\n```\n\n### Mac\n```bash\nbrew install stockfish\n```\n\n### Windows\nDownload a suitable binary here: https://stockfishchess.org/download/, identify the stockfish binary and set the following environment variable:\n\n```\nSTOCKFISH_BIN=[path to stockfish binary]\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwrensha%2Fchess.lean","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdwrensha%2Fchess.lean","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwrensha%2Fchess.lean/lists"}