diff 2d5618e..e72c8de off_diagonal_ramsey_sharp_v2.txt
diff --git a/off_diagonal_ramsey_sharp_v2.txt b/off_diagonal_ramsey_sharp_v2.txt
index c90e9f1..0dce7f4 100644
--- a/off_diagonal_ramsey_sharp_v2.txt
+++ b/off_diagonal_ramsey_sharp_v2.txt
@@ -20,9 +20,9 @@ For $s=3$ the value is known to be $\Theta(t^2/\log t)$ by Kim. For each fixed $
Sources: Bohman--Keevash (./bohman-keevash-2010-the-early-evolution-of-the-h-free-process.pdf), Mubayi--Verstra\"ete (./mubayi-verstraete-2024-a-note-on-pseudorandom-ramsey-graphs.pdf), Mattheus--Verstra\"ete (./mattheus-verstraete-2024-the-asymptotics-of-r4t.pdf), Brada\v{c} (./bradac-2026-off-diagonal-ramsey-numbers.pdf). Kim and Spencer are covered by Brada\v{c}'s survey of the local-lemma tradition.
-The geometric ingredients carry their own history. The bipartite orthogonality and spectral estimates used below are modelled on Alon and Krivelevich, and the ordered flag construction used below is a higher-dimensional version of the incidence constructions of Kostochka, Pudl\'ak and R\"odl. The distinction between a marking step that shrinks a candidate set substantially and a step that leaves few possible choices appears in the independent-set counting argument of Alon and R\"odl. In the presence of selection, that distinction must be combined with an entropy estimate for a tuple chosen from a random stream, since selection need not preserve uniformity.
+The geometric ingredients carry their own history. The bipartite orthogonality and spectral estimates used below are modelled on Alon and Krivelevich, while the ordered flag construction used below is a higher-dimensional version of the incidence constructions of Codenotti, Pudl\'ak and Resta and of Kostochka, Pudl\'ak and R\"odl. The distinction between a marking step that shrinks a candidate set substantially and a step that leaves few possible choices appears in the independent-set counting argument of Alon and R\"odl. In the presence of selection, that distinction must be combined with an entropy estimate for a tuple chosen from a random stream, since selection need not preserve uniformity.
-Sources: Alon--Krivelevich (./alon-krivelevich-1997-constructive-bounds-for-a-ramsey-type-problem.pdf), Kostochka--Pudl\'ak--R\"odl (./kostochka-pudlak-rodl-2010-some-constructive-bounds-on-ramsey-numbers.pdf).
+Sources: Alon--Krivelevich (./alon-krivelevich-1997-constructive-bounds-for-a-ramsey-type-problem.pdf), Codenotti--Pudl\'ak--Resta (./codenotti-pudlak-resta-2000-low-rank-matrices-computational-complexity.pdf), Kostochka--Pudl\'ak--R\"odl (./kostochka-pudlak-rodl-2010-some-constructive-bounds-on-ramsey-numbers.pdf).
The positive-characteristic algebraic estimates used below are adapted from Dvir's finite-field Kakeya argument, from the polynomial partition scheme of Guth and Katz and Elekes, Kaplan and Sharir, and from the positive-characteristic obstruction theory of Ellenberg and Hablicsek. The rich-subspace bound for high-rank classes follows from Nie and Wang's finite-degree closure inequality, and the interpolation technique uses the Schwartz--Zippel zero-counting estimate.
@@ -321,39 +321,43 @@ the four possible "stage constants". Define $D \in [D_0, D_1]$ (open, integer, o
$$ K = D\sigma^{3\beta}, \quad K_* = D\sigma^{6\beta}, \quad \tau = \sigma^{-\eta/2}, \quad P = \sigma^{1-\eta/2 + 3\beta}, \quad b = \sigma. $$
The precise constants are tuned so that $K/\sigma \to 0$ and $K_*/\sigma\to 0$, while $P/\sigma \gg 1$ and $P = o(\sigma)$.
-Marking scan. In a forward pass, maintain for each second-side point $y$ of the flag sequence a linear subspace $V(y) \subseteq (\F_q^{d+1})^\vee$; initially $V(y) = \{0\}$. Whenever a position $i$ is declared \emph{expensive}, adjoin its second endpoint $b_i$ to $V(y)$ for every $y$ incident with $a_i$ (that is, $y \in a_i^\perp$). Equivalently, $V(y)$ is the span of earlier expensive second endpoints whose first endpoints annihilate $y$. A position is declared expensive if the joint atom size $p_i^A(a_i) \cdot p_i^B(b_i)$ of its two endpoints exceeds a threshold $e^{-K}/(Q_d Q_{d-1})$, where $p_i^A$ and $p_i^B$ are the first and second marginal masses under the conditional law at the currently exposed history. A backward pass marks expensive positions similarly with the roles of the two endpoints exchanged. The two masks together are the marking message.
+Marking scan. In a forward pass, maintain for each second-side point $y$ of the flag sequence a linear subspace $V(y) \subseteq (\F_q^{d+1})^\vee$; initially $V(y) = \{0\}$. For each current flag $(a_i, b_i)$, put $r = \dim V(b_i)$, let $Z_j = \{y : \dim V(y) = j\}$ for $j = 0, \ldots, r$, and let $l \in \{0, \ldots, r\}$ maximize $|Z_l|$ with fixed tie-breaking. Declare $i$ \emph{popular-cheap} if $|\{y \in Z_l : b_i \subseteq V(y)\}| \ge |Z_l|/(16q)$; otherwise declare it \emph{poor-cheap} if $|\{y \in Z_l : a_i \perp y\}| \le |Z_l|/(8q)$; otherwise declare it \emph{expensive} and adjoin $b_i$ to $V(y)$ for every $y \in a_i^\perp$. A backward pass marks expensive positions similarly with the roles of the two endpoints exchanged. The two masks together are the marking message.
Lemma (marking message and entropy budget). Under the marking stage budget, both scans together mark $h \le Cq\sigma$ positions expensive. The old context, the two rank and type masks, and the values of all positions expensive in either scan form a message $\theta_0$ satisfying
$$ H(\theta_0) \le \Lambda + O(k) + (d\sigma + \Delta + O(1)) \E h. $$
-At a fixed $\theta_0$, every unspecified flag has a known joint domain of size at most $e^{J_0}$, with $J_0 = d\sigma + O(1)$ deterministic. For the set $U$ of unspecified slots and every $\theta_0$-determined subset $S \subseteq U$,
+At a fixed $\theta_0$, every cheap (non-expensive) unspecified flag has a known joint domain of size at most $e^{J_0}$, with $J_0 = d\sigma + O(1)$ deterministic. For the set $U$ of cheap slots and every $\theta_0$-determined subset $S \subseteq U$,
$$ 0 \le \E\bigl[|S|J_0 - H_{\theta_0}(F_S)\bigr] \le C(\Lambda + k + \Delta q\sigma). $$
Independently of the extraction entropy lower bound, the same message gives
$$ H(F) \le d\sigma\ell + \Lambda + O(k) + O(\Delta q\sigma). $$
Proof. Fix a position $i$ and a current history. At a known state and a known first-side rank $r \le d$, the second endpoint $b$ of any candidate flag with $a \perp b$ lies in some subspace of dimension $d - r$ (the annihilator of the first endpoint), giving at most $Q_{d-r} \le q^{d-r}$ second-side choices. Dually $a$ has at most $Q_r \le q^r$ choices once $b$ is fixed. So the joint domain of a single flag at the current history is at most $q^d$ when the rank is $r = 0$ and, for arbitrary rank, at most $q^{d+r} \cdot q^{-r} = q^d$ times a small factor. This is the atom-size bound for unspecified slots. (The two scans together are what make the bound independent of realized history; the first pass handles the $r$-side, the backward pass the complementary side.)
-Number of expensive flags: for each position of at most rank $r$, being expensive forces its marginal atom size × the exchange marginal to exceed $e^{-K}/(Q_d Q_{d-1})$. Summing the probability mass over positions of a given rank, using $\sum_i \Prob(\text{position } i \text{ expensive and } a_i \perp b_i) \le \sum_i p_i(F_i)$, and noting that a single flag with atom size exceeding the threshold has probability at most $(Q_d Q_{d-1})^{-1} e^{K}$, the tail sum over all such positions is at most $e^K q^{-(2d-1)}$. The number of expensive positions therefore scales like $q^{2d} \cdot e^{-K} \cdot q^{-(2d-1)} = qe^{-K}$. Summing over the at most $O(q^d)$ "classes" (rank, type masks) and using $e^K = \sigma^{3\beta D}$ (at most $\sigma^{3\beta\sigma^{1-\eta/2}}$), the total count of expensive positions is $O(q\sigma)$. Only the flag values themselves and the rank/type masks need to be transmitted; each flag value costs at most $d\sigma + O(1)$ bits and each rank mask costs $O(\Delta)$ per recorded flag. The total is
+Number of expensive flags. At an expensive step, more than $|Z_l|/(8q)$ points of $Z_l$ are incident with $a_i$, and fewer than $|Z_l|/(16q)$ already have $b_i \subseteq V(y)$. Each of the former with $b_i \notin V(y)$ has its $V(y)$-rank increase from $l$ to $l+1$ once $b_i$ is adjoined, so at least $|Z_l|/(16q)$ points of $Z_l$ incur a rank increase. The cumulative set $U_l = \bigcup_{j \le l} Z_j$ has size at most $(d+1)|Z_l|$, so $|U_l|$ loses a fraction at least $1/(16(d+1)q)$ at this step. Each $U_l$ is nonincreasing throughout the scan. A nonempty integer-sized set starting from $O(q^d)$ points can undergo only $O(q\log q)=O(q\sigma)$ such multiplicative decreases. Charging each expensive step to its chosen $l$ and summing over $0 \le l \le d$ bounds the expensive-position count in each scan by $O(q\sigma)$, so both scans together satisfy $h \le Cq\sigma$. Only the flag values themselves and the rank/type masks need to be transmitted; each flag value costs at most $d\sigma + O(1)$ bits and each rank mask costs $O(\Delta)$ per recorded flag. The total is
$$ H(\theta_0) \le \Lambda + O(k) + (d\sigma + \Delta + O(1))\E h. $$
Domain size at fixed $\theta_0$: each unspecified slot has known first-side rank $r$ and second-side rank $r'$ with $r + r' = d$; the domains are the rank-$r$ subspace and its annihilator of rank $d - r = r'$, giving $Q_rQ_{r'} \le q^d$ jointly. So $J_0 = d\sigma + O(1)$.
-Entropy decomposition: for any counting-and-exposing scheme, $H(F) = H(\theta_0) + H(F \mid \theta_0) \le H(\theta_0) + \sum_i H(F_i \mid \theta_0) \le H(\theta_0) + \ell J_0$, again because $J_0$ bounds the atom size per slot. Combining with the $\theta_0$ estimate and $\E h \le Cq\sigma$:
+Entropy decomposition. Conditional on $\theta_0$, the values of the $h$ expensive slots are already transmitted, so $H(F_{\mathrm{exp}} \mid \theta_0) = 0$; each of the remaining $\ell - h$ cheap slots has $H(F_i \mid \theta_0) \le J_0$. Hence
+$$ H(F) = H(\theta_0) + H(F_{\mathrm{cheap}} \mid \theta_0) \le H(\theta_0) + (\ell - h)J_0. $$
+Substituting $H(\theta_0) \le \Lambda + O(k) + (d\sigma + \Delta + O(1))h$ and $\ell J_0 = d\sigma\ell + O(\ell)$ gives $H(F) \le d\sigma\ell + \Lambda + O(k) + \Delta h + O(h)$, because the $d\sigma h$ in $H(\theta_0)$ cancels against the $h d\sigma$ share of $\ell J_0$. Since $h \le Cq\sigma$ and $q\sigma = O(k)$, this becomes
$$ H(F) \le d\sigma\ell + \Lambda + O(k) + O(\Delta q\sigma). $$
-Finally, for any $\theta_0$-determined subset $S \subseteq U$: the deficit $|S|J_0 - H_{\theta_0}(F_S)$ is nonnegative, because $H_{\theta_0}(F_S) \le |S| J_0$; it is also at most the deficit on all of $U$, because the chain rule decomposes $H_{\theta_0}(F_U) = \sum_{i \in U} H_{\theta_0}(F_i \mid F_{<i})$ into nonnegative increments, each bounded by $J_0$. Writing $H_{\theta_0}(F_U) = H(F) - \Lambda + H(\theta_0 \mid F_U)$ and using $H(\theta_0 \mid F_U) \ge 0$, the $U$-deficit satisfies $J_0|U| - H_{\theta_0}(F_U) \le J_0 \ell - H(F) + \Lambda \le \Lambda$ provided the upper bound $H(F) \le \ell J_0$ holds. The extra $+k + \Delta q\sigma$ in the stated bound is needed only in the range where $H(F)$ is close to $\ell J_0$; the increase $O(k) + O(\Delta q\sigma)$ absorbs the corrections from the marking scheme. The four-slot inequality follows from the same chain rule. $\square$
+Finally, let $W = U$ denote the set of cheap slots, so $|W| = \ell - h$. For every $\theta_0$-determined subset $S \subseteq W$: the deficit $|S|J_0 - H_{\theta_0}(F_S)$ is nonnegative, since $H_{\theta_0}(F_S) \le |S|J_0$; it is at most the deficit on all of $W$ by the chain rule, which decomposes $H_{\theta_0}(F_W) = \sum_{i \in W} H_{\theta_0}(F_i \mid F_{<i})$ into nonnegative increments each bounded by $J_0$. For $S = W$, use $H_{\theta_0}(F_W) = H(F \mid \theta_0) \ge H(F) - H(\theta_0)$, the extraction entropy lower bound $H(F) \ge d\sigma\ell + \eta\ell\log\sigma - O(k)$, and $H(\theta_0) \le \Lambda + O(k) + (d\sigma + \Delta)h$. Then
+$$ |W|J_0 - H_{\theta_0}(F_W) \le (\ell-h)(d\sigma+O(1)) - (d\sigma\ell+\eta\ell\log\sigma) + O(k) + \Lambda + (d\sigma+\Delta)h \le \Lambda + O(k) + \Delta h. $$
+The two $d\sigma h$ terms cancel and the $-\eta\ell\log\sigma + O(\ell)$ term is nonpositive for large $\ell$. With $h \le Cq\sigma$, this is $O(\Lambda + k + \Delta q\sigma)$, proving the subset-deficit bound. $\square$
-Source: Brada\v{c}, off-diagonal Ramsey numbers (./bradac-2026-off-diagonal-ramsey-numbers.pdf), Sections 3-4. The general message-length (rather than algorithm-length) accounting here is analogous in spirit to the random-process counting style; the current argument is tuned to preserve the flag structure that the counting step relies on.
+Source: Brada\v{c}, off-diagonal Ramsey numbers (./bradac-2026-off-diagonal-ramsey-numbers.pdf), Sections 3-4. The accounting is information-theoretic: message length, not algorithm length, drives the bound. The family of estimates matches the random-process counting style while preserving the flag structure that the counting step relies on.
-Conditional classes and windows. The marking message gives the decoder a conditional law in which each unspecified flag lives in a smaller domain. The compression step exploits this by grouping unspecified slots into windows of equal size and by handling those windows in two auxiliary modes depending on their internal geometry.
+Conditional classes and windows. The marking message gives the decoder a conditional law in which each unspecified flag lives in a smaller domain. The compression step exploits this by grouping cheap slots into windows of equal size and by handling those windows in two auxiliary modes depending on their internal geometry.
Fix the prestage of the previous lemma, so the marking message $\theta_0$ and the conditioning data are fixed. For each slot $i \in U$, let $u_i = \log(Q_{r_i}Q_{d-r_i})$ be the "slack" (log-domain excess) of that slot, and $\delta_i = J_0 - H_{\theta_0}(F_i)$ its deficit. The slots break into classes:
- an \emph{open} class, in which $u_i \in [\sigma^{1-\eta/2}, \sigma^{1-\eta/2+3\beta}]$ and $\delta_i \le \sigma^{7\beta/2}$;
- an \emph{integer} class, in which $u_i \in [\sigma^{1-\eta}, \sigma^{1-\eta+3\beta/2}]$;
- a \emph{high} class, in which $u_i \in [\sigma^{1-3\eta/2}, \sigma^{1-3\eta/2+3\beta/2}]$.
-Each slot falls in at most one class; the remaining slots are "trivial" and can be described with $O(\sigma)$ bits each. The slot count of each class determines a window size $w$ (the number of consecutive slots grouped together), chosen so that the window is effectively one "block" at the compression-step scale.
+Each slot falls in at most one class; the remaining slots are "trivial" and can be described with $O(\sigma)$ bits each. The slot count of each class determines a window size $m$ (the number of consecutive slots grouped together), chosen so that the window is effectively one "block" at the compression-step scale.
-One-Step Compression. The compression replaces the current context $\Lambda, \Delta$ by a shorter message $C'$ that carries the tuple into a smaller flag domain, without retaining the old history. Specifically, at each of the $\ell = \Theta(k)$ unspecified slots the new message specifies a sub-domain of size roughly $q^d e^{K_*}$ instead of the original $q^d$; the log-slack $\Delta$ measures the ratio of the old and new domain sizes.
+One-Step Compression. The compression replaces the current context $\Lambda, \Delta$ by a shorter message $C'$ that carries the tuple into a smaller flag domain, without retaining the old history. Specifically, at each of the $\ell - h$ cheap slots the new message specifies a sub-domain of size at most $q^d e^{C_d K_*}$, replacing the current domain of size $q^d e^\Delta$; the $h$ expensive slots already have their values transmitted. The log-slack $\Delta$ measures the ratio of the current cheap domain to the base $q^d$.
Lemma (one-step compression). Under the marking stage budgets with parameter $D \in [\sigma^\beta, \sigma^{1-\eta/2}]$, there is a message $\mathcal C'$ determined from the retained tuple $F$ and the stream (using the old context as a source of randomness) with the following properties.
- Information-theoretic length: $H(\mathcal C') \le C_d q P \log(w+2)(\sigma + wP) + C_d w \sigma$, where $w = w(D)$ is the number of windows in the reciprocal class, or $w = 1$ in the high class, and $w \le C_d \sigma^{1+\eta/2}/D$.
@@ -375,7 +379,7 @@ Analysis. The size of the second-row-pruned domain is bounded by the rich-union
Reciprocal class. In the reciprocal classes, the slot domain is a product of two ~$q^{r}$ and ~$q^{d-r}$ subspaces with $r \asymp d/2$; the two sides are "reciprocal" and neither concentrates. The compression uses the sparse-pair description plus the validation lemma, arranged in a balanced binary tree.
-Windows. Split the unspecified slots in increasing stream order into windows $W_1, \ldots, W_w$ of $m$ consecutive slots each, with $m$ chosen so that the window count is $w \asymp \sigma^{1+\eta/2}/D$ up to a fixed constant; this gives $m = \Theta(k/w) = \Theta(D\sigma^{3\beta})$, so $m \ge \sigma^{3\beta}$ for the high-class parameter range $D \ge \sigma^\beta$. In a window $W_i = (i, \ldots, i+m-1)$ the first $m/2$ slots contribute the first endpoint $A_i$ and the last $m/2$ the second endpoint $B_i$, giving a sparse pair $A_i \subseteq U_S$, $B_i \subseteq U_T$ with $|A_i||B_i| \in [q^{d+1}e^{-K_*}, q^{d+1}e^{K_*}]$ from the reciprocal structure. Deletion: if $m < \sigma^\beta$ no window is used and the high-rank argument suffices; otherwise every window is used.
+Windows. Split the unspecified slots in increasing stream order into windows $W_1, \ldots, W_w$ of $m$ consecutive slots each, with $m$ chosen so that the window count is $w \asymp \sigma^{1+\eta/2}/D$ up to a fixed constant; this gives $m = \Theta(k/w) = \Theta(q D\sigma^{\eta/2})$, far above $\sigma^{3\beta}$ for the high-class parameter range $D \ge \sigma^\beta$. In a window $W_i = (i, \ldots, i+m-1)$ the first $m/2$ slots contribute the first endpoint $A_i$ and the last $m/2$ the second endpoint $B_i$, giving a sparse pair $A_i \subseteq U_S$, $B_i \subseteq U_T$ with $|A_i||B_i| \in [q^{d+1}e^{-K_*}, q^{d+1}e^{K_*}]$ from the reciprocal structure. Deletion: if $m < \sigma^\beta$ no window is used and the high-rank argument suffices; otherwise every window is used.
Support preparation. For each window $W_i$, use the joint conditional law to draw an auxiliary support $(A_i, B_i)$ with $|A_i| = n_i$, $|B_i| = m_i$ satisfying $n_i m_i \ge q^{d+1}e^{-CK_*}$ and $e(A_i,B_i) \le \sigma^{-1000\beta} n_i m_i/q$ (that is, $(\tau, P)$-sparse with $\tau \le \sigma^{-1000\beta}$, $P = O(K_*/ \sigma)$ adjusted). Prepare using the tree description of the sparse-pair description lemma: the auxiliary support is a random object sampled independently of the actual flags.