{"id":13993029,"url":"https://github.com/arthurpaulino/LeanREPL","last_synced_at":"2025-07-22T16:33:46.176Z","repository":{"id":104824587,"uuid":"448736765","full_name":"arthurpaulino/LeanREPL","owner":"arthurpaulino","description":null,"archived":false,"fork":false,"pushed_at":"2022-08-01T20:38:28.000Z","size":13,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-07-18T15:29:57.633Z","etag":null,"topics":["lean","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/arthurpaulino.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}},"created_at":"2022-01-17T03:02:35.000Z","updated_at":"2024-05-09T15:04:57.000Z","dependencies_parsed_at":"2023-05-30T08:15:41.944Z","dependency_job_id":null,"html_url":"https://github.com/arthurpaulino/LeanREPL","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthurpaulino%2FLeanREPL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthurpaulino%2FLeanREPL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthurpaulino%2FLeanREPL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthurpaulino%2FLeanREPL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arthurpaulino","download_url":"https://codeload.github.com/arthurpaulino/LeanREPL/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":214674837,"owners_count":15768057,"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":["lean","lean4"],"created_at":"2024-08-09T14:02:12.567Z","updated_at":"2024-08-09T14:09:39.123Z","avatar_url":"https://github.com/arthurpaulino.png","language":"Lean","funding_links":[],"categories":["Lean"],"sub_categories":[],"readme":"# LeanREPL\n\nA simple REPL environment for Lean 4 that also supports meta-commands\n(commands starting with \"!\").\n\nThe code in this repository was adapted from:\n\n* [`dselsam/lean-gym`](https://github.com/dselsam/lean-gym)\n* [`abentkamp/hoare-logic`](https://github.com/abentkamp/hoare-logic)\n\n## Usage\n\nRun `.../LeanREPL$ lake build` and an executable file will be created under\n`build/bin`.\n\nThen you can run it and pass the initial imported modules. `Init` is already\nadded by default. Example:\n\n```bash\n.../LeanREPL$ ./build/bin/LeanREPL Std\n```\n\n## Meta-commands\n\nMeta-commands are just commands that start with \"!\" and allow extra control\nof the REPL. The ones available are:\n\n* `!rb \u003cn\u003e` rolls the REPL back to the state it was `n` commands ago\n* `!reset` resets the REPL to the initial state\n* `!quit` exits the REPL\n\nExample:\n\n```lean\n\u003e def a := 1\n\u003e def a := 2 -- causes an error and doesn't stack a new state\nrepl:1:4: error: 'a' has already been declared\n\u003e def b := 2\n\u003e def c := 3\n\u003e !rb 2      -- undoes the definitions of `b` and `c`\n\u003e #check a\na : Nat\n\u003e #check b\nrepl:1:7: error: unknown identifier 'b'\n\u003e #check c\nrepl:1:7: error: unknown identifier 'c'\n\u003e !reset     -- undoes all definitions\n\u003e #check a\nrepl:1:7: error: unknown identifier 'a'\n\u003e !quit\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farthurpaulino%2FLeanREPL","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farthurpaulino%2FLeanREPL","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farthurpaulino%2FLeanREPL/lists"}