AFTD Auto-Formalizing Theoretical Domains

higher_bruhat_inc_poset_dimension_ge

theoremverifiedformalization

For integers k ≥ 2 and n ≥ k+1, the Dushnik–Miller dimension of the inclusion higher Bruhat order B_inc(n, k) satisfies dim B_inc(n, k) ≥ ⌈(1/n) * choose(n, k+1)⌉.

Statement

theorem higher_bruhat_inc_poset_dimension_ge (n k : ℕ) (hk : 2 ≤ k) (hn : k + 1 ≤ n) :
    Nat.ceil ((n.choose (k + 1) : ℝ) / (n : ℝ)) ≤ poset_dimension (higher_bruhat_inc_le n k)
Formalizes
arXiv:2611.17465, Proposition 2
Verified
23 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 7
  • higher_bruhat_inc_poset_dimension_ge_card_of_boolean_subposetIf X and S are disjoint families of (k+1)-element subsets of {0, ..., n-1} such that X ∪ E is packet-consistent for every subcollection E…
  • higher_bruhat_modular_sublevel_packet_consistentLet n, k, and c be natural numbers such that 2 ≤ k, k + 1 ≤ n, and c < n. Let E be a family of subsets of Fin n such that every element A…
  • higher_bruhat_exists_modular_level_set_card_geFor all natural numbers n and k with 0 < n and 0 < k, there exists a natural number c < n such that the ceiling of choose(n, k+1) / n (in…
  • higher_bruhat_packet_consistentA family X of subsets of {0, ..., n-1} is packet-consistent if for every subset M ⊆ {0, ..., n-1} of size k+2, the family X satisfies…
  • poset_dimensionFor a relation r : α → α → Prop on α, poset_dimension r is the infimum in ℕ of the set of natural numbers d such that there exists a…
  • higher_bruhat_inc_leThe partial order relation on the inclusion higher Bruhat order B_inc(n, k) is given by inclusion of families: X ≤ Y if and only if X ⊆ Y.
  • higher_bruhat_incThe inclusion higher Bruhat order type B_inc(n, k) is the subtype of families X of subsets of {0, ..., n-1} such that each element of X…

Read back from the Lean

For all natural numbers $n$ and $k$ satisfying $2 ≤ k$ and $k + 1 ≤ n$, the ceiling of $\binom{n}{k+1} / n$ (as a real number) is less than or equal to the poset dimension of the higher Bruhat inclusion poset higher_bruhat_inc_le n k.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

The proof, explained

The Dushnik–Miller dimension of the inclusion higher Bruhat order B_inc(n, k) is bounded from below by finding an embedded Boolean subposet isomorphic to the power set of a set S. By partitioning the (k+1)-subsets according to their element sum modulo n, the pigeonhole principle yields a modular level set S of size at least ⌈(1/n) * choose(n, k+1)⌉. Pairing S with an auxiliary parity set X disjoint from S, every union X ∪ E for E ⊆ S is packet-consistent, thereby embedding the Boolean lattice 𝒫(S) into B_inc(n, k) and forcing dim B_inc(n, k) ≥ |S| ≥ ⌈(1/n) * choose(n, k+1)⌉.

  1. There exists a residue c < n whose modular level set S has cardinality at least ⌈(1/n) * choose(n, k+1)⌉, and we define S along with an auxiliary parity set X.

    From k ≥ 2 and n ≥ k + 1, linear arithmetic (`omega`) gives k > 0 and n > 0. By the pigeonhole principle on the sum of elements modulo n (`higher_bruhat_exists_modular_level_set_card_ge`), there exists a residue c < n such that the fiber of (k+1)-element subsets of {0, ..., n-1} summing to c mod n has at least ⌈choose(n, k+1) / n⌉ elements. We define S to be this modular level set, and define X to be the set of (k+1)-element subsets A whose sum difference (∑ a ∈ A, a) - c is not divisible by n and has an odd quotient when divided by n.

    lines 4–12

    uses higher_bruhat_exists_modular_level_set_card_ge

      have hk0 : 0 < k := by omega
      have hn0 : 0 < n := by omega
      obtain ⟨c, hc, hcard⟩ := higher_bruhat_exists_modular_level_set_card_ge n k hn0 hk0
      set S : Finset (Finset (Fin n)) :=
        (Finset.univ.filter (fun A => A.card = k + 1)).filter (fun A => (∑ a ∈ A, a.val) % n = c)
      set X : Finset (Finset (Fin n)) :=
        (Finset.univ.filter (fun A => A.card = k + 1)).filter (fun A =>
          let diff : ℤ := (∑ a ∈ A, (a.val : ℤ)) - (c : ℤ)
          diff % (n : ℤ) ≠ 0 ∧ Odd (diff / (n : ℤ)))
  2. Every element in X and every element in S has cardinality k + 1.

    By definition, both X and S are defined by filtering the collection of subsets of size k + 1. Unfolding the filtering condition using `Finset.mem_filter` shows that every member A ∈ X and every member A ∈ S has cardinality k + 1.

    lines 13–24

    uses Finset.mem_filter

      have hX : ∀ A ∈ X, A.card = k + 1 := by
        intro A hA
        rw [Finset.mem_filter] at hA
        have hA1 := hA.1
        rw [Finset.mem_filter] at hA1
        exact hA1.2
      have hS : ∀ A ∈ S, A.card = k + 1 := by
        intro A hA
        rw [Finset.mem_filter] at hA
        have hA1 := hA.1
        rw [Finset.mem_filter] at hA1
        exact hA1.2
  3. The sets X and S are disjoint.

    Using `Finset.disjoint_iff_ne`, assume for contradiction that some subset A belongs to both X and S. Since A ∈ S, the sum of its elements satisfies (∑ a ∈ A, a) ≡ c mod n. Casting to integers, this implies ((∑ a ∈ A, a) - c) ≡ 0 mod n by `Int.natCast_emod`, `Nat.mod_eq_of_lt`, and `Int.emod_eq_emod_iff_emod_sub_eq_zero`. However, by the definition of X, this difference cannot be divisible by n, producing a contradiction.

    lines 25–44

    uses Finset.disjoint_iff_ne, Finset.mem_filter, Int.natCast_emod, Nat.mod_eq_of_lt, Int.emod_eq_emod_iff_emod_sub_eq_zero

      have hdisj : Disjoint X S := by
        rw [Finset.disjoint_iff_ne]
        intro A hA B hB hAB
        subst hAB
        rw [Finset.mem_filter] at hA hB
        have hA_cond := hA.2
        have hB_cond := hB.2
        dsimp only at hA_cond hB_cond
        have hmod : (((∑ a ∈ A, a.val : ℕ) : ℤ) - (c : ℤ)) % (n : ℤ) = 0 := by
          have hs' : ((∑ a ∈ A, a.val : ℕ) : ℤ) % (n : ℤ) = (c : ℤ) := by
            rw [← Int.natCast_emod, hB_cond]
          have hc' : (c : ℤ) % (n : ℤ) = (c : ℤ) := by
            rw [← Int.natCast_emod, Nat.mod_eq_of_lt hc]
          rw [← Int.emod_eq_emod_iff_emod_sub_eq_zero]
          rw [hs', hc']
        have hcast : (∑ a ∈ A, (a.val : ℤ)) = ((∑ a ∈ A, a.val : ℕ) : ℤ) := by
          push_cast
          rfl
        rw [hcast] at hA_cond
        exact hA_cond.1 hmod
  4. For every subset E ⊆ S, the union X ∪ E is packet-consistent.

    This is provided directly by `higher_bruhat_modular_sublevel_packet_consistent`, which shows that adding any subset of the modular level set S to the modular alternating set X yields a packet-consistent family of (k+1)-element subsets.

    lines 45–47

    uses higher_bruhat_modular_sublevel_packet_consistent

      have hcons : ∀ E ⊆ S, higher_bruhat_packet_consistent n k (X ∪ E) := by
        intro E hE
        exact higher_bruhat_modular_sublevel_packet_consistent n k c hk hn hc E hE
  5. The Dushnik–Miller dimension of B_inc(n, k) is at least ⌈(1/n) * choose(n, k+1)⌉.

    Because X and S are disjoint families of (k+1)-subsets and X ∪ E is packet-consistent for every E ⊆ S, the mapping E ↦ X ∪ E embeds the Boolean lattice of subsets of S into the inclusion higher Bruhat order. By `higher_bruhat_inc_poset_dimension_ge_card_of_boolean_subposet`, the poset dimension of B_inc(n, k) is bounded below by |S|. Combining this with the lower bound on |S| via `le_trans` yields the desired inequality.

    lines 48–49

    uses higher_bruhat_inc_poset_dimension_ge_card_of_boolean_subposet, le_trans

      have hdim := higher_bruhat_inc_poset_dimension_ge_card_of_boolean_subposet n k X S hX hS hdisj hcons
      exact le_trans hcard hdim
higher_bruhat_exists_modular_level_set_card_ge
For positive integers n and k, there exists a remainder c < n such that the number of (k+1)-element subsets of {0, ..., n-1} whose sum is congruent to c modulo n is at least ⌈choose(n, k+1) / n⌉.
Finset.mem_filter
An element belongs to a filtered finite set if and only if it belongs to the original set and satisfies the filter predicate.
Finset.disjoint_iff_ne
Two finite sets are disjoint if and only if every element of the first set is distinct from every element of the second set.
Int.natCast_emod
The integer cast of the natural number remainder m % n equals the integer modulo operation (↑m) % (↑n).
Nat.mod_eq_of_lt
If a natural number a is strictly less than b, then a % b = a.
Int.emod_eq_emod_iff_emod_sub_eq_zero
Two integers m and k have the same remainder modulo n if and only if their difference m - k is divisible by n (that is, (m - k) % n = 0).
higher_bruhat_modular_sublevel_packet_consistent
For any subset E of the modular level set S (the (k+1)-element subsets with sum congruent to c mod n), the union X ∪ E is packet-consistent in the higher Bruhat order, where X consists of (k+1)-element subsets whose sum difference from c modulo n is non-zero and has odd quotient.
higher_bruhat_inc_poset_dimension_ge_card_of_boolean_subposet
If X and S are disjoint collections of (k+1)-element subsets such that X ∪ E is packet-consistent for every subset E ⊆ S, then the Dushnik–Miller dimension of the inclusion higher Bruhat order B_inc(n, k) is at least |S|.
le_trans
In a preorder, if a ≤ b and b ≤ c, then a ≤ c.

Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

/-- Modular level set lower bound on the Dushnik-Miller dimension of the inclusion higher Bruhat order B_inc(n, k). -/theorem higher_bruhat_inc_poset_dimension_ge (n k : ℕ) (hk : 2 ≤ k) (hn : k + 1 ≤ n) :    Nat.ceil ((n.choose (k + 1) : ℝ) / (n : ℝ)) ≤ poset_dimension (higher_bruhat_inc_le n k) := by  have hk0 : 0 < k := by omega  have hn0 : 0 < n := by omega  obtain ⟨c, hc, hcard⟩ := higher_bruhat_exists_modular_level_set_card_ge n k hn0 hk0  set S : Finset (Finset (Fin n)) :=    (Finset.univ.filter (fun A => A.card = k + 1)).filter (fun A => (∑ a ∈ A, a.val) % n = c)  set X : Finset (Finset (Fin n)) :=    (Finset.univ.filter (fun A => A.card = k + 1)).filter (fun A =>      let diff : ℤ := (∑ a ∈ A, (a.val : ℤ)) - (c : ℤ)      diff % (n : ℤ) ≠ 0 ∧ Odd (diff / (n : ℤ)))  have hX : ∀ A ∈ X, A.card = k + 1 := by    intro A hA    rw [Finset.mem_filter] at hA    have hA1 := hA.1    rw [Finset.mem_filter] at hA1    exact hA1.2  have hS : ∀ A ∈ S, A.card = k + 1 := by    intro A hA    rw [Finset.mem_filter] at hA    have hA1 := hA.1    rw [Finset.mem_filter] at hA1    exact hA1.2  have hdisj : Disjoint X S := by    rw [Finset.disjoint_iff_ne]    intro A hA B hB hAB    subst hAB    rw [Finset.mem_filter] at hA hB    have hA_cond := hA.2    have hB_cond := hB.2    dsimp only at hA_cond hB_cond    have hmod : (((∑ a ∈ A, a.val : ℕ) : ℤ) - (c : ℤ)) % (n : ℤ) = 0 := by      have hs' : ((∑ a ∈ A, a.val : ℕ) : ℤ) % (n : ℤ) = (c : ℤ) := by        rw [← Int.natCast_emod, hB_cond]      have hc' : (c : ℤ) % (n : ℤ) = (c : ℤ) := by        rw [← Int.natCast_emod, Nat.mod_eq_of_lt hc]      rw [← Int.emod_eq_emod_iff_emod_sub_eq_zero]      rw [hs', hc']    have hcast : (∑ a ∈ A, (a.val : ℤ)) = ((∑ a ∈ A, a.val : ℕ) : ℤ) := by      push_cast      rfl    rw [hcast] at hA_cond    exact hA_cond.1 hmod  have hcons : ∀ E ⊆ S, higher_bruhat_packet_consistent n k (X ∪ E) := by    intro E hE    exact higher_bruhat_modular_sublevel_packet_consistent n k c hk hn hc E hE  have hdim := higher_bruhat_inc_poset_dimension_ge_card_of_boolean_subposet n k X S hX hS hdisj hcons  exact le_trans hcard hdim
See it in the graphDiscuss this resultChallenge it