Use this theorem
Create a project
lake +leanprover/lean4:v4.35.0 new myproject std.toml cd myprojectStandard template, not
math: themathtemplate adds its own Mathlib requirement pinned to the Lean release tag, not to the Mathlib commit this package is built and tested with, so you would get a second, different Mathlib. Mathlib comes in through this package. Skip this step in an existing project with the same Lean and Mathlib.Add the dependency to
lakefile.toml[[require]] name = "formalizations" git = "https://github.com/karlesmarin/formalizations" rev = "v0.15.0"Import the minimal module
import Formalizations.Reusable.GroupTheoryIn a file of the project, e.g.
Example.lean.Paste the example
open Formalizations.Reusable open Classical in open scoped Pointwise in /-- Praeger with `m = 1`: if every point moves and no set of two or more points is moved off itself, there is at most one orbit. -/ example {G Ω : Type*} [Group G] [MulAction G Ω] (hfix : ∀ x : Ω, ∃ g : G, g • x ≠ x) (hmove : ∀ (Γ : Finset Ω) (g : G), (∀ x ∈ Γ, g • x ∉ Γ) → Γ.card ≤ 1) : Nat.card (MulAction.orbitRel.Quotient G Ω) ≤ 1 := (praeger_bounded_movement 1 le_rfl hfix hmove).2.1Steps 3 and 4 together are a complete Lean file:
FormalizationsTest/ReusableGroupTheoryExample.leanat v0.15.0, compiled by the CI.Fetch and check
lake update lake lean Example.leanlake updatefetches this package and Mathlib, and Mathlib's update hook downloads the compiled Mathlib (lake exe cache get).lake lean Example.leanbuilds the imports of the file (steps 3 and 4) and checks it. If the file belongs to alean_libof your project,lake build <lib>does the same. Avoid a barelake buildin a project from the standard template: its default target is the executable, whose link compiles every imported Mathlib module to native code. Same versions required: Leanv4.35.0, Mathlibf0b4c81.
Alternative: import Formalizations.Reusable imports the whole layer (all areas).
Praeger's theorem on bounded movement: if a group acts on Ω with no fixed point and every finite set moved off itself by some element has at most m ≥ 1 points, then Ω is finite, there are at most 2m − 1 orbits, every orbit has at most 3m points and |Ω| ≤ 3m + t − 1, t the number of orbits.
Lean statement
theorem praeger_bounded_movement {G Ω : Type*} [Group G] [MulAction G Ω] (m : ℕ) (hm : 1 ≤ m)
(hfix : ∀ x : Ω, ∃ g : G, g • x ≠ x)
(hmove : ∀ (Γ : Finset Ω) (g : G), (∀ x ∈ Γ, g • x ∉ Γ) → Γ.card ≤ m) :
Finite Ω ∧ Nat.card (MulAction.orbitRel.Quotient G Ω) ≤ 2 * m - 1 ∧
(∀ x : Ω, Nat.card (MulAction.orbit G x) ≤ 3 * m) ∧
Nat.card Ω ≤ 3 * m + Nat.card (MulAction.orbitRel.Quotient G Ω) - 1Links
Lean docstring
Praeger's theorem on bounded movement. Let a group G act on Ω so that every point is moved by some element, and suppose that whenever g maps a finite set Γ off itself, #Γ ≤ m (with m ≥ 1). Then Ω is finite, there are at most 2m − 1 orbits, every orbit has at most 3m points, and |Ω| ≤ 3m + t − 1, where t is the number of orbits.
- Archive:
Praeger.bounded_movement(Formalizations.GroupTheory.GroupAction.BoundedMovement); the module cites no paper DOI of ours. - Classical reference: C. E. Praeger, On permutation groups with bounded movement, J. Algebra 144 (1991) 436–442; R. Whitty, Theorem of the Day, «Praeger's Theorem on Bounded Movement».
- Example: with
m = 1there is at most one orbit.
Upstream
a specific theorem on permutation groups; Mathlib has no theory of movement of group actions
Depends on, in this repository
None besides the archive module (repo_dependencies = []).