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

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 KZread:
• TypeScript Type Theory...

Пікірлер: 20

  • @rhodesd
    @rhodesd7 ай бұрын

    Avi and Richard, thank you for taking the time to make this video, please keep going!

  • @RichardSouthwell

    @RichardSouthwell

    7 ай бұрын

    Thank you! Will do!

  • @avi3681
    @avi36817 ай бұрын

    Super fun making the video with you!

  • @RichardSouthwell

    @RichardSouthwell

    7 ай бұрын

    yea, making this was 100% fun

  • @jamesgood7894
    @jamesgood78947 ай бұрын

    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.

  • @jacksonstenger
    @jacksonstenger7 ай бұрын

    My friend just mentioned Lean to me the other day, it sounds very exciting, hope you guys continue to explore the language!

  • @RichardSouthwell

    @RichardSouthwell

    7 ай бұрын

    Yes it is exciting, and we shall certainly continue our exploration !

  • @ShakilAhmed-ro4ki
    @ShakilAhmed-ro4ki7 ай бұрын

    I tried lean a few days back 😊 . Would love to see more on this.

  • @RichardSouthwell

    @RichardSouthwell

    7 ай бұрын

    Yea, its great if this resource will help you

  • @hebozhe
    @hebozhe14 күн бұрын

    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.

  • @friedporkrice
    @friedporkrice7 ай бұрын

    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

    7 ай бұрын

    Yes. It's a good idea. Actually I've got something like that in the pipeline

  • @Nolrai12
    @Nolrai127 ай бұрын

    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

    7 ай бұрын

    That's good news. It seems like we are learning Lean 4 at the right time

  • @avi3681

    @avi3681

    7 ай бұрын

    Thanks for the correction, I realized after we recorded this that my info on the MathLib upgrade was out of date.

  • @RichardSouthwell

    @RichardSouthwell

    7 ай бұрын

    @@avi3681 Its good timing for us to do this as Mathlib is becoming available

  • @davidchristiansen8582
    @davidchristiansen85826 ай бұрын

    This is a great video - thank you for making it!

  • @RichardSouthwell

    @RichardSouthwell

    6 ай бұрын

    And thank you for writing the book we are following 😀

  • @davidchristiansen8582

    @davidchristiansen8582

    6 ай бұрын

    And thank you for reading it so carefully 🙂 That's the greatest joy for a writer.

  • @user-ed3bs1vq8b
    @user-ed3bs1vq8b4 ай бұрын

    8:30