Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - feat(group_theory/perm/*): facts about the cardinality of the support of a permutation #6951

Closed
wants to merge 12 commits into from
12 changes: 7 additions & 5 deletions src/group_theory/perm/cycles.lean
Expand Up @@ -354,11 +354,13 @@ cycle_factors_aux (univ.sort (≤)) f (λ _ _, (mem_sort _).2 (mem_univ _))

eric-wieser marked this conversation as resolved.
Show resolved Hide resolved
/-- Factors a permutation `f` into a list of disjoint cyclic permutations that multiply to `f`,
without a linear order. -/
noncomputable def trunc_cycle_factors [fintype α] (f : perm α) :
trunc {l : list (perm α) // l.prod = f ∧ (∀ g ∈ l, is_cycle g) ∧ l.pairwise disjoint} :=
quotient.rec_on_subsingleton (@univ α _).1
(λ l h, trunc.mk (cycle_factors_aux l f h))
(show ∀ x, f x ≠ x → x ∈ (@univ α _).1, from λ _ _, mem_univ _)
lemma nonempty_cycle_factors [fintype α] (f : perm α) :
nonempty {l : list (perm α) // l.prod = f ∧ (∀ g ∈ l, is_cycle g) ∧ l.pairwise disjoint} :=
begin
refine ⟨cycle_factors_aux univ.val.to_list _ (λ z hz, _)⟩,
rw [multiset.mem_to_list, ← mem_def],
exact mem_univ _
end

awainverse marked this conversation as resolved.
Show resolved Hide resolved
section fixed_points

Expand Down