Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Finite rows and incidence columns for floating rounding

Definition
erdos390_floating_rounding

by doctosil · Sep 16, 2026 · Mathlib c5ea003 (Lean v4.30.0)

combinatoricserdos390rounding

For finite coordinate, row and column sets A,R,CA,R,CA,R,C, a map r:A→Rr:A\to Rr:A→R and an incidence relation I⊆C×AI\subseteq C\times AI⊆C×A, define the row fiber As={a:r(a)=s}A_s=\{a:r(a)=s\}As​={a:r(a)=s}, the columns containing a coordinate Ca={c:(c,a)∈I}C_a=\{c:(c,a)\in I\}Ca​={c:(c,a)∈I}, and the real-valued incidence indicator 1I(c,a)1_I(c,a)1I​(c,a). These provide the interface for exact row sums and bounded column discrepancy in finite floating rounding.

Definition code
import Mathlib

namespace Erdos390.WholePaper

noncomputable section

def columnsContaining {A C : Type*} [Fintype C]
    (H : Finset C) (inc : C → A → Prop) (a : A) : Finset C := by
  classical
  exact H.filter fun c ↦ inc c a

def rowSet {A R : Type*} [Fintype A]
    (row : A → R) (r : R) : Finset A := by
  classical
  exact Finset.univ.filter fun a ↦ row a = r

def zeroOneColumn {A C : Type*} (inc : C → A → Prop) (c : C) (a : A) : ℝ := by
  classical
  exact if inc c a then 1 else 0

end
end Erdos390.WholePaper
Source
Shouqiao Wang, A Proposed Solution to Erdos Problem 390, Section 10, floating rounding; https://github.com/ShouqiaoW/erdos/blob/61325b10bbdc29f4fb5e0618b414b9f2189333ad/390/lean/Erdos390/WholePaper/FloatingRounding.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