The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V12. Number theory

Mathlib.NumberTheory.DirichletCharacter.Basic

89 declarations. Mathlib docs · Source

Dirichlet Characters

Let R be a commutative monoid with zero. A Dirichlet character χ of level n over R is a multiplicative character from ZMod n to R sending non-units to 0. We then obtain some properties of toUnitHom χ, the restriction of χ to a group homomorphism (ZMod n)ˣ →* Rˣ.

Main definitions

  • DirichletCharacter: The type representing a Dirichlet character.
  • changeLevel: Extend the Dirichlet character χ of level n to level m, where n divides m.
  • conductor: The conductor of a Dirichlet character.
  • IsPrimitive: If the level is equal to the conductor.

Tags

dirichlet character, multiplicative character

Definitions

Changing levels

Edge cases

The conductor

Specific subgroups

theorem DirichletCharacter.changeLevel.congr_simp E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n m : ℕ} (hm : n ∣ m),
  DirichletCharacter.changeLevel hm = DirichletCharacter.changeLevel hm

abbrev DirichletCharacter E1 #

(R : Type u_1) → [CommMonoidWithZero R] → ℕ → Type (max 0 u_1)

The type of Dirichlet characters of level n.

theorem DirichletCharacter.toUnitHom_eq_char' E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n) {a : ZMod n} (ha : IsUnit a),
  χ a = ↑((MulChar.toUnitHom χ) ha.unit)

theorem DirichletCharacter.toUnitHom_inj E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ ψ : DirichletCharacter R n),
  MulChar.toUnitHom χ = MulChar.toUnitHom ψ ↔ χ = ψ

theorem DirichletCharacter.eval_modulus_sub E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n) (x : ZMod n), χ (↑n - x) = χ (-x)

theorem DirichletCharacter.apply_ne_zero_iff E0 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n) [Nontrivial R] (a : ℤ),
  χ ↑a ≠ 0 ↔ IsCoprime a ↑n

theorem DirichletCharacter.apply_eq_zero_iff E0 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n) [Nontrivial R] (a : ℤ),
  χ ↑a = 0 ↔ ¬IsCoprime a ↑n

def DirichletCharacter.changeLevel E1 #

{R : Type u_1} → [inst : CommMonoidWithZero R] → {n m : ℕ} → n ∣ m → DirichletCharacter R n →* DirichletCharacter R m

A function that modifies the level of a Dirichlet character to some multiple of its original level.

theorem DirichletCharacter.changeLevel_def E0 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n) {m : ℕ} (hm : n ∣ m),
  (DirichletCharacter.changeLevel hm) χ = MulChar.ofUnitHom ((MulChar.toUnitHom χ).comp (ZMod.unitsMap hm))

theorem DirichletCharacter.changeLevel_toUnitHom E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n) {m : ℕ} (hm : n ∣ m),
  MulChar.toUnitHom ((DirichletCharacter.changeLevel hm) χ) = (MulChar.toUnitHom χ).comp (ZMod.unitsMap hm)

theorem DirichletCharacter.changeLevel_injective E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n m : ℕ} [NeZero m] (hm : n ∣ m),
  Function.Injective ⇑(DirichletCharacter.changeLevel hm)

The changeLevel map is injective (except in the degenerate case m = 0).

theorem DirichletCharacter.changeLevel_eq_one_iff E0 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n m : ℕ} [NeZero m] {χ : DirichletCharacter R n} (hm : n ∣ m),
  (DirichletCharacter.changeLevel hm) χ = 1 ↔ χ = 1

theorem DirichletCharacter.changeLevel_self E0 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n),
  (DirichletCharacter.changeLevel ⋯) χ = χ

theorem DirichletCharacter.changeLevel_self_toUnitHom E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n),
  MulChar.toUnitHom ((DirichletCharacter.changeLevel ⋯) χ) = MulChar.toUnitHom χ

theorem DirichletCharacter.changeLevel_trans E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n) {m d : ℕ} (hm : n ∣ m) (hd : m ∣ d),
  (DirichletCharacter.changeLevel ⋯) χ = (DirichletCharacter.changeLevel hd) ((DirichletCharacter.changeLevel hm) χ)

theorem DirichletCharacter.changeLevel_eq_cast_of_dvd E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n) {m : ℕ} (hm : n ∣ m)
  (a : (ZMod m)ˣ), ((DirichletCharacter.changeLevel hm) χ) ↑a = χ (↑a).cast

theorem DirichletCharacter.changeLevel_eq_cast_of_dvd' E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n) {m : ℕ} (hm : n ∣ m) {a : ℤ},
  IsCoprime a ↑m → ((DirichletCharacter.changeLevel hm) χ) ↑a = χ ↑a

def DirichletCharacter.FactorsThrough E1 #

{R : Type u_1} → [inst : CommMonoidWithZero R] → {n : ℕ} → DirichletCharacter R n → ℕ → Prop

χ of level n factors through a Dirichlet character χ₀ of level d if d ∣ n and χ₀ = χ ∘ (ZMod n → ZMod d).

theorem DirichletCharacter.changeLevel_factorsThrough E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n) {m : ℕ} (hm : n ∣ m),
  ((DirichletCharacter.changeLevel hm) χ).FactorsThrough n

theorem DirichletCharacter.FactorsThrough.dvd E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} {χ : DirichletCharacter R n} {d : ℕ}, χ.FactorsThrough d → d ∣ n

The fact that d divides n when χ factors through a Dirichlet character at level d

def DirichletCharacter.FactorsThrough.χ₀ E1 #

{R : Type u_1} →
  [inst : CommMonoidWithZero R] →
    {n : ℕ} → {χ : DirichletCharacter R n} → {d : ℕ} → χ.FactorsThrough d → DirichletCharacter R d

The Dirichlet character at level d through which χ factors

theorem DirichletCharacter.FactorsThrough.existsUnique E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} {χ : DirichletCharacter R n} {d : ℕ} [NeZero n]
  (h : χ.FactorsThrough d), ∃! χ', χ = (DirichletCharacter.changeLevel ⋯) χ'

The character of level d through which χ factors is uniquely determined.

theorem DirichletCharacter.FactorsThrough.same_level E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n), χ.FactorsThrough n

theorem DirichletCharacter.factorsThrough_iff_ker_unitsMap E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} {χ : DirichletCharacter R n} {d : ℕ} [NeZero n] (hd : d ∣ n),
  χ.FactorsThrough d ↔ (ZMod.unitsMap hd).ker ≤ (MulChar.toUnitHom χ).ker

A Dirichlet character χ factors through d | n iff its associated unit-group hom is trivial on the kernel of ZMod.unitsMap.

theorem DirichletCharacter.FactorsThrough.mono E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n) {d m : ℕ} [NeZero n],
  χ.FactorsThrough d → d ∣ m → m ∣ n → χ.FactorsThrough m

If χ factors through d and d ∣ m ∣ n, then χ also factors through m.

theorem DirichletCharacter.factorsThrough_gcd E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n) {m : ℕ} [NeZero n]
  (ψ : DirichletCharacter R m),
  (DirichletCharacter.changeLevel ⋯) χ = (DirichletCharacter.changeLevel ⋯) ψ → χ.FactorsThrough (n.gcd m)

Let χ and ψ be Dirichlet characters of level n and m respectively. Assume that they agree at level n * m. Then χ factors through gcd(n, m).

theorem DirichletCharacter.level_one E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] (χ : DirichletCharacter R 1), χ = 1

theorem DirichletCharacter.level_one' E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n), n = 1 → χ = 1

instance DirichletCharacter.instSubsingletonOfNatNat E0 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R], Subsingleton (DirichletCharacter R 1)

instance DirichletCharacter.instUniqueOfNatNat E0 #

{R : Type u_1} → [inst : CommMonoidWithZero R] → Unique (DirichletCharacter R 1)

theorem DirichletCharacter.map_zero' E0 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n), n ≠ 1 → χ 0 = 0

A Dirichlet character of modulus ≠ 1 maps 0 to 0.

theorem DirichletCharacter.changeLevel_one E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n d : ℕ} (h : d ∣ n), (DirichletCharacter.changeLevel h) 1 = 1

theorem DirichletCharacter.factorsThrough_one_iff E0 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n), χ.FactorsThrough 1 ↔ χ = 1

def DirichletCharacter.conductorSet E1 #

{R : Type u_1} → [inst : CommMonoidWithZero R] → {n : ℕ} → DirichletCharacter R n → Set ℕ

The set of natural numbers d such that χ factors through a character of level d.

theorem DirichletCharacter.mem_conductorSet_iff E0 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n) {x : ℕ},
  x ∈ χ.conductorSet ↔ χ.FactorsThrough x

theorem DirichletCharacter.level_mem_conductorSet E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n), n ∈ χ.conductorSet

theorem DirichletCharacter.mem_conductorSet_dvd E0 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n) {x : ℕ}, x ∈ χ.conductorSet → x ∣ n

theorem DirichletCharacter.zero_ne_mem_conductorSet E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n) [NeZero n], 0 ∉ χ.conductorSet

def DirichletCharacter.conductor E1 #

{R : Type u_1} → [inst : CommMonoidWithZero R] → {n : ℕ} → DirichletCharacter R n → ℕ

The minimum natural number level n through which χ factors.

theorem DirichletCharacter.conductor_mem_conductorSet E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n), χ.conductor ∈ χ.conductorSet

theorem DirichletCharacter.conductor_dvd_level E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n), χ.conductor ∣ n

theorem DirichletCharacter.factorsThrough_conductor E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n), χ.FactorsThrough χ.conductor

theorem DirichletCharacter.conductor_ne_zero E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n) [NeZero n], χ.conductor ≠ 0

theorem DirichletCharacter.conductor_one E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} [NeZero n], DirichletCharacter.conductor 1 = 1

The conductor of the trivial character is 1.

theorem DirichletCharacter.conductor_eq_zero_iff_level_eq_zero E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} {χ : DirichletCharacter R n}, χ.conductor = 0 ↔ n = 0

theorem DirichletCharacter.conductor_le_conductor_mem_conductorSet E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} {χ : DirichletCharacter R n} {d : ℕ} (hd : d ∈ χ.conductorSet),
  χ.conductor ≤ (Classical.choose ⋯).conductor

def DirichletCharacter.IsPrimitive E1 #

{R : Type u_1} → [inst : CommMonoidWithZero R] → {n : ℕ} → DirichletCharacter R n → Prop

A character is primitive if its level is equal to its conductor.

theorem DirichletCharacter.isPrimitive_def E0 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n), χ.IsPrimitive ↔ χ.conductor = n

theorem DirichletCharacter.isPrimitive_one_level_one E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R], DirichletCharacter.IsPrimitive 1

theorem DirichletCharacter.isPrimitive_one_level_zero E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R], DirichletCharacter.IsPrimitive 1

theorem DirichletCharacter.conductor_one_dvd E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] (n : ℕ), DirichletCharacter.conductor 1 ∣ n

def DirichletCharacter.primitiveCharacter E1 #

{R : Type u_1} →
  [inst : CommMonoidWithZero R] → {n : ℕ} → (χ : DirichletCharacter R n) → DirichletCharacter R χ.conductor

The primitive character associated to a Dirichlet character.

theorem DirichletCharacter.changeLevel_primitiveCharacter E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n),
  (DirichletCharacter.changeLevel ⋯) χ.primitiveCharacter = χ

theorem DirichletCharacter.primitiveCharacter_isPrimitive E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n), χ.primitiveCharacter.IsPrimitive

theorem DirichletCharacter.primitiveCharacter_one E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} [NeZero n], DirichletCharacter.primitiveCharacter 1 = 1

theorem DirichletCharacter.primitiveCharacter_apply_of_isCoprime E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n) {a : ℤ},
  IsCoprime a ↑n → χ.primitiveCharacter ↑a = χ ↑a

theorem DirichletCharacter.conductor_dvd_of_mem_conductorSet E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n) {d : ℕ} [NeZero n],
  d ∈ χ.conductorSet → χ.conductor ∣ d

theorem DirichletCharacter.mem_conductorSet_iff_conductor_dvd E0 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n) {d : ℕ} [NeZero n],
  d ∣ n → (d ∈ χ.conductorSet ↔ χ.conductor ∣ d)

A divisor d of n belongs to the conductor set of χ if and only if the conductor of χ divides d.

theorem DirichletCharacter.conductor_changeLevel E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n) {m : ℕ} [NeZero m] (hm : n ∣ m),
  ((DirichletCharacter.changeLevel hm) χ).conductor = χ.conductor

The conductor is invariant under changeLevel: lifting a Dirichlet character χ of level n to a multiple level m does not change its conductor.

theorem DirichletCharacter.primitiveCharacter_changeLevel_apply E0 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} [Nontrivial R] {m : ℕ} [NeZero m] (hm : n ∣ m)
  (χ : DirichletCharacter R n) (a : ℤ),
  ((DirichletCharacter.changeLevel hm) χ).primitiveCharacter ↑a = χ.primitiveCharacter ↑a

The primitive character of changeLevel hm χ is equal to the primitive character of χ. This is stated as a pointwise equality because the equality of Dirichlet characters does not typecheck.

theorem DirichletCharacter.conductor_zpow_dvd E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n) (m : ℤ),
  (χ ^ m).conductor ∣ χ.conductor

theorem DirichletCharacter.conductor_pow_dvd E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n) (m : ℕ),
  (χ ^ m).conductor ∣ χ.conductor

theorem DirichletCharacter.conductor_inv E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n), χ⁻¹.conductor = χ.conductor

The conductor of χ⁻¹ equals the conductor of χ.

theorem DirichletCharacter.IsPrimitive.inv E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} {χ : DirichletCharacter R n}, χ.IsPrimitive → χ⁻¹.IsPrimitive

The inverse of a primitive Dirichlet character is primitive.

def DirichletCharacter.mul E1 #

{R : Type u_1} →
  [inst : CommMonoidWithZero R] →
    {n m : ℕ} → DirichletCharacter R n → DirichletCharacter R m → DirichletCharacter R (n.lcm m)

Dirichlet character associated to multiplication of Dirichlet characters, after changing both levels to the same

def DirichletCharacter.primitive_mul E1 #

{R : Type u_1} →
  [inst : CommMonoidWithZero R] →
    {n m : ℕ} →
      (χ₁ : DirichletCharacter R n) → (χ₂ : DirichletCharacter R m) → DirichletCharacter R (χ₁.mul χ₂).conductor

Primitive character associated to multiplication of Dirichlet characters, after changing both levels to the same

theorem DirichletCharacter.mul_def E0 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n m : ℕ} {χ : DirichletCharacter R n} {ψ : DirichletCharacter R m},
  χ.primitive_mul ψ = (χ.mul ψ).primitiveCharacter

theorem DirichletCharacter.primitive_mul_isPrimitive E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n) {m : ℕ}
  (ψ : DirichletCharacter R m), (χ.primitive_mul ψ).IsPrimitive

theorem DirichletCharacter.conductor_mul_dvd_lcm_conductor E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ ψ : DirichletCharacter R n),
  (χ * ψ).conductor ∣ χ.conductor.lcm ψ.conductor

The conductor of χ * ψ divides the lcm of the conductors of χ and ψ.

def DirichletCharacter.subgroupOfCoprimeConductor E1 #

{R : Type u_1} → [inst : CommMonoidWithZero R] → {n : ℕ} → [NeZero n] → ℕ → Subgroup (DirichletCharacter R n)

The subgroup of Dirichlet characters of level n whose conductor is coprime to d.

theorem DirichletCharacter.mem_subgroupOfCoprimeConductor E0 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} [inst_1 : NeZero n] {d : ℕ} {χ : DirichletCharacter R n},
  χ ∈ DirichletCharacter.subgroupOfCoprimeConductor d ↔ d.Coprime χ.conductor

def DirichletCharacter.annihilator E1 #

(R : Type u_1) → [inst : CommMonoidWithZero R] → {n : ℕ} → Set (ZMod n)ˣ → Subgroup (DirichletCharacter R n)

The annihilator of a set H of units mod n: the subgroup of Dirichlet characters of level n that send every element of H to 1.

theorem DirichletCharacter.mem_annihilator_iff_mem_closure E0 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} {H : Set (ZMod n)ˣ} {χ : DirichletCharacter R n},
  χ ∈ DirichletCharacter.annihilator R H ↔ ∀ x ∈ Submonoid.closure H, χ ↑x = 1

theorem DirichletCharacter.mem_annihilator_iff E0 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} {H : Set (ZMod n)ˣ} {χ : DirichletCharacter R n},
  χ ∈ DirichletCharacter.annihilator R H ↔ ∀ a ∈ H, χ ↑a = 1

def DirichletCharacter.subgroupOfPrimitiveMapToOne E1 #

(R : Type u_1) →
  [inst : CommMonoidWithZero R] →
    (n : ℕ) → [NeZero n] → (p : ℕ) → [hp : Fact (Nat.Prime p)] → Subgroup (DirichletCharacter R n)

The subgroup of Dirichlet characters of level n whose primitive character sends the prime p to 1. See mem_subgroupOfPrimitiveMapToOne_iff for this characterization.

TODO: Generalize to an arbitrary nonzero integer d, replacing the hypothesis p.Prime with a coprimality condition and n / p ^ n.factorization p with the largest factor of n coprime to d. This would require additional Mathlib API for that construction.

theorem DirichletCharacter.mem_subgroupOfPrimitiveMapToOne_iff E0 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] {n : ℕ} (χ : DirichletCharacter R n) [inst_1 : NeZero n] [Nontrivial R]
  (p : ℕ) [hp : Fact (Nat.Prime p)],
  χ ∈ DirichletCharacter.subgroupOfPrimitiveMapToOne R n p ↔ χ.primitiveCharacter ↑p = 1

def DirichletCharacter.Odd E1 #

{S : Type u_2} → [inst : CommRing S] → {m : ℕ} → DirichletCharacter S m → Prop

A Dirichlet character is odd if its value at -1 is -1.

def DirichletCharacter.Even E1 #

{S : Type u_2} → [inst : CommRing S] → {m : ℕ} → DirichletCharacter S m → Prop

A Dirichlet character is even if its value at -1 is 1.

theorem DirichletCharacter.even_or_odd E1 #

∀ {S : Type u_2} [inst : CommRing S] {m : ℕ} (ψ : DirichletCharacter S m) [NoZeroDivisors S], ψ.Even ∨ ψ.Odd

theorem DirichletCharacter.even_one E0 #

∀ {S : Type u_2} [inst : CommRing S] {m : ℕ}, DirichletCharacter.Even 1

The trivial Dirichlet character is even.

theorem DirichletCharacter.not_even_and_odd E1 #

∀ {S : Type u_2} [inst : CommRing S] {m : ℕ} (ψ : DirichletCharacter S m) [NeZero 2], ¬(ψ.Even ∧ ψ.Odd)

theorem DirichletCharacter.Even.not_odd E1 #

∀ {S : Type u_2} [inst : CommRing S] {m : ℕ} (ψ : DirichletCharacter S m) [NeZero 2], ψ.Even → ¬ψ.Odd

theorem DirichletCharacter.Odd.not_even E1 #

∀ {S : Type u_2} [inst : CommRing S] {m : ℕ} (ψ : DirichletCharacter S m) [NeZero 2], ψ.Odd → ¬ψ.Even

theorem DirichletCharacter.Odd.toUnitHom_eval_neg_one E1 #

∀ {S : Type u_2} [inst : CommRing S] {m : ℕ} (ψ : DirichletCharacter S m), ψ.Odd → (MulChar.toUnitHom ψ) (-1) = -1

theorem DirichletCharacter.Even.toUnitHom_eval_neg_one E1 #

∀ {S : Type u_2} [inst : CommRing S] {m : ℕ} (ψ : DirichletCharacter S m), ψ.Even → (MulChar.toUnitHom ψ) (-1) = 1

theorem DirichletCharacter.Odd.eval_neg E1 #

∀ {S : Type u_2} [inst : CommRing S] {m : ℕ} (ψ : DirichletCharacter S m) (x : ZMod m), ψ.Odd → ψ (-x) = -ψ x

theorem DirichletCharacter.Even.eval_neg E1 #

∀ {S : Type u_2} [inst : CommRing S] {m : ℕ} (ψ : DirichletCharacter S m) (x : ZMod m), ψ.Even → ψ (-x) = ψ x

theorem DirichletCharacter.Even.to_fun E1 #

∀ {S : Type u_2} [inst : CommRing S] {m : ℕ} {χ : DirichletCharacter S m}, χ.Even → Function.Even ⇑χ

An even Dirichlet character is an even function.

theorem DirichletCharacter.Odd.to_fun E1 #

∀ {S : Type u_2} [inst : CommRing S] {m : ℕ} {χ : DirichletCharacter S m}, χ.Odd → Function.Odd ⇑χ

An odd Dirichlet character is an odd function.