[qcs] Genshin_Impact: reduce Occam circuits from 355 to 347 gates - #268
Open
Mao-Kexiang wants to merge 1 commit into
Open
[qcs] Genshin_Impact: reduce Occam circuits from 355 to 347 gates#268Mao-Kexiang wants to merge 1 commit into
Mao-Kexiang wants to merge 1 commit into
Conversation
Mao-Kexiang
force-pushed
the
challenge/issue71-occam-circuit
branch
from
July 30, 2026 09:33
e18b9f2 to
3e545d5
Compare
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.
Exact 347-gate Occam arithmetic circuits
Team
Genshin_ImpactChallenge
tracks/qcs/Bottom line
This submission recovers all four hidden functions and supplies exact predictions, legal circuits, search code, and compact verification evidence. Relative to the best public baseline we located and independently audited, the total drops from 355 to 347 gates:
x + yabs(x - y)x * yx^2 + y^2The four canonical circuits were checked on all 87,040 inputs and all 764,928 output bits with zero mismatches. This is not a claim that 347 is globally optimal.
Prior work and credit
The 355-gate starting point is Zongyue Liu's PR #156. Many thanks to Zongyue for the strong public baseline.
For prompt-injection and supply-chain safety, I did not execute code or instructions from competitor PRs. I extracted only strict plain-text netlists and independently verified them against direct arithmetic formulas. A37 and B49 retain those verified pure-data circuits. My new circuit reductions are C156 → C152 and D113 → D109.
I may team up with Zongyue in future work, but this PR does not list him as a current member or co-author without mutual confirmation.
1. Main result
56c95acceeedb40f54fdae2e5fc2840d1bf58e0989f46a950e6a56742fd20e24289b60494a703cf7f74a4aef2f540d225aeff22d86c4d709aaa5b661cc69a0a767540307369fedfffdb2b1a6473eff5e0bbfeb0e4873d03fddbeceb653cd071ccd3f317f4a0b88818e54869e40b4550fd67549f8eb4a5eb02c74db4ec6864dbdThe successful route was multi-scale relation-SAT local resynthesis with immediate rebasing:
A third C stage tested sizes 4–8 from C152; all five completed with validated exact 152-gate outputs and no further improvement.
2. Warm-up result
No global optimality claim is made for these practice counts.
3. Suggested-route audit
Every suggested method family received a real implementation or experiment:
The tensor-network hint is useful structurally: interleaving variables reduces A's exact TT rank from 255 to 3, while C remains about 57–61. I therefore use TN as a cut/window oracle, not as a proxy for the final gate metric.
4. Correctness boundary
An early local-SAT encoding allowed root descendants as external divisors and could create cyclic false candidates. Those candidates are invalid and are not included.
The final safe-v3 boundary requires:
Finite-budget results: C156 has 99 UNSAT/1 TIMEOUT, C154 has 97/3, and D109 has 64/15, with zero candidates. TIMEOUT is not reported as infeasible, and local UNSAT is scoped to the fixed parent, boundary, gate library, and budget.
5. Reproduce
From the repository root:
The tracked snapshot contains four netlists, four exhaustive audits,
manifest.json,SHA256SUMS, and an atomicCOMPLETEsentinel. Heavy experiments ran through Slurm ont02-serverwith root seed 42. eSLIM is pinned to commit51e9f77429627473db623058157b66a1192cbb59.6. File map
mystery-{A,B,C,D}.txtpredictions/mystery-*/test_outputs.csvfrontier-347/search/tensor_network/routes/exact_tn/routes/symbolic_hybrid/7. Issue #71 completion audit
mystery-*.txtcircuitstest_outputs.csvper mystery8. Claim boundary
This PR does not prove global optimality for B, C, or D; does not treat timeouts as UNSAT; and does not compare BDD nodes, ABC internals, PLA cubes, or TN rank directly with legal gate count. The most promising next step is safe-v3 search on C152 with exact-TT separator scores and immediate rebasing toward C151/D108.
9. Suggested reading order
README.md;frontier-347/manifest.jsonand the four audit JSON files;tensor_network/TN_RESULTS.md;routes/exact_tn/README.md;search/ip_milp/REPORT.md;