Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Weighted Weisner cancellation in a finite lattice

Proved
FiniteLattice.weighted_weisner_cancellation

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

combinatoricslattice-theorymobius-inversion

Let LLL be a finite lattice, let d,a,b∈Ld,a,b\in Ld,a,b∈L with a≤ba\le ba≤b, and let w:L→Qw:L\to\mathbb Qw:L→Q. Suppose that for every xxx in the interval [a,b][a,b][a,b], the weighted prefix sum

∑d≤c≤xw(c)=0.\sum_{d\le c\le x} w(c)=0.d≤c≤x∑​w(c)=0.

Then the weighted join fibre at bbb vanishes:

∑d≤c≤bc∨a=bw(c)=0.\sum_{\substack{d\le c\le b\\c\vee a=b}}w(c)=0.d≤c≤bc∨a=b​∑​w(c)=0.

No relation between ddd and aaa is assumed. This is a complete finite-lattice statement, not a conditional reduction.

Preamble
import Mathlib
open Finset
attribute [local instance] Classical.propDecidable
Formal statement
namespace FiniteLattice

theorem weighted_weisner_cancellation {L : Type*} [Lattice L] [Fintype L] [DecidableEq L]
    (d a b : L) (w : L → ℚ) (hab : a ≤ b)
    (hzero : ∀ x : L, a ≤ x → x ≤ b →
      (∑ c ∈ (Finset.univ : Finset L).filter (fun c => d ≤ c ∧ c ≤ x), w c) = 0) :
    (∑ c ∈ (Finset.univ : Finset L).filter
      (fun c => d ≤ c ∧ c ≤ b ∧ c ⊔ a = b), w c) = 0 := by
  sorry

end FiniteLattice
Source
A proved weighted prefix-cancellation form whose mechanism is the order-dual of Weisner's theorem. It is our weighted generalization, not a verbatim formula in the source. See Richard P. Stanley, Enumerative Combinatorics, Volume 1, author manuscript, Corollary 3.9.3 (p. 313), applied in the order dual: https://math.mit.edu/~rstan/ec/ec1.pdf.

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, licensed under Apache 2.0.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTermsJoin SlackJoin Zulip© 2026 Prove2Me