perm_signed_lcm_two_sub_order
For any finite type α and permutation σ of α, the signed difference (sgn(σ) : ℤ) * lcm(2, o(σ)) - (sgn(σ) : ℤ) * o(σ) equals o(σ) if o(σ) is odd, and 0 if o(σ) is even.
Statement
theorem perm_signed_lcm_two_sub_order {α : Type*} [DecidableEq α] [Fintype α] (σ : Equiv.Perm α) : (Equiv.Perm.sign σ : ℤ) * (Nat.lcm 2 (orderOf σ) : ℤ) - (Equiv.Perm.sign σ : ℤ) * (orderOf σ : ℤ) = if Odd (orderOf σ) then (orderOf σ : ℤ) else 0
- Source
- arXiv:2611.29409 Lemma 3.1 proof
- Verified
- 25 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 1
- perm_sign_eq_one_of_odd_orderFor any finite type α and any permutation σ of α, if the order of σ is odd, then the sign of σ is 1.
- Used by 1
- signed_element_order_sum_decompositionFor any natural number n, the signed element order sum D_n = ∑_{σ ∈ S_n} sgn(σ) o(σ) (
perm_signed_order_sum n : ℤ) decomposes as D_n =…
- signed_element_order_sum_decompositionFor any natural number n, the signed element order sum D_n = ∑_{σ ∈ S_n} sgn(σ) o(σ) (
Read back from the Lean
For any type α with decidable equality and finite cardinality, and for any permutation σ of α, the integer value (sign(σ) * lcm(2, orderOf(σ))) - (sign(σ) * orderOf(σ)) equals orderOf(σ) if the order of σ is odd, and 0 if the order of σ is even (not odd).
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
The proof, explained
The proof proceeds by case analysis on the parity of the order of σ, splitting on the conditional on the right-hand side. When the order is odd, σ is an even permutation (its sign is 1) and its order is coprime to 2, so lcm(2, o(σ)) = 2 * o(σ) and the signed difference simplifies to 1 * (2 * o(σ)) - 1 * o(σ) = o(σ). When the order is even, 2 divides the order, so lcm(2, o(σ)) = o(σ), causing both terms in the difference to coincide and cancel to 0 regardless of the sign of σ.
Split into two cases according to whether the order of σ is odd.
The right-hand side is an if-then-else conditioned on whether the order of σ is odd. Splitting on this condition creates two subgoals: one where the order is odd (with target o(σ)), and one where it is not odd (with target 0).
split_ifs with h
In the odd case, the permutation has sign 1.
Because o(σ) is odd, the permutation sign of σ is 1 by perm_sign_eq_one_of_odd_order.
uses
perm_sign_eq_one_of_odd_order· have hsign : Equiv.Perm.sign σ = 1 := perm_sign_eq_one_of_odd_order σ hIn the odd case, lcm(2, o(σ)) = 2 * o(σ).
Since o(σ) is odd, 2 and o(σ) are coprime by Nat.coprime_two_left. The least common multiple of two coprime numbers is their product by Nat.Coprime.lcm_eq_mul, which gives 2 * o(σ).
uses
Nat.Coprime.lcm_eq_mul,Nat.coprime_two_lefthave hlcm : Nat.lcm 2 (orderOf σ) = 2 * orderOf σ := by rw [Nat.Coprime.lcm_eq_mul] rwa [Nat.coprime_two_left]
The odd case of the theorem holds.
Substituting sgn(σ) = 1 and lcm(2, o(σ)) = 2 * o(σ) into the left-hand side transforms the expression into 1 * (2 * o(σ)) - 1 * o(σ). Pushing integer casts and applying ring arithmetic reduces this to o(σ), matching the right-hand side.
rw [hsign, hlcm] push_cast ring
When o(σ) is not odd, 2 divides o(σ) and lcm(2, o(σ)) = o(σ).
A natural number that is not odd is even by Nat.not_odd_iff_even.mp, so 2 divides o(σ) by even_iff_two_dvd.mp. Since 2 divides o(σ), their least common multiple is o(σ) itself by Nat.lcm_eq_right.
uses
even_iff_two_dvd.mp,Nat.not_odd_iff_even.mp,Nat.lcm_eq_right· have heven : 2 ∣ orderOf σ := even_iff_two_dvd.mp (Nat.not_odd_iff_even.mp h) have hlcm : Nat.lcm 2 (orderOf σ) = orderOf σ := Nat.lcm_eq_right heven
The even case of the theorem holds.
Substituting lcm(2, o(σ)) = o(σ) makes the two terms on the left-hand side identical: sgn(σ) * o(σ) - sgn(σ) * o(σ). Ring arithmetic evaluates this difference to 0, matching the right-hand side.
rw [hlcm] ring
perm_sign_eq_one_of_odd_order- A permutation with odd order has sign 1.
Nat.Coprime.lcm_eq_mul- If two natural numbers are coprime, their least common multiple equals their product.
Nat.coprime_two_left- A natural number is coprime to 2 if and only if it is odd.
even_iff_two_dvd.mp- An even natural number is divisible by 2.
Nat.not_odd_iff_even.mp- A natural number that is not odd is even.
Nat.lcm_eq_right- If m divides n, then the least common multiple of m and n is n.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
/-- Pointwise difference of signed lcm(2, order) and signed order for a permutation. -/theorem perm_signed_lcm_two_sub_order {α : Type*} [DecidableEq α] [Fintype α] (σ : Equiv.Perm α) : (Equiv.Perm.sign σ : ℤ) * (Nat.lcm 2 (orderOf σ) : ℤ) - (Equiv.Perm.sign σ : ℤ) * (orderOf σ : ℤ) = if Odd (orderOf σ) then (orderOf σ : ℤ) else 0 := by split_ifs with h · have hsign : Equiv.Perm.sign σ = 1 := perm_sign_eq_one_of_odd_order σ h have hlcm : Nat.lcm 2 (orderOf σ) = 2 * orderOf σ := by rw [Nat.Coprime.lcm_eq_mul] rwa [Nat.coprime_two_left] rw [hsign, hlcm] push_cast ring · have heven : 2 ∣ orderOf σ := even_iff_two_dvd.mp (Nat.not_odd_iff_even.mp h) have hlcm : Nat.lcm 2 (orderOf σ) = orderOf σ := Nat.lcm_eq_right heven rw [hlcm] ring