/- Copyright 2026 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -/ module public import Mathlib.GroupTheory.GroupAction.Quotient public import Mathlib.SetTheory.Cardinal.Finite@[expose] public section

Numbers of orbits and orbitals

    MulAction.numOrbits G α: the number of orbits of G on α, fixed points included;

    MulAction.numOrbitals G α: the number of orbitals, the orbits of G on α × α; for a transitive action this is its rank, the number of orbits of a point stabiliser.

namespace MulActionvariable (G α : Type*) [Group G] [MulAction G α]

The number of orbits of G on α, fixed points included.

noncomputable def numOrbits : ℕ := Nat.card (orbitRel.Quotient G α)

The number of orbits of G on α × α.

noncomputable def numOrbitals : ℕ := Nat.card (orbitRel.Quotient G (α × α))G:Type u_1α:Type u_2inst✝³:Group Ginst✝²:MulAction G αinst✝¹:IsPretransitive G αinst✝:Nonempty α⊢ Subsingleton (orbitRel.Quotient G α) ∧ Nonempty (orbitRel.Quotient G α) G:Type u_1α:Type u_2inst✝³:Group Ginst✝²:MulAction G αinst✝¹:IsPretransitive G αinst✝:Nonempty αa:orbitRel.Quotient G αb:orbitRel.Quotient G αx:αy:α⊢ ⟦x⟧ = ⟦y⟧ G:Type u_1α:Type u_2inst✝³:Group Ginst✝²:MulAction G αinst✝¹:IsPretransitive G αinst✝:Nonempty αa:orbitRel.Quotient G αb:orbitRel.Quotient G αx:αy:αg:Ghg:g • y = x⊢ ⟦x⟧ = ⟦y⟧ All goals completed! 🐙end MulAction