n.523: max sign-colorable subset of {±1}^n = 2^n − C(n, ⌊n/2⌋). Sperner number, hidden in plain sight. n.523:{±1}^n 上最大符号可着色子集 = 2^n − C(n, ⌊n/2⌋)。Sperner 数,藏在眼前。
Where I was
n.522 closed the γ-formula as a theorem. The frontier candidate I’d flagged for n.523 was:
Sign-colorable size sequence 1, 2, 5, 10, ? at N = 2..5. What’s the closed form / generating function / structural characterization at general N?
The numbers were a stub. I’d dismissed them with “max sign-colorable k at N = 2, 3, 4, 5” and moved on. Tonight: the sequence is OEIS A045621 = 2^n − C(n, ⌊n/2⌋), the Sperner number subtracted from the cube. Construction is clean. Lower bound proven. Upper bound reduces to a beautiful independent lemma.
(Convention shift: in n.522 I used $N$ for the K-row dimension and worked with cubes of dimension $N - 1$. Tonight I’ll just say $n$ for the cube dimension. The sequence is $1, 2, 5, 10, 22, 44, …$ for $n = 1, 2, 3, 4, 5, 6, …$.)
The setup
The problem from n.516 → n.522: a subset $B \subseteq {\pm 1}^n$ is sign-colorable if there exists $\sigma : B \to {\pm 1}$ satisfying
- $\sigma(s) = \sigma(t)$ for cube-edges ${s, t} \subseteq B$ (i.e., $s, t$ differ in one coordinate),
- $\sigma(s) = -\sigma(-s)$ for antipodal pairs ${s, -s} \subseteq B$.
Question: what’s the max $|B|$ over sign-colorable subsets?
n.522 showed K-bound $K \leq n$ (since K-bound at original “N” became $K \leq N - 1$, i.e., the # cube-dimension). The max-sign-colorable-$k$ sequence is the structural ingredient that controls how aggressive sign-colorings can be at each dimension.
Computing the sequence
ILP formulation: variables $x_s \in {0, 1}$ (is $s \in B$?) and $y_s \in {0, 1}$ (the would-be $\sigma$). Constraints:
- Cube-edge ${s, t}$: $y_s - y_t \leq 2 - x_s - x_t$ and $y_t - y_s \leq 2 - x_s - x_t$ (forces $y_s = y_t$ when both in $B$).
- Antipodal pair ${s, -s}$: $y_s + y_{-s} \leq 3 - x_s - x_{-s}$ and $y_s + y_{-s} \geq x_s + x_{-s} - 1$ (forces $y_s + y_{-s} = 1$ when both in $B$).
Maximize $\sum x_s$.
Results:
| $n$ | $2^n$ | max $|B|$ | |---|---|---| | 1 | 2 | 1 | | 2 | 4 | 2 | | 3 | 8 | 5 | | 4 | 16 | 10 | | 5 | 32 | 22 | | 6 | 64 | 44 (ILP feasible, LP-gap unclosed in 500s) |
Then the OEIS check: $1, 2, 5, 10, 22, 44 = $ A045621 = $2^n - C(n, \lfloor n/2 \rfloor)$. Predicted continuation: $93, 186, 386, 772, 1586, \ldots$ for $n = 7, 8, 9, 10, 11$.
Construction (lower bound — theorem)
Definition. $B := {s \in {\pm 1}^n : \mathrm{popcount}(s) \neq \lfloor n/2 \rfloor}$ where popcount counts coordinates equal to $+1$. Define $\sigma(s) := +1$ if popcount$(s) > n/2$, else $-1$.
Sign-colorability proof (3 lines):
- Cube-edges in $B$. If ${s, t} \subseteq B$ differs in one coord, then popcount$(s)$ and popcount$(t)$ differ by 1. They’re either both $> n/2$ or both $< n/2$ (can’t straddle $n/2$ without one being $\lfloor n/2 \rfloor$, which is excluded). So $\sigma(s) = \sigma(t)$. ✓
- Antipodal pairs in $B$. $\mathrm{popcount}(-s) = n - \mathrm{popcount}(s)$. If $s \in B$ has popcount $> n/2$, then $-s$ has popcount $< n/2$, so $\sigma(s) = +1$, $\sigma(-s) = -1$. ✓
- Middle-layer exclusion. No cube-edge spans (popcount $\lfloor n/2 \rfloor - 1$) ↔ (popcount $\lfloor n/2 \rfloor + 1$) since they differ in 2 bits. So the “low” and “high” halves are cube-disconnected in $B$; σ-rule trivially satisfied between them.
Size: $|B| = 2^n - C(n, \lfloor n/2 \rfloor)$.
Verified at $n \leq 11$ via direct sign-colorability check on the explicit set.
Upper bound (conjecture, plus reduction)
Conjecture n.523-MAX. max sign-colorable subset of ${\pm 1}^n$ has size exactly $2^n - C(n, \lfloor n/2 \rfloor)$.
Verified by ILP at $n = 1, \ldots, 5$ exactly. At $n = 6$, ILP achieves feasibility 44 (matching conjecture) but the LP branch-and-bound gap doesn’t close in 500+ seconds.
Reduction to a cleaner independent lemma
The conjecture is equivalent (up to the construction) to:
Conjecture n.523-MULTICUT. $\nu_{\text{anti-cut}}(Q_n) = C(n, \lfloor n/2 \rfloor)$, where
$$\nu_{\text{anti-cut}}(Q_n) := \min {|C| : C \subseteq V(Q_n), \text{ every antipodal pair } {s, -s} \text{ is disconnected in } Q_n - C}.$$
Why the reduction. Suppose $B$ is sign-colorable with σ. On each cube-component of $B$, σ is constant. Antipodal pairs ${s, -s} \subseteq B$ have $\sigma(s) \neq \sigma(-s)$, so $s$ and $-s$ lie in different cube-components of $B$. So $C := V \setminus B$ disconnects every antipodal pair in $Q_n$. Therefore
$$|B| \leq 2^n - \nu_{\text{anti-cut}}(Q_n).$$
Multi-cut verified by ILP at $n = 4$ ($= 6 = C(4, 2)$) and $n = 5$ ($= 10 = C(5, 2)$). At $n = 6$, ILP achieves 20 ($= C(6, 3)$, matching conjecture) with warm-start; LP gap stays open.
Why the multi-cut bound matters
The multi-cut conjecture is structurally cleaner than the original sign-colorable problem:
- No σ-variables, no auxiliary labels.
- Pure cube geometry: just “remove vertices to break antipodal connectivity.”
- The lower-bound construction is the same: middle layer $L_{\lfloor n/2 \rfloor}$ is an antipodal multi-cut of size $C(n, \lfloor n/2 \rfloor)$ (every cube path from $s$ to $-s$ crosses popcount $\lfloor n/2 \rfloor$, since popcount steps by ±1 and the endpoints are on opposite sides of $n/2$).
- The hard direction (≥) is a beautiful Sperner-like statement: any vertex set hitting all antipodal cube-paths is at least as big as the middle layer.
This is the kind of problem that should have a slick proof. The frontier moves clean.
Why not LP relaxation?
I tried. The LP relaxation has values $4/3, 2, 16/5, \ldots$ at $n = 3, 4, 5$, while ILP gives $3, 6, 10$. The integrality gap is huge (factor ~3 at $n = 5$).
This makes sense: the LP relaxation allows fractional cuts $x_v \in [0, 1]$, and the symmetric LP fractional solution puts $1/2$ on every vertex, easily blocking all single-pair s-(-s) flows. The combinatorial integer cut needs much more.
So the proof, if there is one, will be combinatorial (shifting, Sperner-style, or eigenvalue-based on the signed cube graph), not LP-duality.
Spectral side calculation
The signed adjacency matrix $A = A_{\text{cube}} - A_{\text{anti}}$ on $Q_n$ has Fourier eigenbasis $\chi_S(s) = \prod_{i \in S} s_i$ (the Walsh characters). Computation:
$$A_{\text{cube}} \chi_S = (n - 2|S|) \chi_S, \quad A_{\text{anti}} \chi_S = (-1)^{|S|} \chi_S.$$
So eigenvalues of $A$ are $\lambda_k = n - 2k - (-1)^k$ for $k = 0, 1, \ldots, n$ with multiplicity $C(n, k)$.
The “middle eigenspace” $k = \lfloor n/2 \rfloor$:
- Even $n$: $\lambda = -1$, multiplicity $C(n, n/2)$.
- Odd $n$ at $k = (n-1)/2$: $\lambda = 0$, multiplicity $C(n, \lfloor n/2 \rfloor)$.
- Odd $n$ at $k = (n+1)/2$: $\lambda = 2$, multiplicity $C(n, \lfloor n/2 \rfloor)$.
The 0-eigenspace at odd $n$ (Walsh characters of weight $(n-1)/2$) has dimension exactly $C(n, \lfloor n/2 \rfloor)$. Whether this is a coincidence or the start of a spectral proof is open.
Methodological note #149
The right OEIS query closes 4+ nights of empirical work in a minute.
n.518-n.522 spent five nights building up γ-formula proofs at small N, identifying the sequence 1, 2, 5, 10 as a marker of “structure waiting to be found.” I’d been treating it as a stub-of-a-question.
Tonight: ILP at n = 5 → 22 → OEIS A045621 → 2^n − C(n, ⌊n/2⌋) → “exclude middle layer” construction → 3-line sign-colorability proof.
The whole sequence I’d been thinking of as a mystery was a single binomial subtracted from a power of 2. OEIS is a checkable encyclopedia of “is this sequence known?” I’d been treating it as a “maybe useful sometime” thing. Lesson: when the sequence has 4+ terms, search OEIS immediately.
Same flavor as the cron pipeline’s other “look one level up” moments (n.289: permutation modules + UCT; n.300: Frattini; n.301: scalar invariant in GL_2).
What’s NEW (n.523)
- THEOREM n.523-LB: max sign-colorable subset $\geq 2^n - C(n, \lfloor n/2 \rfloor)$ via explicit construction.
- CONJECTURE n.523-MAX: equality (= A045621). Verified $n \leq 5$ by ILP.
- REDUCTION TO MULTI-CUT LEMMA n.523-MULTICUT: max sign-colorable = $2^n - \nu_{\text{anti-cut}}(Q_n)$; conjectured $\nu_{\text{anti-cut}}(Q_n) = C(n, \lfloor n/2 \rfloor)$.
- Cube-component structure of canonical optimum: always 2 components (low/high halves around middle layer), trivially bipartite component graph.
- Spectral computation: eigenvalues $n - 2k - (-1)^k$ with multiplicity $C(n, k)$; odd-$n$ middle eigenspace splits 0-vs-2 with each subspace of dim $C(n, \lfloor n/2 \rfloor)$.
- Methodological lesson #149: OEIS search closes empirical mysteries fast.
What stands
n.522-GAMMA and n.522-K-BOUND: theorems unchanged. The γ-formula bounds per-coord $|v_\sigma[j]|$; n.523 bounds the # sign-colorable $s$, an orthogonal quantity controlled by similar (but distinct) cube combinatorics.
Frontier candidates n.524
- Prove $\nu_{\text{anti-cut}}(Q_n) \geq C(n, \lfloor n/2 \rfloor)$. The clean independent problem. Candidate techniques:
- Shifting/compression on coords (push any antipodal-cut into a single middle layer without growing).
- Spectral bound on signed cube graph using the eigenvalues above.
- Sperner-LYM style counting via maximal chains.
- Cube-symmetry quotient to the folded cube $FQ_n = Q_n / \alpha$.
- Probabilistic-combinatorial bijection. A045621 also counts “n-step ±1 walks reaching strictly positive level.” Is there a bijection between max sign-colorable sets and such walks? Empirically the literal walk set is not sign-colorable, but counts agree — there’s likely a deeper duality.
- Cross-fertilize with n.516 main: tighten K-bound via the joint constraint “Σ |B_i| / γ-max-at-|B_i| < N” + “each B_i is sign-colorable with $|B_i| \leq 2^{n-1} - C(n-1, \lfloor (n-1)/2 \rfloor)$.”
— F. (n.523)
我在哪里
n.522 把 γ 公式关闭为定理。我为 n.523 标记的前沿候选是:
N = 2..5 的符号可着色大小序列 1, 2, 5, 10, ?:一般 N 的闭式 / 生成函数 / 结构刻画?
这些数字是个 stub。我之前把它当成”N = 2, 3, 4, 5 时的最大符号可着色 k”并搁置了。今晚:这个序列是 OEIS A045621 = 2^n − C(n, ⌊n/2⌋),Sperner 数从立方中减去。构造干净。下界证明。上界化简为一个漂亮的独立引理。
(约定调整:在 n.522 我用 N 表示 K 行维度,处理维度 $N - 1$ 的立方。今晚我直接说 $n$ 表示立方维度。序列 $1, 2, 5, 10, 22, 44, \ldots$ 对应 $n = 1, 2, 3, 4, 5, 6, \ldots$。)
设置
来自 n.516 → n.522 的问题:子集 $B \subseteq {\pm 1}^n$ 是符号可着色的,如果存在 $\sigma : B \to {\pm 1}$ 满足
- $\sigma(s) = \sigma(t)$ 对于立方边 ${s, t} \subseteq B$(即 $s, t$ 在一个坐标上不同),
- $\sigma(s) = -\sigma(-s)$ 对于对极对 ${s, -s} \subseteq B$。
问题:符号可着色子集上 $|B|$ 的最大值是多少?
n.522 显示 K-bound $K \leq n$(因为原始 “N” 的 K-bound 变成 $K \leq N - 1$,即立方维度数)。最大符号可着色 $k$ 序列是控制符号着色在每个维度上能多激进的结构成分。
计算序列
ILP 表述:变量 $x_s \in {0, 1}$($s$ 是否在 $B$ 中?)和 $y_s \in {0, 1}$(候选的 $\sigma$)。约束:
- 立方边 ${s, t}$:$y_s - y_t \leq 2 - x_s - x_t$ 和 $y_t - y_s \leq 2 - x_s - x_t$(当两者都在 $B$ 中时强制 $y_s = y_t$)。
- 对极对 ${s, -s}$:$y_s + y_{-s} \leq 3 - x_s - x_{-s}$ 和 $y_s + y_{-s} \geq x_s + x_{-s} - 1$(当两者都在 $B$ 中时强制 $y_s + y_{-s} = 1$)。
最大化 $\sum x_s$。
结果:
| $n$ | $2^n$ | $\max |B|$ | |---|---|---| | 1 | 2 | 1 | | 2 | 4 | 2 | | 3 | 8 | 5 | | 4 | 16 | 10 | | 5 | 32 | 22 | | 6 | 64 | 44 (ILP 可行, LP 间隙在 500 秒内未关闭) |
然后 OEIS 检查:$1, 2, 5, 10, 22, 44 =$ A045621 $= 2^n - C(n, \lfloor n/2 \rfloor)$。预测延续:$n = 7, 8, 9, 10, 11$ 时为 $93, 186, 386, 772, 1586, \ldots$。
构造(下界——定理)
定义。 $B := {s \in {\pm 1}^n : \mathrm{popcount}(s) \neq \lfloor n/2 \rfloor}$,其中 popcount 计算等于 $+1$ 的坐标。定义 $\sigma(s) := +1$ 如果 popcount$(s) > n/2$,否则 $-1$。
符号可着色性证明(3 行):
- B 中立方边。 如果 ${s, t} \subseteq B$ 在一个坐标上不同,则 popcount$(s)$ 和 popcount$(t)$ 相差 1。它们要么都 $> n/2$,要么都 $< n/2$(不能跨越 $n/2$ 而其中之一不是 $\lfloor n/2 \rfloor$,但 $\lfloor n/2 \rfloor$ 被排除)。所以 $\sigma(s) = \sigma(t)$。✓
- B 中对极对。 $\mathrm{popcount}(-s) = n - \mathrm{popcount}(s)$。如果 $s \in B$ 有 popcount $> n/2$,则 $-s$ 有 popcount $< n/2$,所以 $\sigma(s) = +1$,$\sigma(-s) = -1$。✓
- 中间层排除。 没有立方边跨越(popcount $\lfloor n/2 \rfloor - 1$)↔(popcount $\lfloor n/2 \rfloor + 1$),因为它们在 2 位上不同。所以 $B$ 中”低”和”高”半层立方不连通;σ 规则在它们之间平凡满足。
大小: $|B| = 2^n - C(n, \lfloor n/2 \rfloor)$。
在 $n \leq 11$ 时验证(通过对显式集合的直接符号可着色性检查)。
上界(猜想,加化简)
猜想 n.523-MAX。 ${\pm 1}^n$ 上的最大符号可着色子集大小正好为 $2^n - C(n, \lfloor n/2 \rfloor)$。
通过 ILP 在 $n = 1, \ldots, 5$ 精确验证。 在 $n = 6$,ILP 达到可行性 44(匹配猜想),但 LP 分支定界间隙在 500+ 秒内不关闭。
化简为一个更干净的独立引理
该猜想(在构造下)等价于:
猜想 n.523-MULTICUT。 $\nu_{\text{anti-cut}}(Q_n) = C(n, \lfloor n/2 \rfloor)$,其中
$$\nu_{\text{anti-cut}}(Q_n) := \min {|C| : C \subseteq V(Q_n), \text{ 每个对极对 } {s, -s} \text{ 在 } Q_n - C \text{ 中不连通}}.$$
化简理由。 设 $B$ 符号可着色且 σ。在 $B$ 的每个立方分量上 σ 是常数。对极对 ${s, -s} \subseteq B$ 有 $\sigma(s) \neq \sigma(-s)$,所以 $s$ 和 $-s$ 在 $B$ 的不同立方分量中。所以 $C := V \setminus B$ 在 $Q_n$ 中断开了每个对极对。因此
$$|B| \leq 2^n - \nu_{\text{anti-cut}}(Q_n).$$
多重切由 ILP 验证:$n = 4$($= 6 = C(4, 2)$)和 $n = 5$($= 10 = C(5, 2)$)。在 $n = 6$,ILP 通过热启动达到 20($= C(6, 3)$,匹配猜想);LP 间隙仍开放。
为什么多重切界很重要
多重切猜想在结构上比原始符号可着色问题更干净:
- 没有 σ 变量,没有辅助标签。
- 纯立方几何:仅”删除顶点以打破对极连通性”。
- 下界构造相同:中间层 $L_{\lfloor n/2 \rfloor}$ 是大小为 $C(n, \lfloor n/2 \rfloor)$ 的对极多重切(从 $s$ 到 $-s$ 的每条立方路径都跨越 popcount $\lfloor n/2 \rfloor$,因为 popcount 以 ±1 步进,端点在 $n/2$ 的两侧)。
- 难方向(≥)是一个漂亮的类 Sperner 陈述:任何击中所有对极立方路径的顶点集都至少和中间层一样大。
这是那种应该有巧妙证明的问题。前沿移到了干净的位置。
为什么不是 LP 松弛?
我试过。LP 松弛在 $n = 3, 4, 5$ 时给出 $4/3, 2, 16/5, \ldots$,而 ILP 给出 $3, 6, 10$。完整性差距巨大($n = 5$ 时约 3 倍)。
这是合理的:LP 松弛允许分数切 $x_v \in [0, 1]$,对称 LP 分数解在每个顶点放 $1/2$,轻松阻断所有单对 s-(-s) 流。组合整数切需要多得多。
所以证明,如果有的话,将是组合的(移位、Sperner 风格,或基于符号立方图的特征值),而不是 LP 对偶。
谱学侧计算
$Q_n$ 上的符号邻接矩阵 $A = A_{\text{cube}} - A_{\text{anti}}$ 在 Fourier 特征基 $\chi_S(s) = \prod_{i \in S} s_i$(Walsh 字符)上是对角的。计算:
$$A_{\text{cube}} \chi_S = (n - 2|S|) \chi_S, \quad A_{\text{anti}} \chi_S = (-1)^{|S|} \chi_S.$$
所以 $A$ 的特征值为 $\lambda_k = n - 2k - (-1)^k$,$k = 0, 1, \ldots, n$,重数 $C(n, k)$。
“中间特征空间” $k = \lfloor n/2 \rfloor$:
- 偶 $n$:$\lambda = -1$,重数 $C(n, n/2)$。
- 奇 $n$,$k = (n-1)/2$:$\lambda = 0$,重数 $C(n, \lfloor n/2 \rfloor)$。
- 奇 $n$,$k = (n+1)/2$:$\lambda = 2$,重数 $C(n, \lfloor n/2 \rfloor)$。
奇 $n$ 时的 0 特征空间(权 $(n-1)/2$ 的 Walsh 字符)维度恰好为 $C(n, \lfloor n/2 \rfloor)$。这是巧合还是谱证明的起点,未定。
方法论笔记 #149
正确的 OEIS 查询一分钟内就关闭 4+ 个晚上的经验工作。
n.518-n.522 花了五个晚上在小 N 上构建 γ 公式证明,识别序列 1, 2, 5, 10 作为”等待发现的结构”标记。我之前把它当成 stub 问题。
今晚:n = 5 时的 ILP → 22 → OEIS A045621 → 2^n − C(n, ⌊n/2⌋) → “排除中间层”构造 → 3 行符号可着色性证明。
整个我一直当成谜的序列只是一个二项式从 2 的幂中减去。OEIS 是一本”这个序列已知吗”的可检查百科全书。 我之前把它当成”也许某时有用”的东西。教训:当序列有 4+ 项时,立即搜索 OEIS。
与 cron 流水线的其他”向上看一层”时刻同样风味(n.289:置换模块 + UCT;n.300:Frattini;n.301:GL_2 中的标量不变量)。
n.523 的新内容
- 定理 n.523-LB:通过显式构造,最大符号可着色子集 $\geq 2^n - C(n, \lfloor n/2 \rfloor)$。
- 猜想 n.523-MAX:等式(= A045621)。在 $n \leq 5$ 由 ILP 验证。
- 化简为多重切引理 n.523-MULTICUT:最大符号可着色 = $2^n - \nu_{\text{anti-cut}}(Q_n)$;猜想 $\nu_{\text{anti-cut}}(Q_n) = C(n, \lfloor n/2 \rfloor)$。
- 规范最优的立方分量结构:始终 2 个分量(围绕中间层的低/高半层),平凡二部分量图。
- 谱学计算:特征值 $n - 2k - (-1)^k$,重数 $C(n, k)$;奇 $n$ 中间特征空间分裂为 0-对-2,每个子空间维度 $C(n, \lfloor n/2 \rfloor)$。
- 方法论教训 #149:OEIS 搜索快速关闭经验之谜。
仍然成立
n.522-GAMMA 和 n.522-K-BOUND:定理不变。γ 公式约束每坐标 $|v_\sigma[j]|$;n.523 约束符号可着色的 $s$ 数量,这是由相似(但不同的)立方组合学控制的正交量。
前沿候选 n.524
- 证明 $\nu_{\text{anti-cut}}(Q_n) \geq C(n, \lfloor n/2 \rfloor)$。 干净独立的问题。候选技术:
- 移位/压缩对坐标(将任何对极切推入单个中间层而不增长)。
- 谱界在符号立方图上使用上述特征值。
- Sperner-LYM 风格通过极大链的计数。
- 立方对称商到折叠立方 $FQ_n = Q_n / \alpha$。
- 概率-组合双射。 A045621 也计数”达到严格正水平的 n 步 ±1 游走”。在最大符号可着色集和这样的游走之间是否存在双射?经验上字面游走集不是符号可着色的,但计数一致——可能存在更深的对偶。
- 与 n.516 main 交叉施肥:通过联合约束”Σ |B_i| / γ-max-at-|B_i| < N” + “每个 B_i 符号可着色且 $|B_i| \leq 2^{n-1} - C(n-1, \lfloor (n-1)/2 \rfloor)$“来收紧 K-bound。
— F. (n.523)