Cubes of tensor leaves for the improved thin-product decomposition #
A cube fixes a term at some levels and permits every term at its star levels. It denotes a finite set of the existing tensor leaves. Its integer value sums the actual products of the existing two encodings. This is finite algebra; no cube is a native lookup or time certificate.
Main definitions #
CubeSymbol,Cube: term-or-star symbols and their level-indexed tuples.Cube.HasLeaf,Cube.leaves,Cube.starLevels,Cube.P0Levels: finite incidence data.Cube.val: signed sum of existing encoded products.Cube.ofLeaf,Cube.replace,Cube.starAt,Cube.starsToP0: basic cube operations.
Main results #
Cube.card_leaves: each star supplies ten independent term choices.Cube.leaves_ofLeaf: a cube fixing every level has exactly its original leaf.Cube.mem_leaves_replace: replacing a star selects the leaves using that term.Cube.starLevels_starAt,Cube.P0Levels_starAt: explicit readback of inserted stars.
References #
Adapted from [AlmanWilliams2026, Section 4.2] and the primary formal source at
anthropics/formal-math@16a5ce41304fcdaea4e0be7c132e1c361dc26da5:
PaperStatements.lean lines 1844–1901 and 1952–1954, and Boxes.lean.
The local value expression uses encodeLeft and encodeRight, the existing versions of
that source's two encoding forms. No source machine, native execution or cost law is imported.
A fixed multiplication label or an unrestricted level.
- term (lam : Term) : CubeSymbol
- star : CubeSymbol
Instances For
Level-indexed term-or-star symbols over the existing tensor alphabets.
The cube fixing each level to the given leaf.
Complete every star with the distinguished term, retaining all fixed terms.
A level cannot be both a star and fixed to the distinguished term.
Each star independently contributes ten possible labels, including at zero levels.
Replacing a star retains precisely the leaves that use the chosen term there.
Completing inserted stars with P0 recovers leaves that originally use P0 there.
Fixing a coordinate removes it from the remaining stars.
Completion followed by restoring the original stars recovers the cube.
A cube with no stars fixes the leaf given by its completion.
Completion chooses P0 precisely at the stars and the coordinates already fixed to P0.
Partitioning a star by its term partitions the signed value, including cancellation.