[QCS] 🌠 Wander/漫步者: Issue #71 Recover Hidden Arithmetic Functions with Occam/MDL Search - #220
Conversation
Add all four circuits and predictions, stable evidence reports, a hash-locked manifest, and the self-contained Rust learner source. All prediction hashes match the commitments anchored in challenge QuantumBFS#71.
|
@GiggleLiu Status correction and final update (July 29, 2026): Ranger's self-contained #71 submission remains complete and ready for review. The supporting source/evidence repository is now private; the earlier public-repository wording is superseded. PR #215 remains the #115 Rust-port companion. The authorized private |
v0.6.0 final private research handoffThe verified #71 mystery A–D solution in this PR remains completed and
The release connects bounded Partial-MCSP, PAC evaluation, BDD/MPS completion, |
|
Reviewed. The four circuits are correct — I re-evaluated them exhaustively (37/50/167/186 gates, 0 mismatches over the full input domains). But the recovery works by scoring a hardcoded four-family registry, and because the four instances have distinct output widths, each mystery has exactly one width-compatible candidate — as this PR states itself. That makes the submission a compilation exercise, not an answer to what #71 asks: does minimizing circuit size recover the ground truth? The gate counts are also well above other submissions on the same task. Two further blockers for a "Finished" label:
Trivial result, but marked complete. Please drop "Finished" from the title and state the limitation up front. |
|
For anyone continuing this work: I have posted an extension to the challenge in the issue itself — #71 (comment) Short version: invert the same four functions. The forward direction could not test Occam's razor, because the ground truth was already a compact circuit. The inverse direction splits the instance set — The comment states the deliverable (a certified minimum with a machine-checkable UNSAT refutation), the relation semantics (any valid preimage counts), a mandatory negative control, and how to certify success probability if you use randomised gates. Please read it before planning further work here. |
|
Small before-deadline update: I kept this PR focused on the public forward #71 submission, but started the inverse-relation follow-up separately in the private implementation repo on branch |
Add public n=2 Add and AbsDiff inverse circuits, exact k-1 CNFs, DRAT proofs, checker transcript, hashes, frozen generator source, and the bounded Multiply timeout record. Constraint: do not claim a certified minimum for Multiply, SumOfSquares, or the forward mystery circuits. Verified: drat-trim 2e3b2dc accepted both control proofs; companion artifact and relation tests passed at commit 22d1605. Co-authored-by: OmX <omx@oh-my-codex.dev>
|
@GiggleLiu Thanks for the concrete extension. I agree with the core criticism: the original forward A-D result establishes correctness, but the four-family/width route does not establish that circuit minimization recovered the ground truth. I am keeping that limitation explicit and am not upgrading the 37/50/167/186 forward circuits to global-minimum claims. I have now pushed a public, self-contained inverse-control bundle to this PR at commit
Public circuits, exact CNFs, DRAT files, SHA-256 manifests, checker transcript, frozen Rust source, and reproduction commands are here: The hard-instance boundary is still open: the registered 20-second |
Publish an exhaustively verified eight-gate inverse circuit, the exact seven-gate relational CNF, its DRAT refutation, pinned checker transcript, hashes, reproduction commands, and the updated frozen Rust source. Constraint: this certifies only the complete n=2 Multiply inverse relation in the stated commutative six-gate basis; it does not establish minima for larger widths, SumOfSquares, or the forward mystery circuits. Verified: drat-trim 2e3b2dc returned s VERIFIED for the public Multiply proof; public hashes match companion commit d0f9ced Co-authored-by: OmX <omx@oh-my-codex.dev>
|
@GiggleLiu Follow-up on the certified inverse extension: the first nonlinear hard instance is now closed for n=2 at public commit 58e9bb5. For the complete inverse Multiply relation over all 16 product-bit inputs, in the AND/OR/XOR/NAND/NOR/XNOR fan-in-two basis with free input inversion:
Public circuit, CNF, 64 MB DRAT proof, manifests, checker transcript, reproduction commands, tests, and frozen source are here: The v2 encoder orders the two input selectors of every gate. This is a completeness-preserving symmetry break because every allowed operation is commutative: a removed swapped-input assignment has an equivalent ordered assignment representing the same circuit. Add and AbsDiff artifacts were regenerated with the same encoding and their proofs were rechecked. The earlier bound-eight SAT timeout is retained only as search provenance and is not part of the proof. Certified minimality follows from the explicit verified eight-gate witness plus the independently checked seven-gate UNSAT refutation. Claim boundary remains explicit: this certifies only n=2 inverse Multiply under the stated model. It does not prove the forward A-D circuits globally minimal, and n=2 inverse SumOfSquares, larger widths, and asymptotic behavior remain open. Separately, the #115 public-reviewability blocker has been removed in PR #215 at commit c1bf94e. |
第一幕 · 在出发以前,先让工具学会诚实
第六章 · 从答案铺回问题的路
四组隐藏输出已经等在道路尽头。这一章从有限样本辨认算术结构,再把结构压回可执行的电路,
为第一幕铺出一条从答案返回问题的路。
← 上一章:玉米地外,计算开始弯曲天空 · 下一幕:用一把误差尺裁定未来 →
Team
Challenge
Claim boundary — read this first
The forward A–D circuits are correct and exhaustively verified, but they are not claimed to be
globally minimum circuits. The original four-family/width-compatible registry made the forward
recovery closer to identification plus compilation than a decisive test of Occam's razor. The
generic MDL search surface improves that baseline, but it does not retroactively turn the forward
gate counts into certified optima.
The proof-producing inverse extension below is a separate result under an explicit
n=2relationalmodel. It supplies checked minimum-gate theorems for Add, AbsDiff, and nonlinear Multiply; it does
not establish minima for forward A–D, inverse SumOfSquares, larger widths, or asymptotic hardness.
Public forward result
This PR is the self-contained public forward challenge submission. It recovers and verifies the
four hidden arithmetic functions, emits official-basis circuits, and keeps the prediction artifacts
reviewable inside the PR branch.
x + yabs(x - y)x * yx^2 + y^2The immutable pre-optimization baseline was
37/52/168/187; the final verified counts are37/50/167/186.Method snapshot
The public branch includes a generic MDL-style expression/circuit search surface plus deterministic
verification artifacts. The old four-family registry remains only as a named baseline and
interpretability aid:
tracks/qcs/solutions/rewrite-it-in-rust/search/src/expression/tracks/qcs/solutions/rewrite-it-in-rust/search/src/learning/mdl.rstracks/qcs/solutions/rewrite-it-in-rust/mdl-reports/tracks/qcs/solutions/rewrite-it-in-rust/research/Certified inverse extension
The inverse output is
(x, y, valid)and may choose any accepted preimage. The exact CNF forbidsonly invalid output tuples, so a
k−1refutation excludes every smaller witness-selection circuit,not merely one canonical inverse.
Gate model: fan-in-two
AND OR XOR NAND NOR XNOR, free input inversion, cost = gate count.n=2relationVERIFIEDVERIFIEDVERIFIEDFor Multiply, the seven-gate CNF has 764 variables and 13,900 clauses. Its text DRAT proof was
accepted by independently built
drat-trimat commit2e3b2dc0ecf938addbd779d42877b6ed69d9a985. The CNF orders gate operands as a sound symmetrybreak because all six allowed operations are commutative. The explicit eight-gate circuit, not a
timed-out SAT attempt, establishes the upper bound.
Public circuits, exact DIMACS, DRAT proofs, SHA-256 manifests, checker transcripts, reproduction
commands, tests, and frozen Rust source:
https://github.com/JunkaiWang-TheoPhy/quantum.harness/tree/58e9bb573db81c5a7811db8690897eb73850d8b4/tracks/qcs/solutions/rewrite-it-in-rust/inverse-certification
This meets the extension's concrete gate: at least one certified inverse optimum plus recovery of
the Add and AbsDiff controls. An impossible accepted-output row is also included as the required
UNSAT encoder negative control.
Relationship to #115
PR #215 is the separate Rust-port registration surface. Its source and clean-checkout evidence are
now public at commit
c1bf94e67053943d27440fa48e978e07b922e6ef. This PR remains the #71forward submission plus its proof-producing inverse follow-up.