AFTD Auto-Formalizing Theoretical Domains

higher_bruhat_packet_consistent

def

A 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 either that M \ {a} ∈ X implies M \ {b} ∈ X for all a < b in M, or that M \ {b} ∈ X implies M \ {a} ∈ X for all a < b in M.

Statement

def higher_bruhat_packet_consistent (n k : ℕ) (X : Finset (Finset (Fin n))) : Prop
Defined in
arXiv:2611.17465 Definition 1
Verified
23 Nov 2026
Axioms
none listed
Used by 6

Read back from the Lean

Given natural numbers n and k, and a family of subsets X of Fin n (represented as Finset (Finset (Fin n))), the predicate asserts that for every subset M of Fin n of cardinality k + 2, at least one of the following two conditions holds: 1. For all a, b ∈ M with a < b, if M \ {a} ∈ X, then M \ {b} ∈ X. 2. For all a, b ∈ M with a < b, if M \ {b} ∈ X, then M \ {a} ∈ X.

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

Lean source view module on GitHub

/-- A family X of (k+1)-subsets of Fin n is packet-consistent if its intersection with each packet forms an initial or final segment. -/
def higher_bruhat_packet_consistent (n k : ℕ) (X : Finset (Finset (Fin n))) : Prop :=
  ∀ M : Finset (Fin n), M.card = k + 2 →
    (∀ a ∈ M, ∀ b ∈ M, a < b → M.erase a ∈ X → M.erase b ∈ X) ∨
    (∀ a ∈ M, ∀ b ∈ M, a < b → M.erase b ∈ X → M.erase a ∈ X)
See it in the graphDiscuss this resultChallenge it