Skip to content

<4x4x4:47|167> mod 2 - #22

Merged
jgdumas merged 1 commit into
jgdumas:mainfrom
gsidebottom:mod2-47-167
Oct 19, 2026
Merged

jgdumas merged 1 commit into
jgdumas:mainfrom
gsidebottom:mod2-47-167

Conversation

@gsidebottom

Copy link
Copy Markdown
Contributor

This adds a rank-47 scheme for 4x4 matrix multiplication over F_2 (valid over any ring of characteristic two). Its three linear maps cost 167 additions, three fewer than 4x4x4_47_mod_2 (170):

map additions (SLPchecker -q 2)
L 44
R 49
P 74
total 167

Applied recursively, this gives (1 + 167/31) n^(log_4 47) = (6+12/31) n^(log_4 47) + o(n^(log_4 47)) operations, down from 6+15/31 with 170.

The files are data/4x4x4_47_mod_2_167_{L,R,P}.{sms,slp}, in the same format as 4x4x4_47_mod_2, with temporaries x/y/z for L/R/P. Please rename them if another name fits your conventions better.

Checks, run from the repository root:

./bin/SLPchecker -q 2 -M data/4x4x4_47_mod_2_167_L.sms < data/4x4x4_47_mod_2_167_L.slp   # <44, 0>
./bin/SLPchecker -q 2 -M data/4x4x4_47_mod_2_167_R.sms < data/4x4x4_47_mod_2_167_R.slp   # <49, 0>
./bin/SLPchecker -q 2 -M data/4x4x4_47_mod_2_167_P.sms < data/4x4x4_47_mod_2_167_P.slp   # <74, 0>
for i in $(seq 40); do ./bin/MMchecker -q 2 data/4x4x4_47_mod_2_167_{L,R,P}.sms; done

MMchecker -q 2 tests one random pair of matrices over F_2 per run, so a single run misses a wrong scheme with probability up to 3/4; that is why it runs in a loop. As a control, a copy with one P entry flipped was caught in only 9 of 40 runs, while this scheme passed all 40. A separate script, written independently of the search code, checks the scheme on all 256 pairs of basis matrices, which proves it by bilinearity.

How it was found: the scheme lies in the symmetry orbit of Kauers and Moosbauer's rank-47 scheme (flip graphs, ISSAC 2023). The search ran simulated annealing over that orbit, scored by a Boyar–Peralta heuristic, then an exact search for the fewest additions on each side. That exact search shows 44, 49 and 74 are each minimal for this scheme, so 167 is optimal for it without a change of basis. The search code and a draft write-up are in https://github.com/gsidebottom/logic (matmul/x47/, doc/matmul_4x4_rank47_xor167.pdf).

🤖 Generated with Claude Code

Rank-47 scheme for 4x4 matrix multiplication over F_2 (any ring of
characteristic two) whose linear maps cost L 44 + R 49 + P 74 = 167
additions, leading constant 6+12/31 (4x4x4_47_mod_2: 170, 6+15/31).
The scheme lies in the symmetry orbit of Kauers and Moosbauer's
rank-47 scheme.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@jgdumas
jgdumas merged commit 85924ad into jgdumas:main Oct 19, 2026
@gsidebottom gsidebottom mentioned this pull request Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants