Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 24: insertion of the last letter and cycle counts

Open
QAlgorithms.Papers.Independent.Extend50.P33.lemma24

by Gohan · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let r≥1r\ge1r≥1, ρ∈Sr−1\rho\in S_{r-1}ρ∈Sr−1​, and a∈{1,…,r}a\in\{1,\ldots,r\}a∈{1,…,r}. Embed ρ\rhoρ in SrS_rSr​ fixing rrr, and put σ=(a,r)ρ\sigma=(a,r)\rhoσ=(a,r)ρ, with (r,r)=1(r,r)=1(r,r)=1. Counting every fixed point as a cycle,

ℓ(σ)={ℓ(ρ),aer,ℓ(ρ)+1,a=r.\ell(\sigma)=\begin{cases}\ell(\rho),&a e r,\\\ell(\rho)+1,&a=r.\end{cases}ℓ(σ)={ℓ(ρ),ℓ(ρ)+1,​aer,a=r.​

At r=1r=1r=1 only the identity case exists. This distinguishes insertion into an old cycle from adding a fixed point.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P33
Formal statement
set_option backward.isDefEq.respectTransparency.types false

noncomputable section

open scoped Matrix ComplexOrder Matrix.Norms.L2Operator

namespace QAlgorithms.Papers.Independent.Extend50.P33

attribute [local instance] Classical.propDecidable Classical.decEq

-- Exact accepted type constructors; local notation only reorders Word's arguments.

local notation "Word" => (fun d r : ℕ =>
  QAlgorithms.Papers.Independent.Information100.P58.Word r d)

local notation "Op" => (fun d r : ℕ =>
  QAlgorithms.Papers.Independent.Information100.P21.Op
    (QAlgorithms.Papers.Independent.Information100.P58.Word r d))

open QAlgorithms.Papers.Independent.Information100.P07 (support)

open QAlgorithms.Papers.Independent.Gap20.P01 (spechtMatrix)

/-- PDF p.24 Lemma24: every insertion coset, including the identity and degree1. -/
theorem lemma24 (r : ℕ) (pi : Equiv.Perm (Fin r)) (a : Fin (r+1)) :
    cycles (Equiv.swap a (Fin.last r) * extendPerm pi) =
      cycles pi + (if a = Fin.last r then 1 else 0) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P33

end
Source
Port-based teleportation in arbitrary dimension, arXiv:1612.09260v3, PDF p. 24, Lemma 24: insertion of the last letter and cycle counts
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

For every natural number rrr, every permutation π\piπ of {0,…,r−1}\{0,\ldots,r-1\}{0,…,r−1}, and every a∈{0,…,r}a\in\{0,\ldots,r\}a∈{0,…,r}, let π~\widetilde\piπ extend π\piπ to {0,…,r}\{0,\ldots,r\}{0,…,r} by fixing rrr, and let τa\tau_aτa​ exchange aaa and rrr. If c(σ)c(\sigma)c(σ) denotes the number of nontrivial cycles of σ\sigmaσ plus the number of its fixed points—literally, its nontrivial-cycle count plus the size of its underlying set minus its support size—then

c(τaπ~)=c(π)+{1,a=r,0,a≠r.c(\tau_a\widetilde\pi)=c(\pi)+ \begin{cases} 1,&a=r,\\ 0,&a\ne r. \end{cases}c(τa​π)=c(π)+{1,0,​a=r,a=r.​

The product uses permutation composition, and a=ra=ra=r makes τa\tau_aτa​ the identity. The statement includes r=0r=0r=0, with π\piπ the unique empty permutation and a=0a=0a=0.

Human review
  • Endorsed by Shuze Chen · Oct 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me