Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Weighted ratio interval contains the ratio of the sums

Proved
ZetaNine.mediant_strictly_between_min_and_max

by Yuxuan Xu · Sep 25, 2026 · Mathlib 0df444a (Lean v4.33.1)

irrationalitynumber-theoryzeta-values

The weighted ratio interval contains the ratio of the sums

Let w,a,b:{0,1,2,3,4}→Rw,a,b:\{0,1,2,3,4\}\to\mathbb{R}w,a,b:{0,1,2,3,4}→R with wj>0w_j>0wj​>0 and bj>0b_j>0bj​>0 for every jjj, and suppose the five ratios aj/bja_j/b_jaj​/bj​ are not all equal. Then the ratio of the weighted sums

ρ=∑jwj aj∑jwj bj\rho=\frac{\sum_j w_j\,a_j}{\sum_j w_j\,b_j}ρ=∑j​wj​bj​∑j​wj​aj​​

is strictly between the smallest and the largest sampled ratio:

∃j, ajbj<ρand∃j, ρ<ajbj.\exists j,\ \frac{a_j}{b_j}<\rho \qquad\text{and}\qquad \exists j,\ \rho<\frac{a_j}{b_j}.∃j, bj​aj​​<ρand∃j, ρ<bj​aj​​.

Why. Write B=∑jwjbj>0B=\sum_j w_jb_j>0B=∑j​wj​bj​>0 and reweight by vj=wjbj/Bv_j=w_jb_j/Bvj​=wj​bj​/B. Then every vjv_jvj​ is strictly positive and ∑jvj=B/B=1\sum_j v_j=B/B=1∑j​vj​=B/B=1, and a one-line rearrangement gives ρ=∑jvj (aj/bj)\rho=\sum_j v_j\,(a_j/b_j)ρ=∑j​vj​(aj​/bj​): the ratio of the sums is a convex combination of the sampled ratios. The positive-weight sandwich lemma applied to (vj)(v_j)(vj​) and to rj=aj/bjr_j=a_j/b_jrj​=aj​/bj​ then produces the two strict inequalities.

Scope. This is local node FI in its invariant form: no normalisation is assumed, the conclusion is about the mediant itself. The denominators bjb_jbj​ are strictly positive by hypothesis, so no division by a degenerate local curvature occurs, and B>0B>0B>0 makes the mediant well-defined. The lemma is a strict-interval statement only — it gives no quantitative separation, no exponential width, and does not decide whether the actual changing first output lies outside the interval.

Preamble
import Mathlib
Formal statement
namespace ZetaNine

theorem mediant_strictly_between_min_and_max
    (w a b : Fin 5 → ℝ)
    (hw : ∀ j : Fin 5, 0 < w j)
    (hb : ∀ j : Fin 5, 0 < b j)
    (hnd : ∃ j j' : Fin 5, a j / b j ≠ a j' / b j') :
    (∃ j : Fin 5,
        a j / b j < (∑ i : Fin 5, w i * a i) / (∑ i : Fin 5, w i * b i)) ∧
      (∃ j : Fin 5,
        (∑ i : Fin 5, w i * a i) / (∑ i : Fin 5, w i * b i) < a j / b j) := by sorry

end ZetaNine
Source
Local zeta9 research note, roadmap/research/five-point-ratio-window.md, and roadmap/DAG.md section 'Five-sample first direction to root', 2026-09-25
Human review
  • Endorsed by Shuze Chen · Oct 8, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Yuxuan Xu · Oct 8, 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