Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Continuants and logarithmic derivatives of inverse prefixes

Definition
BianchiIX_Statistics_GaussDistortion

by trppppp · Nov 4, 2026 · Mathlib 0df444a (Lean v4.33.1)

bianchi-ix-era-statisticsdynamical-systems

Let a=(aj)j≥0a=(a_j)_{j\geq0}a=(aj​)j≥0​ be positive integers and write gb(x)=1/(b+x)g_b(x)=1/(b+x)gb​(x)=1/(b+x) and Gn=ga0∘⋯∘gan−1G_n=g_{a_0}\circ\cdots\circ g_{a_{n-1}}Gn​=ga0​​∘⋯∘gan−1​​, with G0G_0G0​ the identity. Define q−1=0q_{-1}=0q−1​=0, q0=1q_0=1q0​=1, and qn+1=anqn+qn−1q_{n+1}=a_nq_n+q_{n-1}qn+1​=an​qn​+qn−1​. Set

Qn(x)=qn+qn−1x,Ln(x)=−2log⁡Qn(x).Q_n(x)=q_n+q_{n-1}x,\qquad L_n(x)=-2\log Q_n(x).Qn​(x)=qn​+qn−1​x,Ln​(x)=−2logQn​(x).

The continuant pair is (qn,qn−1)(q_n,q_{n-1})(qn​,qn−1​). For arbitrary real maps hjh_jhj​, define H0(x)=xH_0(x)=xH0​(x)=x and Hn+1(x)=Hn(hn(x))H_{n+1}(x)=H_n(h_n(x))Hn+1​(x)=Hn​(hn​(x)). These quantities describe both the Gauss inverse compositions and the actual branch compositions compared with them.

Definition code
import Mathlib.Analysis.Calculus.Deriv.Inv
import Mathlib.Analysis.Calculus.Deriv.Add
import Mathlib.Analysis.SpecificLimits.Basic
import Mathlib.Data.List.Induction
import Mathlib.Tactic.FieldSimp
import Mathlib.Tactic.Linarith
import Mathlib.Tactic.Ring
import Mathlib.Data.PNat.Basic
import Mathlib.MeasureTheory.Constructions.BorelSpace.Metrizable
import Mathlib.Data.Rat.Floor
import Mathlib.NumberTheory.Real.Irrational
import Mathlib.Order.OrderIsoNat
import Mathlib.Analysis.SpecialFunctions.Log.Deriv

/-! Finite-prefix distortion along the actual branch inputs, Section 3.3. -/

namespace BianchiIX

noncomputable section

open Set Finset

/-- The pair `(q_n, q_{n-1})`, with initial pair `(1, 0)`. -/
def gaussDenoms (a : ℕ → ℕ+) : ℕ → ℝ × ℝ
  | 0 => (1, 0)
  | n + 1 => ((a n : ℝ) * (gaussDenoms a n).1 + (gaussDenoms a n).2,
      (gaussDenoms a n).1)



def gaussDenom (a : ℕ → ℕ+) (n : ℕ) (x : ℝ) : ℝ :=
  (gaussDenoms a n).1 + (gaussDenoms a n).2 * x













def gaussPrefixLog (a : ℕ → ℕ+) (n : ℕ) (x : ℝ) : ℝ :=
  -2 * Real.log (gaussDenom a n x)













def branchPrefix (h : ℕ → ℝ → ℝ) : ℕ → ℝ → ℝ
  | 0, x => x
  | n + 1, x => branchPrefix h n (h n x)







end

end BianchiIX
Source
https://github.com/l46430640-del/ERA-STATISTICS-FORMAL/blob/d74c241819f896ab8d050b21ace80c8e90eabd9e/BianchiIX/Statistics/GaussDistortion.lean

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