Repository navigation
<4x4x4:47|167> mod 2 - #22
Merged
Merged
Conversation
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]>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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):SLPchecker -q 2)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 as4x4x4_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:
MMchecker -q 2tests 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