Learning To Code In Lean 4 With A Friend: Starting Out

  Рет қаралды 3,811

Richard Southwell

Richard Southwell

9 ай бұрын

My friend Avi Cramer and I start learning the Lean 4 functional programming language. This time we cover the basics like installing the language, evaluating arithmetic expressions, type checking and function definitions. The plan is to build towards more advanced topics like recursion, dependent type theory and theorem proving.
Installation:
lean-lang.org/lean4/doc/quick...
The Lean book we are following:
lean-lang.org/functional_prog...
This video covers 1.1 to 1.3 in the book.
Avi's Website:
avicraimer.com/
Avi's KZbin:
• TypeScript Type Theory...

Пікірлер: 21
@rhodesd
@rhodesd 9 ай бұрын
Avi and Richard, thank you for taking the time to make this video, please keep going!
@RichardSouthwell
@RichardSouthwell 9 ай бұрын
Thank you! Will do!
@avi3681
@avi3681 9 ай бұрын
Super fun making the video with you!
@RichardSouthwell
@RichardSouthwell 9 ай бұрын
yea, making this was 100% fun
@jacksonstenger
@jacksonstenger 9 ай бұрын
My friend just mentioned Lean to me the other day, it sounds very exciting, hope you guys continue to explore the language!
@RichardSouthwell
@RichardSouthwell 9 ай бұрын
Yes it is exciting, and we shall certainly continue our exploration !
@jamesgood7894
@jamesgood7894 9 ай бұрын
Watched some of your category theory videos in the past and was surprised to find this recently posted. Not sure if it is something you’d be interested in covering after you’ve touched on everything you already have planned, but it would be great if you could also cover just using the language for some general purpose programming (potentially even showing how to pull in some Rust libraries). edit: I only read the description when I posted this, but after listening to the first five minutes, it sounds like general purpose programming is what you two intend to cover here. Nonetheless, interoperability with Rust in order to leverage existing libraries would be beneficial, so hopefully that can be touched upon in future videos if it is possible.
@ShakilAhmed-ro4ki
@ShakilAhmed-ro4ki 9 ай бұрын
I tried lean a few days back 😊 . Would love to see more on this.
@RichardSouthwell
@RichardSouthwell 9 ай бұрын
Yea, its great if this resource will help you
@Nolrai12
@Nolrai12 9 ай бұрын
the lean 4 version of Mathlib is actually pretty well along by now, I haven't run into anything missing from it yet!
@RichardSouthwell
@RichardSouthwell 9 ай бұрын
That's good news. It seems like we are learning Lean 4 at the right time
@avi3681
@avi3681 9 ай бұрын
Thanks for the correction, I realized after we recorded this that my info on the MathLib upgrade was out of date.
@RichardSouthwell
@RichardSouthwell 9 ай бұрын
@@avi3681 Its good timing for us to do this as Mathlib is becoming available
@friedporkrice
@friedporkrice 9 ай бұрын
I really enjoyed following along on my own in VSCode with lean4, thank you, and what a great idea. I wonder if this "pair learning" format would work well for your other topics too.
@RichardSouthwell
@RichardSouthwell 9 ай бұрын
Yes. It's a good idea. Actually I've got something like that in the pipeline
@davidchristiansen8582
@davidchristiansen8582 9 ай бұрын
This is a great video - thank you for making it!
@RichardSouthwell
@RichardSouthwell 9 ай бұрын
And thank you for writing the book we are following 😀
@davidchristiansen8582
@davidchristiansen8582 9 ай бұрын
And thank you for reading it so carefully 🙂 That's the greatest joy for a writer.
@hebozhe
@hebozhe 2 ай бұрын
I developed and plan to rebuild a Fitch solver, so of course I'd run into Lean. Good to know it's not terribly esoteric.
@user-ed3bs1vq8b
@user-ed3bs1vq8b 6 ай бұрын
8:30
@pmosh1
@pmosh1 13 күн бұрын
The News today brought me here
Learning To Code In Lean 4 With A Friend: Structure And Recursion
1:10:22
Richard Southwell
Рет қаралды 1,1 М.
Seven ways to visualize functions
29:52
Richard Southwell
Рет қаралды 2,9 М.
World’s Largest Jello Pool
01:00
Mark Rober
Рет қаралды 113 МЛН
Fast and Furious: New Zealand 🚗
00:29
How Ridiculous
Рет қаралды 45 МЛН
Doing This Instead Of Studying.. 😳
00:12
Jojo Sim
Рет қаралды 24 МЛН
ТЫ С ДРУГОМ В ДЕТСТВЕ😂#shorts
01:00
BATEK_OFFICIAL
Рет қаралды 6 МЛН
Automated Mathematical Proofs - Computerphile
18:02
Computerphile
Рет қаралды 91 М.
Interview with Sr. C Dev | Prime Reacts
6:52
ThePrimeTime
Рет қаралды 342 М.
Why You Shouldn't Nest Your Code
8:30
CodeAesthetic
Рет қаралды 2,6 МЛН
25 Nooby Pandas Coding Mistakes You Should NEVER make.
11:30
Rob Mulla
Рет қаралды 265 М.
Dinner for One with Freddie Frinton and May Warden
10:57
Retro TV
Рет қаралды 2,3 МЛН
100 Hours Of Graphics Programming
6:48
Tantan
Рет қаралды 151 М.
Infinitude of primes --- a Lean theorem prover demo
23:35
leanprover community
Рет қаралды 26 М.
Category Theory For Beginners: Cooking, Monoidal Categories and Programming
1:30:47
Why Isn't Functional Programming the Norm? - Richard Feldman
46:09
Smooth Spaces 1: Introduction To Synthetic Differential Geometry
32:31
Richard Southwell
Рет қаралды 3,2 М.
World’s Largest Jello Pool
01:00
Mark Rober
Рет қаралды 113 МЛН