While this submission is a draft, it cannot be used by other submissions.

Scaling weights to integer multiplicities

Lax263307.WeightRounding · concepts/Lax263307/WeightRounding.lean · lax-263307

definition

Loading review…

Sign in with ORCID

Community review

Flags

Each flag is tied to a public ORCID identity and explains why this concept may be incorrect.

No flags have been submitted.

    Community review

    Flag this concept

    State precisely what appears incorrect. This explanation will be public under your ORCID name.

    No source line selected.

    Natural Language Statement

    Definition

    For nonnegative rational vertex weights, let WW be the maximum weight and choose τ=εW/(2n)\tau=\varepsilon W/(2n). The rounded multiplicity of vertex vv is tv=⌊wv/τ⌋t_v=\lfloor w_v/\tau\rfloor. Vertices with tv=0t_v=0 are omitted from the independent blow-up.

    Concept map
    4 concepts; 5 descendants hidden
    100%
    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on A

    Lean source view on GitHub

    1import Lax263307.IndependentBlowUp
    2import Mathlib.Data.Finset.Max
    3
    4/-!
    5---
    6title: Scaling weights to integer multiplicities
    7type: definition
    8---
    9For nonnegative rational vertex weights, let WW be the maximum weight and
    10choose τ=εW/(2n)\tau=\varepsilon W/(2n). The rounded multiplicity of vertex vv is
    11tv=⌊wv/τ⌋t_v=\lfloor w_v/\tau\rfloor. Vertices with tv=0t_v=0 are omitted from the
    12independent blow-up.
    13
    14# Formalization notes
    15
    16The maximum includes zero, so it is defined also on the empty graph and on
    17signed weights before preprocessing. The rounding estimates assume
    18n>0n>0, W>0W>0, and ε>0\varepsilon>0, ensuring τ>0\tau>0.
    19The natural-valued floor is computed on exact rational numbers.
    20-/
    21
    22namespace Lax263307.WeightRounding
    23
    24/-- The maximum of the vertex weights and zero. -/
    25def maximumWeight {n : ℕ} (w : Fin n → ℚ) : ℚ :=
    26 (insert 0 (Finset.univ.image w)).max' (by simp)
    27
    28/-- The weight unit used by the reduction. -/
    29def scale {n : ℕ} (w : Fin n → ℚ) (ε : ℚ) : ℚ :=
    30 ε * maximumWeight w / (2 * n)
    31
    32/-- Multiplicities at a specified positive weight unit. -/
    33def roundedCopies {n : ℕ} (w : Fin n → ℚ) (τ : ℚ) : Fin n → ℕ :=
    34 fun v => ⌊w v / τ⌋₊
    35
    36/-- The multiplicities chosen for the requested accuracy. -/
    37def copies {n : ℕ} (w : Fin n → ℚ) (ε : ℚ) : Fin n → ℕ :=
    38 roundedCopies w (scale w ε)
    39
    40end Lax263307.WeightRounding
    41
    Formalization notes

    The maximum includes zero, so it is defined also on the empty graph and on signed weights before preprocessing. The rounding estimates assume n>0n>0, W>0W>0, and ε>0\varepsilon>0, ensuring τ>0\tau>0. The natural-valued floor is computed on exact rational numbers.

    Discussion

    Ask a question or add context. Endorsements and structured flags are kept in the review panel above.

    Loading discussion…