Mathlib.Algebra.Group.EvenFunction
26 declarations. Mathlib docs · Source
def Function.Even E1 #
{α : Type u_1} → {β : Type u_2} → [Neg α] → (α → β) → Prop
A function f is even if it satisfies f (-x) = f x for all x.
def Function.Odd E1 #
{α : Type u_1} → {β : Type u_2} → [Neg α] → [Neg β] → (α → β) → Prop
A function f is odd if it satisfies f (-x) = -f x for all x.
theorem Function.Even.eq E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Neg α] {f : α → β}, Function.Even f → ∀ (x : α), f (-x) = f x
An even function f satisfies f (-x) = f x.
theorem Function.Even.const E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Neg α] (b : β), Function.Even fun x ↦ b
Any constant function is even.
theorem Function.Even.zero E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Neg α] [inst_1 : Zero β], Function.Even fun x ↦ 0
The zero function is even.
theorem Function.Odd.eq E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Neg α] [inst_1 : Neg β] {f : α → β}, Function.Odd f → ∀ (x : α), f (-x) = -f x
An odd function f satisfies f (-x) = -f x.
theorem Function.Odd.zero E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Neg α] [inst_1 : NegZeroClass β], Function.Odd fun x ↦ 0
The zero function is odd.
theorem Function.Even.left_comp E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Neg α] {γ : Type u_3} {g : α → β},
Function.Even g → ∀ (f : β → γ), Function.Even (f ∘ g)
If f is arbitrary and g is even, then f ∘ g is even.
theorem Function.Even.comp_odd E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Neg α] {γ : Type u_3} [inst_1 : Neg β] {f : β → γ},
Function.Even f → ∀ {g : α → β}, Function.Odd g → Function.Even (f ∘ g)
If f is even and g is odd, then f ∘ g is even.
theorem Function.Odd.comp_odd E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Neg α] {γ : Type u_3} [inst_1 : Neg β] [inst_2 : Neg γ] {f : β → γ},
Function.Odd f → ∀ {g : α → β}, Function.Odd g → Function.Odd (f ∘ g)
If f and g are odd, then f ∘ g is odd.
theorem Function.Even.add E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Neg α] [inst_1 : Add β] {f g : α → β},
Function.Even f → Function.Even g → Function.Even (f + g)
theorem Function.Odd.add E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Neg α] [inst_1 : SubtractionCommMonoid β] {f g : α → β},
Function.Odd f → Function.Odd g → Function.Odd (f + g)
theorem Function.Even.smul_even E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Neg α] {γ : Type u_3} {f : α → β} {g : α → γ} [inst_1 : SMul β γ],
Function.Even f → Function.Even g → Function.Even (f • g)
theorem Function.Even.smul_odd E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Neg α] {γ : Type u_3} {f : α → β} {g : α → γ} [inst_1 : Monoid β]
[inst_2 : AddGroup γ] [inst_3 : DistribMulAction β γ], Function.Even f → Function.Odd g → Function.Odd (f • g)
theorem Function.Odd.smul_even E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Neg α] {γ : Type u_3} {f : α → β} {g : α → γ} [inst_1 : Ring β]
[inst_2 : AddCommGroup γ] [inst_3 : Module β γ], Function.Odd f → Function.Even g → Function.Odd (f • g)
theorem Function.Odd.smul_odd E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Neg α] {γ : Type u_3} {f : α → β} {g : α → γ} [inst_1 : Ring β]
[inst_2 : AddCommGroup γ] [inst_3 : Module β γ], Function.Odd f → Function.Odd g → Function.Even (f • g)
theorem Function.Even.const_smul E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Neg α] {γ : Type u_3} {g : α → γ} [inst_1 : SMul β γ],
Function.Even g → ∀ (r : β), Function.Even (r • g)
theorem Function.Odd.const_smul E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Neg α] {γ : Type u_3} {g : α → γ} [inst_1 : Monoid β] [inst_2 : AddGroup γ]
[inst_3 : DistribMulAction β γ], Function.Odd g → ∀ (r : β), Function.Odd (r • g)
theorem Function.Even.mul_even E1 #
∀ {α : Type u_1} [inst : Neg α] {R : Type u_3} [inst_1 : Mul R] {f g : α → R},
Function.Even f → Function.Even g → Function.Even (f * g)
theorem Function.Even.mul_odd E1 #
∀ {α : Type u_1} [inst : Neg α] {R : Type u_3} [inst_1 : Mul R] {f g : α → R} [inst_2 : HasDistribNeg R],
Function.Even f → Function.Odd g → Function.Odd (f * g)
theorem Function.Odd.mul_even E1 #
∀ {α : Type u_1} [inst : Neg α] {R : Type u_3} [inst_1 : Mul R] {f g : α → R} [inst_2 : HasDistribNeg R],
Function.Odd f → Function.Even g → Function.Odd (f * g)
theorem Function.Odd.mul_odd E1 #
∀ {α : Type u_1} [inst : Neg α] {R : Type u_3} [inst_1 : Mul R] {f g : α → R} [inst_2 : HasDistribNeg R],
Function.Odd f → Function.Odd g → Function.Even (f * g)
theorem Function.zero_of_even_and_odd E1 #
∀ {α : Type u_3} {β : Type u_4} [inst : AddCommGroup β] [HasUniqueDiv β] {f : α → β} [inst_2 : Neg α],
Function.Even f → Function.Odd f → f = 0
If f is both even and odd, and its target is a torsion-free commutative additive group,
then f = 0.
theorem Function.Odd.finsetSum_eq_zero E1 #
∀ {α : Type u_3} {β : Type u_4} [inst : AddCommGroup β] [HasUniqueDiv β] [inst_2 : InvolutiveNeg α] {f : α → β},
Function.Odd f → ∀ {s : Finset α}, Finset.map (Equiv.toEmbedding (Equiv.neg α)) s = s → s.sum f = 0
The sum of values of an odd function over a symmetric finite set is zero.
theorem Function.Odd.sum_eq_zero E1 #
∀ {α : Type u_3} {β : Type u_4} [inst : AddCommGroup β] [HasUniqueDiv β] [inst_2 : Fintype α] [inst_3 : InvolutiveNeg α]
{f : α → β}, Function.Odd f → ∑ a, f a = 0
The sum of the values of an odd function is 0.
theorem Function.Odd.map_zero E0 #
∀ {α : Type u_3} {β : Type u_4} [inst : AddCommGroup β] [HasUniqueDiv β] {f : α → β} [inst_2 : NegZeroClass α],
Function.Odd f → f 0 = 0
An odd function vanishes at zero.