Documentation

Example.MyNat

inductive MyNat :
Instances For
    def MyNat.add (a b : MyNat) :
    Equations
    Instances For
      @[simp]
      theorem MyNat.zero_add (a : MyNat) :
      zero.add a = a
      theorem MyNat.succ_add (a b : MyNat) :
      a.succ.add b = (a.add b).succ
      theorem MyNat.add_comm (a b : MyNat) :
      a.add b = b.add a

      Multiplication #

      def MyNat.mul (a b : MyNat) :
      Equations
      Instances For
        theorem MyNat.mul_comm (a b : MyNat) :
        a.mul b = b.mul a

        Fermat's Last Theorem #

        theorem MyNat.flt :
        sorry