Documentation

AlgebraInLean.Chapter03.Sheet02

def AlgebraInLean.mpow {M : Type u_1} [AlgebraInLean.Monoid M] (x : M) :
M

We define this function inductively. mpow x n gives the element equal to multiplying the identity element n times by x.

Equations
Instances For
    @[simp]
    theorem AlgebraInLean.mpow_zero {M : Type u_1} [AlgebraInLean.Monoid M] (x : M) :
    AlgebraInLean.mpow x 0 = AlgebraInLean.𝕖
    @[simp]

    x¹ = x

    x ^ (n + 1) = x * x ^ n

    x ^ (m + n) = x ^ m * x ^ n

    x ^ (m * n) = (x ^ m) ^ n

    @[simp]
    theorem AlgebraInLean.mpow_id {M : Type u_1} [AlgebraInLean.Monoid M] (n : ) :
    AlgebraInLean.mpow AlgebraInLean.𝕖 n = AlgebraInLean.𝕖

    e ^ n = e

    def AlgebraInLean.gpow {G : Type u_1} [AlgebraInLean.Group G] (x : G) :
    G

    Now, we define the power function for groups. Since groups have inverses, there becomes a natural notion of negative exponentiation. Notice that Int has two constructors of type NatInt.

    Equations
    Instances For
      @[simp]
      theorem AlgebraInLean.gpow_zero {G : Type u_1} [AlgebraInLean.Group G] (x : G) :
      AlgebraInLean.gpow x 0 = AlgebraInLean.𝕖
      @[simp]