Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Phase compensation for logarithmic wall variations

Definition
BianchiIX_Analysis_MatchingPhaseWeighted

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

bianchi-ix-era-statisticsdynamical-systems

For the positive reflected phase variable mmm, put

n(a,b)=a2+b2,j(a,b)=1n(a,b)(n(a,b)+a),n(a,b)=\sqrt{a^2+b^2},\quad j(a,b)=\frac1{n(a,b)(n(a,b)+a)},n(a,b)=a2+b2​,j(a,b)=n(a,b)(n(a,b)+a)1​, ϕ=n(m+1,v)+n(m−1,w)−m,h=m+1n(m+1,v)+m−1n(m−1,w)−1,\phi=n(m+1,v)+n(m-1,w)-m,\quad h=\frac{m+1}{n(m+1,v)}+\frac{m-1}{n(m-1,w)}-1,ϕ=n(m+1,v)+n(m−1,w)−m,h=n(m+1,v)m+1​+n(m−1,w)m−1​−1, Q=mh+v2n(m+1,v)+w2n(m−1,w),k=j(m+1,v)−j(m−1,w).Q=mh+\frac{v^2}{n(m+1,v)}+\frac{w^2}{n(m-1,w)},\quad k=j(m+1,v)-j(m-1,w).Q=mh+n(m+1,v)v2​+n(m−1,w)w2​,k=j(m+1,v)−j(m−1,w).

Write κ=u(v+w−u)\kappa=u(v+w-u)κ=u(v+w−u), s=m−1−κs=m-1-\kappas=m−1−κ, b=(1−m2−(v−w)2+u2)/2b=(1-m^2-(v-w)^2+u^2)/2b=(1−m2−(v−w)2+u2)/2, and

Mv=−v2n(m+1,v)h,Mw=−w2n(m−1,w)h.M_v=-\frac{v^2}{n(m+1,v)h},\qquad M_w=-\frac{w^2}{n(m-1,w)h}.Mv​=−n(m+1,v)hv2​,Mw​=−n(m−1,w)hw2​.

The four coordinate differential operators, in the order (ϕ,log⁡u,log⁡v,log⁡w)(\phi,\log u,\log v,\log w)(ϕ,logu,logv,logw), are

L0=h−1∂m,L1=u∂u,L2=Mv∂m+v∂v,L3=Mw∂m+w∂w.L_0=h^{-1}\partial_m,\quad L_1=u\partial_u,\quad L_2=M_v\partial_m+v\partial_v,\quad L_3=M_w\partial_m+w\partial_w.L0​=h−1∂m​,L1​=u∂u​,L2​=Mv​∂m​+v∂v​,L3​=Mw​∂m​+w∂w​.

Subscripts iii below denote the rational expressions obtained by these rules, with total real-field division. On the regular positive-wall region they are the corresponding coordinate partial derivatives. Set

N=h(v−w)+(v+w−u)Q,R=h(v−w)+(v+w−u)(Q−s),N=h(v-w)+(v+w-u)Q,\quad R=h(v-w)+(v+w-u)(Q-s),N=h(v−w)+(v+w−u)Q,R=h(v−w)+(v+w−u)(Q−s), A=−N/s,B=k/s,G=uA+(vw)2B,α=b/s,β=−1−2(1+κ)/s.A=-N/s,\quad B=k/s,\quad G=uA+(vw)^2B,\quad \alpha=b/s,\quad \beta=-1-2(1+\kappa)/s.A=−N/s,B=k/s,G=uA+(vw)2B,α=b/s,β=−1−2(1+κ)/s.

The coefficient matrix CCC has rows (Gi)i(G_i)_i(Gi​)i​, (αi)i(\alpha_i)_i(αi​)i​ and (βi)i(\beta_i)_i(βi​)i​.

The functions Mv,MwM_v,M_wMv​,Mw​ are the changes of mmm under unit logarithmic wall changes at fixed matching phase.

Definition code
import Definitions.Def_BianchiIX_Algebra_MatchingPhase
import Mathlib.Analysis.Calculus.Deriv.Pow
import Mathlib.Analysis.Calculus.Deriv.Mul
import Mathlib.Analysis.Calculus.Deriv.Add
import Mathlib.Analysis.Real.Sqrt
import Mathlib.Tactic.Linarith
import Mathlib.Tactic.Ring
import Mathlib.Analysis.Calculus.Deriv.Inv
import Mathlib.Tactic.FieldSimp
import Mathlib.Tactic.LinearCombination
import Mathlib.Analysis.SpecialFunctions.Sqrt
import Mathlib.Analysis.Calculus.ImplicitContDiff
import Mathlib.Analysis.Calculus.Deriv.Prod
import Mathlib.Analysis.SpecialFunctions.ExpDeriv

noncomputable section

namespace BianchiIX

open Filter
open scoped Topology

def matchingPhaseVVariation (m v w : ℝ) : ℝ :=
  -v ^ 2 / (phaseNorm (m + 1) v * matchingPhaseSlope m v w)

def matchingPhaseWVariation (m v w : ℝ) : ℝ :=
  -w ^ 2 / (phaseNorm (m - 1) w * matchingPhaseSlope m v w)











end BianchiIX
Source
https://github.com/l46430640-del/ERA-STATISTICS-FORMAL/blob/d74c241819f896ab8d050b21ace80c8e90eabd9e/BianchiIX/Analysis/MatchingPhaseWeighted.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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me