Window sweep acycloids W(n, m) answer Padrol–Philippe Question 7.21 in every rank at least 4
Result page Proof blueprint → Paper PDF Verification archive Palomar Registry GitHub
Padrol and Philippe asked whether every set of orderings passing their tests for sweeping a line across points is an oriented matroid. For n ≥ 6, the orderings of 1 to n with at least two others on each side of n pass (in the tope reading), yet are not.
For every r ≥ 4, with n = r + 2, the orderings of 1 to n in which n stands in position 3 to n − 2 form a simple allowable graph of permutations, their sign vectors form a simple acycloid and a sweep acycloid (in the tope reading of Padrol and Philippe's Definition 7.13(i)), some r distinct pairs are shattered by them and no r + 1 distinct pairs are, and no oriented matroid on the pairs of 1 to n has exactly these sign vectors as its topes.
Sweep a line across some points, or a flat sheet in higher dimensions, and list the points in the order it meets them. Padrol and Philippe (Combinatorica, 2024) wrote down tests modelled on sets of such orders, called whatever passes them a sweep acycloid, showed that every sweep oriented matroid passes (their Corollary 7.18), and asked, as Question 7.21, whether every sweep acycloid is an oriented matroid. The answer here is no in every rank r ≥ 4 (in the tope reading), where rank means VC dimension; rank 3 is still open.
Window sets W(n, 3) answer Padrol and Philippe's Question 7.21 no in every rank r ≥ 4 (VC dimension)
Walkthrough: 13 of 14 main results in Lean, 2 of them but for a last sentence, on the VC dimension, that no Lean theorem states; 1 more rests in part on Padrol and Philippe’s Section 7.4 and Lemma 7.17
Lean's proof that no oriented matroid has the window's topes (Theorem 17) uses no outside theorem. Definitions of Padrol and Philippe, Knauer and Marc, and Handa are formalized in Lean; the extension from topes to all covectors, and the published criteria that turn three witnesses into further routes to Theorem 17, are cited, not checked in Lean.
Published inputs
- Padrol & Philippe (2024) (Ported into Lean): Defined allowable graphs of permutations, acycloids and sweep acycloids (Definitions 7.5, 7.10 and 7.13), the covector rules (V0)–(V3) of oriented matroids (Definition 3.1), and sweeps and potential sweeps (Definition 7.16); Lean formalizes Definitions 7.5, 7.10 and 7.13 in the simple-move form the paper restates, sweep acycloid in the tope reading of Definition 7.13(i).
- Knauer & Marc (2020) (Ported into Lean): Defined, for N ≥ 4, the partial cube Q⁻⁻(N) by deleting from the N-cube the all-minus vertex, the N vertices with one plus sign, and the all-plus vertex (Section 5, p. 21).
- Handa (1993) (Ported into Lean): Listed the five circuits of Tamura's acycloid C₀ on five elements (Proposition 7.7, citing A. Tamura, private communication, 1985).
- Padrol & Philippe (2024) (Assumed outside Lean): Extended the sweep conditions from topes and parallelism classes to all covectors (Section 7.4 and Lemma 7.17); this enters the paper as a cited written step, not a Lean step.
- Padrol & Philippe (2024) (Assumed outside Lean): Corollaries 7.18 and 7.20: a sweep acycloid T_S is an oriented matroid exactly when every potential sweep of S is a sweep, and exactly when its tope graph avoids Knauer and Marc's excluded minors.
- da Silva (1995) (not fully read) (Assumed outside Lean): Cited in Remark 20, beside Padrol and Philippe's Corollaries 7.18 and 7.20, for the criterion that every potential sweep be a sweep.
- Knauer & Marc (2020) (Assumed outside Lean): Showed that a finite antipodal partial cube is the tope graph of an oriented matroid if and only if it avoids their excluded minor family, which contains Q⁻⁻(N) for every N ≥ 4 (Theorem 1.1 and Corollary 7.2).
- Handa (1993) (Assumed outside Lean): Lists Tamura's C₀ among the four acycloids on five elements, up to reorientation, that are not oriented matroids (Proposition 7.7).
- Björner, Las Vergnas, Sturmfels, White & Ziegler (1999) (not fully read) (Assumed outside Lean): Cited in Remark 23 for the shattered sets of a finite loopless oriented matroid being the independent sets of its underlying matroid, so VC dimension agrees with rank there.
What this paper adds
- For n ≥ 4, the window passes the sweep tests, and W(n, 1) and W(n, 2) come from points: How many orderings a window holds; Shortest walks and single-pair swaps; Padrol and Philippe's tests; For n ≥ 4, W(n, 1) and W(n, 2) come from points
- Shattered pairs: Which lists of pairs are shattered; n − 2 pairs shattered, not n − 1, for m ≥ 2; n − 1 pairs shattered, not n, for m = 1 and n ≥ 2; Augmentation fails for m ≥ 3
- For m ≥ 3, no oriented matroid has the window's topes: The elimination contradiction; A potential sweep that is not a sweep; Knauer and Marc's excluded minor inside the window; Tamura's C₀ inside W(6, 3)
Question 7.21 has the answer no in every rank r ≥ 4, rank meaning VC dimension
For every r ≥ 4, with n = r + 2, the window W(n, 3), the orderings of 1 to n with n in position 3 to n − 2, is a simple allowable graph of permutations whose sign vectors form a simple acycloid and a sweep acycloid (in the tope reading) that shatters r pairs and no r + 1, yet no oriented matroid on the pairs of 1 to n has them as its topes.
13 of 14 main results in Lean with no outside input, and the paper’s 2 supporting lemmas, in pure core Lean 4 with no Mathlib. Theorem 11 and Proposition 12 are among the 13, but no Lean theorem states the last sentence of either, that the VC dimension is exactly n − 2 (n − 1 for m = 1): Lean proves that W(n, m) shatters some n − 2 distinct pairs and no n − 1 distinct pairs (for m = 1, some n − 1 and no n); that it shatters no larger family either, which the VC dimension needs, uses that a family inside a shattered family is shattered, a step no Lean theorem states. Rank means VC dimension. Sweep acycloid is formalized in the tope reading of Padrol and Philippe's Definition 7.13(i); the extension to all covectors is cited from their Section 7.4 and Lemma 7.17, so Theorem 1, whose part (b) and closing answer to their Question 7.21 use that extension, rests in part on it. Theorem 1's "VC dimension r" needs the same step as Theorem 11.
Listed as open in the paper
- Whether every sweep acycloid of VC dimension 3 is the tope set of an oriented matroid (rank 3 of Question 7.21); by Handa's Theorem 3.7, this asks whether every rank-3 sweep acycloid has a planar tope graph.
- Whether W(6, 3) is the smallest sweep acycloid that is not an oriented matroid, by number of letters or by number of orderings (240); Handa's Proposition 7.4 rules out n ≤ 3, leaving n = 4 and n = 5 open.
Adjacent prior work (not used as inputs)
- Padrol & Philippe (2024)
- Philippe (2024)
- Handa (1993); Fukuda & Handa (1993) (not fully read)
- Knauer & Marc (2020)
The window W(6, 3)
Take n = 6 and m = 3. W(6, 3) holds the orderings of 1 to 6 in which 6 has at least two letters on each side, so 6 stands in position 3 or 4. One of them is 2 5 6 1 4 3. There are 2 places for the 6 and 5! = 120 orders for the other five letters, so W(6, 3) has 2 · 120 = 240 orderings, which is (6 − 2·3 + 2) · 5!.
For each letter i from 1 to 5, write + if i comes before 6 and − if it comes after. The ordering 2 5 6 1 4 3 gives − + − − +. Since 6 has two or three letters before it, each such list has two or three plus signs, and all 10 + 10 = 20 lists of that kind occur.
Now take the lists whose fifth sign can be reversed without leaving the 20, and keep only their other four signs. Those four signs hold exactly two plus signs, so 6 lists of four signs arise, among them + + − − and − + + −. If an oriented matroid had the 240 sign vectors as its topes, keeping only the pairs (i, 6) and then contracting the fifth place would give an oriented matroid whose topes are exactly these 6 lists.
Its elimination rule, used on + + − − and − + + − at place 1, gives a sign vector 0 + ? −. Fill its zero places from + + − − if ? is +, from − + + − if ? is −, and from + − + − if ? is 0. The result is + + + − or − + − −. It has no zero, so it would be a tope, yet it has three plus signs or three minus signs, and no list among the 6 does. So no such oriented matroid exists. Lean runs the same argument, with more contractions and longer lists where needed, for every window W(n, m) with m ≥ 3 and 2m ≤ n.
The interactive page explains each key step in full.
Orderings, windows and sign vectors
An ordering puts the letters 1 to n in a row, each once. For m ≥ 1 and 2m ≤ n, the window W(n, m) keeps the orderings in which n has at least m − 1 letters before it and at least m − 1 after it; every window in this story has m and n in that range. Each ordering has a sign vector with one sign per pair i < j, + if i comes before j and − if after. A swap exchanges two neighbouring letters, and the distance between two orderings counts the pairs on which their signs differ.
- Any distinct scores can be turned into an ordering
- The pigeonhole principle
How many orderings a window holds
Reversing an ordering moves n from position p to n + 1 − p, so the window is closed under reversal. For m ≥ 1 and 2m ≤ n, deleting n from an ordering in W(n, m) leaves an ordering of the other n − 1 letters, and n itself has n − 2m + 2 possible positions. This exact matching gives (n − 2m + 2)·(n − 1)! orderings, and a pigeonhole argument shows that no other count is possible.
For m ≥ 1 and 2m ≤ n, W(n, m) holds exactly (n − 2m + 2)·(n − 1)! orderings
Let m ≥ 1 and 2m ≤ n. There is an exact matching between W(n, m) and the numbers 0, 1, …, (n − 2m + 2)·(n − 1)! − 1, and every exact matching between W(n, m) and the numbers 0, …, c − 1 has c = (n − 2m + 2)·(n − 1)!.
theorem SweepAcycloid.claim_window_cardinality (n : Nat) (m : Nat) (w : Nat) (k : Nat) (hm : 1 ≤ m) (h2m : 2 * m ≤ n) (hw : w + 2 * m = n + 2) (hk : k + 1 = n) : Nonempty (Bijection { σ // InWindow n m σ } (Fin (w * fact k))) ∧ ∀ (c : Nat), Nonempty (Bijection { σ // InWindow n m σ } (Fin c)) → c = w * fact kReversal keeps the window, and the window splits by the position of n
Let m ≥ 1 and 2m ≤ n. If an ordering is in W(n, m), so is its reversal. There is an exact matching between W(n, m) and the pairs (q, π), where q is a whole number from 0 to n − 2m + 1 and π is an ordering of n − 1 letters.
theorem SweepAcycloid.claim1_reversal_and_bijection (n : Nat) (m : Nat) (w : Nat) (k : Nat) (hm : 1 ≤ m) (h2m : 2 * m ≤ n) (hw : w + 2 * m = n + 2) (hk : k + 1 = n) : (∀ (σ : Perm n), InWindow n m σ → ∃ τ, IsReverse σ τ ∧ InWindow n m τ) ∧ Nonempty (Bijection { σ // InWindow n m σ } (Fin w × Perm k))- Reversal keeps an ordering in its window
- There are exactly k! orderings of k letters
- Counts that can be matched exactly are equal
Moving through the window one swap at a time
For n ≥ 4, m ≥ 1 and 2m ≤ n, any two orderings in W(n, m) are joined by a walk of swaps that never leaves the window and is as short as possible: its length is their distance. The walk is built one swap at a time: a swap of two neighbours that the target has in the other order brings the distance down by 1, and a counting argument shows such a swap can be chosen that keeps n inside the window. Every pair can also be flipped on its own by a single swap inside the window. From these facts the window passes Padrol and Philippe's tests: it is a simple allowable graph of permutations, and its sign vectors form a simple acycloid and a sweep acycloid (in the tope reading).
For n ≥ 4, m ≥ 1 and 2m ≤ n, W(n, m) passes Padrol and Philippe's tests
Let n ≥ 4, m ≥ 1 and 2m ≤ n. W(n, m) is a simple allowable graph of permutations, and its sign vectors form a simple acycloid and a sweep acycloid.
theorem SweepAcycloid.claim_simple_allowable_graph_and_sweep_acycloid (n : Nat) (m : Nat) (hn : 4 ≤ n) (hm : 1 ≤ m) (h2m : 2 * m ≤ n) : IsSimpleAllowableGraph (InWindow n m) ∧ IsSimpleAcycloid (TopeSet (InWindow n m)) ∧ IsSweepAcycloid (TopeSet (InWindow n m))
Shortest walks, single-pair swaps and the order rule
Let n ≥ 4, m ≥ 1 and 2m ≤ n. (a) Any two orderings σ and τ in W(n, m) are joined by a walk of exactly d(σ, τ) swaps that stays inside W(n, m), where d(σ, τ) is their distance. (b) Every walk inside W(n, m) from σ to τ has at least d(σ, τ) swaps. (c) For every pair e there are two orderings in W(n, m), one swap apart, whose signs differ at e and agree at every other pair. (d) In every ordering of 1 to n, for letters i < j < k, if the pairs (i, j) and (j, k) have the same sign, then (i, k) has that sign too.
- A walk inside the window as long as the distance
- A step towards τ that keeps n in the window
- No walk is shorter than the distance
- One swap shortens the distance by at most 1
- A swap changes the distance by exactly 1
- Every pair can be flipped on its own inside the window
- A shortest walk is a simple allowable sequence
Which pairs can take every sign
A list of pairs is shattered when every choice of + or − on it occurs in some ordering of the window. Drawing each pair as a line between two letters, for m ≥ 1 and 2m ≤ n a list is shattered by W(n, m) exactly when it has no cycle (it is a forest) and the piece containing n has at most n − m + 1 letters. So for m ≥ 2 some lists of n − 2 pairs are shattered and none of n − 1, which the paper reads as VC dimension n − 2, a step no Lean theorem states; for m = 1 the numbers are n − 1 and n. For m ≥ 3 the shattered lists break the augmentation rule of matroids: a shattered list cannot always be lengthened by a pair taken from a longer shattered list.
Exactly the forests whose piece around n is small are shattered
Let m ≥ 1 and 2m ≤ n, and let P be any list of k pairs. W(n, m) shatters P exactly when P, drawn as lines between letters, is a forest and the piece of it that contains the letter n has at most n − m + 1 letters.
theorem SweepAcycloid.claim_shattered_characterization (n : Nat) (m : Nat) (k : Nat) (hm : 1 ≤ m) (h2m : 2 * m ≤ n) (x : Fin n) (hx : ↑x + 1 = n) (P : Fin k → Pair n) : IsShattered (InWindow n m) P ↔ IsForest P ∧ compSize P x + m ≤ n + 1
For m ≥ 2, n − 2 pairs are shattered and no n − 1 are
Let n ≥ 4, m ≥ 2 and 2m ≤ n. Some n − 2 distinct pairs are shattered by W(n, m), and no n − 1 distinct pairs are (the paper reads this as VC dimension exactly n − 2, a step no Lean theorem states).
For m = 1, n − 1 pairs are shattered and no n are
Let n ≥ 2. Some n − 1 distinct pairs are shattered by W(n, 1), which holds every ordering of 1 to n, and no n distinct pairs are (the paper reads this as VC dimension exactly n − 1, a step no Lean theorem states).
For m ≥ 3 and 2m ≤ n the shattered lists break the augmentation rule of matroids
Let m ≥ 3, 2m ≤ n and a = n − m. There are a list A of a distinct pairs and a list B of a + 1 distinct pairs, both shattered by W(n, m), such that adding to A any pair of B that is not already in A gives a list that W(n, m) does not shatter.
- A shattered list has no cycle
- A forest can be coloured with two colours
- Any signs on a forest can be realized by scores
- A path of n − 2 pairs is shattered
- No n − 1 distinct pairs are shattered when m ≥ 2
- A shattered list without repeats has no cycle
Why no oriented matroid has these topes
Suppose, for m ≥ 3 and 2m ≤ n, some oriented matroid had the window's sign vectors as its topes. Keeping only the pairs (i, n) leaves the sign lists on n − 1 places with between m − 1 and n − m plus signs, and contracting one place at a time, n − 2m + 1 times, leaves an oriented matroid on 2(m − 1) places whose topes are the lists with exactly m − 1 plus signs. Its elimination rule then produces a tope with one plus sign too many or too few, which is a contradiction. The rules for keeping and contracting places are proved in general, with an example of why contraction needs its extra condition.
For m ≥ 3 and 2m ≤ n no oriented matroid has the window's sign vectors as topes
Let m ≥ 3 and 2m ≤ n. No collection of sign vectors on the pairs of 1 to n obeys the oriented-matroid rules and has as its topes exactly the sign vectors of the orderings in W(n, m).
Keeping and contracting places preserve the oriented-matroid rules
Let L be any collection of sign vectors on a set E that obeys the oriented-matroid rules. (a) Reading L along any map ι from a set F into E gives a collection that obeys the rules; if every tope of L has no zero and L has a tope, its topes are exactly the topes of L read along ι. (b) Contracting L at any element e gives a collection that obeys the rules; if every tope of L has no zero and some Y₀ has both extensions, by + at e and by − at e, among the topes of L, then the topes of the contraction are exactly the Y with both extensions among the topes of L. (c) On two elements, the collection 00, ++, −− obeys the rules, its topes have no zero, the second element is nonzero in some vector, no Y has both extensions as topes, and yet the all-zero vector is a tope of the contraction at the second element.
An oriented matroid on finitely many places has a tope
For every k, every collection of sign vectors on k places that obeys the oriented-matroid rules has at least one tope.
theorem SweepAcycloid.claim_exists_tope_fin (k : Nat) (L : (Fin k → Sign) → Prop) (hL : IsOrientedMatroid L) : ∃ T, IsTope L T
- On the pairs (i, n), the window shows exactly a band
- Contracting a band narrows it by one
- Contracting a band repeatedly squeezes it to one count
- On 2k ≥ 4 places, no oriented matroid has the lists with exactly k plus signs as its topes
- Keeping some places keeps the oriented-matroid rules
- The topes after keeping some places
- Contracting a place keeps the oriented-matroid rules
- The topes after contracting a place
Three more witnesses inside the window
For m ≥ 3 and 2m ≤ n, three explicit structures from the literature appear in the window. The ordered split ({1}, {3, …, n}, {2}) is a potential sweep of W(n, m) but not a sweep. Fixing the signs of 2m − 5 of the pairs (i, n) leaves exactly Knauer and Marc's pattern Q⁻⁻(N) with N = n − 2m + 4. In W(6, 3) the five pairs (i, 6) carry exactly the topes of Tamura's acycloid C₀, once the third sign is reversed.
A potential sweep that is not a sweep
Let m ≥ 3 and 2m ≤ n. The ordered split ({1}, {3, …, n}, {2}) of the letters is a potential sweep of W(n, m), and it is not a sweep of W(n, m).
For m ≥ 3, Knauer and Marc's pattern Q⁻⁻(N) sits inside the window
Let m ≥ 3 and 2m ≤ n, and let N = n − 2m + 4. Then N ≥ 4. Take the orderings in W(n, m) in which the letters 1 to m − 3 come before n and the letters m − 2 to 2m − 5 come after n. For the remaining N letters, 2m − 4 to n − 1, record + if the letter comes before n and − if after. The records obtained are exactly the sign vectors on N places with no zero and with at least 2 and at most N − 1 plus signs, which is Knauer and Marc's Q⁻⁻(N).
Tamura's acycloid C₀ sits inside W(6, 3)
For every sign vector v on 5 places, these are equivalent. (i) Some ordering in W(6, 3) has sign vᵢ on the pair (i, 6) for every i from 1 to 5. (ii) v has no zero and exactly two or three plus signs. (iii) v with its third sign reversed is a tope of Tamura's acycloid C₀.
The answer, and where it starts
With m = 3 and n = r + 2 for any r ≥ 4, the earlier chapters combine: the window passes the tests, shatters r pairs and no r + 1, and no oriented matroid has its sign vectors as topes. For m = 1 and m = 2, with n ≥ 4, the windows do come from geometry: n points in n − 1 dimensions, or in n − 2, have exactly W(n, 1) or W(n, 2) as their sweep orders. For m = 2 the point for n sits at the average of the others, so a sweep never meets it at either end.
For r ≥ 4, W(r + 2, 3) passes the tests in the tope reading and is no oriented matroid's tope set
For every r ≥ 4, put n = r + 2. The window W(n, 3), the orderings of 1 to n with n in position 3 to n − 2, is a simple allowable graph of permutations. Its sign vectors form a simple acycloid and a sweep acycloid. Some r distinct pairs are shattered by the window and no r + 1 distinct pairs are (the paper reads this as VC dimension r, a step no Lean theorem states). No oriented matroid on the pairs of 1 to n has exactly these sign vectors as its topes.
- The main theorem's ingredients at m = 3
For n ≥ 4, W(n, 1) and W(n, 2) are exactly the sweep orders of some points
Let n ≥ 4 and let R be any linearly ordered commutative ring with 0 < 1, such as the integers, the fractions or the real numbers. There are n points in Rⁿ⁻¹ whose sweep orders, over all directions, are exactly the orderings of W(n, 1), which is all of them. There are n points in Rⁿ⁻² whose sweep orders are exactly the orderings of W(n, 2).
- For n ≥ 4, W(n, 1) is the sweep orders of n points in n − 1 dimensions
- For n ≥ 4, W(n, 2) is the sweep orders of n points in n − 2 dimensions