Gold / Method: exact multi-filling ED calibration lattice on the 6x6 scoring cluster

#94
Files changed (47) hide show
  1. methods/WiktorMatuszek/LICENSE +26 -0
  2. methods/WiktorMatuszek/PROVENANCE.md +23 -0
  3. methods/WiktorMatuszek/README.md +108 -0
  4. methods/WiktorMatuszek/SHA256SUMS.txt +43 -0
  5. methods/WiktorMatuszek/THIRD_PARTY_ATTRIBUTION.md +11 -0
  6. methods/WiktorMatuszek/WiktorMatuszek_OSC_Gold_2026-11-26.zip +3 -0
  7. methods/WiktorMatuszek/WiktorMatuszek_OSC_Gold_2026-11-26.zip.sha256 +1 -0
  8. methods/WiktorMatuszek/configs/solver_parameters.json +23 -0
  9. methods/WiktorMatuszek/cpu_6x6_ne4.py +215 -0
  10. methods/WiktorMatuszek/exact_calibration_table.md +58 -0
  11. methods/WiktorMatuszek/expected/pd6x6_up2_dn2.json +19 -0
  12. methods/WiktorMatuszek/expected/pd6x6_up3_dn2.json +20 -0
  13. methods/WiktorMatuszek/free_pair_control.py +121 -0
  14. methods/WiktorMatuszek/material_ne4.py +60 -0
  15. methods/WiktorMatuszek/ne5_orbit.py +160 -0
  16. methods/WiktorMatuszek/pd_eval.py +219 -0
  17. methods/WiktorMatuszek/proof/README.md +63 -0
  18. methods/WiktorMatuszek/proof/ne5_exact_raw.py +106 -0
  19. methods/WiktorMatuszek/proof/ne5_independent.py +77 -0
  20. methods/WiktorMatuszek/proof/ne5_rayleigh.py +38 -0
  21. methods/WiktorMatuszek/proof/ne5_scattering.py +81 -0
  22. methods/WiktorMatuszek/proof/ne5_spin.py +61 -0
  23. methods/WiktorMatuszek/requirements.txt +2 -0
  24. methods/WiktorMatuszek/run_full.sh +32 -0
  25. methods/WiktorMatuszek/run_material.sh +6 -0
  26. methods/WiktorMatuszek/run_sectors.sh +100 -0
  27. methods/WiktorMatuszek/run_submission.sh +36 -0
  28. methods/WiktorMatuszek/sector_ed.py +121 -0
  29. methods/WiktorMatuszek/su2_ladder.py +109 -0
  30. methods/WiktorMatuszek/submission_gold_OSC-01756.json +37 -0
  31. methods/WiktorMatuszek/validate_kuku.py +86 -0
  32. methods/WiktorMatuszek/validate_pair_cross.py +31 -0
  33. methods/WiktorMatuszek/validation/README.md +19 -0
  34. methods/WiktorMatuszek/validation/ne5_degen.json +14 -0
  35. methods/WiktorMatuszek/verification/README.md +18 -0
  36. methods/WiktorMatuszek/verification/heavy_validation.md +42 -0
  37. methods/WiktorMatuszek/verification/ne5_exact_raw.generated.json +114 -0
  38. methods/WiktorMatuszek/verification/ne5_independent.generated.json +139 -0
  39. methods/WiktorMatuszek/verification/ne5_orbit_result.generated.json +76 -0
  40. methods/WiktorMatuszek/verification/ne5_rayleigh.generated.json +11 -0
  41. methods/WiktorMatuszek/verification/ne5_spin.generated.json +13 -0
  42. methods/WiktorMatuszek/verification/ne6_51_sector.generated.json +19 -0
  43. methods/WiktorMatuszek/verification/ne6_su2_ladder.generated.json +43 -0
  44. methods/WiktorMatuszek/verification/run_full.log +41 -0
  45. methods/WiktorMatuszek/verification/run_material_OSC-01756.log +62 -0
  46. methods/WiktorMatuszek/verify_manifest.py +40 -0
  47. submissions/WiktorMatuszek_gold_OSC-01756.json +37 -0
methods/WiktorMatuszek/LICENSE ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Wiktor Matuszek
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ This license applies to the original method software and original documentation
24
+ in this package. It excludes third-party data, reference values, challenge
25
+ metadata and documentation; their CC-BY-NC-4.0 terms and attribution are set
26
+ out in THIRD_PARTY_ATTRIBUTION.md and PROVENANCE.md.
methods/WiktorMatuszek/PROVENANCE.md ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Provenance and data-license boundary
2
+
3
+ OSC material parameters, scoring metadata and the pinned public input table originate from
4
+ FINAL-Bench — Open Superconductor Challenge. The underlying crystal structures and base
5
+ electronic-structure properties are derived from the Computational 2D Materials Database
6
+ (C2DB), Technical University of Denmark.
7
+
8
+ - OSC dataset: https://huggingface.co/datasets/FINAL-Bench/OSC-Superconductor
9
+ - License: Creative Commons Attribution-NonCommercial 4.0 International (CC-BY-NC 4.0)
10
+ https://creativecommons.org/licenses/by-nc/4.0/
11
+ - C2DB material pages: https://c2db.fysik.dtu.dk/
12
+
13
+ Please cite C2DB when using OSC-derived material data:
14
+
15
+ - S. Haastrup et al., *The Computational 2D Materials Database: high-throughput modeling and
16
+ discovery of atomically thin crystals*, 2D Materials 5, 042002 (2018).
17
+ - M. N. Gjerding et al., 2D Materials 8, 044002 (2021).
18
+
19
+ This package does not redistribute the pinned `active_challenge.csv` or other third-party
20
+ data files. It records the public dataset revision, expected SHA256, numeric validation
21
+ anchors and provenance needed to obtain the input from the official source. Original method
22
+ code in this package is MIT-licensed; third-party data and documentation remain under their
23
+ original licenses.
methods/WiktorMatuszek/README.md ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Exact finite-cluster calibration of the OSC 6x6 scoring cluster
2
+
3
+ Entrant: Wiktor Matuszek (`WiktorMatuszek`). Method-contribution registration
4
+ under the published OSC rules. This package is a calibration/validation
5
+ reference: exact diagonalization of the square-lattice Hubbard model at U/t=8
6
+ on the same 6x6 periodic cluster used by the canonical scoring pipeline,
7
+ evaluated with the organizer pair-correlation observable and normalization
8
+ (`P_org = 2 x P_ED`, `R=(3,3)`, equal-weight degenerate-manifold handling per
9
+ the ku-ku protocol). It does not request any override of canonical scores or
10
+ rankings.
11
+
12
+ ## Registered material example
13
+
14
+ OSC-01756 / 1GeSe2-2 (GeSe2), pinned organizer row: `solver_delta=0.8889`,
15
+ `N(E_F)=0.44018`, nearest even 6x6 bin Ne4. The exact ED correlator at this
16
+ bin is `P_org = +0.0024407125165524`, giving the finite-cluster method index
17
+ `0.3223058507 = P_org x N(E_F) x 300` versus canonical index 0 for this
18
+ material. This is a finite-cluster estimate in the organizer nearest-even bin,
19
+ not ED at the continuous DFT filling, and not a claim about bulk
20
+ superconductivity.
21
+
22
+ The matching Gold registration JSON is `submission_gold_OSC-01756.json`.
23
+
24
+ Reproduce with:
25
+
26
+ ```sh
27
+ bash run_material.sh /path/to/active_challenge.csv --material OSC-01756
28
+ ```
29
+
30
+ The pinned public input is not redistributed here. Download it from dataset
31
+ revision `4a3659f32ecd5737bfdbadad6aff6da16a29c0cc` (CC-BY-NC-4.0):
32
+ `https://huggingface.co/datasets/FINAL-Bench/OSC-Superconductor/resolve/4a3659f32ecd5737bfdbadad6aff6da16a29c0cc/active_challenge.csv`
33
+ Expected SHA256: `58a29875a8a07ed5525758a95b0d93be32478cd391d1a57893332e3027728b43`.
34
+ The 26 Nov revision `12b7f85535a7a89faddd4eacde2eb997f89a7d9f` is also accepted by a separate SHA256 pin; it adds three rows and leaves the original 1073 rows and all three Ne4 examples unchanged.
35
+ The script fail-closes on the CSV SHA256, row count, filling convention,
36
+ U/t consistency, solver hash, eigensolver dimension/residual and sign.
37
+
38
+ ## Exact calibration lattice
39
+
40
+ All rows are for the periodic 6x6 square-lattice Hubbard cluster, t=1, U/t=8.
41
+
42
+ | filling | sector | Hilbert dim | E0 (t=1) | P_org(R=(3,3)) |
43
+ |---|---|---:|---:|---:|
44
+ | Ne2, delta=0.9444 | (1,1) | 1,296 | -7.906146146983354 | exactly 0 (symmetry theorem; observed numerical noise below 5e-30) |
45
+ | Ne4, delta=0.8889 | (2,2) | 396,900 | -13.726749905245 | +0.002440712516552 |
46
+ | Ne5, delta=0.8611 | (3,2) | 4,498,200 | -16.606552964131627 | -0.000489496 (degeneracy-resolved) |
47
+ | Ne6, delta=0.8333 | (3,3) | 50,979,600 | -19.489596027342 | -0.0006408458241 |
48
+ | Ne6, S=2 multiplet representative | (5,1) | 13,571,712 | -19.489596027342 | -0.0006408458241 |
49
+
50
+ The Ne2 zero is a theorem (Perron-Frobenius plus translation/C4). rsturg (#62)
51
+ holds priority for the two-carrier result (25 Oct); it is included here as a
52
+ validation anchor, not a novelty claim.
53
+
54
+ The novel content is the exact multi-filling calibration lattice on the scoring
55
+ cluster itself, including the degeneracy-resolved Ne5 value and the Ne6 S=2
56
+ multiplet analysis. At Ne6 the same ground energy and spin-scalar singlet pair
57
+ correlator are constructively reproduced in the (5,1), (4,2) and (3,3) sectors
58
+ by exact SU(2) lowering; the balanced (3,3) sector therefore is not an excited
59
+ or wrong sector. At Ne5 the fixed-(3,2) ground manifold is four-dimensional;
60
+ an unconverged degenerate-Krylov projection can undercount it as three
61
+ directions; the rank-four lattice-symmetry orbit and the included exact-
62
+ arithmetic threshold/spin witnesses close the count. These are finite-
63
+ cluster results, not thermodynamic-limit or bulk-superconductivity claims.
64
+
65
+ ## Reproduction scope
66
+
67
+ | command | runtime class | what it proves/reproduces |
68
+ |---|---:|---|
69
+ | `python3 verify_manifest.py` | seconds | SHA256 package-integrity check |
70
+ | `sh run_submission.sh` | minutes | fresh Ne2 and Ne4 solve, frozen-reference comparison |
71
+ | `sh run_full.sh` | several minutes | submission reproduction, 12 published ku-ku rectangular reference rows, independent pair-implementation cross-check, Wick/direct-Fock controls, frozen Ne5 evidence checks |
72
+ | `bash run_material.sh pinned.csv --material OSC-01756` | seconds-minutes | end-to-end GeSe2 material example with fail-closed public-input and solver pins |
73
+ | `sh run_sectors.sh [outdir]` | roughly one hour on a strong CPU node | independent 4x4/5x4 validation, fresh Ne5 orbit and correlator, exact Ne5 count/spin/raw-sign proof replay, fresh Ne6 (5,1) solve, SU(2)-lowered (4,2)/(3,3) energy and correlator witnesses |
74
+
75
+ `run_sectors.sh` writes large generated eigenvectors and receipts to
76
+ `/tmp/osc_method_heavy_validation` unless an output directory is supplied.
77
+ It needs several hundred MB of disk and at least 4 GiB free RAM during the
78
+ Ne6 solve/ladder witness. The exact-arithmetic Ne5 scripts in `proof/` operate on the
79
+ vector regenerated in that run; they do not depend on an external archived
80
+ vector or hard-coded vector hash.
81
+
82
+ `WiktorMatuszek_OSC_Gold_2026-11-26.zip` is a source-only snapshot of this
83
+ package; its sidecar `.sha256` is the archive pin. `SHA256SUMS.txt` covers the
84
+ unpacked source files, not the archive itself.
85
+
86
+ Runners check the bundled SHA256 manifest before numerical execution; the manifest is an integrity check, not a signature. Numerical acceptance checks use explicit exceptions rather than Python `assert`.
87
+
88
+ No stochastic optimization and no fitted or rescaled reference amplitudes are
89
+ used.
90
+
91
+ ## Environment
92
+
93
+ Python >=3.11 is required. Exact verification pins are in
94
+ `requirements.txt` (`numpy==2.4.6`, `scipy==1.17.1`); the solvers require
95
+ NumPy >=2.0 for `np.bitwise_count`. The quick validation in this revision was
96
+ executed with CPython 3.11, NumPy 2.4.6 and SciPy 1.17.1.
97
+
98
+ Install in a clean environment with:
99
+
100
+ ```sh
101
+ python3 -m pip install -r requirements.txt
102
+ ```
103
+
104
+ ## License and attribution
105
+
106
+ Original code: MIT (`LICENSE`). Reference data: ku-ku independent ED values
107
+ and organizer canonical parameters remain CC-BY-NC-4.0 per the dataset card;
108
+ see `THIRD_PARTY_ATTRIBUTION.md` and `PROVENANCE.md`. Prepared with AI assistance.
methods/WiktorMatuszek/SHA256SUMS.txt ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ f1c1fe1e677f6cda4f9f01242677564e5952d7c13f061526bce1063aa55ec808 LICENSE
2
+ 249762a62c1a2538af20423754634d9c218800f7e9beaefe72bb127fc79bc7dc PROVENANCE.md
3
+ 785c1c711a73b6027b804f74baacc13d188094bb9e0a78a0397e59a353080d7b README.md
4
+ 532d85c3a0361f220d91a2ad406b0f52fbc81b2437503728e18938715a3d1bc7 THIRD_PARTY_ATTRIBUTION.md
5
+ faf9bf50c4ecceaab3270a5a47e59dbdf350fb3edf686e564cd29ba04ed3a11a configs/solver_parameters.json
6
+ 7feddeaef7c97cda3d0bf8d5ad62b048e9ab197525b1230c6f52c3a57e1ac35f cpu_6x6_ne4.py
7
+ 25f18bad598a0644496e89788b62db350fb04f19126f50fa151b5124099369cf exact_calibration_table.md
8
+ da8dae8dfbec059d61f7e3af8d705a385036d906cec4d1f4db5adfb6247759c4 expected/pd6x6_up2_dn2.json
9
+ f358e8079d93dfc5ac53760cd9042a65b43af49e8b03b5d43fd8fdf2d50c0f30 expected/pd6x6_up3_dn2.json
10
+ 81cb75f2ece6024b4e46b70456dfd22b879b6511c948131abea3d2632cbfb833 free_pair_control.py
11
+ 7b827c3687b2a6ae6f7c4441b51a1f0208b4bc2ddc9c62ec9365201931b00778 material_ne4.py
12
+ 6401828e56c98e7584e5d3114fa305ce850fcae57e4f7c5a95d96e2fce5ca7b6 ne5_orbit.py
13
+ 219d3a9a5da8694e071c5fa535d68274c6b8765e2e76fe0189f32d9526369fb7 pd_eval.py
14
+ db004f5642a645bbd0cd47fc8a33005ffd99537e8de2746442c9a0751c516e22 proof/README.md
15
+ 3ad1e6a8a4393a848477bc1960d4e59c7f5a720b2a472ae4cd774030e728f149 proof/ne5_exact_raw.py
16
+ f0cd7282637e9d18158df63cc7112ed17c8bf983d2a13cd444ad341e4b4a59ab proof/ne5_independent.py
17
+ a6c9ac24fabd1a64718bb405b0d4e17aa7e6d3695e89f327a4ad7744d90be34d proof/ne5_rayleigh.py
18
+ 2ff4a7e15833263f299624f6d13ace03c55d87f296cb2686101b5468d0e3834c proof/ne5_scattering.py
19
+ ce04c52a70a0a9eea8ba79e43f259d8cf2eaa13348d89cf08e6c7e686c68c9c2 proof/ne5_spin.py
20
+ 6afb83d59515deb526c4879fe45c151289c53c8b2bd6c073dfcd3702132e51ac requirements.txt
21
+ b5b857c7042c75aa0ef08e83ef3670f5750a8f0393d0b1ed2cdfda505eeefdf7 run_full.sh
22
+ 6e8e5fa1aa2c421cefb3b37f4f01ea6d7c9ad7e6114bdb58b2c377d013324bfb run_material.sh
23
+ b049416961cf5fcdc1793d8abce44dc288e212bb43bf33423a9279ca2da48f2a run_sectors.sh
24
+ 9cc07eae72931efb02681e235bd9f004492d606d653fa06e8441244bf2b990f9 run_submission.sh
25
+ 1490c4fb98012616a3613e9ecdf13e759e8e60c5f6a7403f46ce98ac0cc0904d sector_ed.py
26
+ a5050b97ee3f37f28698466b59d4f0c625efea9d219a01bff975c78e2d2943b2 su2_ladder.py
27
+ f6c76d0dff8decc8ea7c483ba74bc688eb32364b53029061197706301b3151bc submission_gold_OSC-01756.json
28
+ 17d782a9f3b14c187f67e0ccbf4d0584f771c4e15a3dd68cba71d813507d209e validate_kuku.py
29
+ 50163f7f53ee6ef1e834c49227344ae36254faa2dace2a707a0e961c4b061518 validate_pair_cross.py
30
+ 6858460e172c8c0fa5ebd0705412a2d7e0bdce977705be2f63083a34cf2789ff validation/README.md
31
+ 667ca839790e3d11244055a8263c3e6aed4a99f5bc6bc0dc862da2b1202bb8a0 validation/ne5_degen.json
32
+ 7985d4b7138989bb26a692254ea4eba48f4add5995c2ff73e06f7a8e8c19b123 verification/README.md
33
+ 5bb079e8b7ab1bf5cd6fad4f7645ebb7994ad03248b4222e3ed8bb6d9ac6e7bd verification/heavy_validation.md
34
+ fde17ccb4a5750c262a6c50c1d6292abad890e2dfc0b821d1dafb54dd37e8df3 verification/ne5_exact_raw.generated.json
35
+ 33fdcde0307074f97cc0c0803e67c1b01299ed0245edf14510ac94d81695317a verification/ne5_independent.generated.json
36
+ a7c79b4906d72fe43e9d5a48382a83ab2bb7ff5d386b91aec02b49e3413f28cf verification/ne5_orbit_result.generated.json
37
+ aab8e8856314855a72713fa7bd22112846340eb53e82c148e9d5316d9126651c verification/ne5_rayleigh.generated.json
38
+ db1d2583dca0f60d81fa6f94a60982a8d5cee0c043baa7eb2acb327ee2e4a08e verification/ne5_spin.generated.json
39
+ d8be0546a8a319bbb1ba0f0944830ff938f5b02fa49cccebdfe54f33db2f5aea verification/ne6_51_sector.generated.json
40
+ 4e6ca527a89c14c8375f8673cca824c3b61467c1442f9c77db506c631d848ae2 verification/ne6_su2_ladder.generated.json
41
+ 038e84b0945eb88d701b913cdcfb20a718195e05e48cc586f7a1bb9090968a9c verification/run_full.log
42
+ d6f54fa1210544fc7dfee37460929e3cedbde075deda61f50bd2f163a92c272e verification/run_material_OSC-01756.log
43
+ 83d51398adae96f19c935bc24f9ee2638dfed8964efc8db0e59f10475ff030cf verify_manifest.py
methods/WiktorMatuszek/THIRD_PARTY_ATTRIBUTION.md ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Third-party attribution
2
+
3
+ - OSC-Superconductor dataset (FINAL-Bench): canonical active table, scoring
4
+ convention, pipeline parameters. License CC-BY-NC-4.0 per the dataset card.
5
+ https://huggingface.co/datasets/FINAL-Bench/OSC-Superconductor
6
+ - ku-ku team: independent exact-ED reference values used as validation anchors
7
+ (rectangular deg-1 rows, 4x4/5x4 references). CC-BY-NC-4.0.
8
+ - rsturg (#62): priority for the two-carrier exact-zero result (25 Oct 2026);
9
+ included here as a validation anchor, not a novelty claim.
10
+ - No third-party data files are redistributed in this package; reference
11
+ values appear only as numeric anchors in validation JSON and validation scripts.
methods/WiktorMatuszek/WiktorMatuszek_OSC_Gold_2026-11-26.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f6fcc78fec183c1d0eebd0ddef505f3327259a93eeaf04c45176f525d17c8bf5
3
+ size 57029
methods/WiktorMatuszek/WiktorMatuszek_OSC_Gold_2026-11-26.zip.sha256 ADDED
@@ -0,0 +1 @@
 
 
1
+ f6fcc78fec183c1d0eebd0ddef505f3327259a93eeaf04c45176f525d17c8bf5 WiktorMatuszek_OSC_Gold_2026-11-26.zip
methods/WiktorMatuszek/configs/solver_parameters.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "square-lattice Hubbard, nearest-neighbor hopping, periodic boundaries",
3
+ "cluster": "6x6",
4
+ "t": 1.0,
5
+ "U_over_t": 8.0,
6
+ "observable": "d-wave pair correlation, organizer normalization P_org = 2 x P_ED",
7
+ "scoring_displacement": [
8
+ 3,
9
+ 3
10
+ ],
11
+ "degenerate_manifold": "equal-weight average over resolved ground manifold (ku-ku protocol)",
12
+ "lanczos": {
13
+ "seed": 0,
14
+ "tolerance_note": "residuals documented per run in validation JSON"
15
+ },
16
+ "environment": {
17
+ "python": ">=3.11 required; quick validation executed on CPython 3.11",
18
+ "numpy": ">=2.0 (np.bitwise_count required); package verification pin numpy==2.4.6",
19
+ "scipy": ">=1.10; package verification pin scipy==1.17.1",
20
+ "requirements_file": "requirements.txt"
21
+ },
22
+ "frozen_at": "2026-11-26"
23
+ }
methods/WiktorMatuszek/cpu_6x6_ne4.py ADDED
@@ -0,0 +1,215 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Independently assembled 6x6 Hubbard Ne4 CPU exact-diagonalization solver.
3
+ No stored eigenvectors are imported or read. Historical comparison values
4
+ are checked only after the fresh solve completes.
5
+ """
6
+ import itertools
7
+ import json
8
+ import math
9
+ import time
10
+ import numpy as np
11
+ from scipy.sparse import coo_matrix, diags
12
+ from scipy.sparse.linalg import LinearOperator, eigsh
13
+
14
+ LX = LY = 6
15
+ SITES = LX * LY
16
+ U = 8.0
17
+
18
+ def require(condition, message):
19
+ if not condition:
20
+ raise RuntimeError(message)
21
+
22
+ def site(x, y):
23
+ return x % LX + LX * (y % LY)
24
+
25
+ def bitstates(n):
26
+ return [sum(1 << i for i in combo)
27
+ for combo in itertools.combinations(range(SITES), n)]
28
+
29
+ def fermion_phase(mask, a, b):
30
+ lower, upper = sorted((a, b))
31
+ between = ((1 << upper) - (1 << (lower + 1)))
32
+ return -1 if (mask & between).bit_count() % 2 else +1
33
+
34
+ def bonds():
35
+ return [(site(x, y), site(x + 1, y))
36
+ for y in range(LY) for x in range(LX)] + [
37
+ (site(x, y), site(x, y + 1))
38
+ for y in range(LY) for x in range(LX)]
39
+
40
+ def kinetic(states):
41
+ look = {m: i for i, m in enumerate(states)}
42
+ rr, cc, vv = [], [], []
43
+ for col, mask in enumerate(states):
44
+ for a, b in bonds():
45
+ if bool(mask & (1 << a)) == bool(mask & (1 << b)):
46
+ continue
47
+ target = mask ^ (1 << a) ^ (1 << b)
48
+ rr.append(look[target])
49
+ cc.append(col)
50
+ vv.append(-fermion_phase(mask, a, b))
51
+ h = coo_matrix((vv, (rr, cc)), shape=(len(states), len(states)),
52
+ dtype=np.float64).tocsr()
53
+ h.sum_duplicates()
54
+ require((h - h.T).nnz == 0, "1-spin CAR kinetic is not symmetric")
55
+ return h
56
+
57
+ def annihilators(states):
58
+ smaller = bitstates(1)
59
+ idx = {s: i for i, s in enumerate(smaller)}
60
+ ans = []
61
+ for q in range(SITES):
62
+ r, c, v = [], [], []
63
+ for j, mask in enumerate(states):
64
+ if mask & (1 << q):
65
+ r.append(idx[mask ^ (1 << q)])
66
+ c.append(j)
67
+ v.append(-1 if (mask & ((1 << q) - 1)).bit_count() % 2 else 1)
68
+ ans.append(coo_matrix((v, (r, c)), shape=(SITES, len(states)),
69
+ dtype=np.float64).tocsr())
70
+ return ans
71
+
72
+ def pair_field(psi, ann, q, d_wave):
73
+ x, y = q % LX, q // LX
74
+ neighbors = [(site(x + 1, y), +1), (site(x - 1, y), +1),
75
+ (site(x, y + 1), -1), (site(x, y - 1), -1)]
76
+ ans = np.zeros((SITES, SITES), dtype=np.float64)
77
+ for neighbor, weight in neighbors:
78
+ if not d_wave:
79
+ weight = +1
80
+ ans += weight * (ann[q] @ psi @ ann[neighbor].T +
81
+ ann[neighbor] @ psi @ ann[q].T)
82
+ return ans / (2 * math.sqrt(2))
83
+
84
+ def one_body_rdm(psi, ann):
85
+ up = [operator @ psi for operator in ann]
86
+ down = [psi @ operator.T for operator in ann]
87
+ gamma_up = np.array([[np.vdot(x, y).real for y in up] for x in up])
88
+ gamma_dn = np.array([[np.vdot(x, y).real for y in down] for x in down])
89
+ return gamma_up, gamma_dn
90
+
91
+ def form_neighbours(q):
92
+ x, y = q % LX, q // LX
93
+ return [(site(x+1,y),+1), (site(x-1,y),+1),
94
+ (site(x,y+1),-1), (site(x,y-1),-1)]
95
+
96
+ def wick_control(gup, gdn, target, origin):
97
+ total = 0.
98
+ # Wick factorization for the singlet field defined in pair_field().
99
+ # Anomalous one-body contractions vanish for fixed particle numbers.
100
+ for a, wa in form_neighbours(target):
101
+ for b, wb in form_neighbours(origin):
102
+ total += wa*wb * (
103
+ gup[target,origin]*gdn[a,b] +
104
+ gup[target,b]*gdn[a,origin] +
105
+ gup[a,origin]*gdn[target,b] +
106
+ gup[a,b]*gdn[target,origin]
107
+ ) / 8.
108
+ return float(total)
109
+
110
+ def slater_wick_oracle(ann):
111
+ # Exact two-up/two-down product Slater Fock basis state must obey Wick.
112
+ state = bitstates(2)
113
+ psi = np.zeros((len(state),len(state)), dtype=float)
114
+ psi[0,4] = 1.
115
+ gup,gdn=one_body_rdm(psi,ann)
116
+ deltas=[]
117
+ for target, origin in [(0,0), (site(1,0),0), (site(3,3),0)]:
118
+ d = float(np.vdot(pair_field(psi,ann,target,True),
119
+ pair_field(psi,ann,origin,True)).real)
120
+ w=wick_control(gup,gdn,target,origin)
121
+ deltas.append(abs(d-w))
122
+ require(max(deltas) < 1e-12, "Slater Wick oracle failed")
123
+ return float(max(deltas))
124
+
125
+ def run():
126
+ start = time.monotonic()
127
+ basis = bitstates(2)
128
+ m = len(basis)
129
+ require(m == 630, "6x6 one-spin C(36,2) not 630")
130
+ k = kinetic(basis)
131
+ occupancy = np.fromiter(((u & d).bit_count()
132
+ for u in basis for d in basis),
133
+ dtype=np.float64, count=m*m).reshape(m, m)
134
+ diag = U * occupancy
135
+ def apply(v):
136
+ v2 = v.reshape(m, m)
137
+ # Independent matrix-free Kronecker action; 396900-space H never stored.
138
+ out = k @ v2 + (k @ v2.T).T + diag * v2
139
+ return out.reshape(-1)
140
+ h = LinearOperator((m*m, m*m), matvec=apply, dtype=np.float64)
141
+ rng = np.random.default_rng(20261123)
142
+ trial = rng.standard_normal(m*m)
143
+ other = rng.standard_normal(m*m)
144
+ hermiticity = abs(np.vdot(trial, apply(other)) -
145
+ np.vdot(apply(trial), other))
146
+ normbound = np.linalg.norm(trial) * np.linalg.norm(other)
147
+ require(hermiticity / normbound < 1e-12, "full Hamiltonian not Hermitian")
148
+ energies, vectors = eigsh(h, k=8, which="SA", tol=2e-11,
149
+ maxiter=15000, ncv=42, v0=trial)
150
+ ordering = np.argsort(energies)
151
+ energies, vectors = energies[ordering], vectors[:, ordering]
152
+ neig = sum(abs(float(x) - float(energies[0])) < 1e-8 for x in energies)
153
+ require(neig < 8, "ground multiplet truncated: increase k")
154
+ residues = [float(np.linalg.norm(apply(vectors[:, j]) -
155
+ energies[j] * vectors[:, j])) for j in range(neig)]
156
+ require(max(residues) < 1e-7, "poor eigen residual")
157
+ ann = annihilators(basis)
158
+ pd, ps, pw, translations = [], [], [], []
159
+ slater_oracle_error = slater_wick_oracle(ann)
160
+ for j in range(neig):
161
+ psi = vectors[:, j].reshape(m, m)
162
+ origin_d = pair_field(psi, ann, 0, True)
163
+ origin_s = pair_field(psi, ann, 0, False)
164
+ target_d = pair_field(psi, ann, site(3, 3), True)
165
+ target_s = pair_field(psi, ann, site(3, 3), False)
166
+ pd.append(float(np.vdot(target_d, origin_d).real))
167
+ ps.append(float(np.vdot(target_s, origin_s).real))
168
+ gam_u,gam_d=one_body_rdm(psi,ann)
169
+ pw.append(wick_control(gam_u,gam_d,site(3,3),0))
170
+ translated=[]
171
+ for anchor in (site(0,0),site(1,1),site(2,3)):
172
+ x,y=anchor%LX,anchor//LX
173
+ other=site(x+3,y+3)
174
+ first=pair_field(psi,ann,anchor,True)
175
+ second=pair_field(psi,ann,other,True)
176
+ translated.append(float(np.vdot(second,first).real))
177
+ translations.append(translated)
178
+ doublons = [float(np.vdot(vectors[:, j],
179
+ occupancy.reshape(-1)*vectors[:, j]).real)
180
+ for j in range(neig)]
181
+ result = dict(model="6x6 periodic Hubbard, Ne4 Sz0 U/t=8",
182
+ dimension=m*m, spin_dimension=m, n_bonds=len(bonds()),
183
+ one_spin_h_nnz=int(k.nnz),
184
+ energies=[float(z) for z in energies],
185
+ ground_multiplicity=int(neig),
186
+ E0=float(energies[0]), max_residual=max(residues),
187
+ Pd33=float(np.mean(pd)), Pd33_eigenstate=pd,
188
+ Ps33_s_wave=float(np.mean(ps)),
189
+ Pd33_wick=float(np.mean(pw)),
190
+ Pd33_connected=float(np.mean(pd)-np.mean(pw)),
191
+ translated_Pd33=translations,
192
+ slater_wick_oracle_error=slater_oracle_error,
193
+ mean_double_occupancy=float(np.mean(doublons)),
194
+ hermiticity_relative=hermiticity/normbound,
195
+ elapsed_seconds=round(time.monotonic()-start, 3),
196
+ algorithm="matrix-free sparse CAR eigsh CPU; ground-projector pairing",
197
+ limitations="finite torus, Sz0 sector, not bulk SC or official score")
198
+ print(json.dumps(result, indent=2, sort_keys=True), flush=True)
199
+ # Falsifiers: archive values are used ONLY after the independent solve.
200
+ require(abs(result["E0"] - (-13.726749905245065)) < 2e-7,
201
+ "historical 6x6 Ne4 energy not reproduced")
202
+ require(abs(result["Pd33"] - (+0.0012203562582762)) < 2e-7,
203
+ "historical 6x6 Ne4 raw d-wave Pd not reproduced")
204
+ require(abs(result["Ps33_s_wave"]-result["Pd33"]) > 1e-4,
205
+ "wrong s-wave channel indistinguishable")
206
+ require(abs(result["Pd33_connected"]-0.001217338484412338)<2e-8,
207
+ "historical Wick-subtracted connected vertex not reproduced")
208
+ require(max(abs(q-result["Pd33"]) for rec in translations
209
+ for q in rec) < 2e-10, "translation pairing invariance failed")
210
+ require(result["E0"] >= -14.00000001,
211
+ "E(U>0) falls below noninteracting 6x6 Ne4 lower bound")
212
+ return result
213
+
214
+ if __name__ == "__main__":
215
+ run()
methods/WiktorMatuszek/exact_calibration_table.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Exact calibration lattice, 6x6 scoring cluster, U/t=8
2
+
3
+ Organizer observable: d-wave pair correlation at maximum displacement R=(3,3),
4
+ normalization `P_org = 2 x P_ED`. All energies are in units of t.
5
+
6
+ | filling | sector | Hilbert dim | E0 | P_org(R=(3,3)) |
7
+ |---|---|---:|---:|---:|
8
+ | Ne2 | (1,1) | 1,296 | -7.906146146983354 | exactly 0 (theorem; observed numerical noise below 5e-30) |
9
+ | Ne4 | (2,2) | 396,900 | -13.726749905245 | +0.002440712516552 |
10
+ | Ne5 | (3,2) | 4,498,200 | -16.606552964131627 | -0.000489496 (degeneracy-resolved, equal-weight) |
11
+ | Ne6 | (3,3) | 50,979,600 | -19.489596027342 | -0.0006408458241 |
12
+ | Ne6 | (5,1) | 13,571,712 | -19.489596027342 | -0.0006408458241 |
13
+
14
+ ## Ne6 multiplet structure
15
+
16
+ The same ground energy appears in the highest-weight (5,1) sector of the
17
+ S=2 multiplet and in the balanced (3,3) sector, agreeing within 4e-14 in the generated evidence.
18
+ This is the signature of an S=2 ground-state multiplet, whose Sz=0 component
19
+ lives in the balanced sector. The included `su2_ladder.py` witness constructs
20
+ the normalized (4,2) and (3,3) descendants from a freshly solved (5,1) vector,
21
+ checks their Hamiltonian residuals, and reproduces the same spin-scalar singlet
22
+ pair correlator in all three sectors. Thus the balanced-sector row is a ground-
23
+ state calibration point, not an excited-sector value.
24
+
25
+ The pinned scoring metadata carries no reference amplitude for six electrons
26
+ and the materials at `solver_delta=0.8333` list `A_dwave=0.0`, so this exact
27
+ negative value is reported as a standalone calibration point without a
28
+ published comparison.
29
+
30
+ ## Ne5 degeneracy and proof scope
31
+
32
+ The full ground manifold in the fixed (3,2) sector has dimension exactly four
33
+ under the included computer-assisted certificate. An unconverged
34
+ degenerate-Krylov projection can capture only three low directions; that is a
35
+ known degenerate-Krylov undercounting artifact, not the final count. The
36
+ included heavy reproduction constructs a rank-four lattice-symmetry orbit and then runs
37
+ vector-portable exact-arithmetic witnesses in `proof/`:
38
+
39
+ - exact rational/interval Schur inertia for the spectral-count threshold;
40
+ - exact integer Rayleigh witness below threshold;
41
+ - integer spin-raised witness certifying the S=3/2 assignment and strict gap
42
+ scale;
43
+ - exact integer raw pair contraction, producing a rigorous negative raw
44
+ P_org(R=(3,3)) enclosure.
45
+
46
+ The equal-weight numerical average over the resolved manifold is
47
+ -0.0004894962398948123. These are finite-cluster results for the stated 6x6
48
+ model, not bulk thermodynamic-limit claims.
49
+
50
+ ## Reproduction
51
+
52
+ - `run_submission.sh` recomputes Ne2/Ne4 from scratch in minutes.
53
+ - `run_full.sh` additionally validates 12 published ku-ku rectangular
54
+ reference rows and the free-fermion controls.
55
+ - `run_sectors.sh` validates the independent sector solver on published 4x4/5x4
56
+ energies, regenerates the Ne5 orbit and proof witnesses, freshly solves the
57
+ Ne6 (5,1) sector, and constructs/measures the SU(2)-lowered (4,2)/(3,3)
58
+ witnesses including correlators.
methods/WiktorMatuszek/expected/pd6x6_up2_dn2.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sector": [
3
+ 2,
4
+ 2
5
+ ],
6
+ "dim": 396900,
7
+ "evals": [
8
+ -13.72674990524497,
9
+ -13.715859171684587,
10
+ -13.712392901742648,
11
+ -13.63197697346499
12
+ ],
13
+ "residual": 2.5817015575532995e-14,
14
+ "P_org_R(3, 3)": 0.0024407125165524755,
15
+ "P_org_R(3, 0)": 0.0029485538559359007,
16
+ "P_org_R(0, 3)": 0.0029485538559359346,
17
+ "P_org_R(2, 2)": 0.002691227277615856,
18
+ "P_org_R(1, 0)": 0.0033415711860801745
19
+ }
methods/WiktorMatuszek/expected/pd6x6_up3_dn2.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sector": [
3
+ 3,
4
+ 2
5
+ ],
6
+ "dim": 4498200,
7
+ "evals": [
8
+ -16.606552964131627,
9
+ -16.60655296413162,
10
+ -16.533740171699453,
11
+ -16.53374017169944
12
+ ],
13
+ "residual": 3.469654387426891e-14,
14
+ "P_org_R(3, 3)": -0.0004894962398948121,
15
+ "P_org_R(3, 0)": 0.00024835989311160407,
16
+ "P_org_R(0, 3)": -0.0002064753602071994,
17
+ "P_org_R(2, 2)": -0.00023972262733822677,
18
+ "P_org_R(1, 0)": 0.0004702033581823371,
19
+ "note": "frozen Krylov evidence captured two numerical ground copies; the fixed-sector ground-manifold rank is four by the executable symmetry-orbit/exact-arithmetic proof in proof/"
20
+ }
methods/WiktorMatuszek/free_pair_control.py ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ import math
4
+ from typing import Sequence
5
+
6
+ import numpy as np
7
+
8
+
9
+ D_WAVE_BONDS = ((1, 0, 1), (-1, 0, 1), (0, 1, -1), (0, -1, -1))
10
+
11
+
12
+ def square_lattice_states(size: int = 6) -> list[tuple[float, float, float]]:
13
+ if size <= 0:
14
+ raise ValueError("size must be positive")
15
+ return [
16
+ (
17
+ 2.0 * math.pi * ix / size,
18
+ 2.0 * math.pi * iy / size,
19
+ -2.0
20
+ * (
21
+ math.cos(2.0 * math.pi * ix / size)
22
+ + math.cos(2.0 * math.pi * iy / size)
23
+ ),
24
+ )
25
+ for ix in range(size)
26
+ for iy in range(size)
27
+ ]
28
+
29
+
30
+ def _energy_shells(
31
+ states: Sequence[tuple[float, float, float]], tolerance: float = 1e-10
32
+ ) -> list[list[int]]:
33
+ ordered = sorted(range(len(states)), key=lambda index: states[index][2])
34
+ shells: list[list[int]] = []
35
+ for index in ordered:
36
+ if not shells or abs(states[index][2] - states[shells[-1][0]][2]) > tolerance:
37
+ shells.append([index])
38
+ else:
39
+ shells[-1].append(index)
40
+ return shells
41
+
42
+
43
+ def symmetric_occupations(electrons: int, size: int = 6) -> np.ndarray:
44
+ """Return the exact canonical mean occupation for one fixed-N spin sector."""
45
+ if electrons < 0 or electrons > 2 * size * size or electrons % 2:
46
+ raise ValueError("electrons must be an even number in [0, 2 * size**2]")
47
+ states = square_lattice_states(size)
48
+ remaining = electrons // 2
49
+ occupations = np.zeros(len(states), dtype=float)
50
+ for shell in _energy_shells(states):
51
+ if remaining >= len(shell):
52
+ occupations[shell] = 1.0
53
+ remaining -= len(shell)
54
+ elif remaining:
55
+ occupations[shell] = remaining / len(shell)
56
+ remaining = 0
57
+ if not remaining:
58
+ break
59
+ return occupations
60
+
61
+
62
+ def one_body_density(
63
+ occupations: Sequence[float],
64
+ displacement: tuple[int, int],
65
+ size: int = 6,
66
+ ) -> complex:
67
+ states = square_lattice_states(size)
68
+ if len(occupations) != len(states):
69
+ raise ValueError("occupation vector does not match the lattice")
70
+ dx, dy = displacement
71
+ return sum(
72
+ occupation * np.exp(1j * (kx * dx + ky * dy))
73
+ for (kx, ky, _), occupation in zip(states, occupations)
74
+ ) / len(states)
75
+
76
+
77
+ def spin_resolved_d_wave_pair_correlation(
78
+ occupations_up: Sequence[float],
79
+ occupations_down: Sequence[float],
80
+ displacement: tuple[int, int],
81
+ size: int = 6,
82
+ ) -> float:
83
+ """Evaluate the real singlet d-wave Wick correlator for two spin sectors."""
84
+ rx, ry = displacement
85
+
86
+ def g_up(x: int, y: int) -> complex:
87
+ return one_body_density(occupations_up, (x, y), size)
88
+
89
+ def g_down(x: int, y: int) -> complex:
90
+ return one_body_density(occupations_down, (x, y), size)
91
+
92
+ value = 0.0j
93
+ for dx, dy, form in D_WAVE_BONDS:
94
+ for ex, ey, other_form in D_WAVE_BONDS:
95
+ direct = 0.5 * (
96
+ g_up(-rx, -ry) * g_down(dx - ex - rx, dy - ey - ry)
97
+ + g_down(-rx, -ry) * g_up(dx - ex - rx, dy - ey - ry)
98
+ )
99
+ exchange = 0.5 * (
100
+ g_up(dx - rx, dy - ry) * g_down(-rx - ex, -ry - ey)
101
+ + g_down(dx - rx, dy - ry) * g_up(-rx - ex, -ry - ey)
102
+ )
103
+ value += form * other_form * (direct + exchange)
104
+ value /= 4.0
105
+ return float(value.real)
106
+
107
+
108
+ def d_wave_pair_correlation(
109
+ occupations: Sequence[float],
110
+ displacement: tuple[int, int],
111
+ size: int = 6,
112
+ ) -> float:
113
+ """Evaluate the spin-symmetric U=0 singlet d-wave Wick correlator.
114
+
115
+ The d-wave field is one half the signed sum of normalized singlet bonds
116
+ along +x, -x, +y, and -y. Occupations are per spin. Taking the real part
117
+ is equivalent to inversion symmetrization for current-carrying shell states.
118
+ """
119
+ return spin_resolved_d_wave_pair_correlation(
120
+ occupations, occupations, displacement, size
121
+ )
methods/WiktorMatuszek/material_ne4.py ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Apply the exact 6x6 Ne4 model to the pinned organizer active bin.
2
+ Finite-cluster calibration estimate; no request to override canonical scores.
3
+ """
4
+ import argparse,csv,hashlib,io,json,subprocess,sys,time
5
+ from pathlib import Path
6
+ from decimal import Decimal as D
7
+ PIN="58a29875a8a07ed5525758a95b0d93be32478cd391d1a57893332e3027728b43"
8
+ SOLVER_PIN="7feddeaef7c97cda3d0bf8d5ad62b048e9ab197525b1230c6f52c3a57e1ac35f"
9
+ REV="4a3659f32ecd5737bfdbadad6aff6da16a29c0cc"
10
+ SNAPSHOTS={PIN:(REV,1073),"659f31464d17e40a33c055310073ab77a7d3a92be45b69081752d2d9bbf70729":("12b7f85535a7a89faddd4eacde2eb997f89a7d9f",1076)}
11
+ def require(ok,msg):
12
+ if not ok: raise ValueError(msg)
13
+ def read_materials(path,requested=None):
14
+ raw=path.read_bytes()
15
+ digest=hashlib.sha256(raw).hexdigest()
16
+ require(digest in SNAPSHOTS,"DATA_PIN")
17
+ revision,count=SNAPSHOTS[digest]
18
+ rows=list(csv.DictReader(io.StringIO(raw.decode())))
19
+ require(len(rows)==count,"ACTIVE_COUNT")
20
+ selected=[r for r in rows if D(r["solver_delta"])==D("0.8889")]
21
+ require(len(selected)==3,"NE4_BIN_COUNT")
22
+ if requested is not None:
23
+ selected=[r for r in selected if r["osc_id"]==requested]
24
+ require(len(selected)==1,"NOT_NE4_BIN")
25
+ for r in selected:
26
+ n=D(r["n_band"]); delta=D(r["delta_hole"])
27
+ require(abs((1-n)-delta)<=D("0.0001"),"FILLING_CONVENTION")
28
+ folded=min(n,2-n)
29
+ require(abs(folded*36-4)<1,"NOT_NEAREST_EVEN_NE4")
30
+ require(D(r["U_over_t"])==8 and abs(D(r["U_ev"])-8*D(r["t_ev"]))<=D("0.00005"),"U_OVER_T")
31
+ require(D(r["nef"])>=0,"NEF")
32
+ return selected,revision,digest
33
+ def main():
34
+ ap=argparse.ArgumentParser(description=__doc__)
35
+ ap.add_argument("csv",type=Path)
36
+ ap.add_argument("--material")
37
+ a=ap.parse_args(); start=time.monotonic()
38
+ rows,revision,digest=read_materials(a.csv,a.material)
39
+ solver=Path(__file__).with_name("cpu_6x6_ne4.py")
40
+ require(hashlib.sha256(solver.read_bytes()).hexdigest()==SOLVER_PIN,"SOLVER_PIN")
41
+ cmd=[sys.executable]+(["-O"] if sys.flags.optimize else [])+[str(solver)]
42
+ ed=json.loads(subprocess.check_output(cmd,text=True))
43
+ require(ed["dimension"]==396900 and ed["ground_multiplicity"]==1 and ed["max_residual"]<1e-8,"ED_GATE")
44
+ ad=2*D(str(ed["Pd33"])) # normalization independently checked on 4x4, extrapolation of convention, not accepted correction
45
+ require(ad>0,"NE4_SIGN")
46
+ result=[]
47
+ for r in rows:
48
+ nef=D(r["nef"]); base=D(r["A_dwave"])
49
+ result.append(dict(osc_id=r["osc_id"],material_id=r["material_id"],formula=r["formula"],n_band=r["n_band"],solver_delta=r["solver_delta"],nef=r["nef"],canonical_Ad=str(base),canonical_formula_score=str(300*nef*max(D(0),base)),model_Ad_org=str(ad),model_formula_score=str(300*nef*ad)))
50
+ registration=Path(__file__).with_name("submission_gold_OSC-01756.json")
51
+ if any(r["osc_id"]=="OSC-01756" for r in result) and registration.is_file():
52
+ sub=json.loads(registration.read_text())
53
+ row=next(r for r in result if r["osc_id"]=="OSC-01756")
54
+ require(sub["track"]=="gold" and sub["author"]=="WiktorMatuszek","REGISTRATION_IDENTITY")
55
+ require(sub["osc_id"]=="OSC-01756" and sub["material_id"]==row["material_id"],"REGISTRATION_MATERIAL")
56
+ require(D(str(sub["nef"]))==D(row["nef"]) and D(str(sub["t"]))==D("0.23531") and D(str(sub["U"]))==D("1.88248"),"REGISTRATION_INPUT")
57
+ require(D(str(sub["A_dwave"]))==D(row["model_Ad_org"]).quantize(D("0.00000001")),"REGISTRATION_AD")
58
+ require(D(str(sub["provisional_score"]))==D(row["model_formula_score"]).quantize(D("0.001")),"REGISTRATION_SCORE")
59
+ print(json.dumps(dict(status="FINITE_CLUSTER_CALIBRATION_ESTIMATE",source_revision=revision,source_sha256=digest,solver_sha256=SOLVER_PIN,scope="nearest even Ne4 bin; pinned organizer t,U,nef; no independent DFT, official score or bulk claim",ed=ed,materials=sorted(result,key=lambda x:x["osc_id"]),elapsed_s=time.monotonic()-start),indent=2,sort_keys=True))
60
+ if __name__=="__main__": main()
methods/WiktorMatuszek/ne5_orbit.py ADDED
@@ -0,0 +1,160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Construct the four-dimensional Ne5 ground-state symmetry orbit on the 6x6 cluster.
3
+
4
+ This is the heavy numerical stage of the Ne5 proof. It diagonalizes the
5
+ U/t=8 sector (Nup,Ndown)=(3,2), expands the lowest Ritz vector by the lattice
6
+ symmetries, verifies orthogonality/closure/residuals, evaluates the projected
7
+ scoring pair operator, and writes `orbit_vectors.npy` for the exact-arithmetic
8
+ witness scripts in proof/.
9
+ """
10
+ import json
11
+ import math
12
+ import sys
13
+ import time
14
+ from pathlib import Path
15
+
16
+ import numpy as np
17
+ from scipy.sparse.linalg import LinearOperator, eigsh
18
+
19
+ from su2_ladder import basis, hop, pair, locate, parity
20
+
21
+ L = 36
22
+ NUP, NDOWN = 3, 2
23
+ UP, DOWN = basis(NUP), basis(NDOWN)
24
+ SHAPE = (len(UP), len(DOWN))
25
+ DIM = math.prod(SHAPE)
26
+ KUP, KDOWN = hop(NUP), hop(NDOWN)
27
+ DOCC = np.bitwise_count(UP[:, None] & DOWN[None, :]).astype(np.uint8)
28
+ TARGET_E0 = -16.606552964131627
29
+ TARGET_P = -0.0004894962398948123
30
+
31
+
32
+ def require(ok, msg):
33
+ if not ok:
34
+ raise RuntimeError(msg)
35
+
36
+
37
+ def matvec(x):
38
+ v = x.reshape(SHAPE)
39
+ return (KUP @ v + (KDOWN @ v.T).T + 8 * DOCC * v).ravel()
40
+
41
+
42
+ def permutation(n, sites):
43
+ masks = basis(n)
44
+ out = np.zeros_like(masks)
45
+ signs = np.ones(len(masks), dtype=np.int8)
46
+ for i in range(L):
47
+ occupied = (masks >> i) & 1
48
+ dest = sites[i]
49
+ signs *= np.where(occupied, parity(out >> dest), 1).astype(np.int8)
50
+ out |= occupied.astype(np.uint64) << dest
51
+ return locate(n, out), signs
52
+
53
+
54
+ def transform(v, sites):
55
+ x, s = permutation(NUP, sites)
56
+ y, t = permutation(NDOWN, sites)
57
+ out = np.empty(SHAPE)
58
+ out[np.ix_(x, y)] = v.reshape(SHAPE) * s[:, None] * t[None, :]
59
+ return out.ravel()
60
+
61
+
62
+ def main():
63
+ start = time.monotonic()
64
+ if len(sys.argv) != 2:
65
+ raise SystemExit("usage: ne5_orbit.py OUTPUT_DIR")
66
+ dest = Path(sys.argv[1])
67
+ dest.mkdir(exist_ok=True, parents=True)
68
+
69
+ rng = np.random.default_rng(20261125)
70
+ x0 = rng.standard_normal(DIM)
71
+ x0 /= np.linalg.norm(x0)
72
+ ops = {
73
+ "Tx": [(i % 6 + 1) % 6 + 6 * (i // 6) for i in range(L)],
74
+ "Ty": [i % 6 + 6 * ((i // 6 + 1) % 6) for i in range(L)],
75
+ "C4": [(-(i // 6)) % 6 + 6 * (i % 6) for i in range(L)],
76
+ }
77
+ comm = {
78
+ name: float(np.linalg.norm(matvec(transform(x0, sites)) - transform(matvec(x0), sites)))
79
+ for name, sites in ops.items()
80
+ }
81
+ require(max(comm.values()) < 1e-10, "Hamiltonian symmetry")
82
+
83
+ vals, vecs = eigsh(
84
+ LinearOperator((DIM, DIM), matvec=matvec, dtype=np.float64),
85
+ k=2, ncv=20, v0=x0, tol=1e-10, which="SA",
86
+ )
87
+ order = np.argsort(vals)
88
+ vals, vecs = vals[order], vecs[:, order]
89
+ np.save(dest / "ritz_vectors.npy", vecs)
90
+ np.save(dest / "ritz_values.npy", vals)
91
+
92
+ energy = float(vals[0])
93
+ require(abs(energy - TARGET_E0) < 1e-8, "Ne5 target energy")
94
+ orbit = []
95
+ additions = []
96
+
97
+ def add(v, tag):
98
+ for _ in range(2):
99
+ for w in orbit:
100
+ v -= np.dot(w, v) * w
101
+ norm = float(np.linalg.norm(v))
102
+ if norm > 1e-7:
103
+ v /= norm
104
+ residual = float(np.linalg.norm(matvec(v) - energy * v))
105
+ require(residual < 1e-6, "orbit residual " + tag)
106
+ orbit.append(v)
107
+ additions.append({"origin": tag, "new_norm": norm, "residual": residual})
108
+
109
+ for j in range(len(vals)):
110
+ if abs(vals[j] - energy) < 1e-7:
111
+ add(vecs[:, j].copy(), "ritz" + str(j))
112
+ j = 0
113
+ while j < len(orbit):
114
+ require(len(orbit) <= 16, "orbit rank limit")
115
+ for name, sites in ops.items():
116
+ add(transform(orbit[j], sites), name + str(j))
117
+ j += 1
118
+
119
+ require(len(orbit) == 4, "expected rank-four Ne5 orbit")
120
+ W = np.column_stack(orbit)
121
+ np.save(dest / "orbit_vectors.npy", W)
122
+
123
+ closure = {}
124
+ for name, sites in ops.items():
125
+ T = np.column_stack([transform(w, sites) for w in orbit])
126
+ M = W.T @ T
127
+ closure[name] = float(np.linalg.norm(T - W @ M))
128
+
129
+ C = np.zeros((len(orbit), len(orbit)))
130
+ for i in range(L):
131
+ j = ((i % 6 + 3) % 6) + 6 * ((i // 6 + 3) % 6)
132
+ if i >= j:
133
+ continue
134
+ X = np.column_stack([pair(w.reshape(SHAPE), NUP, NDOWN, i).ravel() for w in orbit])
135
+ Y = np.column_stack([pair(w.reshape(SHAPE), NUP, NDOWN, j).ravel() for w in orbit])
136
+ C += (X.T @ Y + Y.T @ X) / 18
137
+ eigvals = np.linalg.eigvalsh(C)
138
+ require(np.max(np.abs(eigvals - TARGET_P)) < 1e-10, "projected pair scalar")
139
+ orthogonality = float(np.linalg.norm(W.T @ W - np.eye(len(orbit))))
140
+
141
+ out = {
142
+ "dimension": DIM,
143
+ "ritz_values": vals.tolist(),
144
+ "commutators": comm,
145
+ "orbit_rank": len(orbit),
146
+ "additions": additions,
147
+ "closure": closure,
148
+ "projected_pair": C.tolist(),
149
+ "projected_pair_eigenvalues": eigvals.tolist(),
150
+ "orthogonality": orthogonality,
151
+ "target_pair": TARGET_P,
152
+ "seconds": time.monotonic() - start,
153
+ "scope": "numerical symmetry orbit used as input to the exact-arithmetic Ne5 witnesses",
154
+ }
155
+ (dest / "result.json").write_text(json.dumps(out, indent=2) + "\n")
156
+ print(json.dumps(out, indent=2), flush=True)
157
+
158
+
159
+ if __name__ == "__main__":
160
+ main()
methods/WiktorMatuszek/pd_eval.py ADDED
@@ -0,0 +1,219 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Exact ED + organizer-normalized d-wave pair correlation P_d(R).
3
+
4
+ Implements the exact scoring observable of the OSC contest:
5
+ Delta_d(i) = (1/2) sum_delta g(delta) b_{i,i+delta}
6
+ b_ij = (c_i-up c_j-dn + c_j-up c_i-dn)/sqrt2, g(+/-x)=+1, g(+/-y)=-1
7
+ P_d(R) = <Delta_d(j)+ Delta_d(i)> averaged over pairs separated by R
8
+ P_org = 2 * P_d (organizer normalization, ku-ku analytic derivation)
9
+
10
+ Validation targets: published ku-ku multisize ED reference rows; the
11
+ executable rectangular-row checks are embedded in validate_kuku.py.
12
+ """
13
+ from __future__ import annotations
14
+ import argparse, json, math, time
15
+ from itertools import combinations
16
+ from pathlib import Path
17
+ import numpy as np
18
+ from scipy import sparse
19
+ from scipy.sparse.linalg import LinearOperator, eigsh
20
+
21
+
22
+ def spin_states(nsites, nfermions):
23
+ if nfermions == 0:
24
+ return np.array([0], dtype=np.uint64)
25
+ masks = np.fromiter((sum(1 << p for p in sites)
26
+ for sites in combinations(range(nsites), nfermions)),
27
+ dtype=np.uint64, count=math.comb(nsites, nfermions))
28
+ return masks
29
+
30
+
31
+ def make_lattice(nx, ny):
32
+ def site(x, y): return (x % nx) + nx * (y % ny)
33
+ bonds = []
34
+ for i in range(nx * ny):
35
+ x, y = i % nx, i // nx
36
+ bonds.append((i, site(x + 1, y)))
37
+ bonds.append((i, site(x, y + 1)))
38
+ return bonds
39
+
40
+
41
+ def one_spin_hopping(nx, ny, basis, t=1.0):
42
+ lookup = {int(m): i for i, m in enumerate(basis)}
43
+ src, dst, amp = [], [], []
44
+ for ci, mu in enumerate(basis):
45
+ mask = int(mu)
46
+ for a, b in make_lattice(nx, ny):
47
+ if not ((mask >> a) ^ (mask >> b)) & 1:
48
+ continue
49
+ out = mask ^ ((1 << a) | (1 << b))
50
+ below = ((1 << max(a, b)) - 1) ^ ((1 << (min(a, b) + 1)) - 1)
51
+ sign = -1.0 if (mask & below).bit_count() % 2 else 1.0
52
+ src.append(lookup[out]); dst.append(ci); amp.append(-t * sign)
53
+ K = sparse.coo_matrix((amp, (src, dst)), shape=(len(basis), len(basis)), dtype=np.float64).tocsr()
54
+ K.sum_duplicates()
55
+ return K
56
+
57
+
58
+ class SectorHubbard:
59
+ def __init__(self, nx, ny, nup, ndown, U=8.0):
60
+ self.nx, self.ny = nx, ny
61
+ self.nup, self.ndown = nup, ndown
62
+ self.U = float(U)
63
+ self.bup = spin_states(nx * ny, nup)
64
+ self.bdn = spin_states(nx * ny, ndown)
65
+ self.sup, self.sdn = len(self.bup), len(self.bdn)
66
+ self.dim = self.sup * self.sdn
67
+ self.kup = one_spin_hopping(nx, ny, self.bup)
68
+ self.kdn = one_spin_hopping(nx, ny, self.bdn)
69
+ bu = self.bup.astype(np.uint64)
70
+ bd = self.bdn.astype(np.uint64)
71
+ self.docc = np.bitwise_count(np.bitwise_and(bu[:, None], bd[None, :])).astype(np.uint8)
72
+ self.lop = LinearOperator((self.dim, self.dim), matvec=self.matvec, dtype=np.float64)
73
+
74
+ def matvec(self, flat):
75
+ v = np.asarray(flat, dtype=np.float64).reshape(self.sup, self.sdn)
76
+ out = self.kup @ v
77
+ out += (self.kdn @ v.T).T
78
+ if self.U:
79
+ out += self.U * self.docc * v
80
+ return out.reshape(-1)
81
+
82
+ def solve(self, k=1, seed=0, tol=1e-12, maxiter=None):
83
+ rng = np.random.default_rng(seed)
84
+ v0 = rng.standard_normal(self.dim)
85
+ v0 /= np.linalg.norm(v0)
86
+ ncv = min(self.dim, max(2 * k + 2, 20))
87
+ t0 = time.time()
88
+ vals, vecs = eigsh(self.lop, k=k, which='SA', v0=v0, ncv=ncv, tol=tol, maxiter=maxiter)
89
+ order = np.argsort(vals)
90
+ vals = vals[order]; vecs = vecs[:, order]
91
+ r = self.lop @ vecs[:, 0] - vals[0] * vecs[:, 0]
92
+ res = float(np.linalg.norm(r))
93
+ return {'E0': float(vals[0]), 'residual': res, 'time_s': time.time() - t0,
94
+ 'evals': [float(x) for x in vals]}, vecs
95
+
96
+
97
+ def annihilate_one(mask, pos):
98
+ """c_pos |mask> -> (sign, outmask) or None if empty. Standard fermionic sign."""
99
+ if not (mask >> pos) & 1:
100
+ return None
101
+ below = (1 << pos) - 1
102
+ sign = -1 if (mask & below).bit_count() % 2 else 1
103
+ return sign, mask ^ (1 << pos)
104
+
105
+
106
+ def build_pair_ops(nx, ny, bup_src, bdn_src, bup_tgt, bdn_tgt):
107
+ """Build application data for Delta_d(i) for all i.
108
+
109
+ For each bond endpoint structure we precompute, for the up-species and
110
+ down-species separately, sparse annihilation matrices A_up[pos] mapping
111
+ source up-basis -> target up-basis (c_pos), similarly A_dn[pos].
112
+ Then Delta_d(i) = (1/(2 sqrt2)) sum_delta g(delta) *
113
+ [ c^up_i (x) c^dn_{i+delta} + c^up_{i+delta} (x) c^dn_i ]
114
+ where (x) is tensor product. In matrix form over (up,dn) reshaped arrays:
115
+ contribution = A_up[a] @ V @ A_dn[b].T (for term c^up_a c^dn_b)
116
+ """
117
+ A_up = {}
118
+ lu_t = {int(m): ix for ix, m in enumerate(bup_tgt)}
119
+ for pos in range(nx * ny):
120
+ rows, cols, vals = [], [], []
121
+ for ci, mu in enumerate(bup_src):
122
+ r = annihilate_one(int(mu), pos)
123
+ if r is None:
124
+ continue
125
+ sign, outm = r
126
+ ti = lu_t.get(outm)
127
+ if ti is not None:
128
+ rows.append(ti); cols.append(ci); vals.append(float(sign))
129
+ A_up[pos] = sparse.coo_matrix((vals, (rows, cols)),
130
+ shape=(len(bup_tgt), len(bup_src)), dtype=np.float64).tocsr()
131
+ A_dn = {}
132
+ ld_t = {int(m): ix for ix, m in enumerate(bdn_tgt)}
133
+ for pos in range(nx * ny):
134
+ rows, cols, vals = [], [], []
135
+ for ci, mu in enumerate(bdn_src):
136
+ r = annihilate_one(int(mu), pos)
137
+ if r is None:
138
+ continue
139
+ sign, outm = r
140
+ ti = ld_t.get(outm)
141
+ if ti is not None:
142
+ rows.append(ti); cols.append(ci); vals.append(float(sign))
143
+ A_dn[pos] = sparse.coo_matrix((vals, (rows, cols)),
144
+ shape=(len(bdn_tgt), len(bdn_src)), dtype=np.float64).tocsr()
145
+ return A_up, A_dn
146
+
147
+
148
+ def delta_apply(V, A_up, A_dn, nx, ny, i):
149
+ """Delta_d(i) acting on state V (sup_src, sdn_src) -> (sup_tgt, sdn_tgt).
150
+
151
+ Delta_d(i) = (1/2) sum_delta g(delta) b_{i,i+delta}
152
+ b_{i,j} = (c^up_i c^dn_j + c^up_j c^dn_i)/sqrt2
153
+ Note operator ordering: rightmost applied first; species independent so no cross sign.
154
+ """
155
+ x, y = i % nx, i // nx
156
+ L = nx * ny
157
+ def site(xx, yy): return (xx % nx) + nx * (yy % ny)
158
+ out = None
159
+ pref = 1.0 / (2.0 * math.sqrt(2.0))
160
+ for dx, dy, g in ((1, 0, 1.0), (-1, 0, 1.0), (0, 1, -1.0), (0, -1, -1.0)):
161
+ j = site(x + dx, y + dy)
162
+ # term1: c^up_i c^dn_j ; term2: c^up_j c^dn_i
163
+ t1 = (A_up[i] @ V) @ A_dn[j].T
164
+ t2 = (A_up[j] @ V) @ A_dn[i].T
165
+ contrib = pref * g * (t1 + t2)
166
+ out = contrib if out is None else out + contrib
167
+ return out
168
+
169
+
170
+ def pd_exact(nx, ny, nup, ndown, R, U=8.0, seed=0):
171
+ """Full pipeline: solve ground state in balanced sector, evaluate P_org at displacement R."""
172
+ t0 = time.time()
173
+ h = SectorHubbard(nx, ny, nup, ndown, U=U)
174
+ res, vecs = h.solve(k=1, seed=seed)
175
+ v = vecs[:, 0].reshape(h.sup, h.sdn)
176
+ # target sector bases
177
+ bup_t = spin_states(nx * ny, nup - 1)
178
+ bdn_t = spin_states(nx * ny, ndown - 1)
179
+ A_up, A_dn = build_pair_ops(nx, ny, h.bup, h.bdn, bup_t, bdn_t)
180
+ L = nx * ny
181
+ dx, dy = R
182
+ # phi_i = Delta_d(i) v for all i ; then P = (1/L) sum_i <phi_{i+R} | phi_i>
183
+ phis = []
184
+ for i in range(L):
185
+ phis.append(delta_apply(v, A_up, A_dn, nx, ny, i))
186
+ acc = 0.0
187
+ for i in range(L):
188
+ x, y = i % nx, i // nx
189
+ j = ((x + dx) % nx) + nx * ((y + dy) % ny)
190
+ acc += float(np.vdot(phis[j].ravel(), phis[i].ravel()).real)
191
+ pd_ours = acc / L
192
+ return {
193
+ 'nx': nx, 'ny': ny, 'nup': nup, 'ndown': ndown, 'U': U, 'R': list(R),
194
+ 'E0': res['E0'], 'residual': res['residual'],
195
+ 'P_ours': pd_ours, 'P_org': 2.0 * pd_ours,
196
+ 'time_s': time.time() - t0, 'dim': h.dim,
197
+ }
198
+
199
+
200
+ def main():
201
+ ap = argparse.ArgumentParser()
202
+ ap.add_argument('--nx', type=int, required=True)
203
+ ap.add_argument('--ny', type=int, required=True)
204
+ ap.add_argument('--nup', type=int, required=True)
205
+ ap.add_argument('--ndown', type=int, required=True)
206
+ ap.add_argument('--rx', type=int, required=True)
207
+ ap.add_argument('--ry', type=int, required=True)
208
+ ap.add_argument('--U', type=float, default=8.0)
209
+ ap.add_argument('--seed', type=int, default=0)
210
+ ap.add_argument('--out', type=Path, default=None)
211
+ args = ap.parse_args()
212
+ r = pd_exact(args.nx, args.ny, args.nup, args.ndown, (args.rx, args.ry), U=args.U, seed=args.seed)
213
+ print(json.dumps(r, indent=1), flush=True)
214
+ if args.out:
215
+ args.out.write_text(json.dumps(r, indent=1))
216
+
217
+
218
+ if __name__ == '__main__':
219
+ main()
methods/WiktorMatuszek/proof/README.md ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Ne5 computer-assisted exact-arithmetic certificate
2
+
3
+ This directory contains the exact-arithmetic part of the Ne5 certificate. It
4
+ is deliberately separate from the heavy floating-point diagonalization. The
5
+ certificate is computer-assisted: `../ne5_orbit.py` produces a numerical vector
6
+ and symmetry orbit, while the scripts here use exact integer, rational or
7
+ outward-rounded interval arithmetic for the decisive inequalities. It is a
8
+ finite-cluster certificate for the stated periodic 6x6 Hubbard model, not a
9
+ bulk thermodynamic-limit result.
10
+
11
+ ## Logical structure
12
+
13
+ 1. `../ne5_orbit.py` diagonalizes the fixed `(Nup,Ndown)=(3,2)` sector at
14
+ U/t=8, expands the lowest Ritz vector by lattice translations and C4,
15
+ verifies commutators, residuals, orthogonality and closure, evaluates the
16
+ projected pair operator, and writes `orbit_vectors.npy`.
17
+ 2. `ne5_independent.py` works in the momentum representation. The kinetic
18
+ part is diagonal; the interaction is the momentum-conserving scattering
19
+ matrix. For the relevant total-momentum representatives it constructs
20
+ rational Schur-comparison matrices and counts negative pivots with
21
+ outward-rounded interval LDL inertia. Because at most two down electrons
22
+ permit at most double occupation in this sector, the interaction expansion
23
+ closes exactly at quadratic order; the matrices are then cleared to exact
24
+ integers before interval inertia. The construction is cross-checked against
25
+ a direct independent single-excitation scattering enumeration in
26
+ `ne5_scattering.py`.
27
+ 3. Kinetic exclusion leaves only the eight-member q=(2,1) momentum star and
28
+ the four-member q=(1,0) momentum star as possible sectors below the
29
+ threshold. The interval replay certifies zero states below `-83/5` in the
30
+ q=(2,1) representative and at most one in the q=(1,0) representative.
31
+ 4. `ne5_rayleigh.py` quantizes a generated orbit vector and computes an exact
32
+ integer Rayleigh quotient strictly below that threshold. This proves that
33
+ at least one low state exists. Since none can lie in the q=(2,1) star, it
34
+ lies in the q=(1,0) star; lattice translation then propagates it through
35
+ four orthogonal momentum sectors, while the per-sector inertia count excludes
36
+ a fifth independent low state.
37
+ 5. `ne5_spin.py` uses exact integer arithmetic on the spin-raised witness and
38
+ the fully polarized lower bound to support the S=3/2 assignment and the
39
+ strict gap scale used by the raw-correlator enclosure.
40
+ 6. `ne5_exact_raw.py` independently quantizes the same generated vector at
41
+ `2^50` and evaluates all Hamiltonian moments and pair contractions in Python
42
+ arbitrary-precision integers. It combines the residual/gap scale with an
43
+ exact operator-norm witness to emit a rigorous negative-sign enclosure for
44
+ raw `P_org(R=(3,3))` on the quantized-vector ray.
45
+
46
+ The numerical symmetry orbit is evidence for the explicit rank-four basis and
47
+ for the scalar projected pair operator. The exact scripts do not import an
48
+ archived private vector or hard-code its hash; they hash and analyze the vector
49
+ regenerated in step 1. quantization is explicit and the Rayleigh/sign bounds
50
+ are inequalities for the quantized vector, not hidden floating-point equality
51
+ assumptions.
52
+
53
+ Pipeline executed by `../run_sectors.sh` after the numerical orbit solve:
54
+
55
+ ```sh
56
+ python3 ne5_independent.py
57
+ python3 ne5_rayleigh.py ORBIT_VECTORS_NPY
58
+ python3 ne5_spin.py ORBIT_VECTORS_NPY
59
+ python3 ne5_exact_raw.py ORBIT_VECTORS_NPY
60
+ ```
61
+
62
+ Expected runtime after the orbit solve: a few minutes on one modern CPU core,
63
+ dominated by exact integer contractions and Schur inertia replay.
methods/WiktorMatuszek/proof/ne5_exact_raw.py ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Self-contained exact integer raw-R33 contraction for a generated Ne5 orbit vector.
2
+
3
+ The input vector is quantized exactly at 2^50. All Hamiltonian moments and
4
+ pair contractions are then evaluated with Python arbitrary-precision integers.
5
+ """
6
+ import hashlib,itertools,json,sys,math
7
+ from pathlib import Path
8
+ from fractions import Fraction as F
9
+ import numpy as np
10
+
11
+
12
+ def req(x,m):
13
+ if not x: raise ValueError(m)
14
+ def dot(a,b):
15
+ # Python arbitrary-precision integers; no limb arithmetic or BLAS.
16
+ return sum(int(x)*int(y) for x,y in zip(a.ravel(),b.ravel(),strict=True))
17
+ def states(k): return list(itertools.combinations(range(36),k))
18
+ def adj(i):
19
+ x,y=i%6,i//6
20
+ return ((x+1)%6+6*y,(x-1)%6+6*y,x+6*((y+1)%6),x+6*((y-1)%6))
21
+ def hop(st):
22
+ lookup={v:i for i,v in enumerate(st)}
23
+ rows=[]; cols=[]; data=[]
24
+ for a,s in enumerate(st):
25
+ for k,i in enumerate(s):
26
+ for j in adj(i):
27
+ if j in s: continue
28
+ t=tuple(sorted(s[:k]+s[k+1:]+(j,)))
29
+ rows.append(lookup[t]); cols.append(a)
30
+ data.append(-(-1)**(k+t.index(j)))
31
+ edges={(i,j):v for i,j,v in zip(rows,cols,data)}
32
+ req(len(edges)==len(rows) and all(edges.get((j,i))==v for (i,j),v in edges.items()),'Hermitian hop')
33
+ groups=[[] for _ in st]
34
+ for i,j,v in zip(rows,cols,data): groups[i].append((j,v))
35
+ def apply(q):
36
+ out=np.zeros_like(q)
37
+ for k in range(max(map(len,groups))):
38
+ idx=np.array([i for i,g in enumerate(groups) if len(g)>k]); dest=np.array([groups[i][k] for i in idx]); out[idx]+=dest[:,1,None]*q[dest[:,0]]
39
+ return out
40
+ return apply
41
+ def removals(st,lo):
42
+ ix={s:k for k,s in enumerate(lo)}
43
+ out=[[] for _ in range(36)]
44
+ for k,s in enumerate(st):
45
+ for j,i in enumerate(s):
46
+ out[i].append((k,ix[s[:j]+s[j+1:]],(-1)**j))
47
+ return [np.array(a,dtype=np.int64).T for a in out]
48
+ def norm_witness():
49
+ # B = c_1 c_0 + c_3 c_2, after reordering four orthonormal modes.
50
+ B=np.zeros((16,16),dtype=np.int64)
51
+ for s in range(16):
52
+ for a,b in ((0,1),(2,3)):
53
+ t=s; sign=1
54
+ for i in (a,b):
55
+ if not t&(1<<i): break
56
+ sign*=(-1)**((t&((1<<i)-1)).bit_count()); t^=1<<i
57
+ else: B[t,s]+=sign
58
+ M=B.T@B; I=np.eye(16,dtype=np.int64)
59
+ req(np.all(M@(M-I)@(M-2*I)==0),'CAR norm polynomial')
60
+ req(np.max(np.sum(abs(M),axis=1))==2,'norm witness')
61
+ return 2 # B^*B <= 2 I; A=B/sqrt(2), norm <=1
62
+ def main():
63
+ if len(sys.argv) != 2:
64
+ raise SystemExit("usage: ne5_exact_raw.py ORBIT_VECTORS_NPY")
65
+ p=Path(sys.argv[1])
66
+ with p.open('rb') as f: sh=hashlib.file_digest(f,'sha256').hexdigest()
67
+ w=np.load(p,mmap_mode='r',allow_pickle=False)
68
+ req(w.shape==(4498200,4) and np.isfinite(w[:,0]).all(),'shape')
69
+ q=np.rint(w[:,0]*2**50).astype('<i8').reshape(7140,630)
70
+ m=int(np.abs(q).max()); req(36*m<2**63,'row bound')
71
+ u,d=states(3),states(2); ul,dl=states(2),states(1)
72
+ masks=lambda ss: np.array([sum(1<<i for i in s) for s in ss],dtype=np.uint64)
73
+ D=np.bitwise_count(masks(u)[:,None]&masks(d)[None,:]).astype(np.int64)
74
+ h=hop(u)(q)+hop(d)(q.T).T+8*D*q
75
+ n,a,b=dot(q,q),dot(q,h),dot(h,h)
76
+ ur,dr=removals(u,ul),removals(d,dl)
77
+ def pair(i):
78
+ out=np.zeros((len(ul),len(dl)),dtype=np.int64)
79
+ for j,c in zip(adj(i),(1,1,-1,-1)):
80
+ for A,B in ((i,j),(j,i)):
81
+ x,y,s=ur[A]; v,z,t=dr[B]
82
+ req(len(set(y))==len(y) and len(set(z))==len(z),'unique scatter')
83
+ out[np.ix_(y,z)]+=c*s[:,None]*t[None,:]*q[np.ix_(x,v)]
84
+ return out
85
+ pairs=[pair(i) for i in range(36)]
86
+ terms=[]
87
+ for i in range(36):
88
+ j=(i%6+3)%6+6*((i//6+3)%6)
89
+ if i<j: terms.append([i,j,dot(pairs[i],pairs[j])])
90
+ num=sum(x[2] for x in terms); center=F(num,72*n)
91
+ # Nontrivial negative control: reverse one pair output sign.
92
+ wrong=dot(pairs[0],-pairs[21])
93
+ req(wrong!=terms[0][2],'sign mutation detected')
94
+ norm_witness()
95
+ # Local A = (c_neighbor,down c_center,up + c_center,down c_neighbor,up)/sqrt(2),
96
+ # normalized signed neighbor orbital is orthogonal to center. ||A|| <=1.
97
+ # Therefore organizer O = sum_18(A_i^* A_j + h.c.)/18 has norm <=2.
98
+ mu=F(a,n); threshold=F(-1659,100)
99
+ sq=(F(b,n)-2*mu*F(a,n)+mu*mu)/(threshold-mu)**2
100
+ scale=10**14
101
+ cap=F(math.isqrt(sq.numerator*scale**2//sq.denominator)+1,scale)
102
+ req(cap**2>=sq,'projection bound')
103
+ width=4*cap
104
+ req(center+width<0,'sign')
105
+ print(json.dumps(dict(source_sha=sh,q_sha=hashlib.sha256(q.tobytes()).hexdigest(),dimension=q.size,n=n,H=a,H2=b,pair_terms=terms,numerator=num,denominator=72*n,center=str(center),norm_cap=2,projection_cap=str(cap),half_width=str(width),lower=str(center-width),upper=str(center+width),display=[math.nextafter(float(center-width),-math.inf),math.nextafter(float(center+width),math.inf)],negative_control='pair sign reversal rejected',scope='Ne5 fixed (3,2), raw R33, quantized vector generated by ne5_orbit.py; exact integer contractions; threshold proof required'),indent=2))
106
+ if __name__=='__main__': main()
methods/WiktorMatuszek/proof/ne5_independent.py ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Independent full-sector Schur inertia replay without parity reduction.
2
+ Binary64 outward rounding, using NumPy separate ufuncs (no fused operations).
3
+ Requires IEEE-754 round-to-nearest with gradual underflow.
4
+ """
5
+ from fractions import Fraction as F
6
+ import json, math, time
7
+ import numpy as np
8
+ from ne5_scattering import grouped, add, matrices, req
9
+
10
+ def down(a): return np.nextafter(a,-np.inf)
11
+ def up(a): return np.nextafter(a,np.inf)
12
+
13
+ def inertia_interval(lo,hi):
14
+ lo,hi=lo.copy(),hi.copy()
15
+ neg=0; margins=[]; widths=[]
16
+ for k in range(len(lo)):
17
+ l,h=lo[k,k],hi[k,k]
18
+ req(np.isfinite(l) and np.isfinite(h) and (l>0 or h<0),f"unresolved pivot {k}: {l},{h}")
19
+ neg+=int(h<0); margins.append(min(abs(l),abs(h))); widths.append(h-l)
20
+ a,b=lo[k,k+1:],hi[k,k+1:]
21
+ # Product interval, then multiply by reciprocal interval.
22
+ products=[np.multiply(x[:,None],y[None,:]) for x in (a,b) for y in (a,b)]
23
+ pl=down(np.minimum.reduce(products)); ph=up(np.maximum.reduce(products))
24
+ rl,rh=down(1/h),up(1/l)
25
+ quot=[np.multiply(x,y) for x in (pl,ph) for y in (rl,rh)]
26
+ ql=down(np.minimum.reduce(quot)); qh=up(np.maximum.reduce(quot))
27
+ lo[k+1:,k+1:]=down(lo[k+1:,k+1:]-qh)
28
+ hi[k+1:,k+1:]=up(hi[k+1:,k+1:]-ql)
29
+ return dict(negative=neg,min_pivot_margin=float(min(margins)),max_pivot_width=float(max(widths)))
30
+
31
+ def bounds(q,cut,threshold,rows,d,d2):
32
+ delta=F(cut)-threshold
33
+ f0,f1,f2=[1/(delta+8*i) for i in range(3)]
34
+ c2=(f2-2*f1+f0)/2; c1=f1-f0-c2
35
+ diag=[F(1,cut-e)-f0 for e,u,v in rows]
36
+ c1=-c1/36;c2=-c2/1296
37
+ den=math.lcm(c1.denominator,c2.denominator,*(x.denominator for x in diag))
38
+ coeff=[int(c1*den),int(c2*den)]
39
+ idiag=[int(x*den) for x in diag]
40
+ bound=abs(coeff[0])*int(abs(d).max())+abs(coeff[1])*int(abs(d2).max())+max(map(abs,idiag))
41
+ req(bound<2**53 and den<2**53,"exact binary64 integer conversion")
42
+ z=coeff[0]*d+coeff[1]*d2
43
+ z[np.diag_indices(len(z))]+=np.array(idiag,dtype=np.int64)
44
+ req(np.array_equal(z,z.T),"symmetric comparison")
45
+ v=z.astype(np.float64)/float(den)
46
+ eig=np.linalg.eigvalsh(v)
47
+ try:
48
+ count=inertia_interval(down(v),up(v))
49
+ except RuntimeError as e:
50
+ return dict(threshold=str(threshold),momentum=q,cut=cut,rank=len(z),interval_failure=str(e),float_neg=int(np.count_nonzero(eig<0)))
51
+ req(count["negative"]==int(np.count_nonzero(eig<0)),"independent floating diagnostic mismatch")
52
+ return dict(threshold=str(threshold),momentum=q,cut=cut,rank=len(z),den=den,
53
+ integer_bound=bound,nearest_zero_eigenvalue=float(min(abs(eig))),**count)
54
+
55
+ def main():
56
+ start=time.monotonic()
57
+ # Interval sanity including negative pivot, interval zero rejection.
58
+ a=np.array([[2.,3.],[3.,1.]])
59
+ req(inertia_interval(down(a),up(a))["negative"]==1,"indefinite control")
60
+ try: inertia_interval(np.zeros((1,1)),np.zeros((1,1)))
61
+ except RuntimeError: pass
62
+ else: raise RuntimeError("singular interval accepted")
63
+ g,h=grouped(3),grouped(2)
64
+ mins=[999]*36
65
+ for e,k in g:
66
+ for f,l in h: mins[add(k,l)]=min(mins[add(k,l)],e+f)
67
+ req(sum(x>=-16 for x in mins)==24,"kinetic count")
68
+ out=[]
69
+ for q,cut in [(8,-13),(1,-11)]:
70
+ rows=sorted((e+f,u,v) for (e,k),us in g.items() for (f,l),vs in h.items()
71
+ if add(k,l)==q and e+f<cut for u in us for v in vs)
72
+ d,d2=matrices(rows)
73
+ for t in [F(-83,5),F(-1659,100),F(-1658,100),F(-1657,100)]:
74
+ out.append(bounds(q,cut,t,rows,d,d2))
75
+ req(out[0].get("negative")==0 and out[4].get("negative")==1,"independent count not certified")
76
+ print(json.dumps(dict(kinetic_minima=mins,results=out,seconds=time.monotonic()-start),indent=2))
77
+ if __name__=="__main__":main()
methods/WiktorMatuszek/proof/ne5_rayleigh.py ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Exact rational Rayleigh witness from a quantized generated Ne5 vector."""
2
+ import hashlib,itertools,json,sys,time
3
+ from pathlib import Path
4
+ import numpy as np
5
+ def req(x,m):
6
+ if not x: raise RuntimeError(m)
7
+ def main():
8
+ start=time.monotonic()
9
+ p=Path(sys.argv[1])
10
+ with p.open("rb") as f: sha=hashlib.file_digest(f,"sha256").hexdigest()
11
+ w=np.load(p,allow_pickle=False)
12
+ req(w.shape==(4498200,4) and np.isfinite(w).all(),"input")
13
+ v=np.rint(w[:,0]*10**6).astype(np.int64).reshape(7140,630)
14
+ # Bound all intermediate integer arithmetic before computing H or dot products.
15
+ m=int(np.max(abs(v))); size=v.size
16
+ req(36*size*m*m<2**63,"conservative int64 overflow bound")
17
+ ms=[np.array([sum(1<<i for i in o) for o in itertools.combinations(range(36),n)],dtype=np.uint64) for n in (3,2)]
18
+ hv=8*np.bitwise_count(ms[0][:,None]&ms[1][None,:]).astype(np.int64)*v
19
+ for axis,masks in enumerate(ms):
20
+ order=np.argsort(masks)
21
+ target=hv if axis==0 else hv.T
22
+ source=v if axis==0 else v.T
23
+ for i in range(36):
24
+ x,y=i%6,i//6
25
+ for j in ((x+1)%6+6*y,(x-1)%6+6*y,x+6*((y+1)%6),x+6*((y-1)%6)):
26
+ bi,bj=np.uint64(1<<i),np.uint64(1<<j)
27
+ ids=np.flatnonzero(((masks&bi)!=0)&((masks&bj)==0))
28
+ moved=masks[ids]^bi^bj
29
+ dest=order[np.searchsorted(masks[order],moved)]
30
+ req(np.array_equal(masks[dest],moved),"hop destination")
31
+ between=np.uint64((1<<max(i,j))-(1<<(min(i,j)+1)))
32
+ s=2*(np.bitwise_count(masks[ids]&between).astype(np.int64)%2)-1
33
+ target[dest,:]+=s[:,None]*source[ids,:]
34
+ den=int(np.sum(v*v)); num=int(np.sum(v*hv))
35
+ req(den>0 and 5*num < -83*den,"exact Rayleigh threshold")
36
+ print(json.dumps(dict(source_sha=sha,integer_max=m,dimension=size,numerator=num,denominator=den,
37
+ rayleigh=num/den,threshold="-83/5",strict_margin_integer=-83*den-5*num,seconds=time.monotonic()-start),indent=2))
38
+ if __name__=="__main__":main()
methods/WiktorMatuszek/proof/ne5_scattering.py ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Shared exact combinatorial/Hamiltonian helpers for the Ne5 Schur inertia replay."""
2
+ from collections import defaultdict
3
+ from fractions import Fraction as F
4
+ from itertools import combinations
5
+ import numpy as np
6
+
7
+ L=6
8
+ C=[2,1,-1,-2,-1,1]
9
+ def req(ok,msg):
10
+ if not ok: raise RuntimeError(msg)
11
+ def occ(m):
12
+ return [i for i in range(36) if (m>>i)&1]
13
+ def add(i,j,sign=1):
14
+ return (i%6+sign*(j%6))%6+6*((i//6+sign*(j//6))%6)
15
+ def grouped(n):
16
+ d=defaultdict(list)
17
+ for o in combinations(range(36),n):
18
+ e=-sum(C[i%6]+C[i//6] for i in o)
19
+ k=sum(i%6 for i in o)%6+6*(sum(i//6 for i in o)%6)
20
+ d[e,k].append(sum(1<<i for i in o))
21
+ return d
22
+ def move(m,i,j):
23
+ if i==j:return m,1
24
+ if m>>j&1:return None
25
+ between=(1<<max(i,j))-(1<<(min(i,j)+1))
26
+ return m^(1<<i)^(1<<j), (-1)**((m&between).bit_count())
27
+ def action(s):
28
+ u,v=s; a=defaultdict(int)
29
+ for i in occ(u):
30
+ for j in occ(v):
31
+ for q in range(36):
32
+ uu=move(u,i,add(i,q)); vv=move(v,j,add(j,q,-1))
33
+ if uu and vv:a[uu[0],vv[0]]+=uu[1]*vv[1]
34
+ return {s:k for s,k in a.items() if k}
35
+ def independent(s):
36
+ # Enumerate final single-excitation determinants, conserving momentum.
37
+ # Signs via position in sorted lists, not bit parity.
38
+ def excit(m):
39
+ o=occ(m); z=[(m,0,len(o))]
40
+ for i in o:
41
+ rest=o.copy(); pos=rest.index(i); rest.remove(i)
42
+ for j in range(36):
43
+ if j in o:continue
44
+ ins=sum(k<j for k in rest)
45
+ z.append((m^(1<<i)^(1<<j),add(j,i,-1),(-1)**(pos+ins)))
46
+ return z
47
+ a=defaultdict(int)
48
+ for u,q,x in excit(s[0]):
49
+ for v,r,y in excit(s[1]):
50
+ if add(q,r)==0:a[u,v]+=x*y
51
+ return {s:k for s,k in a.items() if k}
52
+ def ldl_exact(M):
53
+ # Fraction-free symmetric elimination; leading minors are pivots.
54
+ a=[row[:] for row in M]; prev=1; signs=[]
55
+ for k in range(len(a)):
56
+ p=a[k][k]
57
+ if p==0: raise RuntimeError("zero leading minor")
58
+ signs.append(1 if p*prev>0 else -1)
59
+ for i in range(k+1,len(a)):
60
+ for j in range(i,len(a)):
61
+ num=a[i][j]*p-a[i][k]*a[k][j]
62
+ a[i][j],r=divmod(num,prev)
63
+ req(r==0,"nonexact Bareiss division")
64
+ a[j][i]=a[i][j]
65
+ prev=p
66
+ return signs
67
+ def matrices(rows):
68
+ keys=[(u,v) for e,u,v in rows]; acts=[action(s) for s in keys]
69
+ for s,z in zip(keys,acts):
70
+ req(z==independent(s),"independent scattering mismatch")
71
+ req(z[s]==6,"diagonal 36D")
72
+ d=np.array([[z.get(s,0) for s in keys] for z in acts],dtype=np.int64)
73
+ inv=defaultdict(list)
74
+ for i,z in enumerate(acts):
75
+ for s,k in z.items():inv[s].append((i,k))
76
+ d2=np.zeros_like(d)
77
+ for v in inv.values():
78
+ for i,k in v:
79
+ for j,l in v:d2[i,j]+=k*l
80
+ req(np.array_equal(d,d.T),"D symmetry")
81
+ return d,d2
methods/WiktorMatuszek/proof/ne5_spin.py ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Independent integer spin witness: raise into (4,1) without an S^2 polynomial."""
2
+ from pathlib import Path
3
+ from itertools import combinations
4
+ from fractions import Fraction
5
+ import hashlib,json,time,sys
6
+ import numpy as np
7
+ from ne5_scattering import req
8
+
9
+ def basis(n):
10
+ return np.array([sum(1<<i for i in c) for c in combinations(range(36),n)],dtype=np.uint64)
11
+
12
+ def main():
13
+ start=time.monotonic()
14
+ p=Path(sys.argv[1])
15
+ with p.open("rb") as f: sha=hashlib.file_digest(f,"sha256").hexdigest()
16
+ v=np.load(p,mmap_mode="r",allow_pickle=False)
17
+ req(v.shape==(4498200,4) and np.isfinite(v[:,0]).all() and np.max(abs(v[:,0]))<=1,"source")
18
+ q=np.rint(10**6*v[:,0]).astype(np.int64).reshape(7140,630)
19
+ u,d,a,b=map(basis,(3,2,4,1))
20
+ order=np.argsort(a); sorted_a=a[order]
21
+ r=np.zeros((len(a),len(b)),dtype=np.int64)
22
+ # For each final determinant remove one of its four up spins, then insert it
23
+ # in the initial down determinant. Independent gather instead of scatter.
24
+ u_order=np.argsort(u); d_order=np.argsort(d)
25
+ for i in range(36):
26
+ bit=np.uint64(1<<i); low=bit-np.uint64(1)
27
+ rows=np.flatnonzero((a&bit)!=0)
28
+ cols=np.flatnonzero((b&bit)==0)
29
+ src_u=a[rows]^bit; src_d=b[cols]|bit
30
+ iu=u_order[np.searchsorted(u[u_order],src_u)]
31
+ idn=d_order[np.searchsorted(d[d_order],src_d)]
32
+ req(np.array_equal(u[iu],src_u) and np.array_equal(d[idn],src_d),"spin targets")
33
+ # canonical up then down order; three up particles before down annihilator
34
+ sign=1-2*((3+np.bitwise_count(src_u&low).astype(np.int64)[:,None]+np.bitwise_count(src_d&low).astype(np.int64)[None,:])%2)
35
+ r[np.ix_(rows,cols)]+=sign*q[np.ix_(iu,idn)]
36
+ m=int(np.max(abs(r))); bound= (5*28+83)*r.size*m*m
37
+ req(m>0 and bound<2**63,"integer accumulation bound")
38
+ hr=8*np.bitwise_count(a[:,None]&b[None,:]).astype(np.int64)*r
39
+ for masks,src,dst in ((a,r,hr),(b,r.T,hr.T)):
40
+ order=np.argsort(masks)
41
+ for i in range(36):
42
+ x,y=i%6,i//6
43
+ for j in ((x+1)%6+6*y,(x-1)%6+6*y,x+6*((y+1)%6),x+6*((y-1)%6)):
44
+ bi,bj=np.uint64(1<<i),np.uint64(1<<j)
45
+ ix=np.flatnonzero(((masks&bi)!=0)&((masks&bj)==0))
46
+ dest=masks[ix]^bi^bj; iz=order[np.searchsorted(masks[order],dest)]
47
+ req(np.array_equal(masks[iz],dest),"hop")
48
+ between=np.uint64((1<<max(i,j))-(1<<(min(i,j)+1)))
49
+ s=2*(np.bitwise_count(masks[ix]&between).astype(np.int64)%2)-1
50
+ dst[iz,:]+=s[:,None]*src[ix,:]
51
+ n=int(np.sum(r*r)); e=int(np.sum(r*hr))
52
+ req(n>0 and Fraction(e,n)<Fraction(-83,5),"raised spin witness")
53
+ # (5,0) has no double occupancies; free sum of five lowest one-body energies.
54
+ cos=[2,1,-1,-2,-1,1]
55
+ five=sum(sorted(-cos[x]-cos[y] for x in range(6) for y in range(6))[:5])
56
+ req(five==-16,"fully polarized bound")
57
+ print(json.dumps(dict(source_sha=sha,raised_dimension=r.size,max_abs=m,overflow_bound=bound,
58
+ qTq=n,qTHq=e,strict_threshold_integer=5*e+83*n,rayleigh=e/n,
59
+ gap_lower_bound=float(Fraction(-1659,100)-Fraction(e,n)),
60
+ fully_polarized_min=five,seconds=time.monotonic()-start),indent=2))
61
+ if __name__=="__main__":main()
methods/WiktorMatuszek/requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ numpy==2.4.6
2
+ scipy==1.17.1
methods/WiktorMatuszek/run_full.sh ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ # Full CPU-feasible validation: fresh Ne2/Ne4 reproduction, published ku-ku
3
+ # reference rows, free-fermion Wick controls, and frozen Ne5 degeneracy evidence.
4
+ set -e
5
+ export OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 PYTHONDONTWRITEBYTECODE=1
6
+ cd "$(dirname "$0")"
7
+ sha256sum -c SHA256SUMS.txt >/dev/null
8
+ sh run_submission.sh
9
+ python3 validate_kuku.py --out /tmp/kuku_validation.json
10
+ python3 validate_pair_cross.py
11
+ python3 - << 'PYEOF'
12
+ import json
13
+ import numpy as np
14
+ import free_pair_control as fpc
15
+ def require(ok,msg):
16
+ if not ok: raise ValueError(msg)
17
+ occ = fpc.symmetric_occupations(26)
18
+ v = fpc.d_wave_pair_correlation(occ, (3, 3))
19
+ print("free-fermion 6x6 Ne26 U=0 R=(3,3) Wick correlator:", v)
20
+ require(abs(v - 0.0308641975308642) < 1e-10, "free-fermion control mismatch")
21
+ o3 = np.zeros(9); o3[[0, 1]] = 1.0
22
+ v2 = fpc.d_wave_pair_correlation(o3, (1, 0), size=3)
23
+ require(abs(v2 - 1.0 / 12.0) < 1e-12, "direct Fock reference mismatch")
24
+ print("direct Fock reference PASS")
25
+ d = json.load(open("validation/ne5_degen.json"))
26
+ require(len(d["evals"]) == 4, "Ne5 frozen eval count")
27
+ require(abs(d["evals"][0] - -16.606552964131627) < 1e-10, "Ne5 frozen energy")
28
+ require(abs(d["equal_weight_avg"] - -0.0004894962398948123) < 1e-14, "Ne5 frozen pair")
29
+ require(max(abs(x - d["equal_weight_avg"]) for x in d["members"].values()) < 1e-12, "Ne5 member spread")
30
+ print("frozen Ne5 degeneracy evidence PASS")
31
+ print("full validation PASS")
32
+ PYEOF
methods/WiktorMatuszek/run_material.sh ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ if [ "$#" -lt 1 ]; then echo 'usage: run_material.sh /path/to/pinned/active_challenge.csv [--material ID]' >&2; exit 64; fi
4
+ export OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 PYTHONDONTWRITEBYTECODE=1
5
+ (cd "$(dirname "$0")" && sha256sum -c SHA256SUMS.txt >/dev/null)
6
+ exec "${PYTHON:-python3}" "$(dirname "$0")/material_ne4.py" "$@"
methods/WiktorMatuszek/run_sectors.sh ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ # Heavy-sector reproduction: exact large-dimension eigensolves plus the
3
+ # executable Ne5/Ne6 correlator witnesses. Expect roughly one hour, several
4
+ # hundred MB of generated artifacts, and at least 4 GiB free RAM on a strong
5
+ # CPU node. Usage:
6
+ # sh run_sectors.sh [artifact-directory]
7
+ set -e
8
+ export OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 PYTHONDONTWRITEBYTECODE=1
9
+ cd "$(dirname "$0")"
10
+ sha256sum -c SHA256SUMS.txt >/dev/null
11
+ WORK="${1:-/tmp/osc_method_heavy_validation}"
12
+ case "$WORK" in /*) ;; *) WORK="$(pwd)/$WORK" ;; esac
13
+ mkdir -p "$WORK"
14
+
15
+ echo "[1/6] validation: 4x4 Ne4 balanced (published -11.321497133211766)"
16
+ python3 sector_ed.py --nx 4 --ny 4 --nup 2 --ndown 2 --k 3 --out "$WORK/val_4x4ne4.json"
17
+ python3 - "$WORK/val_4x4ne4.json" << 'PYEOF'
18
+ import json, sys
19
+ def require(ok,msg):
20
+ if not ok: raise ValueError(msg)
21
+ r = json.load(open(sys.argv[1]))
22
+ require(abs(r["E0"] - -11.321497133211766) < 1e-9 and 0 <= r["residual"] < 1e-8, "4x4 validation")
23
+ print("4x4 Ne4 validation PASS", r["E0"])
24
+ PYEOF
25
+
26
+ echo "[2/6] validation: 5x4 Ne4 balanced (published -12.665021830596084)"
27
+ python3 sector_ed.py --nx 5 --ny 4 --nup 2 --ndown 2 --k 3 --out "$WORK/val_5x4ne4.json"
28
+ python3 - "$WORK/val_5x4ne4.json" << 'PYEOF'
29
+ import json, sys
30
+ def require(ok,msg):
31
+ if not ok: raise ValueError(msg)
32
+ r = json.load(open(sys.argv[1]))
33
+ require(abs(r["E0"] - -12.665021830596084) < 1e-9 and 0 <= r["residual"] < 1e-8, "5x4 validation")
34
+ print("5x4 Ne4 validation PASS", r["E0"])
35
+ PYEOF
36
+
37
+ echo "[3/6] 6x6 Ne5 symmetry orbit and projected correlator"
38
+ python3 ne5_orbit.py "$WORK/ne5_orbit" > "$WORK/ne5_orbit_stdout.json"
39
+ python3 - "$WORK/ne5_orbit/result.json" << 'PYEOF'
40
+ import json, sys
41
+ def require(ok,msg):
42
+ if not ok: raise ValueError(msg)
43
+ r = json.load(open(sys.argv[1]))
44
+ require(r["orbit_rank"] == 4, "Ne5 orbit rank")
45
+ require(abs(min(r["ritz_values"]) - -16.606552964131627) < 1e-8, "Ne5 energy")
46
+ require(max(abs(x - -0.0004894962398948123) for x in r["projected_pair_eigenvalues"]) < 1e-10, "Ne5 projected pair")
47
+ print("Ne5 orbit/correlator reproduction PASS")
48
+ PYEOF
49
+
50
+ echo "[4/6] exact-arithmetic Ne5 count/spin witnesses"
51
+ (
52
+ cd proof
53
+ python3 ne5_independent.py > "$WORK/ne5_independent.json"
54
+ python3 ne5_rayleigh.py "$WORK/ne5_orbit/orbit_vectors.npy" > "$WORK/ne5_rayleigh.json"
55
+ python3 ne5_spin.py "$WORK/ne5_orbit/orbit_vectors.npy" > "$WORK/ne5_spin.json"
56
+ python3 ne5_exact_raw.py "$WORK/ne5_orbit/orbit_vectors.npy" > "$WORK/ne5_exact_raw.json"
57
+ )
58
+ python3 - "$WORK/ne5_independent.json" "$WORK/ne5_rayleigh.json" "$WORK/ne5_spin.json" "$WORK/ne5_exact_raw.json" << 'PYEOF'
59
+ import json, sys
60
+ def require(ok,msg):
61
+ if not ok: raise ValueError(msg)
62
+ count = json.load(open(sys.argv[1]))
63
+ ray = json.load(open(sys.argv[2]))
64
+ spin = json.load(open(sys.argv[3]))
65
+ require(count["results"][0]["negative"] == 0 and count["results"][4]["negative"] == 1, "Ne5 inertia count")
66
+ require(ray["strict_margin_integer"] > 0, "Ne5 Rayleigh margin")
67
+ require(spin["strict_threshold_integer"] < 0 and spin["gap_lower_bound"] > 0.0165, "Ne5 spin witness")
68
+ raw = json.load(open(sys.argv[4]))
69
+ require(raw["display"][0] < raw["display"][1] < 0, "Ne5 raw sign enclosure")
70
+ require(raw["norm_cap"] == 2, "Ne5 norm cap")
71
+ print("Ne5 exact count/spin/raw-sign proof replay PASS")
72
+ PYEOF
73
+
74
+ echo "[5/6] 6x6 Ne6 sector (5,1) fresh eigensolve"
75
+ python3 sector_ed.py --nx 6 --ny 6 --nup 5 --ndown 1 --k 3 --out "$WORK/ne6_51_sector.json" --vec-out "$WORK/vec_up5_dn1.npy"
76
+ python3 - "$WORK/ne6_51_sector.json" << 'PYEOF'
77
+ import json, sys
78
+ def require(ok,msg):
79
+ if not ok: raise ValueError(msg)
80
+ r = json.load(open(sys.argv[1]))
81
+ require(abs(r["E0"] - -19.489596027342117) < 1e-9 and 0 <= r["residual"] < 1e-8, "Ne6 energy/residual")
82
+ print("Ne6 (5,1) energy reproduction PASS", r["E0"])
83
+ PYEOF
84
+
85
+ echo "[6/6] SU(2) lowering witness: Ne6 (4,2)/(3,3) correlators"
86
+ python3 su2_ladder.py "$WORK/vec_up5_dn1.npy" --out "$WORK/ne6_su2_ladder.json"
87
+ python3 - "$WORK/ne6_su2_ladder.json" << 'PYEOF'
88
+ import json, sys
89
+ def require(ok,msg):
90
+ if not ok: raise ValueError(msg)
91
+ r = json.load(open(sys.argv[1]))
92
+ rows = r["rows"]
93
+ require([x["sector"] for x in rows] == [[5, 1], [4, 2], [3, 3]], "Ne6 sectors")
94
+ require(abs(rows[0]["P_org_R33"] - -0.0006408458240976549) < 1e-10, "Ne6 (5,1) correlator")
95
+ require(abs(rows[2]["P_org_R33"] - -0.0006408458240976566) < 1e-10, "Ne6 (3,3) correlator")
96
+ require(max(abs(x["P_org_R33"] - rows[0]["P_org_R33"]) for x in rows) < 1e-12, "Ne6 spin-scalar spread")
97
+ print("Ne6 SU(2)/correlator reproduction PASS")
98
+ PYEOF
99
+
100
+ echo "run_sectors PASS; artifacts in $WORK"
methods/WiktorMatuszek/run_submission.sh ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ # Quick reproduction: Ne2 and Ne4 exact rows on the 6x6 scoring cluster,
3
+ # including independent Lanczos-start robustness for Ne4.
4
+ set -e
5
+ export OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 PYTHONDONTWRITEBYTECODE=1
6
+ cd "$(dirname "$0")"
7
+ sha256sum -c SHA256SUMS.txt >/dev/null
8
+ python3 - << 'PYEOF'
9
+ import json, math
10
+ from pd_eval import pd_exact
11
+ def require(ok,msg):
12
+ if not ok: raise ValueError(msg)
13
+ r2 = pd_exact(6, 6, 1, 1, (3, 3), 8.0, seed=0)
14
+ r4s = [pd_exact(6, 6, 2, 2, (3, 3), 8.0, seed=seed) for seed in (0, 1, 2)]
15
+ r4 = r4s[0]
16
+ out = {
17
+ "ne2": {"E0": r2["E0"], "P_org": r2["P_org"], "residual": r2["residual"]},
18
+ "ne4": {"E0": r4["E0"], "P_org": r4["P_org"], "residual": r4["residual"]},
19
+ "ne4_seed_spread": {
20
+ "E0": max(x["E0"] for x in r4s) - min(x["E0"] for x in r4s),
21
+ "P_org": max(x["P_org"] for x in r4s) - min(x["P_org"] for x in r4s),
22
+ },
23
+ }
24
+ print(json.dumps(out, indent=1))
25
+ exp = json.load(open("expected/pd6x6_up2_dn2.json"))
26
+ for r, dim, energy in [(r2, 1296, -7.906146146983354), (r4, 396900, exp["evals"][0])]:
27
+ require(r["dim"] == dim, "dimension mismatch")
28
+ require(all(math.isfinite(r[k]) for k in ("P_org", "E0", "residual")), "nonfinite result")
29
+ require(0 <= r["residual"] < 1e-8, "residual mismatch")
30
+ require(abs(r["E0"] - energy) < 1e-9, "energy mismatch")
31
+ require(abs(r4["P_org"] - exp["P_org_R(3, 3)"]) < 1e-9, "Ne4 P_org mismatch vs frozen reference")
32
+ require(abs(r2["P_org"]) < 1e-25, "Ne2 P_org must be exactly zero")
33
+ require(out["ne4_seed_spread"]["E0"] < 1e-10, "Ne4 energy seed instability")
34
+ require(out["ne4_seed_spread"]["P_org"] < 1e-10, "Ne4 correlator seed instability")
35
+ print("submission reproduction PASS")
36
+ PYEOF
methods/WiktorMatuszek/sector_ed.py ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Sector-resolved spin-factorized Hubbard ED for 6x6 Ne6 (independent reproduction).
3
+
4
+ Independent spin-factorized bitmask implementation with:
5
+ - independent (nup, ndown) sectors (rectangular spin space)
6
+ - uint64 bitmasks for 36 sites
7
+ Validation targets (published, independent):
8
+ 4x4 Ne4 balanced E0 = -11.321497133211766 (threefold multiplet)
9
+ 5x4 Ne4 balanced E0 = -12.665021830596084
10
+ 5x4 Ne6 balanced E0 = -16.858681827164112
11
+ Target for 6x6 Ne6 Sz=2 (5up,1down) certified multiplet E0 = -19.489596027342117.
12
+ """
13
+ from __future__ import annotations
14
+ import argparse, json, math, time
15
+ from itertools import combinations
16
+ from pathlib import Path
17
+ import numpy as np
18
+ from scipy import sparse
19
+ from scipy.sparse.linalg import LinearOperator, eigsh
20
+
21
+
22
+ def spin_states(nsites, nfermions):
23
+ masks = np.fromiter((sum(1 << p for p in sites)
24
+ for sites in combinations(range(nsites), nfermions)),
25
+ dtype=np.uint64, count=math.comb(nsites, nfermions))
26
+ return masks
27
+
28
+
29
+ def make_lattice(nx, ny):
30
+ def site(x, y): return (x % nx) + nx * (y % ny)
31
+ bonds = []
32
+ for i in range(nx * ny):
33
+ x, y = i % nx, i // nx
34
+ bonds.append((i, site(x + 1, y)))
35
+ bonds.append((i, site(x, y + 1)))
36
+ return bonds
37
+
38
+
39
+ def one_spin_hopping(nx, ny, basis, t=1.0):
40
+ lookup = {int(m): i for i, m in enumerate(basis)}
41
+ src, dst, amp = [], [], []
42
+ for ci, mu in enumerate(basis):
43
+ mask = int(mu)
44
+ for a, b in make_lattice(nx, ny):
45
+ if not ((mask >> a) ^ (mask >> b)) & 1:
46
+ continue
47
+ out = mask ^ ((1 << a) | (1 << b))
48
+ below = ((1 << max(a, b)) - 1) ^ ((1 << (min(a, b) + 1)) - 1)
49
+ sign = -1.0 if (mask & below).bit_count() % 2 else 1.0
50
+ src.append(lookup[out]); dst.append(ci); amp.append(-t * sign)
51
+ K = sparse.coo_matrix((amp, (src, dst)), shape=(len(basis), len(basis)), dtype=np.float64).tocsr()
52
+ K.sum_duplicates()
53
+ return K
54
+
55
+
56
+ class SectorHubbard:
57
+ def __init__(self, nx, ny, nup, ndown, U=8.0):
58
+ self.nx, self.ny = nx, ny
59
+ self.nup, self.ndown = nup, ndown
60
+ self.U = float(U)
61
+ self.bup = spin_states(nx * ny, nup)
62
+ self.bdn = spin_states(nx * ny, ndown)
63
+ self.sup, self.sdn = len(self.bup), len(self.bdn)
64
+ self.dim = self.sup * self.sdn
65
+ self.kup = one_spin_hopping(nx, ny, self.bup)
66
+ self.kdn = one_spin_hopping(nx, ny, self.bdn)
67
+ # double-occupation diagonal as uint8 matrix (rows up, cols down)
68
+ bu = self.bup.astype(np.uint64)
69
+ bd = self.bdn.astype(np.uint64)
70
+ self.docc = np.bitwise_count(np.bitwise_and(bu[:, None], bd[None, :])).astype(np.uint8)
71
+ self.lop = LinearOperator((self.dim, self.dim), matvec=self.matvec, dtype=np.float64)
72
+
73
+ def matvec(self, flat):
74
+ v = np.asarray(flat, dtype=np.float64).reshape(self.sup, self.sdn)
75
+ out = self.kup @ v
76
+ out += (self.kdn @ v.T).T
77
+ if self.U:
78
+ out += self.U * self.docc * v
79
+ return out.reshape(-1)
80
+
81
+ def solve(self, k=3, ncv=None, seed=0, tol=1e-12, maxiter=None):
82
+ rng = np.random.default_rng(seed)
83
+ v0 = rng.standard_normal(self.dim)
84
+ v0 /= np.linalg.norm(v0)
85
+ ncv = ncv or min(self.dim, max(2 * k + 2, 8))
86
+ t0 = time.time()
87
+ vals, vecs = eigsh(self.lop, k=k, which='SA', v0=v0, ncv=ncv, tol=tol, maxiter=maxiter)
88
+ order = np.argsort(vals)
89
+ vals = vals[order]; vecs = vecs[:, order]
90
+ # true residual of ground
91
+ r = self.lop @ vecs[:, 0] - vals[0] * vecs[:, 0]
92
+ res = float(np.linalg.norm(r))
93
+ return {'evals': [float(x) for x in vals], 'E0': float(vals[0]), 'residual': res,
94
+ 'gap': float(vals[1] - vals[0]) if len(vals) > 1 else None,
95
+ 'time_s': time.time() - t0, 'dim': self.dim, 'ncv': ncv,
96
+ 'nup': self.nup, 'ndown': self.ndown, 'seed': seed}, vecs
97
+
98
+
99
+ def main():
100
+ ap = argparse.ArgumentParser()
101
+ ap.add_argument('--nx', type=int, required=True)
102
+ ap.add_argument('--ny', type=int, required=True)
103
+ ap.add_argument('--nup', type=int, required=True)
104
+ ap.add_argument('--ndown', type=int, required=True)
105
+ ap.add_argument('--k', type=int, default=3)
106
+ ap.add_argument('--ncv', type=int, default=None)
107
+ ap.add_argument('--seed', type=int, default=0)
108
+ ap.add_argument('--out', type=Path, required=True)
109
+ ap.add_argument('--vec-out', type=Path, default=None)
110
+ args = ap.parse_args()
111
+ h = SectorHubbard(args.nx, args.ny, args.nup, args.ndown)
112
+ print(f'sector ({args.nup},{args.ndown}) dim={h.dim}', flush=True)
113
+ res, vecs = h.solve(k=args.k, ncv=args.ncv, seed=args.seed)
114
+ res['nx'] = args.nx; res['ny'] = args.ny; res['U'] = h.U
115
+ args.out.write_text(json.dumps(res, indent=1))
116
+ print(json.dumps({k: res[k] for k in ('E0', 'residual', 'gap', 'time_s')}, indent=1), flush=True)
117
+ if args.vec_out:
118
+ np.save(args.vec_out, vecs[:, 0])
119
+
120
+ if __name__ == '__main__':
121
+ main()
methods/WiktorMatuszek/su2_ladder.py ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """SU(2) spin-ladder witness for the Ne6 ground multiplet.
3
+ Input: a freshly diagonalized (5,1) full-sector vector in lexicographic
4
+ combination order. Uses signed CAR spin-flip, directed hopping and
5
+ pair-annihilation operations; no diagonalization of the lowered target sectors.
6
+ """
7
+ import argparse, hashlib, itertools, json, math, time
8
+ from functools import lru_cache
9
+ from pathlib import Path
10
+ import numpy as np
11
+ from scipy.sparse import coo_matrix
12
+
13
+ L=36
14
+ @lru_cache(None)
15
+ def basis(n):
16
+ return np.fromiter((sum(1<<i for i in c) for c in itertools.combinations(range(L),n)), dtype=np.uint64,count=math.comb(L,n))
17
+ @lru_cache(None)
18
+ def ordering(n):
19
+ b=basis(n); o=np.argsort(b); return b[o],o
20
+ def locate(n, masks):
21
+ s,o=ordering(n); i=np.searchsorted(s,masks)
22
+ if np.any(i>=len(s)) or not np.array_equal(s[i],masks):
23
+ raise ValueError("basis lookup")
24
+ return o[i]
25
+ def parity(m):
26
+ return 1-2*(np.bitwise_count(m).astype(np.int8)%2)
27
+ def flip(v,u,d):
28
+ a,b=basis(u),basis(d)
29
+ out=np.zeros((len(basis(u-1)),len(basis(d+1))))
30
+ for i in range(L):
31
+ bit=np.uint64(1<<i)
32
+ ai=np.flatnonzero(a&bit); bi=np.flatnonzero((b&bit)==0)
33
+ aa=a[ai]; bb=b[bi]
34
+ x=locate(u-1,aa^bit); y=locate(d+1,bb|bit)
35
+ su=parity(aa&(bit-1)); sd=parity(bb&(bit-1))*(-1)**(u-1)
36
+ out[np.ix_(x,y)]+=v[np.ix_(ai,bi)]*su[:,None]*sd[None,:]
37
+ return out
38
+ def neighbors(i):
39
+ x,y=i%6,i//6
40
+ return [((x+1)%6)+6*y,((x-1)%6)+6*y,x+6*((y+1)%6),x+6*((y-1)%6)]
41
+ @lru_cache(None)
42
+ def hop(n):
43
+ a=basis(n); rr=[]; cc=[]; vv=[]
44
+ for i in range(L):
45
+ ib=np.uint64(1<<i)
46
+ for j in neighbors(i):
47
+ jb=np.uint64(1<<j)
48
+ src=np.flatnonzero(((a&ib)!=0)&((a&jb)==0))
49
+ if not len(src): continue
50
+ m=a[src]
51
+ dest=locate(n,m^ib^jb)
52
+ # Direct annihilation at i, followed by creation at j.
53
+ amp=-parity(m&(ib-1))*parity((m^ib)&(jb-1))
54
+ rr.append(dest); cc.append(src); vv.append(amp)
55
+ return coo_matrix((np.concatenate(vv),(np.concatenate(rr),np.concatenate(cc))),shape=(len(a),len(a)),dtype=np.float64).tocsr()
56
+ def measure_energy(v,u,d,ref):
57
+ a,b=basis(u),basis(d); ku,kd=hop(u),hop(d)
58
+ # slabwise second spin and interaction, no full double-occupancy array
59
+ h=ku@v
60
+ for st in range(0,len(a),128):
61
+ en=min(st+128,len(a)); w=v[st:en]
62
+ h[st:en]+=(kd@w.T).T
63
+ h[st:en]+=8*np.bitwise_count(a[st:en,None]&b[None,:])*w
64
+ ray=float(np.vdot(v,h)); h-=ref*v
65
+ return ray,float(np.linalg.norm(h))
66
+ @lru_cache(None)
67
+ def create_preimage(n,i):
68
+ # source containing i from each target basis, in target order
69
+ target=basis(n-1); bit=np.uint64(1<<i)
70
+ ids=np.flatnonzero((target&bit)==0); m=target[ids]|bit
71
+ return ids,locate(n,m),parity(m&(bit-1))
72
+ def pair(v,u,d,i):
73
+ out=np.zeros((len(basis(u-1)),len(basis(d-1))))
74
+ for k,j in enumerate(neighbors(i)):
75
+ for a,b in ((i,j),(j,i)):
76
+ x,sx,ax=create_preimage(u,a); y,sy,ay=create_preimage(d,b)
77
+ out[np.ix_(x,y)]+=(1 if k<2 else -1)*v[np.ix_(sx,sy)]*ax[:,None]*ay[None,:]/(2*math.sqrt(2))
78
+ return out
79
+ def corr(v,u,d):
80
+ # exact average over 18 unordered pairs at self-inverse displacement (3,3)
81
+ vals=[]
82
+ for i in range(L):
83
+ j=((i%6+3)%6)+6*((i//6+3)%6)
84
+ if i<j: vals.append(float(np.vdot(pair(v,u,d,i),pair(v,u,d,j))))
85
+ return 2*sum(vals)/len(vals)
86
+ def main():
87
+ p=argparse.ArgumentParser(); p.add_argument("vector",type=Path); p.add_argument("--out",type=Path,required=True); args=p.parse_args()
88
+ t=time.monotonic(); source=args.vector
89
+ with source.open("rb") as f: sha=hashlib.file_digest(f,"sha256").hexdigest()
90
+ ref=-19.48959602734211
91
+ v=np.load(source,allow_pickle=False).reshape(len(basis(5)),len(basis(1)))
92
+ rows=[]
93
+ for u,d,expected in [(5,1,None),(4,2,4),(3,3,6)]:
94
+ if expected is not None:
95
+ v=flip(v,u+1,d-1)
96
+ n2=float(np.vdot(v,v)); v/=math.sqrt(n2)
97
+ if abs(n2-expected)>1e-9: raise ValueError(("spin norm",n2,expected))
98
+ else:
99
+ n2=float(np.vdot(v,v)); v/=math.sqrt(n2)
100
+ energy,res=measure_energy(v,u,d,ref)
101
+ pc=corr(v,u,d)
102
+ if abs(energy-ref)>1e-9 or res>1e-9: raise ValueError(("energy residual",energy,res))
103
+ rows.append(dict(sector=[u,d],dim=v.size,pre_normalization_norm_squared=n2,rayleigh=energy,residual=res,P_org_R33=pc))
104
+ print(rows[-1],flush=True)
105
+ if max(abs(r["P_org_R33"]-rows[0]["P_org_R33"]) for r in rows)>1e-12: raise ValueError("spin-scalar correlation")
106
+ out=dict(source=str(source),source_sha256=sha,reference_energy=ref,rows=rows,seconds=time.monotonic()-t,numpy=np.__version__,claim="spin lowering of one independently solved (5,1) vector; not independent diagonalization of (4,2) or (3,3)")
107
+ args.out.write_text(json.dumps(out,indent=2)+"\n")
108
+ if __name__=="__main__": main()
109
+
methods/WiktorMatuszek/submission_gold_OSC-01756.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "material_id": "1GeSe2-2",
3
+ "t": 0.23531,
4
+ "U": 1.88248,
5
+ "nef": 0.44018,
6
+ "U_over_t": 8.0,
7
+ "solver_delta": "0.8889",
8
+ "A_dwave": 0.00244071,
9
+ "provisional_score": 0.322,
10
+ "author": "WiktorMatuszek",
11
+ "osc_id": "OSC-01756",
12
+ "formula": "GeSe2",
13
+ "level": "negligible",
14
+ "method_name": "exact finite-cluster 6x6 Hubbard ED calibration lattice",
15
+ "track": "gold",
16
+ "method": {
17
+ "model": "square-lattice Hubbard, H=-t(sum c+c + h.c.) + U n_up n_dn, U/t=8, periodic 6x6 scoring cluster",
18
+ "clusters": [
19
+ "6x6 periodic"
20
+ ],
21
+ "observable": "A_d = P_org(R=(3,3)) = <Delta_d^+(j) Delta_d(i)>, organizer normalization P_org = 2 x P_ED",
22
+ "engine": "independent spin-factorized bitmask exact diagonalization (fresh Lanczos); independent pair-operator cross-check; SU(2) ladder witness; vector-portable exact-arithmetic Ne5 witnesses",
23
+ "U0_check": "exact free-fermion Wick controls, including 6x6 Ne26 R=(3,3)=0.0308641975308642 and a direct Fock reference",
24
+ "validation": "12/12 published ku-ku rectangular nondegenerate rows reproduced; published 4x4/5x4 sector energies reproduced; Ne4 reproduced from three independent Lanczos starts; Ne5 rank-four orbit/correlator and exact count/spin/raw-sign proof replay; Ne6 (4,2)/(3,3) witnesses constructed by exact SU(2) lowering from fresh (5,1)",
25
+ "limitations": "Exact only on the stated finite periodic clusters and nearest-even particle-number bins. Not ED at the continuous DFT filling, not a converged thermodynamic sequence, and not a claim about bulk superconductivity. Claimed scores await organizer reproduction and do not override canonical leaderboard scores.",
26
+ "particle_number_convention": "Ne labels total electrons; fixed spin sectors are written (N_up,N_down). The material uses the nearest even 6x6 bin Ne4 at solver_delta=0.8889."
27
+ },
28
+ "A_d_source": {
29
+ "rule": "exact",
30
+ "point": "6x6 Ne4, sector (N_up,N_down)=(2,2)",
31
+ "finite_cluster_exact": true,
32
+ "delta_matching": "official solver_delta rounded to 4 decimals; nearest even 6x6 bin Ne4",
33
+ "fresh_independent_starts": 3,
34
+ "baseline_published_A_d": 0.0,
35
+ "signed_exact_P_org": 0.002440712516552
36
+ }
37
+ }
methods/WiktorMatuszek/validate_kuku.py ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Validate pd_eval.py against published ku-ku rectangular reference rows.
3
+
4
+ The default set is the twelve nondegenerate rectangular rows with Hilbert
5
+ dimension at most one million. References are numeric anchors transcribed
6
+ from the public ku-ku multi-size ED table; no third-party data file is
7
+ redistributed.
8
+ """
9
+ import argparse
10
+ import json
11
+ import time
12
+ from pathlib import Path
13
+
14
+ from pd_eval import pd_exact
15
+
16
+
17
+ def row(cluster, nx, ny, nup, ndown, R, E0, p_org):
18
+ return dict(cluster=cluster, nx=nx, ny=ny, nup=nup, ndown=ndown,
19
+ R=R, E0_ref=E0, P_ref=p_org)
20
+
21
+
22
+ ROWS = [
23
+ row("2x4 n=0.25", 2, 4, 1, 1, (1, 2), -7.51754096, 0.00216029),
24
+ row("2x4 n=0.50", 2, 4, 2, 2, (1, 2), -10.49762201, -0.00363614),
25
+ row("2x4 n=0.75", 2, 4, 3, 3, (1, 2), -10.62689735, 0.193846),
26
+ row("2x4 n=1.00", 2, 4, 4, 4, (1, 2), -7.12671234, 0.0328407),
27
+ row("3x4 n=0.1666", 3, 4, 1, 1, (1, 2), -7.67599209, 5.7526378308795875e-05),
28
+ row("3x4 n=0.3333", 3, 4, 2, 2, (1, 2), -11.037873924, -0.00649435),
29
+ row("3x4 n=0.50", 3, 4, 3, 3, (1, 2), -13.067143245, 0.103875),
30
+ row("3x4 n=0.6666", 3, 4, 4, 4, (1, 2), -12.64005415, 0.0360609),
31
+ row("3x4 n=0.8333", 3, 4, 5, 5, (1, 2), -10.76537911, 0.0568266),
32
+ row("3x4 n=1.00", 3, 4, 6, 6, (1, 2), -5.83348425, 0.0100270),
33
+ row("4x4 n=0.125", 4, 4, 1, 1, (2, 2), -7.76409059, 0.0),
34
+ row("4x4 n=0.375", 4, 4, 3, 3, (2, 2), -14.72354031, -0.0137308),
35
+ ]
36
+
37
+
38
+ def decimals(x):
39
+ s = ("%r" % x)
40
+ return len(s.split(".", 1)[1]) if "." in s and "e" not in s else 16
41
+
42
+
43
+ def rounding_tol(x, floor):
44
+ return max(2.0 * 10 ** (-decimals(x)), floor)
45
+
46
+
47
+ def main():
48
+ ap = argparse.ArgumentParser()
49
+ ap.add_argument("--out", type=Path, default=None)
50
+ ap.add_argument("--max-dim", type=int, default=1_000_000)
51
+ ap.add_argument("--seed", type=int, default=0)
52
+ args = ap.parse_args()
53
+ start = time.monotonic()
54
+ results = []
55
+ for case in ROWS:
56
+ # Estimated dimension is exact for these spin-balanced cases.
57
+ import math
58
+ dim = math.comb(case["nx"] * case["ny"], case["nup"]) * math.comb(case["nx"] * case["ny"], case["ndown"])
59
+ if dim > args.max_dim:
60
+ continue
61
+ got = pd_exact(case["nx"], case["ny"], case["nup"], case["ndown"], tuple(case["R"]), U=8.0, seed=args.seed)
62
+ etol = rounding_tol(case["E0_ref"], 2e-10)
63
+ # Exact-zero rows are tested absolutely; nonzero rows use the printed
64
+ # truncation precision plus a small cross-platform numerical allowance.
65
+ ptol = 1e-25 if case["P_ref"] == 0 else rounding_tol(case["P_ref"], 5e-11)
66
+ ediff = abs(got["E0"] - case["E0_ref"])
67
+ pdiff = abs(got["P_org"] - case["P_ref"])
68
+ ok = ediff <= etol and pdiff <= ptol
69
+ results.append(dict(case=case["cluster"], dim=dim, E0=got["E0"], E0_ref=case["E0_ref"],
70
+ E0_absdiff=ediff, E0_tol=etol, P_org=got["P_org"], P_ref=case["P_ref"],
71
+ P_absdiff=pdiff, P_tol=ptol, residual=got["residual"], pass_=ok))
72
+ print(json.dumps(results[-1]), flush=True)
73
+ if not ok:
74
+ raise RuntimeError("ku-ku validation mismatch: " + case["cluster"])
75
+ out = dict(rows=len(results), seed=args.seed, seconds=time.monotonic() - start,
76
+ scope="published ku-ku rectangular nondegenerate rows with dimension <= max-dim",
77
+ results=results)
78
+ if len(results) != len(ROWS):
79
+ out["note"] = "dimension-limited subset"
80
+ if args.out:
81
+ args.out.write_text(json.dumps(out, indent=2) + "\n")
82
+ print(f"ku-ku validation PASS rows={len(results)}", flush=True)
83
+
84
+
85
+ if __name__ == "__main__":
86
+ main()
methods/WiktorMatuszek/validate_pair_cross.py ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Cross-check the two independent pair-correlation implementations on Ne4."""
3
+ import json
4
+ import time
5
+
6
+ from pd_eval import SectorHubbard, pd_exact
7
+ from su2_ladder import corr
8
+
9
+
10
+ def main():
11
+ start = time.monotonic()
12
+ reference = pd_exact(6, 6, 2, 2, (3, 3), U=8.0, seed=0)
13
+ h = SectorHubbard(6, 6, 2, 2, U=8.0)
14
+ res, vecs = h.solve(k=1, seed=0)
15
+ v = vecs[:, 0].reshape(h.sup, h.sdn)
16
+ ladder = corr(v, 2, 2)
17
+ diff = abs(ladder - reference["P_org"])
18
+ out = {
19
+ "pd_eval_P_org": reference["P_org"],
20
+ "su2_ladder_P_org": ladder,
21
+ "absdiff": diff,
22
+ "seconds": time.monotonic() - start,
23
+ }
24
+ print(json.dumps(out, indent=2))
25
+ if diff >= 1e-10:
26
+ raise RuntimeError("pair implementation cross-check mismatch")
27
+ print("pair implementation cross-check PASS")
28
+
29
+
30
+ if __name__ == "__main__":
31
+ main()
methods/WiktorMatuszek/validation/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Validation evidence index
2
+
3
+ - `ne5_degen.json` — frozen Ne5 degeneracy spot-check on two resolved manifold
4
+ members, used by `run_full.sh` as a quick evidence gate. The full four-member
5
+ symmetry orbit gives the same scalar and equal-weight value
6
+ -0.0004894962398948123; `run_sectors.sh` regenerates that orbit and the exact
7
+ arithmetic witnesses instead of relying on this frozen file.
8
+ - `validate_pair_cross.py` — independent cross-check of the `pd_eval.py` and
9
+ `su2_ladder.py` pair-correlation implementations on the same fresh Ne4 vector.
10
+ - `validate_kuku.py` — executable validation of `pd_eval.py` against 12 published
11
+ ku-ku rectangular nondegenerate rows up to dimension one million. It is run by
12
+ `run_full.sh` and writes exact pass/fail tolerances.
13
+ - `sector_ed.py` independent validation — reproduces published 4x4 Ne4
14
+ (-11.321497133211766) and 5x4 Ne4 (-12.665021830596084) energies in the first
15
+ steps of `run_sectors.sh`.
16
+
17
+ Only evidence needed by the executable reproduction gates is packaged here. Heavy
18
+ generated-vector receipts live in `../verification/`; large eigenvectors are not
19
+ redistributed and are regenerated by `run_sectors.sh`.
methods/WiktorMatuszek/validation/ne5_degen.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "evals": [
3
+ -16.606552964131627,
4
+ -16.60655296413162,
5
+ -16.533740171699453,
6
+ -16.53374017169944
7
+ ],
8
+ "members": {
9
+ "0": -0.0004894962398948121,
10
+ "1": -0.0004894962398948125
11
+ },
12
+ "equal_weight_avg": -0.0004894962398948123,
13
+ "note": "the evals list includes the first excited pair after the ground copies; members are resolved ground-manifold directions. Krylov extraction can undercount the exact-degenerate rank-four manifold."
14
+ }
methods/WiktorMatuszek/verification/README.md ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Verification receipts
2
+
3
+ This directory contains small stdout/stderr receipts for the CPU-feasible validation
4
+ commands. They are evidence copies, not inputs required by the reproduction scripts.
5
+
6
+ - `run_full.log` — final local `sh run_full.sh` pass: fresh Ne2/Ne4 reproduction,
7
+ three Ne4 Lanczos starts, 12/12 ku-ku rectangular rows, independent pair-operator
8
+ cross-check, free-fermion controls and frozen Ne5 evidence checks.
9
+ - `run_material_OSC-01756.log` — final local pinned GeSe2 material pass with
10
+ fail-closed input and solver pins.
11
+ - `heavy_validation.md` — heavy Ne5/Ne6 reproduction receipt summary. Large
12
+ eigenvectors are not redistributed; `run_sectors.sh` regenerates them.
13
+ - `ne5_*.generated.json` — exact generated-vector Ne5 orbit/proof receipts.
14
+ The input orbit SHA256 recorded in the vector-dependent receipts is
15
+ `1a06c4f0ded21132f9f4b25797613aea3c68ecf4145007e06304cba4f671a052`.
16
+ - `ne6_*.generated.json` — fresh Ne6 `(5,1)` solve and SU(2)-ladder receipts.
17
+ The generated vector SHA256 is
18
+ `72e2576a1d8b44d4c157fb9a8dd33d6e6a2d42b0eb52a59e135d62a938118273`.
methods/WiktorMatuszek/verification/heavy_validation.md ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Heavy-sector validation receipt
2
+
3
+ The heavy numerical reproduction was executed on an x86_64 CPU workspace with
4
+ CPython 3.12.3, NumPy 2.5.2 and SciPy 1.18.1. Large eigenvectors are evidence
5
+ artifacts only and are not redistributed; `run_sectors.sh` regenerates them.
6
+
7
+ ## Ne5 generated orbit and exact proof replay
8
+
9
+ - `ne5_orbit.py` generated a rank-four orbit in the fixed (3,2) sector,
10
+ dimension 4,498,200, in 406.96 s. Lowest Ritz value `-16.6065529641317`;
11
+ maximum symmetry commutator `7.585808862424658e-16`; maximum added-vector
12
+ residual `3.150644543534923e-13`; orbit orthogonality error
13
+ `4.357966446291917e-15`.
14
+ - Projected pair matrix was scalar to numerical precision; eigenvalues clustered
15
+ around `-0.0004894962398948123` with spread below `1.1e-15`.
16
+ - Generated `orbit_vectors.npy` SHA256:
17
+ `1a06c4f0ded21132f9f4b25797613aea3c68ecf4145007e06304cba4f671a052`.
18
+ - The packaged exact proof replay passed on that generated vector:
19
+ Schur interval count (`results[0].negative=0`, `results[4].negative=1`),
20
+ integer Rayleigh margin `32731512912`, spin threshold integer `-98220415000`,
21
+ gap lower bound `0.01654802602193349`, and exact raw-P sign enclosure
22
+ `[-0.0004894986810148274, -0.0004894937987748272]` with norm cap 2.
23
+ - Small JSON receipts: `ne5_orbit_result.generated.json`,
24
+ `ne5_independent.generated.json`, `ne5_rayleigh.generated.json`,
25
+ `ne5_spin.generated.json`, `ne5_exact_raw.generated.json`.
26
+
27
+ ## Ne6 fresh sector solve and SU(2) ladder
28
+
29
+ - `sector_ed.py` freshly solved the 6x6 `(Nup,Ndown)=(5,1)` sector, dimension
30
+ 13,571,712, in 1548.34 s. Ground energy `-19.489596027342138`, true residual
31
+ `4.8673262497698494e-14`, next-two-Ritz gap `0.8148143232953338`.
32
+ - Generated `(5,1)` vector SHA256:
33
+ `72e2576a1d8b44d4c157fb9a8dd33d6e6a2d42b0eb52a59e135d62a938118273`.
34
+ - `su2_ladder.py` normalized that vector and exactly lowered it into (4,2) and
35
+ (3,3). Pre-normalization norm squares were `1`, `4` and `6` to 1e-12; all
36
+ three Hamiltonian residuals were below `3.65e-14`; all three sector Rayleigh
37
+ values matched `-19.48959602734211` within 1.1e-13.
38
+ - Measured organizer-normalized correlators were `-0.0006408458240976549` in
39
+ (5,1), `-0.0006408458240976535` in (4,2), and `-0.0006408458240976566` in
40
+ (3,3); maximum spread `3.1e-15`.
41
+ - Small JSON receipts: `ne6_51_sector.generated.json` and
42
+ `ne6_su2_ladder.generated.json` (source path sanitized; source SHA256 retained).
methods/WiktorMatuszek/verification/ne5_exact_raw.generated.json ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source_sha": "1a06c4f0ded21132f9f4b25797613aea3c68ecf4145007e06304cba4f671a052",
3
+ "q_sha": "b22e8be046fc0eb53a0df6acf6db304d02a5be79bca2a8b4edad21927ae93df6",
4
+ "dimension": 4498200,
5
+ "n": 1267650600228230684991429160943,
6
+ "H": -21051306832703380307559416169660,
7
+ "H2": 349589641881475023275354461823948,
8
+ "pair_terms": [
9
+ [
10
+ 0,
11
+ 21,
12
+ -3149359927922450094143859777
13
+ ],
14
+ [
15
+ 1,
16
+ 22,
17
+ -2933073170700612838662592167
18
+ ],
19
+ [
20
+ 2,
21
+ 23,
22
+ -2754444364648579076707484898
23
+ ],
24
+ [
25
+ 3,
26
+ 18,
27
+ -3060296725323165428574086911
28
+ ],
29
+ [
30
+ 4,
31
+ 19,
32
+ -3112863374005218022721334733
33
+ ],
34
+ [
35
+ 5,
36
+ 20,
37
+ -3023297770552375762624830170
38
+ ],
39
+ [
40
+ 6,
41
+ 27,
42
+ -2002586021121685077978226453
43
+ ],
44
+ [
45
+ 7,
46
+ 28,
47
+ -3129405190596063851232760492
48
+ ],
49
+ [
50
+ 8,
51
+ 29,
52
+ -3395707758425181666676289617
53
+ ],
54
+ [
55
+ 9,
56
+ 24,
57
+ -2803385566284926238840390851
58
+ ],
59
+ [
60
+ 10,
61
+ 25,
62
+ -1512846288271058541910798589
63
+ ],
64
+ [
65
+ 11,
66
+ 26,
67
+ -978349310936802169459757425
68
+ ],
69
+ [
70
+ 12,
71
+ 33,
72
+ -1791194246830418566267727827
73
+ ],
74
+ [
75
+ 13,
76
+ 34,
77
+ -3052440119256766258803144774
78
+ ],
79
+ [
80
+ 14,
81
+ 35,
82
+ -3363274288385347300065262563
83
+ ],
84
+ [
85
+ 15,
86
+ 30,
87
+ -2681056994593015852661371183
88
+ ],
89
+ [
90
+ 16,
91
+ 31,
92
+ -1256091013627104612641545770
93
+ ],
94
+ [
95
+ 17,
96
+ 32,
97
+ -677062434993298300528849722
98
+ ]
99
+ ],
100
+ "numerator": -44676734566474069660500313922,
101
+ "denominator": 91270843216432609319382899587896,
102
+ "center": "-22338367283237034830250156961/45635421608216304659691449793948",
103
+ "norm_cap": 2,
104
+ "projection_cap": "15257/25000000000000",
105
+ "half_width": "15257/6250000000000",
106
+ "lower": "-34903872944964736061305918479674876566159/71305346262837976030767890303043750000000000",
107
+ "upper": "-34903524815150997783225822023450123433841/71305346262837976030767890303043750000000000",
108
+ "display": [
109
+ -0.0004894986810148274,
110
+ -0.0004894937987748272
111
+ ],
112
+ "negative_control": "pair sign reversal rejected",
113
+ "scope": "Ne5 fixed (3,2), raw R33, quantized vector generated by ne5_orbit.py; exact integer contractions; threshold proof required"
114
+ }
methods/WiktorMatuszek/verification/ne5_independent.generated.json ADDED
@@ -0,0 +1,139 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "kinetic_minima": [
3
+ -16,
4
+ -17,
5
+ -16,
6
+ -15,
7
+ -16,
8
+ -17,
9
+ -17,
10
+ -16,
11
+ -17,
12
+ -16,
13
+ -17,
14
+ -16,
15
+ -16,
16
+ -17,
17
+ -16,
18
+ -15,
19
+ -16,
20
+ -17,
21
+ -15,
22
+ -16,
23
+ -15,
24
+ -14,
25
+ -15,
26
+ -16,
27
+ -16,
28
+ -17,
29
+ -16,
30
+ -15,
31
+ -16,
32
+ -17,
33
+ -17,
34
+ -16,
35
+ -17,
36
+ -16,
37
+ -17,
38
+ -16
39
+ ],
40
+ "results": [
41
+ {
42
+ "threshold": "-83/5",
43
+ "momentum": 8,
44
+ "cut": -13,
45
+ "rank": 67,
46
+ "den": 4143636,
47
+ "integer_bound": 3236926,
48
+ "nearest_zero_eigenvalue": 0.0016229507192652031,
49
+ "negative": 0,
50
+ "min_pivot_margin": 0.0033060336380898317,
51
+ "max_pivot_width": 1.509903313490213e-14
52
+ },
53
+ {
54
+ "threshold": "-1659/100",
55
+ "momentum": 8,
56
+ "cut": -13,
57
+ "rank": 67,
58
+ "den": 264093267996,
59
+ "integer_bound": 206160563596,
60
+ "nearest_zero_eigenvalue": 0.0009502410861193032,
61
+ "negative": 0,
62
+ "min_pivot_margin": 0.002645325283378981,
63
+ "max_pivot_width": 1.587618925213974e-14
64
+ },
65
+ {
66
+ "threshold": "-829/50",
67
+ "momentum": 8,
68
+ "cut": -13,
69
+ "rank": 67,
70
+ "den": 32874510636,
71
+ "integer_bound": 25645006436,
72
+ "nearest_zero_eigenvalue": 0.0002737725544152162,
73
+ "negative": 0,
74
+ "min_pivot_margin": 0.001980971206570145,
75
+ "max_pivot_width": 2.2426505097428162e-14
76
+ },
77
+ {
78
+ "threshold": "-1657/100",
79
+ "momentum": 8,
80
+ "cut": -13,
81
+ "rank": 67,
82
+ "den": 261901153332,
83
+ "integer_bound": 204161725732,
84
+ "nearest_zero_eigenvalue": 0.00040648673794802437,
85
+ "negative": 1,
86
+ "min_pivot_margin": 0.0013129408886722372,
87
+ "max_pivot_width": 2.399594190016785e-09
88
+ },
89
+ {
90
+ "threshold": "-83/5",
91
+ "momentum": 1,
92
+ "cut": -11,
93
+ "rank": 517,
94
+ "den": 4164048,
95
+ "integer_bound": 3549368,
96
+ "nearest_zero_eigenvalue": 0.0004704379658988724,
97
+ "negative": 1,
98
+ "min_pivot_margin": 0.0007437957921948753,
99
+ "max_pivot_width": 1.887379141862766e-13
100
+ },
101
+ {
102
+ "threshold": "-1659/100",
103
+ "momentum": 1,
104
+ "cut": -11,
105
+ "rank": 517,
106
+ "den": 531409014396,
107
+ "integer_bound": 452839669996,
108
+ "nearest_zero_eigenvalue": 0.00017789785747868595,
109
+ "negative": 1,
110
+ "min_pivot_margin": 0.0018168399210639443,
111
+ "max_pivot_width": 1.5365486660812167e-13
112
+ },
113
+ {
114
+ "threshold": "-829/50",
115
+ "momentum": 1,
116
+ "cut": -11,
117
+ "rank": 517,
118
+ "den": 66227815836,
119
+ "integer_bound": 56420351636,
120
+ "nearest_zero_eigenvalue": 0.00011569813801689432,
121
+ "negative": 2,
122
+ "min_pivot_margin": 0.002611016554413209,
123
+ "max_pivot_width": 2.5289000353811986e-06
124
+ },
125
+ {
126
+ "threshold": "-1657/100",
127
+ "momentum": 1,
128
+ "cut": -11,
129
+ "rank": 517,
130
+ "den": 528238678932,
131
+ "integer_bound": 449888531332,
132
+ "nearest_zero_eigenvalue": 0.00041035578938033627,
133
+ "negative": 2,
134
+ "min_pivot_margin": 0.0022443767969123163,
135
+ "max_pivot_width": 1.1320056905184117e-06
136
+ }
137
+ ],
138
+ "seconds": 36.677493998082355
139
+ }
methods/WiktorMatuszek/verification/ne5_orbit_result.generated.json ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dimension": 4498200,
3
+ "ritz_values": [
4
+ -16.6065529641317,
5
+ -16.53374017169944
6
+ ],
7
+ "commutators": {
8
+ "Tx": 5.852282168839098e-16,
9
+ "Ty": 6.764966632657455e-16,
10
+ "C4": 7.585808862424658e-16
11
+ },
12
+ "orbit_rank": 4,
13
+ "additions": [
14
+ {
15
+ "origin": "ritz0",
16
+ "new_norm": 1.0000000000000007,
17
+ "residual": 9.984210489788343e-14
18
+ },
19
+ {
20
+ "origin": "Tx0",
21
+ "new_norm": 0.4267588564851044,
22
+ "residual": 2.6371462364656484e-13
23
+ },
24
+ {
25
+ "origin": "Ty0",
26
+ "new_norm": 0.7981279205474036,
27
+ "residual": 1.4694591211115716e-13
28
+ },
29
+ {
30
+ "origin": "C40",
31
+ "new_norm": 0.6568437737910336,
32
+ "residual": 3.150644543534923e-13
33
+ }
34
+ ],
35
+ "closure": {
36
+ "Tx": 9.16353998527966e-13,
37
+ "Ty": 5.311399720187129e-13,
38
+ "C4": 1.1564052884710765e-12
39
+ },
40
+ "projected_pair": [
41
+ [
42
+ -0.0004894962398948127,
43
+ 4.5104504441291493e-20,
44
+ -2.371692252312041e-20,
45
+ 4.912791094074942e-20
46
+ ],
47
+ [
48
+ 4.5104504441291493e-20,
49
+ -0.0004894962398948129,
50
+ -6.45862622281404e-21,
51
+ -3.7290625502870572e-19
52
+ ],
53
+ [
54
+ -2.371692252312041e-20,
55
+ -6.45862622281404e-21,
56
+ -0.0004894962398948126,
57
+ -3.4304834363799164e-19
58
+ ],
59
+ [
60
+ 4.912791094074942e-20,
61
+ -3.7290625502870572e-19,
62
+ -3.4304834363799164e-19,
63
+ -0.0004894962398948131
64
+ ]
65
+ ],
66
+ "projected_pair_eigenvalues": [
67
+ -0.0004894962398948135,
68
+ -0.0004894962398948127,
69
+ -0.0004894962398948126,
70
+ -0.0004894962398948124
71
+ ],
72
+ "orthogonality": 4.357966446291917e-15,
73
+ "target_pair": -0.0004894962398948123,
74
+ "seconds": 406.95793196209706,
75
+ "scope": "numerical symmetry orbit used as input to the exact-arithmetic Ne5 witnesses"
76
+ }
methods/WiktorMatuszek/verification/ne5_rayleigh.generated.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source_sha": "1a06c4f0ded21132f9f4b25797613aea3c68ecf4145007e06304cba4f671a052",
3
+ "integer_max": 3446,
4
+ "dimension": 4498200,
5
+ "numerator": -16606552197840,
6
+ "denominator": 1000000355136,
7
+ "rayleigh": -16.606546300257573,
8
+ "threshold": "-83/5",
9
+ "strict_margin_integer": 32731512912,
10
+ "seconds": 1.4578153940383345
11
+ }
methods/WiktorMatuszek/verification/ne5_spin.generated.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source_sha": "1a06c4f0ded21132f9f4b25797613aea3c68ecf4145007e06304cba4f671a052",
3
+ "raised_dimension": 2120580,
4
+ "max_abs": 5625,
5
+ "overflow_bound": 14962514273437500,
6
+ "qTq": 3000000753540,
7
+ "qTHq": -49819656591764,
8
+ "strict_threshold_integer": -98220415000,
9
+ "rayleigh": -16.606548026021933,
10
+ "gap_lower_bound": 0.01654802602193349,
11
+ "fully_polarized_min": -16,
12
+ "seconds": 1.5602492610923946
13
+ }
methods/WiktorMatuszek/verification/ne6_51_sector.generated.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "evals": [
3
+ -19.489596027342138,
4
+ -18.674781704046804,
5
+ -18.674781704046726
6
+ ],
7
+ "E0": -19.489596027342138,
8
+ "residual": 4.8673262497698494e-14,
9
+ "gap": 0.8148143232953338,
10
+ "time_s": 1548.339837551117,
11
+ "dim": 13571712,
12
+ "ncv": 8,
13
+ "nup": 5,
14
+ "ndown": 1,
15
+ "seed": 0,
16
+ "nx": 6,
17
+ "ny": 6,
18
+ "U": 8.0
19
+ }
methods/WiktorMatuszek/verification/ne6_su2_ladder.generated.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source": "generated vec_up5_dn1.npy (large vector not redistributed)",
3
+ "source_sha256": "72e2576a1d8b44d4c157fb9a8dd33d6e6a2d42b0eb52a59e135d62a938118273",
4
+ "reference_energy": -19.48959602734211,
5
+ "rows": [
6
+ {
7
+ "sector": [
8
+ 5,
9
+ 1
10
+ ],
11
+ "dim": 13571712,
12
+ "pre_normalization_norm_squared": 1.0000000000000033,
13
+ "rayleigh": -19.489596027342113,
14
+ "residual": 3.425647865057042e-14,
15
+ "P_org_R33": -0.0006408458240976549
16
+ },
17
+ {
18
+ "sector": [
19
+ 4,
20
+ 2
21
+ ],
22
+ "dim": 37110150,
23
+ "pre_normalization_norm_squared": 4.00000000000001,
24
+ "rayleigh": -19.489596027342042,
25
+ "residual": 3.507662230118266e-14,
26
+ "P_org_R33": -0.0006408458240976535
27
+ },
28
+ {
29
+ "sector": [
30
+ 3,
31
+ 3
32
+ ],
33
+ "dim": 50979600,
34
+ "pre_normalization_norm_squared": 5.999999999999971,
35
+ "rayleigh": -19.48959602734215,
36
+ "residual": 3.641690371901801e-14,
37
+ "P_org_R33": -0.0006408458240976566
38
+ }
39
+ ],
40
+ "seconds": 21.80370779708028,
41
+ "numpy": "2.5.2",
42
+ "claim": "spin lowering of one independently solved (5,1) vector; not independent diagonalization of (4,2) or (3,3)"
43
+ }
methods/WiktorMatuszek/verification/run_full.log ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "ne2": {
3
+ "E0": -7.90614614698336,
4
+ "P_org": -4.297545489481333e-30,
5
+ "residual": 3.218452826995359e-13
6
+ },
7
+ "ne4": {
8
+ "E0": -13.726749905245002,
9
+ "P_org": 0.0024407125165524317,
10
+ "residual": 6.510959751301193e-12
11
+ },
12
+ "ne4_seed_spread": {
13
+ "E0": 4.973799150320701e-14,
14
+ "P_org": 1.5699247457590104e-16
15
+ }
16
+ }
17
+ submission reproduction PASS
18
+ {"case": "2x4 n=0.25", "dim": 64, "E0": -7.517540966287274, "E0_ref": -7.51754096, "E0_absdiff": 6.287273812688454e-09, "E0_tol": 2e-08, "P_org": 0.0021602987502842494, "P_ref": 0.00216029, "P_absdiff": 8.750284249351564e-09, "P_tol": 2e-08, "residual": 1.6751863809162575e-14, "pass_": true}
19
+ {"case": "2x4 n=0.50", "dim": 784, "E0": -10.49762201880157, "E0_ref": -10.49762201, "E0_absdiff": 8.801569251204455e-09, "E0_tol": 2e-08, "P_org": -0.003636147966519615, "P_ref": -0.00363614, "P_absdiff": 7.966519614995005e-09, "P_tol": 2e-08, "residual": 6.134462166531345e-12, "pass_": true}
20
+ {"case": "2x4 n=0.75", "dim": 3136, "E0": -10.62689735471727, "E0_ref": -10.62689735, "E0_absdiff": 4.717270130072393e-09, "E0_tol": 2e-08, "P_org": 0.19384632869957394, "P_ref": 0.193846, "P_absdiff": 3.2869957394821014e-07, "P_tol": 2e-06, "residual": 1.8160165275571997e-13, "pass_": true}
21
+ {"case": "2x4 n=1.00", "dim": 4900, "E0": -7.1267123444222396, "E0_ref": -7.12671234, "E0_absdiff": 4.422239463508504e-09, "E0_tol": 2e-08, "P_org": 0.03284077959289312, "P_ref": 0.0328407, "P_absdiff": 7.95928931165979e-08, "P_tol": 2e-07, "residual": 4.0143309647864836e-12, "pass_": true}
22
+ {"case": "3x4 n=0.1666", "dim": 144, "E0": -7.675992091391265, "E0_ref": -7.67599209, "E0_absdiff": 1.3912648810787687e-09, "E0_tol": 2e-08, "P_org": 5.752637830879526e-05, "P_ref": 5.7526378308795875e-05, "P_absdiff": 6.166399856011306e-19, "P_tol": 5e-11, "residual": 5.6928032075764654e-15, "pass_": true}
23
+ {"case": "3x4 n=0.3333", "dim": 4356, "E0": -11.037873924123122, "E0_ref": -11.037873924, "E0_absdiff": 1.2312284525251016e-10, "E0_tol": 2e-09, "P_org": -0.00649435763654466, "P_ref": -0.00649435, "P_absdiff": 7.63654465964908e-09, "P_tol": 2e-08, "residual": 1.4446076723395312e-12, "pass_": true}
24
+ {"case": "3x4 n=0.50", "dim": 48400, "E0": -13.067143245595513, "E0_ref": -13.067143245, "E0_absdiff": 5.955129722678976e-10, "E0_tol": 2e-09, "P_org": 0.10387538976306447, "P_ref": 0.103875, "P_absdiff": 3.8976306447613407e-07, "P_tol": 2e-06, "residual": 1.1073776433136499e-11, "pass_": true}
25
+ {"case": "3x4 n=0.6666", "dim": 245025, "E0": -12.640054152026053, "E0_ref": -12.64005415, "E0_absdiff": 2.0260539912442255e-09, "E0_tol": 2e-08, "P_org": 0.036060921729700206, "P_ref": 0.0360609, "P_absdiff": 2.1729700205863622e-08, "P_tol": 2e-07, "residual": 4.577862139222246e-12, "pass_": true}
26
+ {"case": "3x4 n=0.8333", "dim": 627264, "E0": -10.76537911051297, "E0_ref": -10.76537911, "E0_absdiff": 5.129709990114861e-10, "E0_tol": 2e-08, "P_org": 0.056826612626875016, "P_ref": 0.0568266, "P_absdiff": 1.2626875017796024e-08, "P_tol": 2e-07, "residual": 2.38033812772947e-12, "pass_": true}
27
+ {"case": "3x4 n=1.00", "dim": 853776, "E0": -5.833484257498087, "E0_ref": -5.83348425, "E0_absdiff": 7.498087484236748e-09, "E0_tol": 2e-08, "P_org": 0.010027089383055686, "P_ref": 0.010027, "P_absdiff": 8.938305568612082e-08, "P_tol": 2e-06, "residual": 2.8134327833774474e-12, "pass_": true}
28
+ {"case": "4x4 n=0.125", "dim": 256, "E0": -7.764090590903901, "E0_ref": -7.76409059, "E0_absdiff": 9.039009540856568e-10, "E0_tol": 2e-08, "P_org": -5.91019751683833e-33, "P_ref": 0.0, "P_absdiff": 5.91019751683833e-33, "P_tol": 1e-25, "residual": 5.060123854673858e-15, "pass_": true}
29
+ {"case": "4x4 n=0.375", "dim": 313600, "E0": -14.72354031790759, "E0_ref": -14.72354031, "E0_absdiff": 7.907589250066849e-09, "E0_tol": 2e-08, "P_org": -0.0137308525863263, "P_ref": -0.0137308, "P_absdiff": 5.2586326300396724e-08, "P_tol": 2e-07, "residual": 1.3905098453147115e-11, "pass_": true}
30
+ ku-ku validation PASS rows=12
31
+ {
32
+ "pd_eval_P_org": 0.0024407125165524317,
33
+ "su2_ladder_P_org": 0.0024407125165524313,
34
+ "absdiff": 4.336808689942018e-19,
35
+ "seconds": 7.805422484999326
36
+ }
37
+ pair implementation cross-check PASS
38
+ free-fermion 6x6 Ne26 U=0 R=(3,3) Wick correlator: 0.030864197530864203
39
+ direct Fock reference PASS
40
+ frozen Ne5 degeneracy evidence PASS
41
+ full validation PASS
methods/WiktorMatuszek/verification/run_material_OSC-01756.log ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "ed": {
3
+ "E0": -13.726749905244976,
4
+ "Pd33": 0.0012203562582762664,
5
+ "Pd33_connected": 0.0012173384844122851,
6
+ "Pd33_eigenstate": [
7
+ 0.0012203562582762664
8
+ ],
9
+ "Pd33_wick": 3.017773863981241e-06,
10
+ "Ps33_s_wave": -0.001631511601779364,
11
+ "algorithm": "matrix-free sparse CAR eigsh CPU; ground-projector pairing",
12
+ "dimension": 396900,
13
+ "elapsed_seconds": 8.202,
14
+ "energies": [
15
+ -13.726749905244976,
16
+ -13.715859171684707,
17
+ -13.715859171684627,
18
+ -13.712392901742668,
19
+ -13.71239290174264,
20
+ -13.63197697346489,
21
+ -13.63197697346486,
22
+ -13.528456600048171
23
+ ],
24
+ "ground_multiplicity": 1,
25
+ "hermiticity_relative": 7.335371962207638e-17,
26
+ "limitations": "finite torus, Sz0 sector, not bulk SC or official score",
27
+ "max_residual": 2.84073474537239e-14,
28
+ "mean_double_occupancy": 0.013773356358383355,
29
+ "model": "6x6 periodic Hubbard, Ne4 Sz0 U/t=8",
30
+ "n_bonds": 72,
31
+ "one_spin_h_nnz": 4896,
32
+ "slater_wick_oracle_error": 5.551115123125783e-17,
33
+ "spin_dimension": 630,
34
+ "translated_Pd33": [
35
+ [
36
+ 0.0012203562582762664,
37
+ 0.001220356258276277,
38
+ 0.0012203562582761953
39
+ ]
40
+ ]
41
+ },
42
+ "elapsed_s": 8.384841702999438,
43
+ "materials": [
44
+ {
45
+ "canonical_Ad": "0.0",
46
+ "canonical_formula_score": "0.00000",
47
+ "formula": "GeSe2",
48
+ "material_id": "1GeSe2-2",
49
+ "model_Ad_org": "0.0024407125165525328",
50
+ "model_formula_score": "0.322305850660828166371200",
51
+ "n_band": "0.1092",
52
+ "nef": "0.44018",
53
+ "osc_id": "OSC-01756",
54
+ "solver_delta": "0.8889"
55
+ }
56
+ ],
57
+ "scope": "nearest even Ne4 bin; pinned organizer t,U,nef; no independent DFT, official score or bulk claim",
58
+ "solver_sha256": "7feddeaef7c97cda3d0bf8d5ad62b048e9ab197525b1230c6f52c3a57e1ac35f",
59
+ "source_revision": "12b7f85535a7a89faddd4eacde2eb997f89a7d9f",
60
+ "source_sha256": "659f31464d17e40a33c055310073ab77a7d3a92be45b69081752d2d9bbf70729",
61
+ "status": "FINITE_CLUSTER_CALIBRATION_ESTIMATE"
62
+ }
methods/WiktorMatuszek/verify_manifest.py ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Verify SHA256SUMS.txt coverage and hashes at the package root."""
3
+ import hashlib
4
+ from pathlib import Path
5
+
6
+ root = Path(__file__).resolve().parent
7
+ entries = []
8
+ for line in (root / "SHA256SUMS.txt").read_text(encoding="utf-8").splitlines():
9
+ expected, name = line.split(" ", 1)
10
+ if name.startswith("./"):
11
+ name = name[2:]
12
+ entries.append((expected, name))
13
+
14
+ failures = []
15
+ covered = set()
16
+ for expected, name in entries:
17
+ covered.add(name)
18
+ p = (root / name).resolve()
19
+ if not p.is_relative_to(root) or not p.is_file():
20
+ failures.append(name)
21
+ continue
22
+ if hashlib.sha256(p.read_bytes()).hexdigest() != expected:
23
+ failures.append(name)
24
+
25
+ actual = {
26
+ str(p.relative_to(root))
27
+ for p in root.rglob("*")
28
+ if p.is_file()
29
+ and "__pycache__" not in p.parts
30
+ and p.name != "SHA256SUMS.txt"
31
+ and not p.name.endswith(".zip")
32
+ and not p.name.endswith(".zip.sha256")
33
+ }
34
+ missing = sorted(actual - covered)
35
+ extra = sorted(covered - actual)
36
+ print(f"{len(entries)} files checked; {len(failures)} hash/path failures; {len(missing)} unlisted; {len(extra)} stale")
37
+ for group in (failures, missing, extra):
38
+ if group:
39
+ print("\n".join(group))
40
+ raise SystemExit(1 if failures or missing or extra else 0)
submissions/WiktorMatuszek_gold_OSC-01756.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "material_id": "1GeSe2-2",
3
+ "t": 0.23531,
4
+ "U": 1.88248,
5
+ "nef": 0.44018,
6
+ "U_over_t": 8.0,
7
+ "solver_delta": "0.8889",
8
+ "A_dwave": 0.00244071,
9
+ "provisional_score": 0.322,
10
+ "author": "WiktorMatuszek",
11
+ "osc_id": "OSC-01756",
12
+ "formula": "GeSe2",
13
+ "level": "negligible",
14
+ "method_name": "exact finite-cluster 6x6 Hubbard ED calibration lattice",
15
+ "track": "gold",
16
+ "method": {
17
+ "model": "square-lattice Hubbard, H=-t(sum c+c + h.c.) + U n_up n_dn, U/t=8, periodic 6x6 scoring cluster",
18
+ "clusters": [
19
+ "6x6 periodic"
20
+ ],
21
+ "observable": "A_d = P_org(R=(3,3)) = <Delta_d^+(j) Delta_d(i)>, organizer normalization P_org = 2 x P_ED",
22
+ "engine": "independent spin-factorized bitmask exact diagonalization (fresh Lanczos); independent pair-operator cross-check; SU(2) ladder witness; vector-portable exact-arithmetic Ne5 witnesses",
23
+ "U0_check": "exact free-fermion Wick controls, including 6x6 Ne26 R=(3,3)=0.0308641975308642 and a direct Fock reference",
24
+ "validation": "12/12 published ku-ku rectangular nondegenerate rows reproduced; published 4x4/5x4 sector energies reproduced; Ne4 reproduced from three independent Lanczos starts; Ne5 rank-four orbit/correlator and exact count/spin/raw-sign proof replay; Ne6 (4,2)/(3,3) witnesses constructed by exact SU(2) lowering from fresh (5,1)",
25
+ "limitations": "Exact only on the stated finite periodic clusters and nearest-even particle-number bins. Not ED at the continuous DFT filling, not a converged thermodynamic sequence, and not a claim about bulk superconductivity. Claimed scores await organizer reproduction and do not override canonical leaderboard scores.",
26
+ "particle_number_convention": "Ne labels total electrons; fixed spin sectors are written (N_up,N_down). The material uses the nearest even 6x6 bin Ne4 at solver_delta=0.8889."
27
+ },
28
+ "A_d_source": {
29
+ "rule": "exact",
30
+ "point": "6x6 Ne4, sector (N_up,N_down)=(2,2)",
31
+ "finite_cluster_exact": true,
32
+ "delta_matching": "official solver_delta rounded to 4 decimals; nearest even 6x6 bin Ne4",
33
+ "fresh_independent_starts": 3,
34
+ "baseline_published_A_d": 0.0,
35
+ "signed_exact_P_org": 0.002440712516552
36
+ }
37
+ }