Mathlib Map

Structures · Lean core

IntCast

The canonical homomorphism Int → R. In most use cases, the target type will have a ring structure, and this homomorphism should be a ring homomorphism. IntCast and NatCast exist to allow different libraries with their own types that can be notated as natural numbers to have consistent simp normal forms without needing to create coercion simplification sets that are aware of all combinations. Libraries should make it easy to work with IntCast where possible. For instance, in Mathlib there will be such a homomorphism (and thus an IntCast R instance) whenever R is an additive group with a 1.

Defined in
Init.Data.Int.Basic
Shape
One type argument · adds intCast

Extends0

Extends nothing: this is a root of the hierarchy.

Extended by1

Concrete types that are instances39

  • Int
  • Real
  • Rat
  • Quiver.Hom
  • Complex
  • SeparationQuotient
  • BitVec
  • ContinuousLinearMap
  • Polynomial
  • Filter.Germ
  • BoundedContinuousFunction
  • Matrix
  • WithVal
  • HahnSeries
  • LocallyConstant
  • MeasureTheory.SimpleFunc
  • RestrictedProduct
  • DoubleCentralizer
  • CauSeq.Completion.Cauchy
  • WittVector
  • CauSeq
  • TruncatedWittVector
  • AdicCompletion
  • AdicCompletion.AdicCauchySequence
  • RingCon.Quotient
  • HomogeneousLocalization
  • CentroidHom
  • AddMonoid.End
  • ModularForm
  • SlashInvariantForm
  • Dyadic
  • Lean.Grind.Ring.OfSemiring.Q
  • Subtype
  • OrderDual
  • ULift
  • MulOpposite
  • Lex
  • AddOpposite
  • ContinuousMap

How is a type an instance?

Loading the hierarchy index…

Assumed by76

Ancestors0

No ancestors.