Mathlib.Data.Int.Cast.Lemmas
62 declarations. Mathlib docs · Source
Cast of integers (additional theorems)
This file proves additional properties about the canonical homomorphism from
the integers into an additive group with a one (Int.cast),
particularly results involving algebraic homomorphisms or the order structure on ℤ
which were not available in the import dependencies of Data.Int.Cast.Basic.
Main declarations
castAddHom:castbundled as anAddMonoidHom.castRingHom:castbundled as aRingHom.
def Int.ofNatHom E1 #
ℕ →+* ℤ
Coercion ℕ → ℤ as a RingHom.
def Int.castAddHom E3 #
(α : Type u_4) → [inst : AddGroupWithOne α] → ℤ →+ α
coe : ℤ → α as an AddMonoidHom.
theorem Int.coe_castAddHom E0 #
∀ {α : Type u_2} [inst : AddGroupWithOne α], ⇑(Int.castAddHom α) = fun x ↦ ↑x
theorem Even.intCast E1 #
∀ {α : Type u_2} [inst : AddGroupWithOne α] {n : ℤ}, Even n → Even ↑n
theorem Int.cast_eq_zero E0 #
∀ {α : Type u_2} [inst : AddGroupWithOne α] [CharZero α] {n : ℤ}, ↑n = 0 ↔ n = 0
theorem Int.cast_inj E0 #
∀ {α : Type u_2} [inst : AddGroupWithOne α] [CharZero α] {m n : ℤ}, ↑m = ↑n ↔ m = n
theorem Int.cast_injective E1 #
∀ {α : Type u_2} [inst : AddGroupWithOne α] [CharZero α], Function.Injective Int.cast
theorem Int.cast_ne_zero E1 #
∀ {α : Type u_2} [inst : AddGroupWithOne α] [CharZero α] {n : ℤ}, ↑n ≠ 0 ↔ n ≠ 0
theorem Int.cast_eq_one E0 #
∀ {α : Type u_2} [inst : AddGroupWithOne α] [CharZero α] {n : ℤ}, ↑n = 1 ↔ n = 1
theorem Int.cast_ne_one E1 #
∀ {α : Type u_2} [inst : AddGroupWithOne α] [CharZero α] {n : ℤ}, ↑n ≠ 1 ↔ n ≠ 1
def Int.castRingHom E3 #
(α : Type u_2) → [inst : NonAssocRing α] → ℤ →+* α
coe : ℤ → α as a RingHom.
theorem Int.coe_castRingHom E0 #
∀ {α : Type u_2} [inst : NonAssocRing α], ⇑(Int.castRingHom α) = fun x ↦ ↑x
theorem Int.cast_commute E1 #
∀ {α : Type u_2} [inst : NonAssocRing α] (n : ℤ) (a : α), Commute (↑n) a
theorem Int.cast_comm E1 #
∀ {α : Type u_2} [inst : NonAssocRing α] (n : ℤ) (x : α), ↑n * x = x * ↑n
theorem Int.commute_cast E1 #
∀ {α : Type u_2} [inst : NonAssocRing α] (a : α) (n : ℤ), Commute a ↑n
theorem zsmul_eq_mul E0 #
∀ {α : Type u_2} [inst : NonAssocRing α] (a : α) (n : ℤ), n • a = ↑n * a
theorem zsmul_eq_mul' E1 #
∀ {α : Type u_2} [inst : NonAssocRing α] (a : α) (n : ℤ), n • a = a * ↑n
theorem Odd.intCast E1 #
∀ {α : Type u_2} [inst : Ring α] {n : ℤ}, Odd n → Odd ↑n
theorem Int.cast_dvd_cast E1 #
∀ {α : Type u_2} [inst : Ring α] (m n : ℤ), m ∣ n → ↑m ∣ ↑n
theorem SemiconjBy.intCast_mul_right E0 #
∀ {α : Type u_2} [inst : Ring α] {a x y : α}, SemiconjBy a x y → ∀ (n : ℤ), SemiconjBy a (↑n * x) (↑n * y)
theorem SemiconjBy.intCast_mul_left E0 #
∀ {α : Type u_2} [inst : Ring α] {a x y : α}, SemiconjBy a x y → ∀ (n : ℤ), SemiconjBy (↑n * a) x y
theorem SemiconjBy.intCast_mul_intCast_mul E1 #
∀ {α : Type u_2} [inst : Ring α] {a x y : α}, SemiconjBy a x y → ∀ (m n : ℤ), SemiconjBy (↑m * a) (↑n * x) (↑n * y)
theorem Commute.intCast_left E0 #
∀ {α : Type u_2} [inst : NonAssocRing α] {a : α} {n : ℤ}, Commute (↑n) a
theorem Commute.intCast_right E0 #
∀ {α : Type u_2} [inst : NonAssocRing α] {a : α} {n : ℤ}, Commute a ↑n
theorem Commute.intCast_mul_right E1 #
∀ {α : Type u_2} [inst : Ring α] {a b : α}, Commute a b → ∀ (m : ℤ), Commute a (↑m * b)
theorem Commute.intCast_mul_left E1 #
∀ {α : Type u_2} [inst : Ring α] {a b : α}, Commute a b → ∀ (m : ℤ), Commute (↑m * a) b
theorem Commute.intCast_mul_intCast_mul E1 #
∀ {α : Type u_2} [inst : Ring α] {a b : α}, Commute a b → ∀ (m n : ℤ), Commute (↑m * a) (↑n * b)
theorem Commute.self_intCast_mul E1 #
∀ {α : Type u_2} [inst : Ring α] (a : α) (n : ℤ), Commute a (↑n * a)
theorem Commute.intCast_mul_self E1 #
∀ {α : Type u_2} [inst : Ring α] (a : α) (n : ℤ), Commute (↑n * a) a
theorem Commute.self_intCast_mul_intCast_mul E1 #
∀ {α : Type u_2} [inst : Ring α] (a : α) (m n : ℤ), Commute (↑m * a) (↑n * a)
theorem AddMonoidHom.ext_int E1 #
∀ {A : Type u_4} [inst : AddMonoid A] {f g : ℤ →+ A}, f 1 = g 1 → f = g
Two additive monoid homomorphisms f, g from ℤ to an additive monoid are equal
if f 1 = g 1.
theorem AddMonoidHom.ext_int_iff E0 #
∀ {A : Type u_4} [inst : AddMonoid A] {f g : ℤ →+ A}, f = g ↔ f 1 = g 1
theorem AddEquiv.ext_int E1 #
∀ {A : Type u_4} [inst : AddMonoid A] {f g : ℤ ≃+ A}, f 1 = g 1 → f = g
Two additive monoid isomorphisms f, g from ℤ to an additive monoid are equal
if f 1 = g 1.
theorem AddEquiv.ext_int_iff E0 #
∀ {A : Type u_4} [inst : AddMonoid A] {f g : ℤ ≃+ A}, f = g ↔ f 1 = g 1
theorem map_intCast' E0 #
∀ {F : Type u_1} {α : Type u_2} {β : Type u_3} [inst : AddGroupWithOne α] [inst_1 : AddGroupWithOne β]
[inst_2 : FunLike F α β] [AddMonoidHomClass F α β] (f : F), f 1 = 1 → ∀ (n : ℤ), f ↑n = ↑n
This version is primed so that the RingHomClass versions aren't.
theorem Int.castAddHom_int E0 #
Int.castAddHom ℤ = AddMonoidHom.id ℤ
theorem MonoidHom.ext_mint_iff E0 #
∀ {M : Type u_4} [inst : Monoid M] {f g : Multiplicative ℤ →* M},
f = g ↔ f (Multiplicative.ofAdd 1) = g (Multiplicative.ofAdd 1)
theorem MonoidHom.ext_mint E1 #
∀ {M : Type u_4} [inst : Monoid M] {f g : Multiplicative ℤ →* M},
f (Multiplicative.ofAdd 1) = g (Multiplicative.ofAdd 1) → f = g
theorem MonoidHom.ext_int E1 #
∀ {M : Type u_4} [inst : Monoid M] {f g : ℤ →* M}, f (-1) = g (-1) → f.comp ↑Int.ofNatHom = g.comp ↑Int.ofNatHom → f = g
If two MonoidHoms agree on -1 and the naturals then they are equal.
theorem MonoidHom.ext_int_iff E0 #
∀ {M : Type u_4} [inst : Monoid M] {f g : ℤ →* M}, f = g ↔ f (-1) = g (-1) ∧ f.comp ↑Int.ofNatHom = g.comp ↑Int.ofNatHom
theorem MonoidWithZeroHom.ext_int E1 #
∀ {M : Type u_4} [inst : MonoidWithZero M] {f g : ℤ →*₀ M},
f (-1) = g (-1) → f.comp ↑Int.ofNatHom = g.comp ↑Int.ofNatHom → f = g
If two MonoidWithZeroHoms agree on -1 and the naturals then they are equal.
theorem MonoidWithZeroHom.ext_int_iff E0 #
∀ {M : Type u_4} [inst : MonoidWithZero M] {f g : ℤ →*₀ M},
f = g ↔ f (-1) = g (-1) ∧ f.comp ↑Int.ofNatHom = g.comp ↑Int.ofNatHom
theorem ext_int' E1 #
∀ {F : Type u_1} {α : Type u_2} [inst : MonoidWithZero α] [inst_1 : FunLike F ℤ α] [MonoidWithZeroHomClass F ℤ α]
{f g : F}, f (-1) = g (-1) → (∀ (n : ℕ), 0 < n → f ↑n = g ↑n) → f = g
If two MonoidWithZeroHoms agree on -1 and the positive naturals then they are equal.
def zmultiplesHom E1 #
(β : Type u_3) → [inst : AddGroup β] → β ≃ (ℤ →+ β)
Additive homomorphisms from ℤ are defined by the image of 1.
def zpowersHom E1 #
(α : Type u_2) → [inst : Group α] → α ≃ (Multiplicative ℤ →* α)
Monoid homomorphisms from Multiplicative ℤ are defined by the image
of Multiplicative.ofAdd 1.
theorem zmultiplesHom_apply E0 #
∀ (β : Type u_3) [inst : AddGroup β] (x : β) (n : ℤ), ((zmultiplesHom β) x) n = n • x
theorem zmultiplesHom_symm_apply E0 #
∀ (β : Type u_3) [inst : AddGroup β] (f : ℤ →+ β), (zmultiplesHom β).symm f = f 1
theorem zmultiplesHom_injective E1 #
∀ {β : Type u_3} [inst : AddGroup β] [IsAddTorsionFree β] {x : β}, x ≠ 0 → Function.Injective ⇑((zmultiplesHom β) x)
theorem zpowersHom_apply E0 #
∀ (α : Type u_2) [inst : Group α] (x : α) (n : Multiplicative ℤ), ((zpowersHom α) x) n = x ^ Multiplicative.toAdd n
theorem zpowersHom_symm_apply E0 #
∀ (α : Type u_2) [inst : Group α] (f : Multiplicative ℤ →* α), (zpowersHom α).symm f = f (Multiplicative.ofAdd 1)
theorem MonoidHom.apply_mint E1 #
∀ (α : Type u_2) [inst : Group α] (f : Multiplicative ℤ →* α) (n : Multiplicative ℤ),
f n = f (Multiplicative.ofAdd 1) ^ Multiplicative.toAdd n
theorem AddMonoidHom.apply_int E1 #
∀ (β : Type u_3) [inst : AddGroup β] (f : ℤ →+ β) (n : ℤ), f n = n • f 1
def zmultiplesAddHom E1 #
(β : Type u_3) → [inst : AddCommGroup β] → β ≃+ (ℤ →+ β)
If α is commutative, zmultiplesHom is an additive equivalence.
def zpowersMulHom E1 #
(α : Type u_2) → [inst : CommGroup α] → α ≃* (Multiplicative ℤ →* α)
If α is commutative, zpowersHom is a multiplicative equivalence.
theorem zpowersMulHom_apply E0 #
∀ {α : Type u_2} [inst : CommGroup α] (x : α) (n : Multiplicative ℤ),
((zpowersMulHom α) x) n = x ^ Multiplicative.toAdd n
theorem zpowersMulHom_symm_apply E0 #
∀ {α : Type u_2} [inst : CommGroup α] (f : Multiplicative ℤ →* α), (zpowersMulHom α).symm f = f (Multiplicative.ofAdd 1)
theorem zmultiplesAddHom_apply E0 #
∀ (β : Type u_3) [inst : AddCommGroup β] (x : β) (n : ℤ), ((zmultiplesAddHom β) x) n = n • x
theorem zmultiplesAddHom_symm_apply E0 #
∀ (β : Type u_3) [inst : AddCommGroup β] (f : ℤ →+ β), (zmultiplesAddHom β).symm f = f 1
theorem map_intCast E0 #
∀ {F : Type u_1} {α : Type u_2} {β : Type u_3} [inst : NonAssocRing α] [inst_1 : NonAssocRing β]
[inst_2 : FunLike F α β] [RingHomClass F α β] (f : F) (n : ℤ), f ↑n = ↑n
theorem RingHom.ext_int E1 #
∀ {R : Type u_4} [inst : NonAssocSemiring R] (f g : ℤ →+* R), f = g
instance RingHom.Int.subsingleton_ringHom E0 #
∀ {R : Type u_4} [inst : NonAssocSemiring R], Subsingleton (ℤ →+* R)
theorem Int.castRingHom_int E0 #
Int.castRingHom ℤ = RingHom.id ℤ