Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

Horizontal, vertical and both diagonal exclusions

Abstract

The full generating series of normalized four-column eight-colour king strips.

OEIS A233164, revision 8, defines literal n by four arrays with colours zero through seven. Every horizontal, vertical and both diagonal bonds exclude equal colours and colours summing to seven. There is no wraparound. The upper-left value is zero. Every occurrence of 2, 3, 4, 5 or 6 has a strictly earlier 1; every 3, 4 or 5 has a strictly earlier 2; every 4 has a strictly earlier 3, in row-major order. Colours may be absent, and no precedence condition is imposed on 7. No group action or orbit divisor enters the count.

Definition 1.1 (An independent literal count).

\forall n: Nat, (\operatorname{a}\left(n\right) = \operatorname{Finset}.\operatorname{card}\left(\operatorname{Finset}.\operatorname{filter}\left(\lambda A: ((\operatorname{Fin}\left(n\right)) \times (\operatorname{Fin}\left(4\right))) \to \operatorname{Fin}\left(8\right) \mapsto ((\exists i: \operatorname{Fin}\left(n\right), ((\operatorname{Fin}.\operatorname{val}\left(i\right) = 0) \land (A\left((i, 0)\right) = 0))) \land ((\forall i: \operatorname{Fin}\left(n\right), (\forall j: \operatorname{Fin}\left(3\right), ((A\left((i, \operatorname{Fin}.\operatorname{castSucc}\left(j\right))\right) \neq A\left((i, \operatorname{Fin}.\operatorname{succ}\left(j\right))\right)) \land (\operatorname{Fin}.\operatorname{val}\left(A\left((i, \operatorname{Fin}.\operatorname{castSucc}\left(j\right))\right)\right) + \operatorname{Fin}.\operatorname{val}\left(A\left((i, \operatorname{Fin}.\operatorname{succ}\left(j\right))\right)\right) \neq 7)))) \land (((\forall i: \operatorname{Fin}\left(n\right), (\forall h: \operatorname{Fin}.\operatorname{val}\left(i\right) + 1 < n, (\forall j: \operatorname{Fin}\left(4\right), ((A\left((i, j)\right) \neq A\left((\operatorname{Fin}.\operatorname{mk}\left(\operatorname{Fin}.\operatorname{val}\left(i\right) + 1, h\right), j)\right)) \land (\operatorname{Fin}.\operatorname{val}\left(A\left((i, j)\right)\right) + \operatorname{Fin}.\operatorname{val}\left(A\left((\operatorname{Fin}.\operatorname{mk}\left(\operatorname{Fin}.\operatorname{val}\left(i\right) + 1, h\right), j)\right)\right) \neq 7))))) \land (\forall i: \operatorname{Fin}\left(n\right), (\forall h: \operatorname{Fin}.\operatorname{val}\left(i\right) + 1 < n, (\forall j: \operatorname{Fin}\left(3\right), (((A\left((i, \operatorname{Fin}.\operatorname{castSucc}\left(j\right))\right) \neq A\left((\operatorname{Fin}.\operatorname{mk}\left(\operatorname{Fin}.\operatorname{val}\left(i\right) + 1, h\right), \operatorname{Fin}.\operatorname{succ}\left(j\right))\right)) \land (\operatorname{Fin}.\operatorname{val}\left(A\left((i, \operatorname{Fin}.\operatorname{castSucc}\left(j\right))\right)\right) + \operatorname{Fin}.\operatorname{val}\left(A\left((\operatorname{Fin}.\operatorname{mk}\left(\operatorname{Fin}.\operatorname{val}\left(i\right) + 1, h\right), \operatorname{Fin}.\operatorname{succ}\left(j\right))\right)\right) \neq 7)) \land ((A\left((i, \operatorname{Fin}.\operatorname{succ}\left(j\right))\right) \neq A\left((\operatorname{Fin}.\operatorname{mk}\left(\operatorname{Fin}.\operatorname{val}\left(i\right) + 1, h\right), \operatorname{Fin}.\operatorname{castSucc}\left(j\right))\right)) \land (\operatorname{Fin}.\operatorname{val}\left(A\left((i, \operatorname{Fin}.\operatorname{succ}\left(j\right))\right)\right) + \operatorname{Fin}.\operatorname{val}\left(A\left((\operatorname{Fin}.\operatorname{mk}\left(\operatorname{Fin}.\operatorname{val}\left(i\right) + 1, h\right), \operatorname{Fin}.\operatorname{castSucc}\left(j\right))\right)\right) \neq 7))))))) \land (\forall p: (\operatorname{Fin}\left(n\right)) \times (\operatorname{Fin}\left(4\right)), ((((A\left(p\right) = 2) \lor ((A\left(p\right) = 3) \lor ((A\left(p\right) = 4) \lor ((A\left(p\right) = 5) \lor (A\left(p\right) = 6))))) \implies (\exists q: (\operatorname{Fin}\left(n\right)) \times (\operatorname{Fin}\left(4\right)), ((4 \cdot \operatorname{Fin}.\operatorname{val}\left(\operatorname{Prod}.\operatorname{fst}\left(q\right)\right) + \operatorname{Fin}.\operatorname{val}\left(\operatorname{Prod}.\operatorname{snd}\left(q\right)\right) < 4 \cdot \operatorname{Fin}.\operatorname{val}\left(\operatorname{Prod}.\operatorname{fst}\left(p\right)\right) + \operatorname{Fin}.\operatorname{val}\left(\operatorname{Prod}.\operatorname{snd}\left(p\right)\right)) \land (A\left(q\right) = 1)))) \land ((((A\left(p\right) = 3) \lor ((A\left(p\right) = 4) \lor (A\left(p\right) = 5))) \implies (\exists q: (\operatorname{Fin}\left(n\right)) \times (\operatorname{Fin}\left(4\right)), ((4 \cdot \operatorname{Fin}.\operatorname{val}\left(\operatorname{Prod}.\operatorname{fst}\left(q\right)\right) + \operatorname{Fin}.\operatorname{val}\left(\operatorname{Prod}.\operatorname{snd}\left(q\right)\right) < 4 \cdot \operatorname{Fin}.\operatorname{val}\left(\operatorname{Prod}.\operatorname{fst}\left(p\right)\right) + \operatorname{Fin}.\operatorname{val}\left(\operatorname{Prod}.\operatorname{snd}\left(p\right)\right)) \land (A\left(q\right) = 2)))) \land ((A\left(p\right) = 4) \implies (\exists q: (\operatorname{Fin}\left(n\right)) \times (\operatorname{Fin}\left(4\right)), ((4 \cdot \operatorname{Fin}.\operatorname{val}\left(\operatorname{Prod}.\operatorname{fst}\left(q\right)\right) + \operatorname{Fin}.\operatorname{val}\left(\operatorname{Prod}.\operatorname{snd}\left(q\right)\right) < 4 \cdot \operatorname{Fin}.\operatorname{val}\left(\operatorname{Prod}.\operatorname{fst}\left(p\right)\right) + \operatorname{Fin}.\operatorname{val}\left(\operatorname{Prod}.\operatorname{snd}\left(p\right)\right)) \land (A\left(q\right) = 3)))))))))), \operatorname{Finset}.\operatorname{univ}\left(\right)\right)\right))

Formalization. D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233164KingStrip.a (✓ std3).

Citation. R. H. Hardin; Colin Barker; OEIS Foundation Inc. (2013). OEIS A233164: normalized eight-colour four-column king strips. URL: https://oeis.org/A233164.

Commentary.

Finset.univ ranges over every function on the displayed finite cell domain. Fin.val gives the natural coordinate. Fin.castSucc and Fin.succ are the two endpoints in adjacent columns; Fin.mk constructs the next row with its displayed bound proof. The rank 4 times row plus column is strictly row-major. The first-cell existential is false when n is zero, so the added constant coefficient is zero. The source counting problem concerns every positive n.

Theorem 1.2 (The complete rational formal power series).

(\operatorname{a}\left(1\right) = 11) \land ((\operatorname{a}\left(2\right) = 64) \land ((\operatorname{a}\left(3\right) = 1280) \land ((\forall n: Nat, ((1 < n) \implies (\operatorname{a}\left(n\right) = (4)^{2 \cdot n - 3} \cdot \left((2)^{n} + 12\right)))) \land ((\forall n: Nat, ((3 < n) \implies (\operatorname{a}\left(n\right): Int = 48 \cdot \operatorname{a}\left(n - 1\right) - 512 \cdot \operatorname{a}\left(n - 2\right)))) \land (\operatorname{PowerSeries}.\operatorname{mk}\left(\lambda n: Nat \mapsto (\operatorname{a}\left(n\right): Rat)\right) = X \cdot \left(11 - 464 \cdot X + 3840 \cdot (X)^{2}\right) \cdot ((\left(1 - 16 \cdot X\right) \cdot \left(1 - 32 \cdot X\right)))^{-1} \operatorname{in} \operatorname{PowerSeries}\left(Rat\right))))))

Proof. Machine-checked in Lean as D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233164KingStrip.result (✓ std3). ∎

Resolves. Problems/hardin233164 (proved) by D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233164KingStrip.result.

Source. Repository-derived.

Acknowledgement. R. H. Hardin; Colin Barker; OEIS Foundation Inc. (2013). OEIS A233164: normalized eight-colour four-column king strips. URL: https://oeis.org/A233164.

Commentary.

The complementary pairs are {0,7}, {1,6}, {2,5} and {3,4}. A pair boundary with adjacent entries distinct is productive precisely when its endpoints differ. Its alternating type has first equal to third and second equal to fourth. Once 1, 2 and 3 have appeared, every legal next row preserves the productive type, with 32 colour-row continuations in the alternating type and 16 otherwise. The finite certificates verify these counts, preservation, and saturation of every two-row seed. There are 16 alternating seeds and 48 other productive seeds. The continuation induction gives a(n+2)=16 times 32 to the n plus 48 times 16 to the n for every natural n. There are 11 first rows.

The literal Normal predicate uses strict rank 4 times row plus column. Its equivalence with the imported scanner and the arbitrary-width width_counting_bridge connects the independently defined function count to continuation. Both diagonal directions, vertical bonds and horizontal bonds are included, and boundaries are free. The initial values, natural closed form, integer recurrence and rational series are one conjunction about this count. The constant coefficient is zero solely for the series. The inverse denominator has constant coefficient one. Chang and Shrock already give the labelled proper-colouring polynomial for these underlying strips, DOI 10.1103/PhysRevE.62.4650; that polynomial is not a new result here. The normalized literal count requires the signed-lift and first-occurrence constraints stated above.

References