Mathlib Map

Structures · Lean core

Std.Commutative

Commutative op says that op is a commutative operation, i.e. a ∘ b = b ∘ a.

Defined in
Init.Core
Shape
One type argument · adds comm

Extends0

Extends nothing: this is a root of the hierarchy.

Extended by0

Nothing extends this class yet.

Forgetful instances

Every Std.Commutative is also a

Concrete types that are instances19

  • Int
  • Nat
  • Rat
  • Bool
  • BitVec
  • UInt64
  • UInt8
  • UInt16
  • UInt32
  • USize
  • Int32
  • Int8
  • Int64
  • Int16
  • ISize
  • Fin
  • Set
  • Finset
  • Option

How is a type an instance?

Loading the hierarchy index…

Assumed by49

Ancestors1