Crossing counts are stable under membership changes
Lax235315.NearTwinStability · concepts/Lax235315/NearTwinStability.lean · lax-235315
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
If two membership sequences of equal length differ at k positions, the first crossing count is at most the second plus 2k. Interchanging the sequences gives the bound in the other direction. This is the local estimate behind Lemma 2.2 of Dreier–Kuske.
Concept map
Lean source view on GitHub
| 1 | import Lax235315.SequenceCrossings |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Crossing counts are stable under membership changes |
| 6 | type: lemma |
| 7 | --- |
| 8 | If two membership sequences of equal length differ at k positions, the first |
| 9 | crossing count is at most the second plus 2k. Interchanging the sequences |
| 10 | gives the bound in the other direction. This is the local estimate behind |
| 11 | Lemma 2.2 of Dreier--Kuske. |
| 12 | |
| 13 | # Formalization notes |
| 14 | |
| 15 | No randomness or shatter-function bound is needed. Each changed position has |
| 16 | at most two incident consecutive pairs. For a list containing each vertex |
| 17 | once, Hamming distance is the size of the symmetric difference of the sets |
| 18 | on the listed vertices; that representation bridge is a separate obligation. |
| 19 | -/ |
| 20 | |
| 21 | namespace Lax235315.NearTwinStability |
| 22 | open Lax235315.SequenceCrossings |
| 23 | |
| 24 | /-- Changing k membership positions increases the crossing count by at most 2k. -/ |
| 25 | axiom crossings_le_add_twice_hamming (xs ys : List Bool) |
| 26 | (h : xs.length = ys.length) : |
| 27 | crossings xs ≤ crossings ys + 2 * hamming xs ys |
| 28 | |
| 29 | end Lax235315.NearTwinStability |
| 30 |
Formalization notes
No randomness or shatter-function bound is needed. Each changed position has at most two incident consecutive pairs. For a list containing each vertex once, Hamming distance is the size of the symmetric difference of the sets on the listed vertices; that representation bridge is a separate obligation.
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments