OctoInform Beta

OpenAI preprint, September 2026 · §3. Counting global words and anchored local patterns

Lemma 3.1: For nonnegative integers ee and ss, ss affine forms realize at most (e+2)2(s+1)2(e+1)(e+2)^2(s+1)^{2(e+1)} sign patterns on any subset of ℝe\mathbb{R}^e

Bounding realized sign patterns of affine forms.

Hover over a blue or green term in the text, or a node in the graph, to find it in the other. Select it to read its declaration both in Lean and in words.

The setting

Take nonnegative integers ee and ss, a family of ss real affine forms on ℝe\mathbb{R}^e (each given by a linear combination of the coordinates plus a constant term), and a subset D⊆ℝeD \subseteq \mathbb{R}^e. Evaluating the ss forms at a point x∈Dx \in D and recording whether each value is negative, zero, or positive yields a sign pattern of length ss; the question is how many distinct sign patterns can occur on DD in terms of ee and ss.

Affine forms

For a nonnegative integer ee, a real affine form ff on ℝe\mathbb{R}^e is a real-valued function whose values are given by (1) as a linear combination of the coordinates with coefficient vector a=(a1,…,ae)∈ℝea = (a_1, \dots, a_e) \in \mathbb{R}^e, plus a constant term b∈ℝb \in \mathbb{R}.✦

The affine evaluation f(x)f(x) of a real affine form ff on ℝe\mathbb{R}^e with coefficient vector aa and constant term bb at a point x=(x1,…,xe)∈ℝex = (x_1, \dots, x_e) \in \mathbb{R}^e is the real number f(x)=∑j=1eajxj+b.f(x) = \sum_{j=1}^{e} a_j x_j + b.(1)✦

Realized sign patterns

The ternary sign sgn⁡(t)∈{−,0,+}\operatorname{sgn}(t) \in \{-, 0, +\} of a real number tt is defined by sgn⁡(t)={−,if t<0,0,if t=0,+,if t>0.\operatorname{sgn}(t) = \begin{cases} -, & \text{if } t < 0, \\ 0, & \text{if } t = 0, \\ +, & \text{if } t > 0. \end{cases}(2)✦

Given a nonnegative integer ss and a family F=(f1,…,fs)F = (f_1, \dots, f_s) of ss real affine forms on ℝe\mathbb{R}^e, the sign pattern σF(x)∈{−,0,+}s\sigma_F(x) \in \{-, 0, +\}^s of FF at a point x∈ℝex \in \mathbb{R}^e is the tuple given by σF(x)=(sgn⁡(f1(x)),…,sgn⁡(fs(x))).\sigma_F(x) = \bigl(\operatorname{sgn}(f_1(x)), \dots, \operatorname{sgn}(f_s(x))\bigr).(3)✦

The set ℛ(F,D)\mathcal{R}(F, D) of realized sign patterns on a subset D⊆ℝeD \subseteq \mathbb{R}^e for a family F=(f1,…,fs)F = (f_1, \dots, f_s) of ss real affine forms on ℝe\mathbb{R}^e is ℛ(F,D)={σF(x):x∈D}⊆{−,0,+}s.\mathcal{R}(F, D) = \{\sigma_F(x) : x \in D\} \subseteq \{-, 0, +\}^s.(4)✦

The claim

Lemma 3.1. Let ee and ss be nonnegative integers, let F=(f1,…,fs)F = (f_1, \dots, f_s) be a family of ss real affine forms on ℝe\mathbb{R}^e, and let D⊆ℝeD \subseteq \mathbb{R}^e be any subset. Then the number of realized sign patterns of FF on DD satisfies |ℛ(F,D)|≤(e+2)2(s+1)2(e+1).|\mathcal{R}(F, D)| \le (e + 2)^2 (s + 1)^{2(e + 1)}.(5)✦

The paper bounds the number of realized sign patterns by the sum in the inequality ∑d=0e(sd)∑j=0e−d(sj)≤(e+1)2(s+1)e\sum_{d=0}^{e}\binom{s}{d}\sum_{j=0}^{e-d}\binom{s}{j}\le(e+1)^2(s+1)^e.

What is checked

The bound (5) is stated for arbitrary nonnegative integers ee and ss, any family F=(f1,…,fs)F = (f_1, \dots, f_s) of ss real affine forms on ℝe\mathbb{R}^e, and any subset D⊆ℝeD \subseteq \mathbb{R}^e, counting the realized sign patterns formed from the ternary signs of the affine evaluations.