Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

Positive-height arrays with horizontal and antidiagonal bonds

Abstract

Literal seven-column arrays and the exact transfer on labelled six-cell boundaries.

Source problem: R. H. Hardin, OEIS A233255, https://oeis.org/A233255 (OEIS licence: https://oeis.org/LICENSE). The all-height labelled count correspondence below is one part of the literal count to canonical-shape transfer argument.

An array is an individual function on a positive number of rows and seven columns with values in six colours. Its upper-left colour is zero. Only horizontal and upper-right/lower-left antidiagonal bonds exclude equal colours and colours whose sum is five. In row-major order each colour two, three, or four requires an earlier one, and each three requires an earlier two. Missing colours are allowed. No zero-height sequence value is defined.

Definition 1.1 (Colour rows).

Lean statement: D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233255PairTransfer.Row

Formalization. D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233255PairTransfer.Row (✓ std3).

Source. Repository-derived.

Commentary.

Seven ordered individual colours.

Definition 1.2 (Pair-label rows).

Lean statement: D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233255PairTransfer.PairRow

Formalization. D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233255PairTransfer.PairRow (✓ std3).

Source. Repository-derived.

Commentary.

Seven ordered complementary-pair labels.

Definition 1.3 (Labelled boundaries).

Lean statement: D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233255PairTransfer.Boundary

Formalization. D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233255PairTransfer.Boundary (✓ std3).

Source. Repository-derived.

Commentary.

The six labels in columns one through six.

Definition 1.4 (Horizontal exclusions).

Lean statement: D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233255PairTransfer.rowLegal

Formalization. D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233255PairTransfer.rowLegal (✓ std3).

Source. Repository-derived.

Commentary.

Every adjacent horizontal bond is tested.

Definition 1.5 (Antidiagonal exclusions).

Lean statement: D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233255PairTransfer.bonds

Formalization. D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233255PairTransfer.bonds (✓ std3).

Source. Repository-derived.

Commentary.

The preceding column j+1 is bonded to the next column j.

Definition 1.6 (The literal array predicate).

Lean statement: D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233255PairTransfer.Legal

Formalization. D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233255PairTransfer.Legal (✓ std3).

Source. Repository-derived.

Commentary.

The existing HardinA233251TriangleStrip.widthLegal is applied at width seven with rowLegal and bonds. Its scanner normalization uses strict earlier cells.

Definition 1.7 (Decidability of horizontal exclusions).

\forall (c: \operatorname{D5}.\operatorname{S3}.\operatorname{Combinatorics}.\operatorname{TraceAvoidingArrays}.\operatorname{HardinA233255PairTransfer}.\operatorname{Row}), (\operatorname{D5}.\operatorname{S3}.\operatorname{Combinatorics}.\operatorname{TraceAvoidingArrays}.\operatorname{HardinA233255PairTransfer}.\operatorname{decidableRowLegal} (c) : \operatorname{Decidable} (\operatorname{D5}.\operatorname{S3}.\operatorname{Combinatorics}.\operatorname{TraceAvoidingArrays}.\operatorname{HardinA233255PairTransfer}.\operatorname{rowLegal} (c))) = \operatorname{inferInstanceAs} (\operatorname{Decidable} (\forall (j: \operatorname{Fin} (6)), (c (\operatorname{Fin}.\operatorname{castSucc} (j)) \ne c (\operatorname{Fin}.\operatorname{succ} (j))) \land ((\operatorname{Fin}.\operatorname{val} (c (\operatorname{Fin}.\operatorname{castSucc} (j))) + \operatorname{Fin}.\operatorname{val} (c (\operatorname{Fin}.\operatorname{succ} (j)))) \ne 5)))

Formalization. D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233255PairTransfer.decidableRowLegal (✓ std3).

Source. Repository-derived.

Commentary.

The instance decides the six adjacent horizontal bonds by finite universal quantification and decidable conjunction. Fin.val explicitly reads each colour as a natural number.

Definition 1.8 (The positive-height literal count).

Lean statement: D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233255PairTransfer.a

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

Source. Repository-derived.

Commentary.

The filter ranges over individual arrays without a quotient.

Definition 1.9 (The preceding boundary).

Lean statement: D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233255PairTransfer.pairs

Formalization. D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233255PairTransfer.pairs (✓ std3).

Source. Repository-derived.

Commentary.

Apply the existing complementary-pair map after discarding column zero.

Definition 1.10 (The literal next-row bond test).

Lean statement: D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233255PairTransfer.compatible

Formalization. D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233255PairTransfer.compatible (✓ std3).

Source. Repository-derived.

Commentary.

Every preceding boundary label excludes its bonded next-row label.

Definition 1.11 (Proper pair words).

Lean statement: D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233255PairTransfer.rowProper

Formalization. D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233255PairTransfer.rowProper (✓ std3).

Source. Repository-derived.

Commentary.

Consecutive labels differ.

Definition 1.12 (Decidability of proper pair words).

\forall (q: \operatorname{D5}.\operatorname{S3}.\operatorname{Combinatorics}.\operatorname{TraceAvoidingArrays}.\operatorname{HardinA233255PairTransfer}.\operatorname{PairRow}), (\operatorname{D5}.\operatorname{S3}.\operatorname{Combinatorics}.\operatorname{TraceAvoidingArrays}.\operatorname{HardinA233255PairTransfer}.\operatorname{decidableRowProper} (q): \operatorname{Decidable} (\operatorname{D5}.\operatorname{S3}.\operatorname{Combinatorics}.\operatorname{TraceAvoidingArrays}.\operatorname{HardinA233255PairTransfer}.\operatorname{rowProper} (q))) = \operatorname{inferInstanceAs} (\operatorname{Decidable} (\forall (j: \operatorname{Fin} (6)), q (\operatorname{Fin}.\operatorname{castSucc} (j)) \ne q (\operatorname{Fin}.\operatorname{succ} (j))))

Formalization. D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233255PairTransfer.decidableRowProper (✓ std3).

Source. Repository-derived.

Commentary.

The instance decides the six adjacent inequalities of a seven-label word. Such words also form the full boundaries of seven-column square strips.

Definition 1.13 (Compatible pair words).

Lean statement: D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233255PairTransfer.labelCompatible

Formalization. D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233255PairTransfer.labelCompatible (✓ std3).

Source. Repository-derived.

Commentary.

The six cross-row exclusions are expressed in pair labels.

Definition 1.14 (The successor boundary).

Lean statement: D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233255PairTransfer.labelBoundary

Formalization. D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233255PairTransfer.labelBoundary (✓ std3).

Source. Repository-derived.

Commentary.

Discard column zero only after scanning the entire row.

Definition 1.15 (The exact labelled continuation transfer).

Lean statement: D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233255PairTransfer.pairV

Formalization. D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233255PairTransfer.pairV (✓ std3).

Source. Repository-derived.

Commentary.

Each actual pair word is weighted by its scanner fibre. The empty continuation has weight one.

Theorem 1.16 (All continuation heights).

Lean statement: D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233255PairTransfer.continuation_pair_bridge

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

Source. Repository-derived.

Commentary.

Induction on the number of rows replaces the individual-colour row sum by the exact scanner-fibre sum. Both initial scanner flags remain arbitrary.

Theorem 1.17 (The first-row scanner fibres).

\forall (H: \operatorname{D5}.\operatorname{S3}.\operatorname{Combinatorics}.\operatorname{TraceAvoidingArrays}.\operatorname{HardinA233175PairStrip}.\operatorname{Seen} \to \left(\operatorname{D5}.\operatorname{S3}.\operatorname{Combinatorics}.\operatorname{TraceAvoidingArrays}.\operatorname{HardinA233255PairTransfer}.\operatorname{PairRow} \to \operatorname{Int}\right)), (\operatorname{Finset}.\operatorname{sum} ((\operatorname{Finset}.\operatorname{univ}: \operatorname{Finset} (\operatorname{D5}.\operatorname{S3}.\operatorname{Combinatorics}.\operatorname{TraceAvoidingArrays}.\operatorname{HardinA233255PairTransfer}.\operatorname{Row}))) ((\lambda (c: \operatorname{D5}.\operatorname{S3}.\operatorname{Combinatorics}.\operatorname{TraceAvoidingArrays}.\operatorname{HardinA233255PairTransfer}.\operatorname{Row}) \mapsto (\operatorname{ite} ((c ((0: \operatorname{Fin} (7))) = (0: \operatorname{Fin} (6))) \land (\operatorname{D5}.\operatorname{S3}.\operatorname{Combinatorics}.\operatorname{TraceAvoidingArrays}.\operatorname{HardinA233175PairStrip}.\operatorname{good} (((\operatorname{Bool}.\operatorname{false}, \operatorname{Bool}.\operatorname{false}): \operatorname{D5}.\operatorname{S3}.\operatorname{Combinatorics}.\operatorname{TraceAvoidingArrays}.\operatorname{HardinA233175PairStrip}.\operatorname{Seen})) (c))) (H (\operatorname{D5}.\operatorname{S3}.\operatorname{Combinatorics}.\operatorname{TraceAvoidingArrays}.\operatorname{HardinA233175PairStrip}.\operatorname{finish} (((\operatorname{Bool}.\operatorname{false}, \operatorname{Bool}.\operatorname{false}): \operatorname{D5}.\operatorname{S3}.\operatorname{Combinatorics}.\operatorname{TraceAvoidingArrays}.\operatorname{HardinA233175PairStrip}.\operatorname{Seen})) (c)) ((\lambda (j: \operatorname{Fin} (7)) \mapsto (\operatorname{D5}.\operatorname{S3}.\operatorname{Observer}.\operatorname{Separation}.\operatorname{BooleanRankThreeK4}.\operatorname{beta} (c (j)))))) (0: \operatorname{Int}))))) = (\operatorname{Finset}.\operatorname{sum} ((\operatorname{Finset}.\operatorname{univ}: \operatorname{Finset} (\operatorname{Fin} (6) \to \operatorname{Fin} (3)))) ((\lambda (q: \operatorname{Fin} (6) \to \operatorname{Fin} (3)) \mapsto ((\operatorname{D5}.\operatorname{S3}.\operatorname{Combinatorics}.\operatorname{TraceAvoidingArrays}.\operatorname{HardinA233255LiteralBridge}.\operatorname{rowWeight} (((\operatorname{Bool}.\operatorname{false}, \operatorname{Bool}.\operatorname{false}): \operatorname{D5}.\operatorname{S3}.\operatorname{Combinatorics}.\operatorname{TraceAvoidingArrays}.\operatorname{HardinA233175PairStrip}.\operatorname{Seen})) (q)) \cdot (H (\operatorname{D5}.\operatorname{S3}.\operatorname{Combinatorics}.\operatorname{TraceAvoidingArrays}.\operatorname{HardinA233255LiteralBridge}.\operatorname{rowFinish} (((\operatorname{Bool}.\operatorname{false}, \operatorname{Bool}.\operatorname{false}): \operatorname{D5}.\operatorname{S3}.\operatorname{Combinatorics}.\operatorname{TraceAvoidingArrays}.\operatorname{HardinA233175PairStrip}.\operatorname{Seen})) (q)) (\operatorname{Fin}.\operatorname{cons} ((0: \operatorname{Fin} (3))) (q)))))))

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

Source. Repository-derived.

Commentary.

For every integer readout of the final scanner state and the full seven-label word, fixing the first individual colour to zero leaves the exact scanner-weighted sum over the remaining six labels. A square-strip first-row class readout can therefore reuse this equality directly.

Theorem 1.18 (The anchored literal readout).

Lean statement: D5/S3/Combinatorics/TraceAvoidingArrays/HardinA233255PairTransfer.literal_pair_bridge

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

Source. Repository-derived.

Commentary.

The existing literal array decomposition and the continuation identity give this equality at every positive height. Fixing its first colour to zero leaves six pair labels with the exact scanner weight, so the first-row sum also counts individual colours. Precisely, for every natural n, a(n+1) is the integer sum over all functions q from Fin 6 to Fin 3 of rowWeight((false,false),q) times pairV(n,rowFinish((false,false),q),q), with a zero summand unless the word obtained by prepending zero to q is proper. Reducing labelled boundaries to the sixteen canonical proper shapes and aggregating the first-row weights by those shapes are further mathematical obligations; this identity asserts no recurrence.

References