Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Fragmented Perm Second Order

Definition
AnalyticCombinatorics_Ch8_SaddlePoint_FragmentedPermSecondOrder

by FormallyCorrect · Oct 28, 2026 · Mathlib 777aaa6 (Lean v4.29.0-rc3)

analytic-combinatoricsfragmented-permutationslean4partitions-remainder

The source mathematical objects and operations are specified by the following definitions.

def fragPermSecondCorrScale (r : ℝ) : ℝ :=
  1 - r
def fragPermSecondCorrectionAtSaddle (n : ℕ) : ℝ :=
  saddleCorrection fragPermSaddleBReal fragPermSaddleB3Real fragPermSaddleB4Real
    (fragPermSaddleRadius n)
def fragPermSaddleB3Real (r : ℝ) : ℝ :=
  r * (1 + 4 * r + r ^ 2) / (1 - r) ^ 4
def fragPermSaddleB4Real (r : ℝ) : ℝ :=
  r * (1 + 11 * r + 11 * r ^ 2 + r ^ 3) / (1 - r) ^ 5
Definition code
import Definitions.Def_AnalyticCombinatorics_Ch8_SaddlePoint_FragmentedPermHAdmissible
import Definitions.Def_AnalyticCombinatorics_Ch8_SaddlePoint_SecondOrderCore
import Mathlib.Analysis.Real.Pi.Bounds
import Mathlib
import Mathlib.Analysis.SpecialFunctions.Stirling
import Mathlib.RingTheory.PowerSeries.WellKnown
import Mathlib.RingTheory.PowerSeries.Inverse
import Mathlib.Analysis.SpecificLimits.Normed
import Mathlib.Analysis.Analytic.Binomial
import Mathlib.Analysis.Meromorphic.Order
import Mathlib.Analysis.Complex.Basic
import Mathlib.Probability.Distributions.Gaussian.Real
import Mathlib.RingTheory.PowerSeries.Exp
import Mathlib.Analysis.SpecialFunctions.ExpDeriv
import Mathlib.Analysis.SpecialFunctions.Exponential
import Mathlib.Analysis.Analytic.Composition
import Mathlib.RingTheory.PowerSeries.Substitution
import Mathlib.Analysis.Analytic.Basic
import Mathlib.Analysis.Analytic.OfScalars
import Mathlib.Analysis.Analytic.RadiusLiminf
import Mathlib.RingTheory.PowerSeries.Basic
import Mathlib.Algebra.Algebra.Rat
import Mathlib.Data.Complex.Basic
import Mathlib.RingTheory.PowerSeries.NoZeroDivisors
import Mathlib.RingTheory.PowerSeries.PiTopology
import Mathlib.Combinatorics.Enumerative.Composition
import Mathlib.Data.Nat.Fib.Basic
import Mathlib.Order.Partition.Finpartition
import Mathlib.RingTheory.PowerSeries.Derivative
import Mathlib.Data.Fintype.EquivFin
import Mathlib.GroupTheory.Perm.Basic
import Mathlib.Data.Fintype.Perm
import Mathlib.Data.Fintype.Card
import Mathlib.Algebra.BigOperators.NatAntidiagonal
import Mathlib.Data.Fintype.Powerset

set_option autoImplicit true
set_option relaxedAutoImplicit false
set_option maxSynthPendingDepth 3


/-!
# Second-order saddle data for fragmented permutations

This file adds the second-order correction layer for
`exp (z / (1 - z))`.  The logarithmic saddle derivatives are
`b₃(r) = r(1 + 4r + r²)/(1-r)^4` and
`b₄(r) = r(1 + 11r + 11r² + r³)/(1-r)^5`.
-/

open Complex Filter Asymptotics MeasureTheory
open scoped Topology Real NNReal ENNReal Interval PowerSeries

set_option maxHeartbeats 800000

noncomputable section

namespace FragmentedPermHAdmissible

/-- Third logarithmic saddle derivative for fragmented permutations. -/
def fragPermSaddleB3Real (r : ℝ) : ℝ :=
  r * (1 + 4 * r + r ^ 2) / (1 - r) ^ 4

/-- Fourth logarithmic saddle derivative for fragmented permutations. -/
def fragPermSaddleB4Real (r : ℝ) : ℝ :=
  r * (1 + 11 * r + 11 * r ^ 2 + r ^ 3) / (1 - r) ^ 5

/-- Second-order correction scale near the finite saddle radius. -/
def fragPermSecondCorrScale (r : ℝ) : ℝ :=
  1 - r

/-- The explicit second-order correction at the saddle radius. -/
def fragPermSecondCorrectionAtSaddle (n : ℕ) : ℝ :=
  saddleCorrection fragPermSaddleBReal fragPermSaddleB3Real fragPermSaddleB4Real
    (fragPermSaddleRadius n)

def fragPermGaussianDom (x : ℝ) : ℝ :=
  Real.exp (-(x ^ 2) / 2) *
    (|x| ^ 5 + |x| ^ 6 + |x| ^ 7 + |x| ^ 8 + |x| ^ 9 + |x| ^ 10 +
      |x| ^ 11 + |x| ^ 12 + |x| ^ 13 + |x| ^ 14 + |x| ^ 15)

def fragPermLocalTaylorConst : ℝ :=
  100000 * Real.exp 2

def fragPermScaledRemainderConst : ℝ :=
  1000 * fragPermLocalTaylorConst

def fragPermLocalL1Const : ℝ :=
  27 * Real.exp 1 * (20 + fragPermScaledRemainderConst) ^ 3 +
    fragPermScaledRemainderConst +
      6 * (10 + fragPermScaledRemainderConst) * (30 + fragPermScaledRemainderConst)

end FragmentedPermHAdmissible
Source
https://github.com/xiangyazi24/AnalyticCombinatorics/blob/f6f3f1cebdae245a61d9d71e6b47c69fbd096fe3/AnalyticCombinatorics/Ch8/SaddlePoint/FragmentedPermSecondOrder.lean. Source code: Apache-2.0; https://github.com/xiangyazi24/AnalyticCombinatorics/blob/f6f3f1cebdae245a61d9d71e6b47c69fbd096fe3/LICENSE

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