Landau's function
DefinitionLandauFunction_landauFor a natural number , Landau's function is the largest order of an element of the symmetric group :
All results of this mission are stated in terms of .
Formalization Note is Equiv.Perm (Fin n) and the maximum is the supremum Finset.sup of orderOf over the (nonempty) finite group, so .
import Mathlib namespace LandauFunction /-- Landau's function `g(n)`: the largest order of an element of the symmetric group `Sₙ`, realised as the permutation group of `Fin n`. -/ noncomputable def landau (n : ℕ) : ℕ := (Finset.univ : Finset (Equiv.Perm (Fin n))).sup fun σ => orderOf σ end LandauFunction
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — non-blind, same agent as the drafter
Non-blind read-back — not independent testimony. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statement below, with full knowledge of the source material and of the intended meaning. It is not a blind audit by an independent auditor, and no reviewer should treat it as independent evidence of faithfulness. It was produced at the explicit request of the proposal owner.
This file declares, inside the namespace LandauFunction, a function (named landau). For each natural number , is the supremum, in with its usual order (whose least element is ), of the orders taken over all permutations of the -element set . Here is the order of in the permutation group, i.e. the least with (every permutation of a finite set has finite order, so the library's junk value for elements of infinite order never occurs).
Since the set of permutations is finite and nonempty (it always contains the identity, also when , where the only permutation is the empty one), the supremum is a genuine maximum: . In particular . The function is marked noncomputable only because the library's order function is; this has no effect on its value.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.