import MyNat.Addition
import MyNat.Multiplication
namespace MyNat
open MyNat

Level 1: zero_mul

Lemma

For all natural numbers m, we have 0 * m = 0.

lemma 
zero_mul: ∀ (m : MyNat), 0 * m = 0
zero_mul
(
m: MyNat
m
:
MyNat: Type
MyNat
) :
0: MyNat
0
*
m: MyNat
m
=
0: MyNat
0
:=
m: MyNat

0 * m = 0
m: MyNat

0 * m = 0

zero
0 * zero = 0

zero
0 * zero = 0

zero
0 * 0 = 0

zero
0 * 0 = 0

zero
0 * 0 = 0

zero
0 = 0

Goals accomplished! 🐙
m: MyNat
ih: 0 * m = 0

succ
0 * succ m = 0
m: MyNat
ih: 0 * m = 0

succ
0 * succ m = 0
m: MyNat
ih: 0 * m = 0

succ
0 * m + 0 = 0
m: MyNat
ih: 0 * m = 0

succ
0 * m + 0 = 0
m: MyNat
ih: 0 * m = 0

succ
0 * m + 0 = 0
m: MyNat
ih: 0 * m = 0

succ
0 + 0 = 0
m: MyNat
ih: 0 * m = 0

succ
0 + 0 = 0
m: MyNat
ih: 0 * m = 0

succ
0 + 0 = 0
m: MyNat
ih: 0 * m = 0

succ
0 = 0

Goals accomplished! 🐙

Next up is Multiplication Level 2.