{"id":21394990,"url":"https://github.com/splines/lean-continuous","last_synced_at":"2025-03-16T14:25:14.142Z","repository":{"id":247385802,"uuid":"822563788","full_name":"Splines/lean-continuous","owner":"Splines","description":"Continuous functions formalized in Lean4. A students project accompanied by a YouTube video.","archived":false,"fork":false,"pushed_at":"2024-07-30T14:22:44.000Z","size":5703,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T01:43:48.145Z","etag":null,"topics":["analysis","continuous","lean4","math","proof","proof-assistant","proof-solver"],"latest_commit_sha":null,"homepage":"https://youtu.be/BZjAghqKOjI","language":"TeX","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/Splines.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-07-01T11:38:36.000Z","updated_at":"2025-01-10T19:59:33.000Z","dependencies_parsed_at":"2024-07-30T17:58:34.958Z","dependency_job_id":"5300fa99-4534-43ac-91f2-9092ce873451","html_url":"https://github.com/Splines/lean-continuous","commit_stats":null,"previous_names":["felinho927/lean-project","splines/lean-continuous"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Splines%2Flean-continuous","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Splines%2Flean-continuous/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Splines%2Flean-continuous/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Splines%2Flean-continuous/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Splines","download_url":"https://codeload.github.com/Splines/lean-continuous/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243880431,"owners_count":20362765,"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":["analysis","continuous","lean4","math","proof","proof-assistant","proof-solver"],"created_at":"2024-11-22T14:17:45.146Z","updated_at":"2025-03-16T14:25:14.121Z","avatar_url":"https://github.com/Splines.png","language":"TeX","readme":"\u003cdiv align=\"center\"\u003e\n    \u003ch2 align=\"center\"\u003e\u003cstrong\u003eContinuous Functions\n    \u003cbr\u003e— formalized in Lean4\u003c/strong\u003e\u003c/h2\u003e\n    \u003cp\u003e\n        \u003ci\u003eA project by Dominic Plein (\u003ca href=\"https://youtube.com/@splience\"\u003e@Splience\u003c/a\u003e) \u0026 Felix Lentze\u003cbr\u003ein the course of a seminar on \u003ca href=\"https://matematiflo.github.io/SoSe_2024/CompAssistedMath2024.html\"\u003ecomputer-assisted maths\u003c/a\u003e.\u003c/i\u003e\n    \u003c/p\u003e\n    \u003ca href=\"https://youtu.be/BZjAghqKOjI\"\u003e\n        \u003cimg src=\"https://github.com/user-attachments/assets/39769109-54ea-4a01-a9ac-99fd7aa2ed5d\"\n        width=\"550px\" alt=\"Thumbnail of the linked YouTube video\"/\u003e\n    \u003c/a\u003e\u003cbr\u003e\n    \u003cstrong\u003e\u003ca href=\"https://youtu.be/BZjAghqKOjI\"\u003eYouTube Video\u003c/a\u003e\u003c/strong\u003e\n\u003c/div\u003e\n\n\u003e [!warning]\n\u003e This is a research project and not stable code. We also don't maintain this code in the long run. It's mainly for educational purposes and for us to learn Lean4. Nevertheless, you might still find it useful to get started with Lean4 in the context of continuous functions.\n\n\u003cbr\u003e\n\n## 🌟 About\n\nIn this repository, we give an introduction to **continuous functions** and formalize them in the functional programming language and mathematical proof-solver Lean4. Continuous functions play a crucial role in many math disciplines and are taught at the very beginning of math studies.\n\nIn this repo, you find:\n\n- [**A LaTeX document**](./HandProof/main.pdf) that contains manual proofs. All proofs that were formalized in Lean4 are also written out in this document for reference. It's suggested to first comprehend the proof there, then look at the Lean4 code to see how it's formalized.\n\n- The [**Lean4 code**](./Continuity/) with different files that correspond to the sections in the LaTeX document:\n  - [Continuous Functions](./Continuity/continuous.lean): Here we give the definition of continuous functions.\n  - [Examples](./Continuity/examples.lean): Here we give some examples of continuous functions.\n  - [Algebraic properties](./Continuity/algebraic.lean): Here we prove that the sum and the product of two continuous functions are continuous again.\n  - [Left- and right-continuity](./Continuity/leftright.lean): Here we define left- and right-continuity, and prove that they are equivalent to continuity. We also discuss the Heaviside function.\n\n\n## 💻 Installation\n\nSee [this guide](https://lean-lang.org/lean4/doc/setup.html) for how to install Lean4 on your machine. It guides you through how to install `elan`, the Lean version manager, which also installs `Lake` for you, the Lean package manager.\n\nThen run `lake exec cache get` in the root of this project. Don't run `lake update` as we want to stick with the specific version of Lean specified pinned via the `lake-manifest.json` file.\n\nWe highly recommend to use Visual Studio Code as your editor as the Lean4 community has developed a great extension for it. It's included as \"recommended extension\" to this workspace. [Use `Extensions: Show Recommended Extensions`](https://code.visualstudio.com/docs/editor/extension-marketplace#_workspace-recommended-extensions) to install it.\n\n\n## 💻 Development\n\nWe use some **style guidelines** from the Lean community [here](https://leanprover-community.github.io/contribute/style.html) and [here](https://leanprover-community.github.io/contribute/doc.html). However, note that we are beginners in Lean and therefore our style used in the code might disagree with many \"official\" guidelines.\n\nOur formatting aims at maximizing readability and understanding for beginners. We write out some tactics even if they could be compressed into a \"one-liner\". We also make use of excessive white space and comments to make the code more accessible and not a \"hell of symbols\".\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplines%2Flean-continuous","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsplines%2Flean-continuous","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplines%2Flean-continuous/lists"}