{"id":13992833,"url":"https://github.com/Seasawher/mk-exercise","last_synced_at":"2025-07-22T16:32:21.658Z","repository":{"id":217309004,"uuid":"743541930","full_name":"Seasawher/mk-exercise","owner":"Seasawher","description":"Simple and intuitive tool to manage exercises in textbooks written in Lean. ","archived":false,"fork":false,"pushed_at":"2024-10-24T12:31:37.000Z","size":86,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-25T13:21:03.702Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Seasawher.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}},"created_at":"2024-01-15T13:09:09.000Z","updated_at":"2024-10-24T12:31:39.000Z","dependencies_parsed_at":"2024-08-29T13:04:22.145Z","dependency_job_id":"208becf9-b530-42bd-a2c9-7f8001d01267","html_url":"https://github.com/Seasawher/mk-exercise","commit_stats":null,"previous_names":["seasawher/mk-exercise"],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seasawher%2Fmk-exercise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seasawher%2Fmk-exercise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seasawher%2Fmk-exercise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seasawher%2Fmk-exercise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Seasawher","download_url":"https://codeload.github.com/Seasawher/mk-exercise/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227133907,"owners_count":17735823,"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:09.031Z","updated_at":"2024-11-29T13:31:23.026Z","avatar_url":"https://github.com/Seasawher.png","language":"Lean","funding_links":[],"categories":["Lean"],"sub_categories":[],"readme":"# mk-exercise\n\nThis tool erases parts of Lean code and replaces them with `sorry`. I developed this to make it easier to manage exercises in textbooks written in Lean.\n\nThis is inspired by a script in [a glimpse of lean](https://github.com/PatrickMassot/GlimpseOfLean/tree/master).\n\n## How to use\n\n### Basic usage\n\nAdd this repository to your `lakefile`:\n\n```lean\nrequire «mk-exercise» from git\n  \"https://github.com/Seasawher/mk-exercise\" @ \"main\"\n```\n\nDon't forget to run `lake update mk-exercise` after editing the `lakefile`. And simply run `lake exe mk_exercise \u003cinput_dir\u003e \u003coutput_dir\u003e`.\n\n### Setup GitHub Action\n\nGitHub Action allows you to run this every time a particular branch is updated, automatically updating the exercises to the latest state. You may wish to look at [yuma-mizuno/lean-math-workshop](https://github.com/yuma-mizuno/lean-math-workshop), where exercises are managed using this tool.\n\n## Features\n\n* Replace the code enclosed by `-- sorry` with `sorry`, preserving indentation.\n* Replace the inline code enclosed by `/-+-/` with `sorry`.\n* Replace the code after `/- sorry -/` with sorry.\n* Lines ending with `--##` are ignored.\n* Blocks enclosed with `--##--` are ignored.\n\nCheck the test code for more information.\n\n* [input file](./Test/Src/Solution.lean)\n* [expected output](./Test/Exp/Solution.lean)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSeasawher%2Fmk-exercise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSeasawher%2Fmk-exercise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSeasawher%2Fmk-exercise/lists"}