Introductory Proof with Lean 4 - Natural Numbers

  Рет қаралды 2,295

MathPom

MathPom

Күн бұрын

Follow along as I learn how to use an automated proof system, Lean 4. We'll do an introductory proof involving natural numbers using Lean's calculational proof mode.
Timecodes:
00:00 - Intro
00:34 - Let's Jump In
01:17 - Variables in Lean
01:34 - How to Read a Type Signature
02:56 - Writing a Theorem
05:00 - Function Application in Lean
05:10 - congrArg
07:25 - Nat.add_comm
08:30 - How to Read a Calculational Proof
09:19 - Eq.symm
10:35 - Typechecking a Theorem
11:00 - Calculational Proof Function Representation
11:35 - Outro
Here are some resources I found helpful when making this video:
leanprover.github.io/theorem_...
leanprover.github.io/lean4/doc/
leanprover.github.io/function...
leanprover.github.io/logic_an...
leanprover.github.io/tutorial...
I used the following elements in this video/thumbnail:
By Joey-das-WBF at English Wikipedia - Transferred from en.wikipedia to Commons by Common Good using CommonsHelper., Public Domain, commons.wikimedia.org/w/index...
leanprover.github.io/images/l...
editor.codecogs.com
unsplash.com/photos/U8kNV-0dCS0
#leanprover

Пікірлер: 16
@kemijarks
@kemijarks 19 сағат бұрын
I really like your calm voice and your pace ! Kudos
@acortis
@acortis 4 күн бұрын
Good job! Keep’em coming!
@alfonsobustamante6937
@alfonsobustamante6937 11 ай бұрын
The best tutorial on Lean ive seen so far. So clear and loved the fact that i wasnt needed to use any library, which really alouded to grasp the main concepts to set a theorem with its hypothesies and its variables. Thank you!
@mathpom
@mathpom 9 ай бұрын
Thank you for the kind comment! I deliberately tried to keep the example simple.
@alfonsobustamante6937
@alfonsobustamante6937 11 ай бұрын
And by the way, loved the saul goodman style of opening of your video! So i know who i gonna call to defend my math statements and theorems 🎭
@mathpom
@mathpom 9 ай бұрын
ha call anytime!
@bobvance9519
@bobvance9519 2 ай бұрын
great vid, very chill too
@mohamedtalaatharb2441
@mohamedtalaatharb2441 8 ай бұрын
That is a new mode for proofs that i didn't know about, I almost exclusively use tactics mode but this one seems nice for simple calculations. Thank you for the video.
@mathpom
@mathpom 7 ай бұрын
Thank you -- I'm glad it was helpful.
@phurisottatipreedawong1618
@phurisottatipreedawong1618 3 күн бұрын
I’m working on an educational project where I plan to use Manim and/or Matplotlib (in Python) to visualize basic Real Analysis theorems verified by the Lean prover. I’m new to Lean and haven’t found many beginner-friendly tutorials. Since I am only familiar with Python, I would greatly appreciate any advice on how to get started with Lean or resources that can help me integrate Lean with Python visualization tools like Manim and Matplotlib. Additionally, I’m looking for guidance on a suitable folder structure for a Lean project. P.S. Thank you very much for your video and for reading my comment.
@davidstainton8337
@davidstainton8337 20 күн бұрын
Moar please. Moar Lean 4 videos. On any Lean 4 topic.
@marcourielmedinamandujano5872
@marcourielmedinamandujano5872 4 ай бұрын
But how do I install lean? :(((
@mathpom
@mathpom 3 ай бұрын
It's not too bad! Check out leanprover-community.github.io/install/linux.html and github.com/leanprover/elan.
@andresgoens
@andresgoens 5 ай бұрын
Oops, Lean is not automated :/ Lean is an interactive theorem prover. Nice style for the video otherwise!
@mathpom
@mathpom 4 ай бұрын
good catch! I shouldn't have used a term with specific meaning. I meant more the tactics people can get "for free".
@feraudyh
@feraudyh 7 күн бұрын
I find the equating of function and theorem a little off-putting.
Automated Mathematical Proofs - Computerphile
18:02
Computerphile
Рет қаралды 91 М.
Infinitude of primes --- a Lean theorem prover demo
23:35
leanprover community
Рет қаралды 26 М.
Я не голоден
01:00
К-Media
Рет қаралды 9 МЛН
Получилось у Миланы?😂
00:13
ХАБИБ
Рет қаралды 6 МЛН
НЫСАНА КОНЦЕРТ 2024
2:26:34
Нысана театры
Рет қаралды 1,6 МЛН
EVOLUTION OF ICE CREAM 😱 #shorts
00:11
Savage Vlogs
Рет қаралды 12 МЛН
JPEG is Dying - And that's a bad thing
8:09
2kliksphilip
Рет қаралды 194 М.
Stop, Intel’s Already Dead! - AMD Ryzen 9600X & 9700X Review
13:47
Linus Tech Tips
Рет қаралды 1 МЛН
Programming with Math | The Lambda Calculus
21:48
Eyesomorphic
Рет қаралды 164 М.
The Clever Way to Count Tanks - Numberphile
16:45
Numberphile
Рет қаралды 790 М.
Tactics & Keyframes: Visualizing Lean 4 Proofs in Blender
8:47
David Renshaw
Рет қаралды 6 М.
The Most Beautiful Proof
3:57
BriTheMathGuy
Рет қаралды 172 М.
The Boundary of Computation
12:59
Mutual Information
Рет қаралды 994 М.
How to Prove it with Lean
1:18:27
Alexandre Rademaker
Рет қаралды 1,2 М.
Why this puzzle is impossible
19:37
3Blue1Brown
Рет қаралды 3,1 МЛН
Я не голоден
01:00
К-Media
Рет қаралды 9 МЛН