Giter Club home page Giter Club logo

lean-tutorials's Introduction

lean-tutorials

Gitpod Ready-to-Code

The goal of this project is to quickly teach you how to use Lean 3 for mathematics using a very hands-on approach. It can be used alongside Theorem proving in Lean or independently. You can play the Natural number game first, but this is not mandatory.

Currently, these tutorials do not cover creating your own theories, only proving things in elementary real analysis. All exercises are adapted from a first year undergraduate course by Patrick Massot in Orsay, adding only explanations about compressing proofs using slightly advanced tactics like rintros and rcases.

What you do need first is to install Lean 3 and get this project for local use by typing:

leanproject get tutorials

Then, in the tutorials/src folder, create a copy of the exercises folder for you work. This way it won't be overwritten if you update the project to get new exercises. You can then open the tutorials folder in VS code. For instance you can type:

cp -r tutorials/src/exercises tutorials/src/my_exercises
code tutorials

VSCode has a file explorer that you can open by clicking the top icon in the icon column on the left. In this explorer, you can navigate to src/my_exercises and click on 00_first_proofs.lean. This file does not contain any exercise, it is meant as an overview of the basics. You can skip it if you are really eager to start coding, but this is not recommended. You don't need to understand everything while reading this file, only try to get a feel for what it's looking like, and maybe start picking up some key words.

There are solutions for all the exercises in src/solutions. If you need help about any specific exercise, you can come on Zulip in the "new members" stream and look for a thread called "tutorials NNNN" where NNNN is the exercise number. If no such thread exists, you can create one!

lean-tutorials's People

Contributors

leanprover-community-bot avatar patrickmassot avatar callumhobbis avatar kbuzzard avatar julian avatar robertylewis avatar dwrensha avatar jcommelin avatar fcasal avatar stanescuuw avatar hrmacbeth avatar cuppajoeman avatar kmill avatar anrddh avatar bryangingechen avatar dimpase avatar gkobeaga avatar hrldcpr avatar hmonroe avatar vilin97 avatar fzyzcjy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.