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 / V05. Groups

Mathlib.GroupTheory.Perm.Cycle.Basic

142 declarations. Mathlib docs · Source

Cycles of a permutation

This file starts the theory of cycles in permutations.

Main definitions

In the following, f : Equiv.Perm β.

  • Equiv.Perm.SameCycle: f.SameCycle x y when x and y are in the same cycle of f.
  • Equiv.Perm.IsCycle: f is a cycle if any two nonfixed points of f are related by repeated applications of f, and f is not the identity.
  • Equiv.Perm.IsCycleOn: f is a cycle on a set s when any two points of s are related by repeated applications of f.

Notes

Equiv.Perm.IsCycle and Equiv.Perm.IsCycleOn are different in three ways:

  • IsCycle is about the entire type while IsCycleOn is restricted to a set.
  • IsCycle forbids the identity while IsCycleOn allows it (if s is a subsingleton).
  • IsCycleOn forbids fixed points on s (if s is nontrivial), while IsCycle allows them.

SameCycle

IsCycle

IsCycleOn

theorem zpowersEquivZPowers.congr_simp E1 #

∀ {G : Type u_1} [inst : Group G] {x y : G} [inst_1 : Finite G] (h : orderOf x = orderOf y),
  zpowersEquivZPowers h = zpowersEquivZPowers h

theorem Equiv.Perm.IsCycle.zpowersEquivSupport.congr_simp E1 #

∀ {α : Type u_2} [inst : DecidableEq α] [inst_1 : Fintype α] {σ : Equiv.Perm α} (hσ : σ.IsCycle),
  hσ.zpowersEquivSupport = hσ.zpowersEquivSupport

def Equiv.Perm.SameCycle E3 #

{α : Type u_2} → Equiv.Perm α → α → α → Prop

The equivalence relation indicating that two points are in the same cycle of a permutation.

theorem Equiv.Perm.SameCycle.refl E1 #

∀ {α : Type u_2} (f : Equiv.Perm α) (x : α), f.SameCycle x x

theorem Equiv.Perm.SameCycle.rfl E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x : α}, f.SameCycle x x

theorem Eq.sameCycle E1 #

∀ {α : Type u_2} {x y : α}, x = y → ∀ (f : Equiv.Perm α), f.SameCycle x y

theorem Equiv.Perm.SameCycle.symm E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α}, f.SameCycle x y → f.SameCycle y x

theorem Equiv.Perm.sameCycle_comm E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α}, f.SameCycle x y ↔ f.SameCycle y x

theorem Equiv.Perm.SameCycle.trans E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y z : α}, f.SameCycle x y → f.SameCycle y z → f.SameCycle x z

theorem Equiv.Perm.SameCycle.equivalence E1 #

∀ {α : Type u_2} (f : Equiv.Perm α), Equivalence f.SameCycle

def Equiv.Perm.SameCycle.setoid E1 #

{α : Type u_2} → Equiv.Perm α → Setoid α

The setoid defined by the SameCycle relation.

theorem Equiv.Perm.sameCycle_one E0 #

∀ {α : Type u_2} {x y : α}, Equiv.Perm.SameCycle 1 x y ↔ x = y

theorem Equiv.Perm.sameCycle_inv E0 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α}, f⁻¹.SameCycle x y ↔ f.SameCycle x y

theorem Equiv.Perm.SameCycle.of_inv E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α}, f⁻¹.SameCycle x y → f.SameCycle x y

Alias of the forward direction of Equiv.Perm.sameCycle_inv.

theorem Equiv.Perm.SameCycle.inv E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α}, f.SameCycle x y → f⁻¹.SameCycle x y

Alias of the reverse direction of Equiv.Perm.sameCycle_inv.

theorem Equiv.Perm.sameCycle_conj E0 #

∀ {α : Type u_2} {f g : Equiv.Perm α} {x y : α}, (g * f * g⁻¹).SameCycle x y ↔ f.SameCycle (g⁻¹ x) (g⁻¹ y)

theorem Equiv.Perm.SameCycle.conj E1 #

∀ {α : Type u_2} {f g : Equiv.Perm α} {x y : α}, f.SameCycle x y → (g * f * g⁻¹).SameCycle (g x) (g y)

theorem Equiv.Perm.SameCycle.apply_eq_self_iff E0 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α}, f.SameCycle x y → (f x = x ↔ f y = y)

theorem Equiv.Perm.sameCycle_apply_left E0 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α}, f.SameCycle (f x) y ↔ f.SameCycle x y

theorem Equiv.Perm.sameCycle_apply_right E0 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α}, f.SameCycle x (f y) ↔ f.SameCycle x y

theorem Equiv.Perm.sameCycle_symm_apply_left E0 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α}, f.SameCycle ((Equiv.symm f) x) y ↔ f.SameCycle x y

theorem Equiv.Perm.sameCycle_symm_apply_right E0 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α}, f.SameCycle x ((Equiv.symm f) y) ↔ f.SameCycle x y

theorem Equiv.Perm.sameCycle_zpow_left E0 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α} {n : ℤ}, f.SameCycle ((f ^ n) x) y ↔ f.SameCycle x y

theorem Equiv.Perm.sameCycle_zpow_right E0 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α} {n : ℤ}, f.SameCycle x ((f ^ n) y) ↔ f.SameCycle x y

theorem Equiv.Perm.sameCycle_pow_left E0 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α} {n : ℕ}, f.SameCycle ((f ^ n) x) y ↔ f.SameCycle x y

theorem Equiv.Perm.sameCycle_pow_right E0 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α} {n : ℕ}, f.SameCycle x ((f ^ n) y) ↔ f.SameCycle x y

theorem Equiv.Perm.SameCycle.apply_left E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α}, f.SameCycle x y → f.SameCycle (f x) y

Alias of the reverse direction of Equiv.Perm.sameCycle_apply_left.

theorem Equiv.Perm.SameCycle.of_apply_left E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α}, f.SameCycle (f x) y → f.SameCycle x y

Alias of the forward direction of Equiv.Perm.sameCycle_apply_left.

theorem Equiv.Perm.SameCycle.apply_right E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α}, f.SameCycle x y → f.SameCycle x (f y)

Alias of the reverse direction of Equiv.Perm.sameCycle_apply_right.

theorem Equiv.Perm.SameCycle.of_apply_right E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α}, f.SameCycle x (f y) → f.SameCycle x y

Alias of the forward direction of Equiv.Perm.sameCycle_apply_right.

theorem Equiv.Perm.SameCycle.of_symm_apply_left E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α}, f.SameCycle ((Equiv.symm f) x) y → f.SameCycle x y

Alias of the forward direction of Equiv.Perm.sameCycle_symm_apply_left.

theorem Equiv.Perm.SameCycle.symm_apply_left E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α}, f.SameCycle x y → f.SameCycle ((Equiv.symm f) x) y

Alias of the reverse direction of Equiv.Perm.sameCycle_symm_apply_left.

theorem Equiv.Perm.SameCycle.symm_apply_right E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α}, f.SameCycle x y → f.SameCycle x ((Equiv.symm f) y)

Alias of the reverse direction of Equiv.Perm.sameCycle_symm_apply_right.

theorem Equiv.Perm.SameCycle.of_symm_apply_right E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α}, f.SameCycle x ((Equiv.symm f) y) → f.SameCycle x y

Alias of the forward direction of Equiv.Perm.sameCycle_symm_apply_right.

theorem Equiv.Perm.SameCycle.of_pow_left E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α} {n : ℕ}, f.SameCycle ((f ^ n) x) y → f.SameCycle x y

Alias of the forward direction of Equiv.Perm.sameCycle_pow_left.

theorem Equiv.Perm.SameCycle.pow_left E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α} {n : ℕ}, f.SameCycle x y → f.SameCycle ((f ^ n) x) y

Alias of the reverse direction of Equiv.Perm.sameCycle_pow_left.

theorem Equiv.Perm.SameCycle.pow_right E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α} {n : ℕ}, f.SameCycle x y → f.SameCycle x ((f ^ n) y)

Alias of the reverse direction of Equiv.Perm.sameCycle_pow_right.

theorem Equiv.Perm.SameCycle.of_pow_right E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α} {n : ℕ}, f.SameCycle x ((f ^ n) y) → f.SameCycle x y

Alias of the forward direction of Equiv.Perm.sameCycle_pow_right.

theorem Equiv.Perm.SameCycle.zpow_left E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α} {n : ℤ}, f.SameCycle x y → f.SameCycle ((f ^ n) x) y

Alias of the reverse direction of Equiv.Perm.sameCycle_zpow_left.

theorem Equiv.Perm.SameCycle.of_zpow_left E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α} {n : ℤ}, f.SameCycle ((f ^ n) x) y → f.SameCycle x y

Alias of the forward direction of Equiv.Perm.sameCycle_zpow_left.

theorem Equiv.Perm.SameCycle.zpow_right E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α} {n : ℤ}, f.SameCycle x y → f.SameCycle x ((f ^ n) y)

Alias of the reverse direction of Equiv.Perm.sameCycle_zpow_right.

theorem Equiv.Perm.SameCycle.of_zpow_right E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α} {n : ℤ}, f.SameCycle x ((f ^ n) y) → f.SameCycle x y

Alias of the forward direction of Equiv.Perm.sameCycle_zpow_right.

theorem Equiv.Perm.SameCycle.of_pow E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α} {n : ℕ}, (f ^ n).SameCycle x y → f.SameCycle x y

theorem Equiv.Perm.SameCycle.of_zpow E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α} {n : ℤ}, (f ^ n).SameCycle x y → f.SameCycle x y

theorem Equiv.Perm.sameCycle_subtypePerm E0 #

∀ {α : Type u_2} {f : Equiv.Perm α} {p : α → Prop} {h : ∀ (x : α), p (f x) ↔ p x} {x y : { x // p x }},
  (f.subtypePerm h).SameCycle x y ↔ f.SameCycle ↑x ↑y

theorem Equiv.Perm.SameCycle.subtypePerm E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {p : α → Prop} {h : ∀ (x : α), p (f x) ↔ p x} {x y : { x // p x }},
  f.SameCycle ↑x ↑y → (f.subtypePerm h).SameCycle x y

Alias of the reverse direction of Equiv.Perm.sameCycle_subtypePerm.

theorem Equiv.Perm.sameCycle_extendDomain E0 #

∀ {α : Type u_2} {β : Type u_3} {g : Equiv.Perm α} {x y : α} {p : β → Prop} [inst : DecidablePred p]
  {f : α ≃ Subtype p}, (g.extendDomain f).SameCycle ↑(f x) ↑(f y) ↔ g.SameCycle x y

theorem Equiv.Perm.SameCycle.extendDomain E1 #

∀ {α : Type u_2} {β : Type u_3} {g : Equiv.Perm α} {x y : α} {p : β → Prop} [inst : DecidablePred p]
  {f : α ≃ Subtype p}, g.SameCycle x y → (g.extendDomain f).SameCycle ↑(f x) ↑(f y)

Alias of the reverse direction of Equiv.Perm.sameCycle_extendDomain.

theorem Equiv.Perm.SameCycle.exists_pow_eq' E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α} [Finite α], f.SameCycle x y → ∃ i < orderOf f, (f ^ i) x = y

theorem Equiv.Perm.SameCycle.exists_pow_eq'' E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α} [Finite α], f.SameCycle x y → ∃ i, 0 < i ∧ i ≤ orderOf f ∧ (f ^ i) x = y

theorem Equiv.Perm.SameCycle.exists_fin_pow_eq E0 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α} [Finite α], f.SameCycle x y → ∃ i, (f ^ ↑i) x = y

theorem Equiv.Perm.SameCycle.exists_nat_pow_eq E0 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α} [Finite α], f.SameCycle x y → ∃ i, (f ^ i) x = y

instance Equiv.Perm.instDecidableRelSameCycleInv E0 #

{α : Type u_2} → (f : Equiv.Perm α) → [DecidableRel f.SameCycle] → DecidableRel f⁻¹.SameCycle

instance Equiv.Perm.instDecidableRelSameCycleOfNatOfDecidableEq E0 #

{α : Type u_2} → [DecidableEq α] → DecidableRel (Equiv.Perm.SameCycle 1)

def Equiv.Perm.IsCycle E3 #

{α : Type u_2} → Equiv.Perm α → Prop

A cycle is a non-identity permutation where any two nonfixed points of the permutation are related by repeated application of the permutation.

theorem Equiv.Perm.IsCycle.ne_one E1 #

∀ {α : Type u_2} {f : Equiv.Perm α}, f.IsCycle → f ≠ 1

theorem Equiv.Perm.not_isCycle_one E0 #

∀ {α : Type u_2}, ¬Equiv.Perm.IsCycle 1

theorem Equiv.Perm.IsCycle.sameCycle E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α}, f.IsCycle → f x ≠ x → f y ≠ y → f.SameCycle x y

theorem Equiv.Perm.IsCycle.exists_zpow_eq E0 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α}, f.IsCycle → f x ≠ x → f y ≠ y → ∃ i, (f ^ i) x = y

theorem Equiv.Perm.IsCycle.inv E1 #

∀ {α : Type u_2} {f : Equiv.Perm α}, f.IsCycle → f⁻¹.IsCycle

theorem Equiv.Perm.isCycle_inv E0 #

∀ {α : Type u_2} {f : Equiv.Perm α}, f⁻¹.IsCycle ↔ f.IsCycle

theorem Equiv.Perm.IsCycle.conj E1 #

∀ {α : Type u_2} {f g : Equiv.Perm α}, f.IsCycle → (g * f * g⁻¹).IsCycle

theorem Equiv.Perm.IsCycle.extendDomain E1 #

∀ {α : Type u_2} {β : Type u_3} {g : Equiv.Perm α} {p : β → Prop} [inst : DecidablePred p] (f : α ≃ Subtype p),
  g.IsCycle → (g.extendDomain f).IsCycle

theorem Equiv.Perm.isCycle_iff_sameCycle E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x : α}, f x ≠ x → (f.IsCycle ↔ ∀ {y : α}, f.SameCycle x y ↔ f y ≠ y)

theorem Equiv.Perm.IsCycle.exists_pow_eq E0 #

∀ {α : Type u_2} {f : Equiv.Perm α} {x y : α} [Finite α], f.IsCycle → f x ≠ x → f y ≠ y → ∃ i, (f ^ i) x = y

theorem Equiv.Perm.isCycle_swap E1 #

∀ {α : Type u_2} {x y : α} [inst : DecidableEq α], x ≠ y → (Equiv.swap x y).IsCycle

theorem Equiv.Perm.IsSwap.isCycle E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} [inst : DecidableEq α], f.IsSwap → f.IsCycle

theorem Equiv.Perm.swap_isSwap_iff E0 #

∀ {α : Type u_2} [inst : DecidableEq α] {a b : α}, (Equiv.swap a b).IsSwap ↔ a ≠ b

theorem Equiv.Perm.IsCycle.two_le_card_support E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} [inst : DecidableEq α] [inst_1 : Fintype α], f.IsCycle → 2 ≤ f.support.card

def Equiv.Perm.IsCycle.zpowersEquivSupport E1 #

{α : Type u_2} →
  [inst : DecidableEq α] → [inst_1 : Fintype α] → {σ : Equiv.Perm α} → σ.IsCycle → ↥(Subgroup.zpowers σ) ≃ ↥σ.support

The subgroup generated by a cycle is in bijection with its support

theorem Equiv.Perm.IsCycle.zpowersEquivSupport_apply E0 #

∀ {α : Type u_2} [inst : DecidableEq α] [inst_1 : Fintype α] {σ : Equiv.Perm α} (hσ : σ.IsCycle) {n : ℕ},
  hσ.zpowersEquivSupport ⟨σ ^ n, ⋯⟩ = ⟨(σ ^ n) (Classical.choose hσ), ⋯⟩

theorem Equiv.Perm.IsCycle.zpowersEquivSupport_symm_apply E0 #

∀ {α : Type u_2} [inst : DecidableEq α] [inst_1 : Fintype α] {σ : Equiv.Perm α} (hσ : σ.IsCycle) (n : ℕ),
  hσ.zpowersEquivSupport.symm ⟨(σ ^ n) (Classical.choose hσ), ⋯⟩ = ⟨σ ^ n, ⋯⟩

theorem Equiv.Perm.IsCycle.orderOf E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} [inst : DecidableEq α] [inst_1 : Fintype α], f.IsCycle → orderOf f = f.support.card

theorem Equiv.Perm.isCycle_swap_mul_aux₁ E1 #

∀ {α : Type u_4} [inst : DecidableEq α] (n : ℕ) {b x : α} {f : Equiv.Perm α},
  (Equiv.swap x (f x) * f) b ≠ b → (f ^ n) (f x) = b → ∃ i, ((Equiv.swap x (f x) * f) ^ i) (f x) = b

theorem Equiv.Perm.isCycle_swap_mul_aux₂ E1 #

∀ {α : Type u_4} [inst : DecidableEq α] (n : ℤ) {b x : α} {f : Equiv.Perm α},
  (Equiv.swap x (f x) * f) b ≠ b → (f ^ n) (f x) = b → ∃ i, ((Equiv.swap x (f x) * f) ^ i) (f x) = b

theorem Equiv.Perm.IsCycle.swap_mul E1 #

∀ {α : Type u_4} [inst : DecidableEq α] {f : Equiv.Perm α},
  f.IsCycle → ∀ {x : α}, f x ≠ x → f (f x) ≠ x → (Equiv.swap x (f x) * f).IsCycle

theorem Equiv.Perm.IsCycle.sign E1 #

∀ {α : Type u_2} [inst : DecidableEq α] [inst_1 : Fintype α] {f : Equiv.Perm α},
  f.IsCycle → Equiv.Perm.sign f = -(-1) ^ f.support.card

theorem Equiv.Perm.IsCycle.of_pow E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} [inst : DecidableEq α] [inst_1 : Fintype α] {n : ℕ},
  (f ^ n).IsCycle → f.support ⊆ (f ^ n).support → f.IsCycle

theorem Equiv.Perm.IsCycle.of_zpow E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} [inst : DecidableEq α] [inst_1 : Fintype α] {n : ℤ},
  (f ^ n).IsCycle → f.support ⊆ (f ^ n).support → f.IsCycle

theorem Equiv.Perm.nodup_of_pairwise_disjoint_cycles E1 #

∀ {β : Type u_3} {l : List (Equiv.Perm β)}, (∀ f ∈ l, f.IsCycle) → List.Pairwise Equiv.Perm.Disjoint l → l.Nodup

theorem Equiv.Perm.IsCycle.support_congr E1 #

∀ {α : Type u_2} {f g : Equiv.Perm α} [inst : DecidableEq α] [inst_1 : Fintype α],
  f.IsCycle → g.IsCycle → f.support ⊆ g.support → (∀ x ∈ f.support, f x = g x) → f = g

Unlike support_congr, which assumes that ∀ (x ∈ g.support), f x = g x, here we have the weaker assumption that ∀ (x ∈ f.support), f x = g x.

theorem Equiv.Perm.IsCycle.support_pow_eq_iff E0 #

∀ {α : Type u_2} {f : Equiv.Perm α} [inst : DecidableEq α] [inst_1 : Fintype α],
  f.IsCycle → ∀ {n : ℕ}, (f ^ n).support = f.support ↔ ¬orderOf f ∣ n

theorem Equiv.Perm.IsCycle.support_pow_of_pos_of_lt_orderOf E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} [inst : DecidableEq α] [inst_1 : Fintype α],
  f.IsCycle → ∀ {n : ℕ}, 0 < n → n < orderOf f → (f ^ n).support = f.support

theorem Equiv.Perm.IsCycle.pow_iff E0 #

∀ {β : Type u_3} [Finite β] {f : Equiv.Perm β}, f.IsCycle → ∀ {n : ℕ}, (f ^ n).IsCycle ↔ n.Coprime (orderOf f)

theorem Equiv.Perm.IsCycle.pow_eq_one_iff E0 #

∀ {β : Type u_3} [Finite β] {f : Equiv.Perm β}, f.IsCycle → ∀ {n : ℕ}, f ^ n = 1 ↔ ∃ x, f x ≠ x ∧ (f ^ n) x = x

theorem Equiv.Perm.IsCycle.pow_eq_one_iff' E1 #

∀ {β : Type u_3} [Finite β] {f : Equiv.Perm β}, f.IsCycle → ∀ {n : ℕ} {x : β}, f x ≠ x → (f ^ n = 1 ↔ (f ^ n) x = x)

theorem Equiv.Perm.IsCycle.pow_eq_one_iff'' E1 #

∀ {β : Type u_3} [Finite β] {f : Equiv.Perm β}, f.IsCycle → ∀ {n : ℕ}, f ^ n = 1 ↔ ∀ (x : β), f x ≠ x → (f ^ n) x = x

theorem Equiv.Perm.IsCycle.pow_eq_pow_iff E0 #

∀ {β : Type u_3} [Finite β] {f : Equiv.Perm β},
  f.IsCycle → ∀ {a b : ℕ}, f ^ a = f ^ b ↔ ∃ x, f x ≠ x ∧ (f ^ a) x = (f ^ b) x

theorem Equiv.Perm.IsCycle.isCycle_pow_pos_of_lt_prime_order E1 #

∀ {β : Type u_3} [Finite β] {f : Equiv.Perm β},
  f.IsCycle → Nat.Prime (orderOf f) → ∀ (n : ℕ), 0 < n → n < orderOf f → (f ^ n).IsCycle

theorem Int.addLeft_one_isCycle E1 #

(Equiv.addLeft 1).IsCycle

theorem Int.addRight_one_isCycle E1 #

(Equiv.addRight 1).IsCycle

theorem Equiv.Perm.IsCycle.isConj E1 #

∀ {α : Type u_2} [inst : Fintype α] [inst_1 : DecidableEq α] {σ τ : Equiv.Perm α},
  σ.IsCycle → τ.IsCycle → σ.support.card = τ.support.card → IsConj σ τ

theorem Equiv.Perm.IsCycle.isConj_iff E0 #

∀ {α : Type u_2} [inst : Fintype α] [inst_1 : DecidableEq α] {σ τ : Equiv.Perm α},
  σ.IsCycle → τ.IsCycle → (IsConj σ τ ↔ σ.support.card = τ.support.card)

def Equiv.Perm.IsCycleOn E3 #

{α : Type u_2} → Equiv.Perm α → Set α → Prop

A permutation is a cycle on s when any two points of s are related by repeated application of the permutation. Note that this means the identity is a cycle of subsingleton sets.

theorem Equiv.Perm.isCycleOn_empty E0 #

∀ {α : Type u_2} {f : Equiv.Perm α}, f.IsCycleOn ∅

theorem Equiv.Perm.isCycleOn_one E0 #

∀ {α : Type u_2} {s : Set α}, Equiv.Perm.IsCycleOn 1 s ↔ s.Subsingleton

theorem Equiv.Perm.IsCycleOn.subsingleton E1 #

∀ {α : Type u_2} {s : Set α}, Equiv.Perm.IsCycleOn 1 s → s.Subsingleton

Alias of the forward direction of Equiv.Perm.isCycleOn_one.

theorem Set.Subsingleton.isCycleOn_one E1 #

∀ {α : Type u_2} {s : Set α}, s.Subsingleton → Equiv.Perm.IsCycleOn 1 s

Alias of the reverse direction of Equiv.Perm.isCycleOn_one.

theorem Equiv.Perm.isCycleOn_singleton E0 #

∀ {α : Type u_2} {f : Equiv.Perm α} {a : α}, f.IsCycleOn {a} ↔ f a = a

theorem Equiv.Perm.isCycleOn_of_subsingleton E1 #

∀ {α : Type u_2} [Subsingleton α] (f : Equiv.Perm α) (s : Set α), f.IsCycleOn s

theorem Equiv.Perm.isCycleOn_inv E0 #

∀ {α : Type u_2} {f : Equiv.Perm α} {s : Set α}, f⁻¹.IsCycleOn s ↔ f.IsCycleOn s

theorem Equiv.Perm.IsCycleOn.of_inv E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {s : Set α}, f⁻¹.IsCycleOn s → f.IsCycleOn s

Alias of the forward direction of Equiv.Perm.isCycleOn_inv.

theorem Equiv.Perm.IsCycleOn.inv E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {s : Set α}, f.IsCycleOn s → f⁻¹.IsCycleOn s

Alias of the reverse direction of Equiv.Perm.isCycleOn_inv.

theorem Equiv.Perm.IsCycleOn.conj E1 #

∀ {α : Type u_2} {f g : Equiv.Perm α} {s : Set α}, f.IsCycleOn s → (g * f * g⁻¹).IsCycleOn (⇑g '' s)

theorem Equiv.Perm.isCycleOn_swap E1 #

∀ {α : Type u_2} {a b : α} [inst : DecidableEq α], (Equiv.swap a b).IsCycleOn {a, b}

theorem Equiv.Perm.IsCycleOn.apply_ne E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {s : Set α} {a : α}, f.IsCycleOn s → s.Nontrivial → a ∈ s → f a ≠ a

theorem Equiv.Perm.IsCycle.isCycleOn E1 #

∀ {α : Type u_2} {f : Equiv.Perm α}, f.IsCycle → f.IsCycleOn {x | f x ≠ x}

theorem Equiv.Perm.isCycle_iff_exists_isCycleOn E2 #

∀ {α : Type u_2} {f : Equiv.Perm α},
  f.IsCycle ↔ ∃ s, s.Nontrivial ∧ f.IsCycleOn s ∧ ∀ ⦃x : α⦄, ¬Function.IsFixedPt (⇑f) x → x ∈ s

This lemma demonstrates the relation between Equiv.Perm.IsCycle and Equiv.Perm.IsCycleOn in non-degenerate cases.

theorem Equiv.Perm.IsCycleOn.apply_mem_iff E0 #

∀ {α : Type u_2} {f : Equiv.Perm α} {s : Set α} {x : α}, f.IsCycleOn s → (f x ∈ s ↔ x ∈ s)

theorem Equiv.Perm.IsCycleOn.isCycle_subtypePerm E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {s : Set α} (hf : f.IsCycleOn s), s.Nontrivial → (f.subtypePerm ⋯).IsCycle

Note that the identity satisfies IsCycleOn for any subsingleton set, but not IsCycle.

theorem Equiv.Perm.IsCycleOn.subtypePerm E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {s : Set α} (hf : f.IsCycleOn s), (f.subtypePerm ⋯).IsCycleOn Set.univ

Note that the identity is a cycle on any subsingleton set, but not a cycle.

theorem Equiv.Perm.IsCycleOn.pow_apply_eq E0 #

∀ {α : Type u_2} {f : Equiv.Perm α} {a : α} {s : Finset α},
  f.IsCycleOn ↑s → a ∈ s → ∀ {n : ℕ}, (f ^ n) a = a ↔ s.card ∣ n

theorem Equiv.Perm.IsCycleOn.zpow_apply_eq E0 #

∀ {α : Type u_2} {f : Equiv.Perm α} {a : α} {s : Finset α},
  f.IsCycleOn ↑s → a ∈ s → ∀ {n : ℤ}, (f ^ n) a = a ↔ ↑s.card ∣ n

theorem Equiv.Perm.IsCycleOn.pow_apply_eq_pow_apply E0 #

∀ {α : Type u_2} {f : Equiv.Perm α} {a : α} {s : Finset α},
  f.IsCycleOn ↑s → a ∈ s → ∀ {m n : ℕ}, (f ^ m) a = (f ^ n) a ↔ m ≡ n [MOD s.card]

theorem Equiv.Perm.IsCycleOn.zpow_apply_eq_zpow_apply E0 #

∀ {α : Type u_2} {f : Equiv.Perm α} {a : α} {s : Finset α},
  f.IsCycleOn ↑s → a ∈ s → ∀ {m n : ℤ}, (f ^ m) a = (f ^ n) a ↔ m ≡ n [ZMOD ↑s.card]

theorem Equiv.Perm.IsCycleOn.injOn_pow_apply E0 #

∀ {α : Type u_2} {f : Equiv.Perm α} {a : α} {s : Finset α},
  f.IsCycleOn ↑s → a ∈ s → Set.InjOn (fun n ↦ (f ^ n) a) (Set.Iio s.card)

The map n ↦ (f ^ n) a is injective on [0, #s) when f.IsCycleOn s and a ∈ s.

theorem Equiv.Perm.IsCycleOn.pow_card_apply E0 #

∀ {α : Type u_2} {f : Equiv.Perm α} {a : α} {s : Finset α}, f.IsCycleOn ↑s → a ∈ s → (f ^ s.card) a = a

theorem Equiv.Perm.IsCycleOn.exists_pow_eq E0 #

∀ {α : Type u_2} {f : Equiv.Perm α} {a b : α} {s : Finset α},
  f.IsCycleOn ↑s → a ∈ s → b ∈ s → ∃ n < s.card, (f ^ n) a = b

theorem Equiv.Perm.IsCycleOn.exists_pow_eq' E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {s : Set α} {a b : α}, s.Finite → f.IsCycleOn s → a ∈ s → b ∈ s → ∃ n, (f ^ n) a = b

theorem Equiv.Perm.IsCycleOn.range_pow E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {s : Set α} {a : α},
  s.Finite → f.IsCycleOn s → a ∈ s → (Set.range fun n ↦ (f ^ n) a) = s

theorem Equiv.Perm.IsCycleOn.range_zpow E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {s : Set α} {a : α}, f.IsCycleOn s → a ∈ s → (Set.range fun n ↦ (f ^ n) a) = s

theorem Equiv.Perm.IsCycleOn.of_pow E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {s : Set α} {n : ℕ}, (f ^ n).IsCycleOn s → Set.BijOn (⇑f) s s → f.IsCycleOn s

theorem Equiv.Perm.IsCycleOn.of_zpow E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {s : Set α} {n : ℤ}, (f ^ n).IsCycleOn s → Set.BijOn (⇑f) s s → f.IsCycleOn s

theorem Equiv.Perm.IsCycleOn.extendDomain E1 #

∀ {α : Type u_2} {β : Type u_3} {g : Equiv.Perm α} {s : Set α} {p : β → Prop} [inst : DecidablePred p]
  (f : α ≃ Subtype p), g.IsCycleOn s → (g.extendDomain f).IsCycleOn (Subtype.val ∘ ⇑f '' s)

theorem Equiv.Perm.IsCycleOn.countable E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {s : Set α}, f.IsCycleOn s → s.Countable

theorem List.Nodup.isCycleOn_formPerm E1 #

∀ {α : Type u_2} [inst : DecidableEq α] {l : List α}, l.Nodup → l.formPerm.IsCycleOn {a | a ∈ l}

theorem Finset.exists_cycleOn E1 #

∀ {α : Type u_2} [inst : DecidableEq α] [inst_1 : Fintype α] (s : Finset α), ∃ f, f.IsCycleOn ↑s ∧ f.support ⊆ s

theorem Set.Countable.exists_cycleOn E1 #

∀ {α : Type u_2} {s : Set α}, s.Countable → ∃ f, f.IsCycleOn s ∧ {x | f x ≠ x} ⊆ s

theorem Set.prod_self_eq_iUnion_perm E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {s : Set α}, f.IsCycleOn s → s ×ˢ s = ⋃ n, (fun a ↦ (a, (f ^ n) a)) '' s

theorem Finset.product_self_eq_disjiUnion_perm_aux E0 #

∀ {α : Type u_2} {f : Equiv.Perm α} {s : Finset α},
  f.IsCycleOn ↑s →
    (↑(Finset.range s.card)).PairwiseDisjoint fun k ↦ Finset.map { toFun := fun i ↦ (i, (f ^ k) i), inj' := ⋯ } s

theorem Finset.product_self_eq_disjiUnion_perm E1 #

∀ {α : Type u_2} {f : Equiv.Perm α} {s : Finset α} (hf : f.IsCycleOn ↑s),
  s ×ˢ s = (Finset.range s.card).disjiUnion (fun k ↦ Finset.map { toFun := fun i ↦ (i, (f ^ k) i), inj' := ⋯ } s) ⋯

We can partition the square s ×ˢ s into shifted diagonals as such:

01234
40123
34012
23401
12340

The diagonals are given by the cycle f.

theorem Finset.sum_smul_sum_eq_sum_perm E1 #

∀ {ι : Type u_1} {α : Type u_2} {β : Type u_3} [inst : Semiring α] [inst_1 : AddCommMonoid β] [inst_2 : Module α β]
  {s : Finset ι} {σ : Equiv.Perm ι},
  σ.IsCycleOn ↑s →
    ∀ (f : ι → α) (g : ι → β), (∑ i ∈ s, f i) • ∑ i ∈ s, g i = ∑ k ∈ Finset.range s.card, ∑ i ∈ s, f i • g ((σ ^ k) i)

theorem Finset.sum_mul_sum_eq_sum_perm E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : Semiring α] {s : Finset ι} {σ : Equiv.Perm ι},
  σ.IsCycleOn ↑s →
    ∀ (f g : ι → α), (∑ i ∈ s, f i) * ∑ i ∈ s, g i = ∑ k ∈ Finset.range s.card, ∑ i ∈ s, f i * g ((σ ^ k) i)

theorem Equiv.Perm.subtypePerm_apply_pow_of_mem E1 #

∀ {α : Type u_2} {g : Equiv.Perm α} {s : Finset α} (hs : ∀ (x : α), g x ∈ s ↔ x ∈ s) {n : ℕ} {x : α} (hx : x ∈ s),
  ↑((g.subtypePerm hs ^ n) ⟨x, hx⟩) = (g ^ n) x

theorem Equiv.Perm.subtypePerm_apply_zpow_of_mem E1 #

∀ {α : Type u_2} {g : Equiv.Perm α} {s : Finset α} (hs : ∀ (x : α), g x ∈ s ↔ x ∈ s) {i : ℤ} {x : α} (hx : x ∈ s),
  ↑((g.subtypePerm hs ^ i) ⟨x, hx⟩) = (g ^ i) x

def Equiv.Perm.subtypePermOfSupport E1 #

{α : Type u_2} → [inst : Fintype α] → [inst_1 : DecidableEq α] → (c : Equiv.Perm α) → Equiv.Perm ↥c.support

Restrict a permutation to its support

def Equiv.Perm.subtypePerm_of_support_le E1 #

{α : Type u_2} →
  [inst : Fintype α] → [inst_1 : DecidableEq α] → (c : Equiv.Perm α) → {s : Finset α} → c.support ⊆ s → Equiv.Perm ↥s

Restrict a permutation to a Finset containing its support

theorem Equiv.Perm.IsCycle.nonempty_support E1 #

∀ {α : Type u_2} [inst : Fintype α] [inst_1 : DecidableEq α] {g : Equiv.Perm α}, g.IsCycle → g.support.Nonempty

Support of a cycle is nonempty

theorem Equiv.Perm.IsCycle.commute_iff' E1 #

∀ {α : Type u_2} [inst : Fintype α] [inst_1 : DecidableEq α] {g c : Equiv.Perm α},
  c.IsCycle →
    (Commute g c ↔
      ∃ (hc' : ∀ (x : α), g x ∈ c.support ↔ x ∈ c.support), g.subtypePerm hc' ∈ Subgroup.zpowers c.subtypePermOfSupport)

Centralizer of a cycle is a power of that cycle on the cycle

theorem Equiv.Perm.IsCycle.commute_iff E0 #

∀ {α : Type u_2} [inst : Fintype α] [inst_1 : DecidableEq α] {g c : Equiv.Perm α},
  c.IsCycle →
    (Commute g c ↔
      ∃ (hc' : ∀ (x : α), g x ∈ c.support ↔ x ∈ c.support),
        Equiv.Perm.ofSubtype (g.subtypePerm hc') ∈ Subgroup.zpowers c)

A permutation g commutes with a cycle c if and only if c.support is invariant under g, and g acts on it as a power of c.

theorem Equiv.Perm.zpow_eq_ofSubtype_subtypePerm_iff E0 #

∀ {α : Type u_2} [inst : Fintype α] [inst_1 : DecidableEq α] {g c : Equiv.Perm α} {s : Finset α}
  (hg : ∀ (x : α), g x ∈ s ↔ x ∈ s) (hc : c.support ⊆ s) (n : ℤ),
  c ^ n = Equiv.Perm.ofSubtype (g.subtypePerm hg) ↔ c.subtypePerm ⋯ ^ n = g.subtypePerm hg

theorem Equiv.Perm.cycle_zpow_mem_support_iff E0 #

∀ {α : Type u_2} [inst : Fintype α] [inst_1 : DecidableEq α] {g : Equiv.Perm α},
  g.IsCycle → ∀ {n : ℤ} {x : α}, g x ≠ x → ((g ^ n) x = x ↔ n % ↑g.support.card = 0)