Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Weighted stable residuals and quadratic phase remainders

Definition
BianchiIX_StableProjectionRefinementData

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

bianchi-ix-era-statisticsdynamical-systems

For real variables p,s,a,b,cp,s,a,b,cp,s,a,b,c, set

K=a2+b2+c2−2(ab+bc+ca),S=p2+s2,C=S+K.K=a^2+b^2+c^2-2(ab+bc+ca),\qquad S=p^2+s^2,\qquad C=S+K.K=a2+b2+c2−2(ab+bc+ca),S=p2+s2,C=S+K.

The shear components and wall rates are

P=Kp−2a2+b2+c2+ab−2bc+ac,P=Kp-2a^2+b^2+c^2+ab-2bc+ac,P=Kp−2a2+b2+c2+ab−2bc+ac, Q=Ks+3(−b2+c2+ab−ac),Q=Ks+\sqrt{3}(-b^2+c^2+ab-ac),Q=Ks+3​(−b2+c2+ab−ac), r1=−S+2p,r2=−S−p+3s,r3=−S−p−3s.r_1=-S+2p,\qquad r_2=-S-p+\sqrt{3}s,\qquad r_3=-S-p-\sqrt{3}s.r1​=−S+2p,r2​=−S−p+3​s,r3​=−S−p−3​s.

These functions define the normalized vacuum Bianchi IX vector field (P,Q,r1a,r2b,r3c)(P,Q,r_1a,r_2b,r_3c)(P,Q,r1​a,r2​b,r3​c). For y=(m,u,v,w)∈R4y=(m,u,v,w)\in\mathbb R^4y=(m,u,v,w)∈R4, define

K(u,v,w)=u2+v2+w2−2(uv+vw+wu),κ=u(v+w−u),K(u,v,w)=u^2+v^2+w^2-2(uv+vw+wu),\qquad \kappa=u(v+w-u),K(u,v,w)=u2+v2+w2−2(uv+vw+wu),κ=u(v+w−u), Fm=−v2+w2+u(v−w)−mκ,Fu=12(1−m2−(v−w)2+u2)u,F_m=-v^2+w^2+u(v-w)-m\kappa,\qquad F_u=\tfrac12(1-m^2-(v-w)^2+u^2)u,Fm​=−v2+w2+u(v−w)−mκ,Fu​=21​(1−m2−(v−w)2+u2)u, Fv=(m−1−κ)v,Fw=(−m−1−κ)w,F=(Fm,Fu,Fv,Fw),F_v=(m-1-\kappa)v,\qquad F_w=(-m-1-\kappa)w,\qquad F=(F_m,F_u,F_v,F_w),Fv​=(m−1−κ)v,Fw​=(−m−1−κ)w,F=(Fm​,Fu​,Fv​,Fw​),

and E(m,v)=(m−1)2+v2E(m,v)=(m-1)^2+v^2E(m,v)=(m−1)2+v2.

For x=(p,s,a,b,c)x=(p,s,a,b,c)x=(p,s,a,b,c), put

ψ(p,z)=3 z1+p,Π(x)=(ψ(p,s),ψ(p,a),ψ(p,b),ψ(p,c)).\psi(p,z)=\frac{\sqrt3\,z}{1+p},\qquad \Pi(x)=(\psi(p,s),\psi(p,a),\psi(p,b),\psi(p,c)).ψ(p,z)=1+p3​z​,Π(x)=(ψ(p,s),ψ(p,a),ψ(p,b),ψ(p,c)).

For y=(m,u,v,w)y=(m,u,v,w)y=(m,u,v,w), set D(y)=3+m2+K(u,v,w)D(y)=3+m^2+K(u,v,w)D(y)=3+m2+K(u,v,w) and

ΞA(y)=(A−1,Am3,Au3,Av3,Aw3),Ξ(y)=Ξ6/D(y)(y).\Xi_A(y)=\left(A-1,\frac{Am}{\sqrt3},\frac{Au}{\sqrt3}, \frac{Av}{\sqrt3},\frac{Aw}{\sqrt3}\right),\qquad \Xi(y)=\Xi_{6/D(y)}(y).ΞA​(y)=(A−1,3​Am​,3​Au​,3​Av​,3​Aw​),Ξ(y)=Ξ6/D(y)​(y).

Write N(x)=(P,Q,r1a,r2b,r3c)N(x)=(P,Q,r_1a,r_2b,r_3c)N(x)=(P,Q,r1​a,r2​b,r3​c) for the normalized vector field and C(x)=C(p,s,a,b,c)\mathcal C(x)=C(p,s,a,b,c)C(x)=C(p,s,a,b,c) for its constraint.

The normalized and projective state spaces are R5\mathbb R^5R5 and R4\mathbb R^4R4 with their finite-product norms. The maps Π,Ξ,D,F\Pi,\Xi,D,FΠ,Ξ,D,F act on these state spaces.

The projective vector field in normalized time is

G(y)=6D(y)F(y).G(y)=\frac6{D(y)}F(y).G(y)=D(y)6​F(y).

Write X=R5X=\mathbb R^5X=R5, Y=R4Y=\mathbb R^4Y=R4, and let αx,t0\alpha_{x,t_0}αx,t0​​ be the maximal solution of α′=N(α)\alpha'=N(\alpha)α′=N(α) with initial value xxx at t0t_0t0​ and domain Imax⁡(x,t0)I_{\max}(x,t_0)Imax​(x,t0​). Put

Jx,t0(t)=dxαx,t0(t),Ψt0(y,t)=Π(αΞ(y),t0(t)),J_{x,t_0}(t)=d_x\alpha_{x,t_0}(t),\qquad \Psi_{t_0}(y,t)=\Pi(\alpha_{\Xi(y),t_0}(t)),Jx,t0​​(t)=dx​αx,t0​​(t),Ψt0​​(y,t)=Π(αΞ(y),t0​​(t)), Jy,t0(t)=dΠαΞ(y),t0(t)∘JΞ(y),t0(t)∘dΞy.\mathcal J_{y,t_0}(t)=d\Pi_{\alpha_{\Xi(y),t_0}(t)} \circ J_{\Xi(y),t_0}(t)\circ d\Xi_y.Jy,t0​​(t)=dΠαΞ(y),t0​​(t)​∘JΞ(y),t0​​(t)∘dΞy​.

On the invariant plane with zero active wall, use y=(m,u,w)∈R3y=(m,u,w)\in\mathbb R^3y=(m,u,w)∈R3, the inclusion ι(m,u,w)=(m,u,0,w)\iota(m,u,w)=(m,u,0,w)ι(m,u,w)=(m,u,0,w) and the restriction πs(m,u,v,w)=(m,u,w)\pi_s(m,u,v,w)=(m,u,w)πs​(m,u,v,w)=(m,u,w). Define

f(y)=(mu2−(m+1)uw+w2,1−m2−w2+u22u,−(m+1+uw−u2)w),f(y)=\left(mu^2-(m+1)uw+w^2, \frac{1-m^2-w^2+u^2}{2}u,-(m+1+uw-u^2)w\right),f(y)=(mu2−(m+1)uw+w2,21−m2−w2+u2​u,−(m+1+uw−u2)w), Δ(y)=3+m2+(u−w)2,fo(y)=6f(y)/Δ(y).\Delta(y)=3+m^2+(u-w)^2,\qquad f_o(y)=6f(y)/\Delta(y).Δ(y)=3+m2+(u−w)2,fo​(y)=6f(y)/Δ(y).

Write J=dfJ=dfJ=df, H=d2fH=d^2fH=d2f, Jo=dfoJ_o=df_oJo​=dfo​, Ho=d2foH_o=d^2f_oHo​=d2fo​ for their explicit Jacobian and Hessian expressions. The denominator derivatives are dΔ=(2m,2(u−w),2(w−u))d\Delta=(2m,2(u-w),2(w-u))dΔ=(2m,2(u−w),2(w−u)) and d2Δ(v,z)=2v0z0+2(v1−v2)(z1−z2)d^2\Delta(v,z)=2v_0z_0+2(v_1-v_2)(z_1-z_2)d2Δ(v,z)=2v0​z0​+2(v1​−v2​)(z1​−z2​). The exact original-time boundary flow and its projected variation are

Φ(y,t)=πsΨ0(ιy,t),L(y,t)=πsJιy,0(t)ι.\Phi(y,t)=\pi_s\Psi_0(\iota y,t),\qquad L(y,t)=\pi_s\mathcal J_{\iota y,0}(t)\iota.Φ(y,t)=πs​Ψ0​(ιy,t),L(y,t)=πs​Jιy,0​(t)ι.

For a fixed scale KKK, set ΦK(y,s)=Φ(y,Ks)\Phi_K(y,s)=\Phi(y,Ks)ΦK​(y,s)=Φ(y,Ks), LK(y,s)=L(y,Ks)L_K(y,s)=L(y,Ks)LK​(y,s)=L(y,Ks) and QK(y,s)=dyLK(y,s)Q_K(y,s)=d_yL_K(y,s)QK​(y,s)=dy​LK​(y,s). For directions v,zv,zv,z, define

SK(y,s;v,z)=K[Ho(ΦK)(LKv,LKz)+Jo(ΦK)QK(v,z)].S_K(y,s;v,z)=K\left[H_o(\Phi_K)(L_Kv,L_Kz)+J_o(\Phi_K)Q_K(v,z)\right].SK​(y,s;v,z)=K[Ho​(ΦK​)(LK​v,LK​z)+Jo​(ΦK​)QK​(v,z)].

All vector norms are sup norms, and operator norms are induced by them. Write b(y)=∣u∣+∣w∣b(y)=|u|+|w|b(y)=∣u∣+∣w∣, E(y)=e512b(y)E(y)=e^{512b(y)}E(y)=e512b(y), vs=(v1,v2)v_s=(v_1,v_2)vs​=(v1​,v2​), and

H(y;v,z)=b(y)∥v∥∥z∥+∥vs∥∥z∥+∥v∥∥zs∥,\mathcal H(y;v,z)=b(y)\|v\|\|z\|+\|v_s\|\|z\|+\|v\|\|z_s\|,H(y;v,z)=b(y)∥v∥∥z∥+∥vs​∥∥z∥+∥v∥∥zs​∥, B2(y)=192b(y)(40000E(y)3)+10000E(y)2.B_2(y)=192b(y)(40000E(y)^3)+10000E(y)^2.B2​(y)=192b(y)(40000E(y)3)+10000E(y)2.

The closed boundary region is Sc={(m,u,0,w):∣m−c∣≤1/10, ∣u∣,∣w∣≤1/100}\mathcal S_c=\{(m,u,0,w):|m-c|\leq1/10,\ |u|,|w|\leq1/100\}Sc​={(m,u,0,w):∣m−c∣≤1/10, ∣u∣,∣w∣≤1/100}. The boundary projection P(m,u,w)P(m,u,w)P(m,u,w) is the limit of Φ(m,u,w;t)0\Phi(m,u,w;t)_0Φ(m,u,w;t)0​ as t→∞t\to\inftyt→∞, using the total limit convention of the formal definitions.

Set r=(m+1)2+w2r=\sqrt{(m+1)^2+w^2}r=(m+1)2+w2​ and

A(m)=mm2−1,C(m)=−2m+1,Θ(m,u,w)=r−1+A(m)u2+C(m)uw.A(m)=\frac{m}{m^2-1},\quad C(m)=-\frac2{m+1},\quad \Theta(m,u,w)=r-1+A(m)u^2+C(m)uw.A(m)=m2−1m​,C(m)=−m+12​,Θ(m,u,w)=r−1+A(m)u2+C(m)uw.

Its explicit gradient is used together with the residual R=r4u4+r3u3w+r2u2w2+r1uw3R=r_4u^4+r_3u^3w+r_2u^2w^2+r_1uw^3R=r4​u4+r3​u3w+r2​u2w2+r1​uw3, where

r4=−2m(m2−1)2,r3=2(3m−1)(m2−1)2,r_4=-\frac{2m}{(m^2-1)^2},\quad r_3=\frac{2(3m-1)}{(m^2-1)^2},r4​=−(m2−1)22m​,r3​=(m2−1)22(3m−1)​, r2=−m2+1(m2−1)2−mm2−1+r+1r(r+m+1),r1=2(m+1)2+1m+1−1r+m+1.r_2=-\frac{m^2+1}{(m^2-1)^2}-\frac m{m^2-1} +\frac{r+1}{r(r+m+1)},\quad r_1=\frac2{(m+1)^2}+\frac1{m+1}-\frac1{r+m+1}.r2​=−(m2−1)2m2+1​−m2−1m​+r(r+m+1)r+1​,r1​=(m+1)22​+m+11​−r+m+11​.

Write L=m+1L=m+1L=m+1, b=∣u∣+∣w∣b=|u|+|w|b=∣u∣+∣w∣, vs=(v1,v2)v_s=(v_1,v_2)vs​=(v1​,v2​), and set

Wb(v)=b∥v∥+∥vs∥,Hs(y;v,z)=∣u∣∥v∥∥z∥+∣v0∣∣z1∣+∣v1∣∣z0∣+b(∣v1∣∥z∥+∥v∥∣z1∣).W_b(v)=b\|v\|+\|v_s\|,\quad H_s(y;v,z)=|u|\|v\|\|z\|+|v_0||z_1|+|v_1||z_0| +b(|v_1|\|z\|+\|v\||z_1|).Wb​(v)=b∥v∥+∥vs​∥,Hs​(y;v,z)=∣u∣∥v∥∥z∥+∣v0​∣∣z1​∣+∣v1​∣∣z0​∣+b(∣v1​∣∥z∥+∥v∥∣z1​∣).

The corrected and quadratic remainders are

Rc=P−Θ,Rq=P−(m+A(m)u2+C(m)uw+w22L).R_c=P-\Theta,\quad R_q=P-\left(m+A(m)u^2+C(m)uw+\frac{w^2}{2L}\right).Rc​=P−Θ,Rq​=P−(m+A(m)u2+C(m)uw+2Lw2​).

For K∈RK\in\mathbb RK∈R, let ai(K,y)=6Kr4−i(m,w)/Δ(y)a_i(K,y)=6K r_{4-i}(m,w)/\Delta(y)ai​(K,y)=6Kr4−i​(m,w)/Δ(y), where r4,r3r_4,r_3r4​,r3​ are independent of www, and put

M(y)=(u3,u2w,uw2,w3),CK(y)=∑i=03ai(K,y)Mi(y),M(y)=(u^3,u^2w,uw^2,w^3),\quad C_K(y)=\sum_{i=0}^3a_i(K,y)M_i(y),M(y)=(u3,u2w,uw2,w3),CK​(y)=i=0∑3​ai​(K,y)Mi​(y), gK,s(y)=6KΔ(ΦK(y,s))R(ΦK(y,s)).g_{K,s}(y)=\frac{6K}{\Delta(\Phi_K(y,s))}R(\Phi_K(y,s)).gK,s​(y)=Δ(ΦK​(y,s))6K​R(ΦK​(y,s)).

The cubic derivative budgets are

B1(y;v)=b3∥v∥+3b2∥vs∥,B_1(y;v)=b^3\|v\|+3b^2\|v_s\|,B1​(y;v)=b3∥v∥+3b2∥vs​∥, B2c(y;v,z)=b3∥v∥∥z∥+3b2(∥v∥∥zs∥+∥vs∥∥z∥)+6b∥vs∥∥zs∥.B_2^c(y;v,z)=b^3\|v\|\|z\| +3b^2(\|v\|\|z_s\|+\|v_s\|\|z\|)+6b\|v_s\|\|z_s\|.B2c​(y;v,z)=b3∥v∥∥z∥+3b2(∥v∥∥zs​∥+∥vs​∥∥z∥)+6b∥vs​∥∥zs​∥.

A direction is radial if its last two coordinates vanish, and transverse if its zeroth coordinate vanishes.

This data includes the explicit first two derivatives of A(m)A(m)A(m) and C(m)C(m)C(m), the bilinear Hessian of Θ\ThetaΘ, and the cubic monomials MiM_iMi​ with their linear and bilinear derivatives. The reciprocal coordinate map is (m,w)↦(x,w)(m,w)\mapsto(x,w)(m,w)↦(x,w), where x=(m+1)−1x=(m+1)^{-1}x=(m+1)−1. With Rx=1+x2w2R_x=\sqrt{1+x^2w^2}Rx​=1+x2w2​, the four compactified residual profiles are

−2(1−x)x2(1−2x)2,2(3−4x)x2(1−2x)2,-\frac{2(1-x)x^2}{(1-2x)^2},\quad \frac{2(3-4x)x^2}{(1-2x)^2},−(1−2x)22(1−x)x2​,(1−2x)22(3−4x)x2​, −x((1−x)2+x2)(1−2x)2−1−x1−2x+Rx+xRx(Rx+1),2x+1−1Rx+1.-\frac{x((1-x)^2+x^2)}{(1-2x)^2}-\frac{1-x}{1-2x} +\frac{R_x+x}{R_x(R_x+1)},\quad 2x+1-\frac1{R_x+1}.−(1−2x)2x((1−x)2+x2)​−1−2x1−x​+Rx​(Rx​+1)Rx​+x​,2x+1−Rx​+11​.

The weak-radius remainder is e(m,w)=(m+1)2+w2−(m+1)−w2/[2(m+1)]e(m,w)=\sqrt{(m+1)^2+w^2}-(m+1)-w^2/[2(m+1)]e(m,w)=(m+1)2+w2​−(m+1)−w2/[2(m+1)], together with its two first and three second partial derivatives. Its second-derivative kernel is

r2+rL+L2r3(r+L),r=L2+w2,L=m+1.\frac{r^2+rL+L^2}{r^3(r+L)},\qquad r=\sqrt{L^2+w^2},\quad L=m+1.r3(r+L)r2+rL+L2​,r=L2+w2​,L=m+1.

The additional second input weight is b∥v∥∥z∥+∥vs∥∥z∥+∥v∥∥zs∥b\|v\|\|z\|+\|v_s\|\|z\|+\|v\|\|z_s\|b∥v∥∥z∥+∥vs​∥∥z∥+∥v∥∥zs​∥. The residual tail is ∫T∞gK,s(y) ds\int_T^\infty g_{K,s}(y)\,ds∫T∞​gK,s​(y)ds, and the corrected phase tail is P(y)−Θ(ΦK(y,T))P(y)-\Theta(\Phi_K(y,T))P(y)−Θ(ΦK​(y,T)). All spaces of continuous linear maps carry their usual operator norms.

Definition code
import Mathlib.Analysis.Calculus.ContDiff.Operations
import Mathlib.Analysis.Calculus.ParametricIntegral
import Mathlib.MeasureTheory.Integral.Bochner.ContinuousLinearMap
import Mathlib.Analysis.Calculus.ContDiff.Comp
import Mathlib.Analysis.Calculus.Deriv.Comp
import Mathlib.Analysis.Calculus.Deriv.Mul
import Mathlib.Analysis.SpecialFunctions.Pow.Deriv
import Mathlib.Analysis.Calculus.Deriv.Inv
import Mathlib.Data.Fin.VecNotation
import Definitions.Def_BianchiIX_CompactPhaseExpansionData
import Mathlib.Analysis.Calculus.Deriv.Pow
import Mathlib.Analysis.Calculus.Deriv.Add
import Mathlib.Analysis.Real.Sqrt
import Mathlib.Tactic.Linarith
import Mathlib.Tactic.Ring
import Mathlib.Tactic.FieldSimp
import Mathlib.Tactic.LinearCombination
import Mathlib.Analysis.SpecialFunctions.Sqrt
import Definitions.Def_BianchiIX_Algebra_MatchingPhase
import Mathlib.Analysis.SpecialFunctions.Arsinh
import Mathlib.Analysis.Calculus.Deriv.Prod
import Mathlib.Analysis.Calculus.MeanValue
import Mathlib.Tactic.FinCases
import Mathlib.Tactic.FunProp
import Mathlib.Analysis.SpecialFunctions.Arcosh
import Mathlib.MeasureTheory.Integral.IntervalIntegral.FundThmCalculus
import Mathlib.Analysis.Calculus.InverseFunctionTheorem.Deriv
import Mathlib.Analysis.Calculus.Deriv.MeanValue
import Mathlib.Analysis.SpecialFunctions.Integrals.Basic
import Mathlib.Analysis.ODE.ExistUnique
import Mathlib.Analysis.Calculus.FDeriv.Partial
import Mathlib.MeasureTheory.Integral.IntervalIntegral.DistLEIntegral
import Mathlib.Analysis.ODE.Gronwall
import Mathlib.Data.Matrix.Mul
import Mathlib.Topology.Instances.Real.Lemmas
import Mathlib.Tactic.GCongr
import Mathlib.Analysis.Calculus.Deriv.Slope
import Mathlib.Topology.Order.OrderClosed
import Mathlib.Topology.Order.IntermediateValue
import Mathlib.Topology.MetricSpace.Cauchy
import Mathlib.Analysis.Calculus.FDeriv.Symmetric
import Mathlib.Tactic.NormNum
import Mathlib.Topology.Order.Compact
import Mathlib.Analysis.Calculus.UniformLimitsDeriv
import Mathlib.Analysis.Calculus.ParametricIntervalIntegral
import Mathlib.MeasureTheory.Integral.DominatedConvergence
import Mathlib.Topology.Order.ProjIcc
import Mathlib.Analysis.SpecialFunctions.ImproperIntegrals

section

noncomputable section

namespace BianchiIX

open Set Filter MeasureTheory
open scoped Topology

variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]
  [NormedAddCommGroup F] [NormedSpace ℝ F]



-- Fix the operator norm structure before forming the second operator space.
local instance _root_.BianchiIX.instNormedAddCommGroupContinuousLinearMapRealId_bianchiIX : NormedAddCommGroup (E →L[ℝ] F) := ContinuousLinearMap.toNormedAddCommGroup
local instance _root_.BianchiIX.instNormedSpaceRealContinuousLinearMapId_bianchiIX : NormedSpace ℝ (E →L[ℝ] F) := inferInstance



end BianchiIX

end
end

section

noncomputable section

namespace BianchiIX

open Filter
open scoped Topology

def reciprocalParameter (y : Fin 2 → ℝ) : ℝ := (y 0 + 1)⁻¹

def reciprocalParameterMap (y : Fin 2 → ℝ) : Fin 2 → ℝ := ![reciprocalParameter y, y 1]

















end BianchiIX

end
end

section

noncomputable section

namespace BianchiIX

open scoped Topology

def stableCorrectionADeriv (m : ℝ) : ℝ := -(m ^ 2 + 1) / (m ^ 2 - 1) ^ 2

def stableCorrectionASecond (m : ℝ) : ℝ := 2 * m * (m ^ 2 + 3) / (m ^ 2 - 1) ^ 3

def stableCorrectionCDeriv (m : ℝ) : ℝ := 2 / (m + 1) ^ 2

def stableCorrectionCSecond (m : ℝ) : ℝ := -4 / (m + 1) ^ 3

def stableCorrectedHessian (m u w : ℝ) (v r : Fin 3 → ℝ) : ℝ :=
  (w ^ 2 / stableWeakRadius m w ^ 3 + stableCorrectionASecond m * u ^ 2 +
    stableCorrectionCSecond m * u * w) * v 0 * r 0 +
  (2 * stableCorrectionADeriv m * u + stableCorrectionCDeriv m * w) * (v 0 * r 1 + v 1 * r 0) +
  (-(m + 1) * w / stableWeakRadius m w ^ 3 + stableCorrectionCDeriv m * u) * (v 0 * r 2 + v 2 * r 0) +
  2 * stableCorrectionA m * v 1 * r 1 +
  stableCorrectionC m * (v 1 * r 2 + v 2 * r 1) +
  (m + 1) ^ 2 / stableWeakRadius m w ^ 3 * v 2 * r 2













end BianchiIX

end
end

section

noncomputable section

namespace BianchiIX

open scoped Topology

def stableWeakRemainder (m w : ℝ) : ℝ :=
  stableWeakRadius m w - (m + 1) - w ^ 2 / (2 * (m + 1))

def stableWeakRemainderM (m w : ℝ) : ℝ :=
  (m + 1) / stableWeakRadius m w - 1 + w ^ 2 / (2 * (m + 1) ^ 2)

def stableWeakRemainderW (m w : ℝ) : ℝ :=
  w / stableWeakRadius m w - w / (m + 1)

def stableWeakRemainderMM (m w : ℝ) : ℝ :=
  w ^ 2 / stableWeakRadius m w ^ 3 - w ^ 2 / (m + 1) ^ 3

def stableWeakRemainderMW (m w : ℝ) : ℝ :=
  -(m + 1) * w / stableWeakRadius m w ^ 3 + w / (m + 1) ^ 2

def stableWeakRemainderWW (m w : ℝ) : ℝ :=
  (m + 1) ^ 2 / stableWeakRadius m w ^ 3 - 1 / (m + 1)











end BianchiIX

end
end

section

noncomputable section

namespace BianchiIX

def stableResidualCoefficient (i : Fin 4) (y : Fin 2 → ℝ) : ℝ :=
  ![stableResidual4 (y 0), stableResidual3 (y 0),
    stableResidual2 (y 0) (y 1), stableResidual1 (y 0) (y 1)] i

def stableResidualProfile (i : Fin 4) (p : Fin 2 → ℝ) : ℝ :=
  let x := p 0
  let R := phaseNorm 1 (x * p 1)
  ![-2 * (1 - x) * x ^ 2 / (1 - 2 * x) ^ 2,
    2 * (3 - 4 * x) * x ^ 2 / (1 - 2 * x) ^ 2,
    -x * ((1 - x) ^ 2 + x ^ 2) / (1 - 2 * x) ^ 2 - (1 - x) / (1 - 2 * x) +
      (R + x) / (R * (R + 1)),
    2 * x + 1 - 1 / (R + 1)] i







end BianchiIX

end
end

section

noncomputable section

namespace BianchiIX

def stableWeakSecondKernel (m w : ℝ) : ℝ :=
  (stableWeakRadius m w ^ 2 + stableWeakRadius m w * (m + 1) + (m + 1) ^ 2) /
    (stableWeakRadius m w ^ 3 * (stableWeakRadius m w + (m + 1)))









end BianchiIX

end
end

section

noncomputable section

namespace BianchiIX

def stableCubicMonomial (i : Fin 4) (y : StableState) : ℝ :=
  ![y 1 ^ 3, y 1 ^ 2 * y 2, y 1 * y 2 ^ 2, y 2 ^ 3] i

def stableCubicDifferential (i : Fin 4) (y v : StableState) : ℝ :=
  ![3 * y 1 ^ 2 * v 1, 2 * y 1 * y 2 * v 1 + y 1 ^ 2 * v 2,
    y 2 ^ 2 * v 1 + 2 * y 1 * y 2 * v 2, 3 * y 2 ^ 2 * v 2] i

def stableCubicHessian (i : Fin 4) (y v w : StableState) : ℝ :=
  ![6 * y 1 * v 1 * w 1,
    2 * y 2 * v 1 * w 1 + 2 * y 1 * v 1 * w 2 + 2 * y 1 * v 2 * w 1,
    2 * y 2 * v 1 * w 2 + 2 * y 2 * v 2 * w 1 + 2 * y 1 * v 2 * w 2,
    6 * y 2 * v 2 * w 2] i











end BianchiIX

end
end

section

noncomputable section

namespace BianchiIX

def stableResidualClock (K : ℝ) (y : StableState) : ℝ := 6 * K / stableBoundaryDenom y









end BianchiIX

end
end

section

noncomputable section

namespace BianchiIX

def stableCenterWeakProjection : StableState →L[ℝ] (Fin 2 → ℝ) :=
  ContinuousLinearMap.pi ![ContinuousLinearMap.proj 0, ContinuousLinearMap.proj 2]





def stableScaledResidualCoefficient (K : ℝ) (i : Fin 4) (y : StableState) : ℝ :=
  stableResidualClock K y * stableResidualCoefficient i (stableCenterWeakProjection y)



end BianchiIX

end
end

section

noncomputable section

namespace BianchiIX

def stableScaledResidual (K : ℝ) (y : StableState) : ℝ :=
  stableResidualClock K y * stableCorrectedResidual (y 0) (y 1) (y 2)

def stableScaledResidualCubic (K : ℝ) (y : StableState) : ℝ :=
  ∑ i : Fin 4, stableScaledResidualCoefficient K i y * stableCubicMonomial i y

def stableCubicFirstBudget (y v : StableState) : ℝ :=
  (|y 1| + |y 2|) ^ 3 * ‖v‖ + 3 * (|y 1| + |y 2|) ^ 2 * ‖![v 1, v 2]‖

def stableCubicSecondBudget (y v w : StableState) : ℝ :=
  (|y 1| + |y 2|) ^ 3 * ‖v‖ * ‖w‖ +
    3 * (|y 1| + |y 2|) ^ 2 * (‖v‖ * ‖![w 1, w 2]‖ + ‖![v 1, v 2]‖ * ‖w‖) +
    6 * (|y 1| + |y 2|) * ‖![v 1, v 2]‖ * ‖![w 1, w 2]‖











end BianchiIX

end
end

section

noncomputable section

namespace BianchiIX

def stableStrongHessianBudget (y v w : StableState) : ℝ :=
  |y 1| * ‖v‖ * ‖w‖ + (|v 0| * |w 1| + |v 1| * |w 0|) +
    (|y 1| + |y 2|) * (|v 1| * ‖w‖ + ‖v‖ * |w 1|)







end BianchiIX

end
end

section

noncomputable section

namespace BianchiIX

def stableFirstInputWeight (b : ℝ) (v : StableState) : ℝ :=
  b * ‖v‖ + ‖![v 1, v 2]‖

def stableSecondInputWeight (b : ℝ) (v w : StableState) : ℝ :=
  b * ‖v‖ * ‖w‖ + ‖![v 1, v 2]‖ * ‖w‖ + ‖v‖ * ‖![w 1, w 2]‖

















end BianchiIX

end
end

section

noncomputable section

namespace BianchiIX

def stableRescaledResidualRate (K s : ℝ) (y : StableState) : ℝ :=
  stableScaledResidual K (stableRescaledFlow K y s)









end BianchiIX

end
end

section

noncomputable section

namespace BianchiIX

open Set MeasureTheory

local instance _root_.BianchiIX.instNormedAddCommGroupContinuousLinearMapRealIdStableState : NormedAddCommGroup (StableState →L[ℝ] ℝ) := ContinuousLinearMap.toNormedAddCommGroup
local instance _root_.BianchiIX.instNormedSpaceRealContinuousLinearMapIdStableState : NormedSpace ℝ (StableState →L[ℝ] ℝ) := inferInstance

def stableResidualTailIntegral (K T : ℝ) (y : StableState) : ℝ :=
  ∫ s in Ioi T, stableRescaledResidualRate K s y







end BianchiIX

end
end

section

noncomputable section

namespace BianchiIX

open Set Filter MeasureTheory
open scoped Topology

def stableCorrectedRemainder (y : StableState) : ℝ :=
  stableBoundaryProjection (y 0) (y 1) (y 2) - stableCorrectedPhase (y 0) (y 1) (y 2)

def stableCorrectedPhaseTail (K T : ℝ) (y : StableState) : ℝ :=
  stableBoundaryProjection (y 0) (y 1) (y 2) -
    stableCorrectedPhase (stableRescaledFlow K y T 0) (stableRescaledFlow K y T 1) (stableRescaledFlow K y T 2)















end BianchiIX

end
end

section

noncomputable section

namespace BianchiIX

open Filter
open scoped Topology

local instance _root_.BianchiIX.instNormedAddCommGroupContinuousLinearMapRealIdStableState_1 : NormedAddCommGroup (StableState →L[ℝ] ℝ) := ContinuousLinearMap.toNormedAddCommGroup
local instance _root_.BianchiIX.instNormedSpaceRealContinuousLinearMapIdStableState_1 : NormedSpace ℝ (StableState →L[ℝ] ℝ) := inferInstance





end BianchiIX

end
end

section

noncomputable section

namespace BianchiIX

open Filter
open scoped Topology

local instance stableQuadraticExpansionOperatorGroup : NormedAddCommGroup (StableState →L[ℝ] ℝ) :=
  ContinuousLinearMap.toNormedAddCommGroup
local instance stableQuadraticExpansionOperatorSpace : NormedSpace ℝ (StableState →L[ℝ] ℝ) := inferInstance

def stableQuadraticPhase (m u w : ℝ) : ℝ :=
  m + stableCorrectionA m * u ^ 2 + stableCorrectionC m * u * w + w ^ 2 / (2 * (m + 1))

def stableQuadraticRemainder (y : StableState) : ℝ :=
  stableBoundaryProjection (y 0) (y 1) (y 2) - stableQuadraticPhase (y 0) (y 1) (y 2)









end BianchiIX

end
end
Source
https://github.com/l46430640-del/ERA-STATISTICS-FORMAL/tree/d74c241819f896ab8d050b21ace80c8e90eabd9e/BianchiIX

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me