higher_bruhat_right_coord_monotone
For any subset Q ⊆ {0, ..., n-1}, the right coordinate map rho_Q is monotone with respect to family inclusion under the lexicographical order on boolean lists: if X ⊆ Y, then rho_Q(X) ≤ rho_Q(Y).
Statement
theorem higher_bruhat_right_coord_monotone (n : ℕ) (Q : Finset (Fin n))
{X Y : Finset (Finset (Fin n))} (h : X ⊆ Y) :
higher_bruhat_right_coord n Q X ≤ higher_bruhat_right_coord n Q Y- Formalizes
- arXiv:2611.17465 Section 2.2
- Verified
- 23 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 3
- higher_bruhat_right_coordFor a subset Q ⊆ {0, ..., n-1} and a family X, the right coordinate rho_Q(X) is the list of boolean values 1_{Q ∪ {x} ∈ X} for elements x…
- TotalPreorderA total preorder: a preorder where
≤is total (complete). This is weaker thanLinearOrder— it does NOT require antisymmetry or… - LinearOrder.toTotalPreorderEvery
LinearOrderis aTotalPreorder.
Read back from the Lean
For any natural number $n$, any subset $Q$ of $\mathrm{Fin}(n)$ (as a Finset), and any collections of subsets $X, Y \subseteq \mathcal{P}(\mathrm{Fin}(n))$ (as Finset (Finset (Fin n))), if $X \subseteq Y$, then higher_bruhat_right_coord n Q X ≤ higher_bruhat_right_coord n Q Y (with respect to the ≤ relation on List Bool).
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 theorem establishes that the right coordinate map ρ_Q is monotone under family inclusion X ⊆ Y by reducing the comparison to a pointwise boolean inequality on the elements of the coordinate list. To do this, an auxiliary lemma shows by list induction that mapping two boolean functions over the same list preserves lexicographical order whenever the functions satisfy pointwise inequality f(x) ≤ g(x), resolving the inductive step by whether the head values are strictly ordered or equal. For the main theorem, if Q is empty, both coordinate lists are empty and trivially equal; if Q is nonempty, both coordinates map over the same sorted domain of elements, where the inclusion X ⊆ Y directly implies the pointwise implication {x} ∪ Q ∈ X ⟹ {x} ∪ Q ∈ Y.
The lemma holds for the empty list: mapping functions over [] yields [] ≤ [].
Proceeding by induction on the list l, the base case l = [] requires showing that List.map f [] ≤ List.map g []. Since mapping over an empty list produces the empty list on both sides, the inequality reduces to [] ≤ [], which holds by reflexivity.
induction l with | nil => rfl
In the inductive step for x :: xs, the head inequality f(x) ≤ g(x) holds and the induction hypothesis applies to the tail xs.
Expanding List.map on x :: xs rewrites the goal to f(x) :: xs.map f ≤ g(x) :: xs.map g. The element x is in x :: xs via List.Mem.head, so the pointwise hypothesis specializes to f(x) ≤ g(x) (named hx). Every element y ∈ xs belongs to x :: xs via List.Mem.tail, which establishes f(y) ≤ g(y) for all y ∈ xs; applying the induction hypothesis ih to this fact yields xs.map f ≤ xs.map g (named ih').
uses
List.map_cons,List.Mem.head,List.Mem.tail| cons x xs ih => simp only [List.map_cons] have hx : f x ≤ g x := h x (List.Mem.head xs) have hxs : ∀ y ∈ xs, f y ≤ g y := fun y hy => h y (List.Mem.tail x hy) have ih' := ih hxsThe inequality f(x) :: xs.map f ≤ g(x) :: xs.map g holds, completing the inductive step.
We split the head inequality f(x) ≤ g(x) into two cases using lt_or_eq_of_le. If f(x) < g(x), the first list is strictly smaller in the lexicographical order by definition (List.Lex.rel), which implies the non-strict inequality via le_of_lt. If f(x) = g(x), substituting g(x) for f(x) leaves identical heads on both sides, and prepending a common element preserves the lexicographical ordering (List.cons_le_cons), allowing the tail induction hypothesis ih' to close the goal.
uses
lt_or_eq_of_le,le_of_lt,List.Lex.rel,List.cons_le_consrcases lt_or_eq_of_le hx with hlt | heq · exact le_of_lt (List.Lex.rel hlt) · rw [heq] exact List.cons_le_cons (g x) ih'
The main goal reduces to two cases depending on whether Q is nonempty or empty.
Unfolding the definition of higher_bruhat_right_coord with dsimp shows that the coordinate is defined conditionally: if Q is nonempty, it maps x ↦ decide({x} ∪ Q ∈ X) over the sorted domain D = {x ∉ Q | min Q < x}; if Q is empty, it evaluates to []. Splitting the condition with split_ifs yields two subgoals, one for Q nonempty and one for Q empty.
dsimp [higher_bruhat_right_coord] split_ifs with hQ
When Q is nonempty, ρ_Q(X) ≤ ρ_Q(Y).
Because both coordinate lists are obtained by mapping over the same sorted list D, applying the auxiliary lemma higher_bruhat_right_coord_list_map_le_list_map reduces the goal to showing that decide({x} ∪ Q ∈ X) ≤ decide({x} ∪ Q ∈ Y) for every x ∈ D. Rewriting with Bool.le_iff_imp and decide_eq_true_iff translates this boolean comparison into the proposition that {x} ∪ Q ∈ X implies {x} ∪ Q ∈ Y. This implication holds immediately from the assumption X ⊆ Y.
uses
higher_bruhat_right_coord_list_map_le_list_map,Bool.le_iff_imp,decide_eq_true_iff· apply higher_bruhat_right_coord_list_map_le_list_map intro x _hx rw [Bool.le_iff_imp, decide_eq_true_iff, decide_eq_true_iff] intro hx_mem exact h hx_mem
When Q is empty, ρ_Q(X) ≤ ρ_Q(Y).
When Q is empty, both coordinate lists evaluate to [], and the inequality [] ≤ [] holds reflexively by definition.
· rfl
Bool.le_iff_imp- For booleans x and y, x ≤ y is equivalent to x = true → y = true.
List.cons_le_cons- Prepending the same element to both sides preserves the lexicographical ordering between two lists.
List.Lex.rel- If the head of the first list is strictly smaller than the head of the second list, then the first list is strictly smaller in the lexicographical relation.
List.map_cons- Mapping a function over a non-empty list a :: l yields the mapped head prepended to the mapped tail.
List.Mem.head- The head element a of a list a :: as is a member of that list.
List.Mem.tail- If an element a belongs to the tail as, it also belongs to b :: as for any prepended element b.
decide_eq_true_iff- The boolean value decide(p) is true if and only if the proposition p holds.
higher_bruhat_right_coord_list_map_le_list_map- If f(x) ≤ g(x) for all elements x in a list l, then mapping f over l is lexicographically at most mapping g over l.
le_of_lt- Strict inequality a < b implies non-strict inequality a ≤ b in any preorder.
lt_or_eq_of_le- In a partial order, a ≤ b implies either a < b or a = b.
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
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
lemma higher_bruhat_right_coord_list_map_le_list_map {α : Type*} (l : List α) (f g : α → Bool) (h : ∀ x ∈ l, f x ≤ g x) : l.map f ≤ l.map g := by induction l with | nil => rfl | cons x xs ih => simp only [List.map_cons] have hx : f x ≤ g x := h x (List.Mem.head xs) have hxs : ∀ y ∈ xs, f y ≤ g y := fun y hy => h y (List.Mem.tail x hy) have ih' := ih hxs rcases lt_or_eq_of_le hx with hlt | heq · exact le_of_lt (List.Lex.rel hlt) · rw [heq] exact List.cons_le_cons (g x) ih'/-- Each right coordinate rho_Q is order-preserving under inclusion. -/theorem higher_bruhat_right_coord_monotone (n : ℕ) (Q : Finset (Fin n)) {X Y : Finset (Finset (Fin n))} (h : X ⊆ Y) : higher_bruhat_right_coord n Q X ≤ higher_bruhat_right_coord n Q Y := by dsimp [higher_bruhat_right_coord] split_ifs with hQ · apply higher_bruhat_right_coord_list_map_le_list_map intro x _hx rw [Bool.le_iff_imp, decide_eq_true_iff, decide_eq_true_iff] intro hx_mem exact h hx_mem · rfl