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
- Int.cast_ite
- Matrix.diagonal_intCast'
- Matrix.diagonal_intCast
- MulOpposite.unop_intCast
- FunLike.intCast_eq_zsmul_one
- AddOpposite.op_intCast
- AddOpposite.unop_intCast
- Int.cast_continuous
- Matrix.diagonal_eq_intCast
- Function.Injective.divisionRing
- hasFDerivAtFilter_intCast
- Filter.Germ.instIntCast
- differentiableOn_intCast
- Function.Surjective.nonAssocRing
- Pi.intCast_apply
- Function.Surjective.nonAssocCommRing
- Sum.elim_intCast_intCast
- fderivWithin_intCast
- hasStrictDerivAt_intCast
- ULift.down_intCast
- SimpleGraph.intCast_hadamard_adjMatrix
- MulOpposite.op_intCast
- Function.Injective.field
- hasDerivWithinAt_intCast
- ContinuousMap.coe_intCast
- deriv_intCast
- Matrix.instIntCastOfZero
- Function.Surjective.commRing
- ULift.up_intCast
- FunLike.coe_intCast
- differentiableAt_intCast
- ofLex_intCast
- Function.Injective.ring
- MeasureTheory.SimpleFunc.instIntCast
- MeasureTheory.SimpleFunc.coe_intCast
- Function.Surjective.addGroupWithOne
- SeparationQuotient.mk_intCast
- ofDual_intCast
- Lex.instIntCast
- differentiableWithinAt_intCast
- FunLike.ring
- Pi.instIntCast
- BoundedContinuousFunction.intCast_apply
- Function.Injective.addCommGroupWithOne
- differentiable_intCast
- Function.Injective.addGroupWithOne
- MulOpposite.instIntCast
- OrderDual.instIntCast
- derivWithin_intCast
- Function.Injective.nonAssocCommRing
Ancestors0
No ancestors.