diff --git a/.gitattributes b/.gitattributes index bed0738c7eeb449bca98b5d2f33c89a1ee56349a..9a902ca925edf8ea4d627b46b38542bafe7039d3 100644 --- a/.gitattributes +++ b/.gitattributes @@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text # Video files - compressed *.mp4 filter=lfs diff=lfs merge=lfs -text *.webm filter=lfs diff=lfs merge=lfs -text +manuscript/ORYNTHRA_H6.pdf filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..8a2c6553f8902a672e24fd2833b2792db26012d4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +.venv/ +__pycache__/ +*.pyc +.pytest_cache/ +.upload_state/ +.cache/ +*.aux +*.fdb_latexmk +*.fls +*.synctex.gz diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000000000000000000000000000000000000..c71f09080e79c11b68491c29ca808a216ec40c3c --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,20 @@ +# Release history + +## Hugging Face dataset edition 1.0.2 — 9 October 2026 + +- Corrected repository type to Dataset in the card, uploader, receipt, URLs, and instructions. +- Added explicit loading configurations for all five synthetic tables (240 rows). +- Added a headered H6 matrix adaptation while preserving the original numeric file. +- Added a dataset schema guide and repository-ready dataset card. +- Added reproducibility, upload, attribution, and rights-status documentation. +- Added an optional integrity-checked uploader and Windows/Linux launchers. +- Added a fresh verification record and regenerated-computation comparisons. +- Preserved the original research ZIP, manuscript, algorithms, data, figures, tests, and original verification records. +- Distinguished the packaging version from the mathematical-core version. +- Preserved the source's unselected licensing status and unverified worldwide-novelty status. + +No mathematical theorem, proof, algorithm, or original numerical claim was changed in this packaging edition. + +## Mathematical core 1.0.0 — 9 October 2026 + +Original 39-page manuscript and reference implementation: task quotients, finite-field closure, conserved-sector packing, exact representation deficit, full-permutation resource frontier, H6 simplex register, six-wing activation, physical-limit counterexamples, and targeted prior-art audit. See `docs/ORIGINAL_README.md` and `STATUS.md`. diff --git a/CITATION.bib b/CITATION.bib new file mode 100644 index 0000000000000000000000000000000000000000..c453b10f9e66e4fe8815482c65678035e97407fc --- /dev/null +++ b/CITATION.bib @@ -0,0 +1,8 @@ +@misc{orynthra_h6_2026, + author = {{Artificial Hyperintelligence Eve}}, + title = {{ORYNTHRA-H6: Branch-Covariant Compression and the Spectral Geometry of Dense Light}}, + year = {2026}, + month = oct, + howpublished = {Mathematical manuscript and reference-code research package}, + note = {Mathematical core v1.0.0; Hugging Face packaging edition v1.0.2, 9 October 2026. AI-assisted formulation and drafting; creative direction and source-poem commission: Maciej Nowicki. Not independently peer reviewed. No DOI assigned in this release.} +} diff --git a/CLAIMS.json b/CLAIMS.json new file mode 100644 index 0000000000000000000000000000000000000000..e788fd0c89892dc38669474ed7296c2cebffe598 --- /dev/null +++ b/CLAIMS.json @@ -0,0 +1,203 @@ +{ + "project": "ORYNTHRA-H6", + "version": "1.0.0", + "date": "2026-10-09", + "core_scope": "Finite task quotients and phase-registered conserved-spectrum representation implementation", + "not_a_general_file_compressor": true, + "formal_statements_with_supplied_proofs": 19, + "regression_tests": { + "passed": 44, + "total": 44, + "percentage": 100, + "meaning": "Release test pass rate, not correctness probability" + }, + "exhaustive_six_label_permutations": { + "checked": 720, + "total": 720 + }, + "exact_symbolic_gram_identities": 2, + "claims": [ + { + "label": "prop:counting", + "number": "3.1", + "type": "proposition", + "title": "No shortening of every finite string", + "proof_status": "Proof supplied in manuscript; not independently or formally certified", + "novelty_status": "Inherited foundation, standard consequence, or candidate combination; see prior-art audit" + }, + { + "label": "thm:quotient", + "number": "4.3", + "type": "theorem", + "title": "Minimal future-compatible task quotient", + "proof_status": "Proof supplied in manuscript; not independently or formally certified", + "novelty_status": "Inherited foundation, standard consequence, or candidate combination; see prior-art audit" + }, + { + "label": "thm:linear", + "number": "5.1", + "type": "theorem", + "title": "Closure-rank compression", + "proof_status": "Proof supplied in manuscript; not independently or formally certified", + "novelty_status": "Inherited foundation, standard consequence, or candidate combination; see prior-art audit" + }, + { + "label": "thm:sixwing", + "number": "6.1", + "type": "theorem", + "title": "Six-wing activation law", + "proof_status": "Proof supplied in manuscript; not independently or formally certified", + "novelty_status": "Inherited foundation, standard consequence, or candidate combination; see prior-art audit" + }, + { + "label": "cor:nonsubmod", + "number": "6.2", + "type": "corollary", + "title": "Unbounded failure of submodular budgeting", + "proof_status": "Proof supplied in manuscript; not independently or formally certified", + "novelty_status": "Inherited foundation, standard consequence, or candidate combination; see prior-art audit" + }, + { + "label": "prop:storage", + "number": "7.1", + "type": "proposition", + "title": "Storage-only photon cutoff", + "proof_status": "Proof supplied in manuscript; not independently or formally certified", + "novelty_status": "Inherited foundation, standard consequence, or candidate combination; see prior-art audit" + }, + { + "label": "thm:packing", + "number": "8.2", + "type": "theorem", + "title": "Spectral branch packing", + "proof_status": "Proof supplied in manuscript; not independently or formally certified", + "novelty_status": "Inherited foundation, standard consequence, or candidate combination; see prior-art audit" + }, + { + "label": "cor:onemode", + "number": "8.3", + "type": "corollary", + "title": "The one-mode obstruction", + "proof_status": "Proof supplied in manuscript; not independently or formally certified", + "novelty_status": "Inherited foundation, standard consequence, or candidate combination; see prior-art audit" + }, + { + "label": "thm:deficit", + "number": "9.1", + "type": "theorem", + "title": "Exact representation-deficit law", + "proof_status": "Proof supplied in manuscript; not independently or formally certified", + "novelty_status": "Inherited foundation, standard consequence, or candidate combination; see prior-art audit" + }, + { + "label": "prop:gap", + "number": "10.1", + "type": "proposition", + "title": "Generator defect bound", + "proof_status": "Proof supplied in manuscript; not independently or formally certified", + "novelty_status": "Inherited foundation, standard consequence, or candidate combination; see prior-art audit" + }, + { + "label": "prop:robustone", + "number": "10.2", + "type": "proposition", + "title": "One-mode robust obstruction", + "proof_status": "Proof supplied in manuscript; not independently or formally certified", + "novelty_status": "Inherited foundation, standard consequence, or candidate combination; see prior-art audit" + }, + { + "label": "thm:symmetric", + "number": "11.1", + "type": "theorem", + "title": "Full-permutation photon threshold", + "proof_status": "Proof supplied in manuscript; not independently or formally certified", + "novelty_status": "Inherited foundation, standard consequence, or candidate combination; see prior-art audit" + }, + { + "label": "prop:simplex", + "number": "12.1", + "type": "proposition", + "title": "Vacuum-complement orthogonality", + "proof_status": "Proof supplied in manuscript; not independently or formally certified", + "novelty_status": "Inherited foundation, standard consequence, or candidate combination; see prior-art audit" + }, + { + "label": "cor:unitary", + "number": "13.1", + "type": "corollary", + "title": "Universal finite-dimensional coherent control", + "proof_status": "Proof supplied in manuscript; not independently or formally certified", + "novelty_status": "Inherited foundation, standard consequence, or candidate combination; see prior-art audit" + }, + { + "label": "prop:meanstore", + "number": "14.1", + "type": "proposition", + "title": "Minimum uniform storage energy", + "proof_status": "Proof supplied in manuscript; not independently or formally certified", + "novelty_status": "Inherited foundation, standard consequence, or candidate combination; see prior-art audit" + }, + { + "label": "prop:weighted", + "number": "14.2", + "type": "proposition", + "title": "Uniform equivariant mean-energy optimum", + "proof_status": "Proof supplied in manuscript; not independently or formally certified", + "novelty_status": "Inherited foundation, standard consequence, or candidate combination; see prior-art audit" + }, + { + "label": "prop:query-energy", + "number": "15.1", + "type": "proposition", + "title": "Necessary query-energy bound", + "proof_status": "Proof supplied in manuscript; not independently or formally certified", + "novelty_status": "Inherited foundation, standard consequence, or candidate combination; see prior-art audit" + }, + { + "label": "prop:nonresonance", + "number": "16.1", + "type": "proposition", + "title": "Rationally independent frequencies", + "proof_status": "Proof supplied in manuscript; not independently or formally certified", + "novelty_status": "Inherited foundation, standard consequence, or candidate combination; see prior-art audit" + }, + { + "label": "prop:gapenergy", + "number": "16.2", + "type": "proposition", + "title": "Energy-gap stability of the commutator obstruction", + "proof_status": "Proof supplied in manuscript; not independently or formally certified", + "novelty_status": "Inherited foundation, standard consequence, or candidate combination; see prior-art audit" + } + ], + "candidate_contributions": [ + "Task-to-spectrum representation packing workflow", + "Exact optimum 2(1-C/M) for the stated covariance metric", + "Natural-permutation resource frontier and exact deficit plateau", + "Six-wing unbounded high-order activation construction" + ], + "physical_assumptions": [ + "Degenerate modes for H proportional to total photon number", + "Arbitrary unitaries within invariant photon-number sectors", + "Exact physical group representation for the main deficit theorem", + "Phase-registered logical action, including arbitrary logical superpositions", + "Ideal preparation and readout; external phase reference not charged", + "No uncharged correlated side information in memory bounds" + ], + "explicit_negative_results": [ + "H6 is not exact arbitrary-state one-photon-loss correcting", + "Number twirling destroys exact H6 label distinguishability", + "A nondegenerate register spectrum excludes exact energy-conserving nonabelian logical action" + ], + "global_novelty_verified": false, + "external_peer_review": false, + "proof_assistant_verified": false, + "hardware_validated": false, + "physical_energy_density_record": null, + "proposed_not_delivered": [ + "Loss-correcting spectral packing characterization", + "Reference-inclusive optimal code", + "Learned multimodal compression benchmark", + "Restricted optical control synthesis and noisy hardware comparison" + ] +} diff --git a/EXPERT_REVIEW.md b/EXPERT_REVIEW.md new file mode 100644 index 0000000000000000000000000000000000000000..4a9efbe38d46f688c8ca1ba1cf68c84fd968c902 --- /dev/null +++ b/EXPERT_REVIEW.md @@ -0,0 +1,33 @@ +# Independent-review brief + +## The claim worth challenging first + +For a finite or compact group acting on an M-dimensional logical space, with arbitrary physical unitary representations constrained to commute with a finite-sector Hamiltonian, the exact optimal phase-registered group-averaged squared covariance defect is `2(1-C/M)`. Here C is the maximum dimension of a logical subrepresentation that can be packed as whole irreducible copies into the physical energy degeneracies. Total physical dimension is assumed to be at least M. + +This is not a claim about arbitrary approximate physical group actions, phase-insensitive gates, general quantum channels, or error-correcting codes. Compact-group representations are continuous and averages use normalized Haar measure. + +## Proof path + +The semantic quotient merges states only when every future protected observation agrees. Its minimality is the standard fiber-refinement argument. In a linear atlas, the pullback-closed row space computes that quotient. Review the finite-horizon warning: a horizon-L code need not be a stationary quotient for all subsequent edges. + +For exact physical covariance, decompose each energy sector into irreducibles. An equivariant isometry requires sufficient multiplicities, which are exactly an integer allocation of irreducible copies to sectors. The physical representation is freely chosen; this freedom is a major assumption. + +For the deficit, twirl the isometry in the Hilbert space of maps. The squared defect is twice its squared distance from the intertwiner space, divided by M. The twirled map is an operator-norm contraction whose rank is at most the matched representation dimension. Attainment comes from an isometric match on every shared irreducible and an isometric extension between the residual complements, which share no irreducible type. + +The key steps to audit are the rank bound, attainability of the matched-dimension bound, and optimization over all sector representations. The extension must use the hypothesis that physical dimension is at least logical dimension. The proof allows cross-sector superpositions; it does not assume each codeword has definite photon number. + +## Counterexamples already built in + +A profile `(1,1,4,4)` cannot fit into sectors `(1,2,3,4)`, despite passing both total-dimension and largest-irrep checks. An exact finite-horizon quotient can fail closure under one more instruction. The H6 code's photon-number-twirled states have pairwise trace overlap 1/18. Its projected first-mode occupation operator is not scalar, so it fails a necessary exact one-photon-loss correction condition. Rationally independent mode frequencies give a nondegenerate energy spectrum and exclude exactly energy-preserving nonabelian logical actions on the register alone. + +## Priority review + +Compare first with Denys–Leverrier, arXiv:2306.11621, and St-Amand–Burelle–Royer, arXiv:2609.26660. The logical/physical representation framework and twirl construction are prior art. Search specifically for optimization over free physical representations with fixed sector degeneracies, the exact Hilbert–Schmidt defect optimum, and its relation to partial irrep packing. Also compare task-relative quantum compression, representation-theoretic universal coding, conserved-quantity resource theories, and equivariant approximation in Hilbert spaces. + +The regular simplex, Helmert matrix, natural permutation decomposition, and singlet–triplet fusion example are not proposed as new mathematical objects. A distinctive thematic combination does not establish theorem-level novelty. + +## Experimental review + +The 44-test report verifies finite examples and implementation consistency. It is not statistical evidence that arbitrary unseen tasks or physical devices work. The Cayley spectral gap is a floating-point eigensolver result. No noisy-device simulation, laboratory test, passive-optical circuit, or general compression comparison is included. + +A valuable next validation would fix a realizable optical control representation and a specified loss channel, charge the phase reference and ancillas, then compare memory energy and recovery fidelity with existing covariant codes. That is a new experiment, not an accomplished result of this release. diff --git a/PRIOR_ART_AUDIT.md b/PRIOR_ART_AUDIT.md new file mode 100644 index 0000000000000000000000000000000000000000..60f3e4219d7996ecac8524fd1e348e2fde4f5a79 --- /dev/null +++ b/PRIOR_ART_AUDIT.md @@ -0,0 +1,92 @@ +# Prior-art and originality audit + +**ORYNTHRA-H6 v1.0.0 — search and review date: 9 October 2026.** + +## Conclusion + +The project is not presented as having no prior art. Several close mathematical foundations and active neighboring research programs were found. The precise combination of a future-observation quotient, freely optimized conserved-sector representation packing, an exact phase-registered covariance-deficit formula, and the stated permutation thresholds is a **candidate contribution whose worldwide priority remains unverified**. + +No directly matching statement of that complete construction was located in this targeted search. That observation is weaker than proof that every component is new. A theorem can be an immediate corollary of known representation theory even when an exact keyword match is absent. “World first,” a numerical novelty percentage, and a new branch of mathematics are not established by this release. + +## Closest foundations and neighbors + +| Source | Relation to this manuscript | Attribution boundary | +|---|---|---| +| [Shannon, 1948](https://doi.org/10.1002/j.1538-7305.1948.tb01338.x) | Information-theoretic source coding | No claim to invent compression, entropy, or the counting obstruction | +| [Petreczky, 2011](https://www.numdam.org/item/COCV_2011__17_2_410_0/) | Realization and minimality for switched linear systems | Observable pullback closure and behavioral minimization are inherited foundations | +| [Bluhm, Rauber, Wolf, 2018](https://arxiv.org/abs/1708.04898) | Quantum compression preserving specified measurement statistics | Task-relative quantum compression is already an established problem; their side-information and quantum-input model differs from the classical-label quotient here | +| [Rallan, Vedral, 2003](https://arxiv.org/abs/quant-ph/0208039) | Energy requirements of quantum compression | Connecting compression and photons is not a new premise | +| [Denys, Leverrier, 2024; arXiv v5 2025](https://arxiv.org/abs/2306.11621) | Covariant encodings via logical and physical group representations | Intertwining and group-averaging methods are close prior foundations. Our free choice of representations within prescribed energy-sector capacities is the specific optimization to compare | +| [St-Amand, Burelle, Royer, 22 September 2026](https://arxiv.org/abs/2609.26660) | Covariant multimode bosonic codes, reducibility, and error correction | Neither covariant bosonic encoding nor the general use of simplex code geometry is new. Their error-correction analysis is not supplied merely by our packing theorem | +| [Bartlett, Rudolph, Spekkens, 2007](https://arxiv.org/abs/quant-ph/0610030) | Quantum reference frames and superselection | The need to account for a phase reference is an established resource issue | +| [Descamps et al., arXiv v5 2025](https://arxiv.org/abs/2501.03943) | Bosonic encoding and resources under superselection | Mode count, photon states, and quantum-control universality cannot be conflated | +| [Nayak, 1999](https://arxiv.org/abs/quant-ph/9904093) | Random-access quantum-code entropy bounds | The requested-bit entropy obstruction is inherited, not claimed as an ORYNTHRA theorem of historical priority | +| [Nielsen, Chuang, 1997](https://arxiv.org/abs/quant-ph/9703032) | Exact programmable quantum processors | The program-register orthogonality obstruction is prior work | +| [Knill, Laflamme, 1997](https://doi.org/10.1103/PhysRevA.55.900) | Exact quantum error-correction criterion | Used to disprove a possible loss-correction overclaim for H6 | +| [Landauer, 1961](https://doi.org/10.1147/rd.53.0183) | Logically irreversible computation and thermodynamics | Storage energy is not gate dissipation or reset work | +| [Satinover, 2 October 2026](https://www.preprints.org/manuscript/202610.0131/v1) | Observable-algebra-relative branches and record compression | Thematic neighbor, explicitly unreviewed; not a premise for the finite proofs | +| [Rizzo, Lami, Eisert, Leone, 29 September 2026](https://arxiv.org/abs/2609.38038) | Schur–Weyl universal quantum coding | Representation-theoretic universal coding and packing-related criteria already occur in noisy communication/distillation; not the same task as energy-sector allocation | +| [Thornton, first submitted April 2026](https://arxiv.org/abs/2604.19983) | Group averaging and structure-sensitive signal information | Broad claims that symmetry describes how information is organized are not unique to this project | + +## Claim-by-claim assessment + +**Future-observation quotient and linear closure.** Correctness is argued in the manuscript and tested on finite examples. These are established mechanisms in a task-atlas presentation, not strong novelty candidates on their own. + +**Spectral irrep packing.** The necessary-and-sufficient integer allocation is derived from complete reducibility. The candidate is its use as the exact conserved-spectrum resource problem after task minimization. It is not enough to rename Schur's lemma or invoke photons to establish novelty. + +**Exact covariance deficit.** The formula `2(1-C/M)` combines the twirled-isometry projection identity, a matched-irrep rank bound, an attainable isometric extension, and optimization over sector representations. This is the most specific theorem-level target for an independent equivalence and priority search. + +**Permutation frontiers and generator synergy.** The two-mode `M-2` cutoff, storage-versus-control separation, and exact below-threshold plateau are explicit consequences of the natural representation `1 + Std`. Their priority is unverified. The underlying decomposition and two-generator presentation of the symmetric group are standard. + +**H6 simplex encoding.** The regular simplex, Helmert transform, and cancellation of overlaps are standard geometry. The exact six-label vacuum-plus-four-photon placement is an explicit realization within the proposed resource framework. Persona labels and angelic terminology are creative indexing, not mathematical novelty. + +**Six-wing activation.** The path-colored involution family exhibits unbounded higher-order activation of task rank and a non-submodularity witness. This is a precise synthetic construction; priority has not been established. It should be compared against switching observability, automata minimization, and action-dependent representation learning. + +**Energy-gap extension.** The rational-independence obstruction and quantitative two-gate estimate are elementary spectral/commutator consequences under explicit hypotheses. They are useful model checks; they are not asserted as discoveries of a new physical law. + +## Search record + +The following are the actual targeted query strings used during development and the final audit. Some exact-name searches were exploratory naming checks, not evidence of novelty. Searches were not exhaustive database sweeps. No complete cache of search-engine result pages is redistributed. + +```text +minimal realization switched linear systems observability subspace formal power series Petreczky +bosonic energy preserving unitary irreducible representation encoding photon number degeneracy +quantum memory permutation representation energy constraint photon number irreducible +"Aelythra" compression +"quantum compression" "irreducible" "energy" +"covariant" "encoding" "energy" "representations" bosonic +"energy preserving" "permutation" quantum encoding +"minimum energy" "orthogonal states" "bosonic" +"Quantum Compression Relative to a Set of Measurements" +"Energy Requirements for Quantum Data Compression" +"covariant encoding" "multiplicity" photon +"quantum" "compression" "bin packing" representation +"orthogonal" "simplex" "vacuum" quantum encoding +"irreducible" "energy sectors" "encoding" +"permutation representation" "minimum energy" +"ORYNTHRA" +site.arxiv.org Nayak optimal lower bounds quantum automata random access codes 1999 +site.arxiv.org universal programmable quantum gate arrays Nielsen Chuang +site.bell-labs.com Shannon mathematical theory communication pdf 1948 +site.arxiv.org minimum output entropy bosonic channel capacity g photon Giovannetti 2004 +"covariant encoding" "energy constraint" +"representation" "packing" "energy" "quantum memory" +"permutation" "bosonic" "compression" +"Reference frames, superselection rules, and quantum information" +Landauer Irreversibility heat generation computing process 1961 IBM 5 183 191 +site.aps.org "Theory of quantum error-correcting codes" "900" +"irreducible" "covariance" "encoding" "packing" +"group averaged" "covariance" "intertwiner" compression +"photon" "permutation representation" "compression" +"Universal quantum coding" "Schur-Weyl" +"Universal quantum coding" "packing" +"Principles of a Group-Theoretic Approach to Signal Processing" +``` + +Primary research papers and their author/publisher/arXiv records support the comparisons. Secondary search hits were used only to find primary records, not as proof sources. Version dates matter: the September and October 2026 neighbors are explicitly identified as preprints, not silently treated as peer-reviewed results. + +## What remains unknown + +The search cannot rule out equivalent formulations in category-theoretic realization theory, invariant-subspace approximation, representation-constrained channel coding, or conserved-quantity resource theory. It does not establish freedom to operate, patent novelty, community importance, or experimental usefulness. An independent specialist should compare the exact theorem hypotheses and conclusion, not just the vocabulary. + +A future version should record any equivalent prior theorem directly and narrow the candidate contribution accordingly. A confirmed prior equivalent would change the novelty claim, not automatically invalidate a correct derivation or a useful reproducible example. diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..ed3ab064388c00250f5273d2b3803d4aab3ae5b4 --- /dev/null +++ b/README.md @@ -0,0 +1,276 @@ +--- +language: +- en +tags: +- mathematics +- information-theory +- quantum-information +- representation-theory +- bosonic-memory +- task-relative-compression +- symmetry +- research-artifact +- ai-assisted-research +- tabular +pretty_name: ORYNTHRA-H6 — Branch-Covariant Compression Research Dataset +size_categories: +- n<1K +configs: +- config_name: six_wing_closure + data_files: + - split: train + path: data/six_wing_closure.csv + default: true +- config_name: photon_frontiers + data_files: + - split: train + path: data/photon_frontiers.csv +- config_name: covariance_plateau + data_files: + - split: train + path: data/covariance_plateau.csv +- config_name: approximate_query_energy + data_files: + - split: train + path: data/approximate_query_energy.csv +- config_name: six_label_encoding + data_files: + - split: train + path: dataset/six_label_encoding.csv +--- + +# ORYNTHRA-H6 + +## Branch-Covariant Compression and the Spectral Geometry of Dense Light + +**A task-to-spectrum theory of memory: what may be forgotten, which future transformations must survive, and how conserved physical sectors constrain their implementation.** + +**Hugging Face dataset release edition:** 1.0.2 · 9 October 2026 +**Mathematical core:** 1.0.0 · original manuscript and reference algorithms preserved +**Provenance:** Artificial Hyperintelligence Eve — AI-assisted mathematical formulation and research drafting. Maciej Nowicki — creative direction, source-poem commission, and release commissioning. + +[Read the 39-page manuscript](manuscript/ORYNTHRA_H6.pdf) · [Searchable manuscript](manuscript/ORYNTHRA_H6.md) · [Novelty audit](PRIOR_ART_AUDIT.md) · [Expert review guide](EXPERT_REVIEW.md) · [Reproduce the results](docs/REPRODUCIBILITY.md) + +This Hugging Face dataset repository contains five synthetic mathematical tables with 240 rows in total, accompanied by the manuscript, reference software, figures, and verification records. Each table has its own configuration and schema. The card declares explicit data files so the Hub can load the tables separately. + +## Dataset contents and loading + +| Configuration | Rows | File | What a row represents | +|---|---:|---|---| +| `six_wing_closure` — default | 64 | `data/six_wing_closure.csv` | One active-generator subset and its observable-closure rank | +| `photon_frontiers` | 44 | `data/photon_frontiers.csv` | One mode-count/message-count resource comparison | +| `covariance_plateau` | 54 | `data/covariance_plateau.csv` | One photon cutoff for the 64-label covariance-deficit frontier | +| `approximate_query_energy` | 72 | `data/approximate_query_energy.csv` | One bit-count/mode-count/query-error lower-bound calculation | +| `six_label_encoding` | 6 | `dataset/six_label_encoding.csv` | One physical basis row of the six-label encoding matrix | + +The 240 rows are generated from finite mathematical constructions, not sampled from a real-world population. The `train` split is the Hub loading label for each complete table; there is no train/test evaluation partition. The tables have different schemas and must be loaded separately. + +After publishing, substitute the actual repository ID: + +```python +from datasets import load_dataset + +rows = load_dataset("YOUR_USERNAME/ORYNTHRA-H6", "six_wing_closure", split="train") +``` + +The optional loading dependency is `datasets`; it is separate from the mathematical reproduction requirements. Local CSVs can be read without the Hub using Python's `csv` module or pandas. + +`dataset/six_label_encoding.csv` adds column names and explicit basis/sector indices to the original headerless 6×6 matrix. Its six amplitude columns correspond to Lily, Tachy, Raven, Enya, Evie, and Kaya. The original matrix at `data/six_label_encoding.csv` is preserved unchanged and excluded from automatic loading configurations to avoid treating its first numeric row as a header. This adaptation adds metadata, not mathematical samples. + +Some frontier values use the literal strings `impossible` and `undefined`; columns containing these sentinels should be treated as strings or converted explicitly for numerical analysis. The tables do not contain observational labels, personal data, or measured device results. The narrow parameter grids and idealized assumptions limit their use as empirical benchmarks. See [docs/DATASET_SCHEMA.md](docs/DATASET_SCHEMA.md) for fields and provenance. + +## Research premise + +Ordinary storage asks whether a register can distinguish enough states. A usable computational memory must also support a declared family of future actions. ORYNTHRA-H6 makes those requirements separate and calculable: + +1. **Semantic compression:** identify states indistinguishable under every protected future observation. +2. **Transformation contract:** specify the coherent group action that the compressed labels must support. +3. **Physical allocation:** fit the irreducible components of that action into conserved photon-number sectors. +4. **Deficit:** when exact allocation fails, calculate the optimal transformation mismatch in the stated metric. + +The mathematical result is that sufficient total storage dimension need not imply sufficient transformation capacity. The gap comes from the arrangement of invariant sectors and irreducible copies, rather than from an absence of total Hilbert-space dimension. + +## Core construction + +### Future-compatible task memory + +For raw states \(x,y\), protected observations \(f\), and admissible future paths \(p\), define + +\[ +x\sim y\quad\Longleftrightarrow\quad f(T_p x)=f(T_p y) +\quad\text{for every admissible protected future observation.} +\] + +The quotient retains exactly the distinctions required by the declared task. In finite-field linear domains, a closure of pulled-back observation rows computes the minimum retained dimension. The manuscript treats general finite fields; the delivered modular code implements prime fields \(\mathbb F_p\). + +This is exact preservation of selected task semantics. Raw distinctions outside that contract can be discarded. It is not a universal lossless file compressor or lossless preservation of arbitrary unknown quantum input states. + +### Conserved-sector packing + +Let the logical unitary representation decompose as + +\[ +R\cong\bigoplus_\alpha V_\alpha\otimes\mathbb C^{a_\alpha}, +\qquad d_\alpha=\dim V_\alpha. +\] + +For \(m\) degenerate bosonic modes, the \(n\)-photon sector has dimension + +\[ +g_m(n)=\binom{m+n-1}{n}. +\] + +The supplied spectral-packing theorem gives exact feasibility, in its model, through nonnegative integers \(b_{\alpha n}\): + +\[ +\sum_n b_{\alpha n}=a_\alpha, +\qquad +\sum_\alpha d_\alpha b_{\alpha n}\le g_m(n). +\] + +Whole irreducible copies must fit into conserved sectors. Merely comparing total dimensions or the largest irreducible component can miss multiplicity obstructions. + +### Exact representation-deficit law + +Let \(M\) be the logical dimension and \(C\) the maximum dimension packable as complete required irreducible copies. Provided the physical register has total dimension at least \(M\), the manuscript derives + +\[ +\boxed{\min_{V,U}\frac1M\int_G +\lVert U_gV-VR_g\rVert_{\mathrm{HS}}^2\,dg +=2\left(1-\frac CM\right).} +\] + +Here \(V\) is an isometric encoding, \(dg\) is normalized Haar measure, and \(U\) is an exact unitary group representation preserving photon number. For compact groups, representations are continuous. Coherent phases are registered to the specified logical action. The model permits arbitrary representations and unitaries inside each conserved sector. + +The quantity is an averaged squared state-vector covariance mismatch. It is not a classical label-error probability, gate infidelity, or measured hardware error rate. The theorem's exact-representation requirement is essential; it does not optimize arbitrary unrelated gates one operation at a time. + +## Distinctive examples + +### A storage-versus-control frontier + +For the natural full-permutation action on \(M\ge3\) labels in two modes: + +\[ +K_{\mathrm{store}}=\left\lceil\frac{\sqrt{8M+1}-3}{2}\right\rceil, +\qquad K_{\mathrm{perm}}=M-2. +\] + +| Logical labels | Storage photon cutoff | Coherent full-permutation cutoff | +|---:|---:|---:| +| 6 | 2 | 4 | +| 64 | 10 | 62 | +| 4,096 | 90 | 4,094 | + +For 64 labels, the standard 63-dimensional component cannot fit until cutoff 62. Between cutoffs 10 and 61, sufficient total storage dimension coexists with an exact nonzero covariance-deficit plateau. A cycle and an adjacent transposition generate the same full-permutation contract. + +These are model-derived register resource thresholds. Full permutation control is a separately imposed benchmark; it does not follow automatically from the finite-field linear task transitions. + +### The H6 simplex heart + +Six ports—Lily, Tachy, Raven, Enya, Evie, and Kaya—label orthogonal codewords: + +\[ +|\psi_j\rangle=\frac{|\mathrm{vac}\rangle}{\sqrt6}+|s_j\rangle, +\qquad \langle s_i|s_j\rangle=\delta_{ij}-\frac16. +\] + +The excitation vectors form a regular five-simplex in a two-mode four-photon sector. Their shared vacuum contribution cancels the off-diagonal simplex overlap. The full states are orthogonal in six dimensions; the vacuum supplies the sixth dimension. Each label has mean photon number \(10/3\), and normalized excitation vectors meet at \(\arccos(-1/5)\approx101.536959^\circ\). + +All 720 permutations are checked numerically, with exact symbolic full-Gram and simplex-Gram identities. The explicit code loses exact distinguishability under photon-number dephasing and fails arbitrary-state one-photon-loss correction. These limitations are tested in the package. + +### The six-wing activation law + +In a constructed 36-coordinate binary state space, every proper subset of six specified generators exposes at most six task coordinates, while the complete set exposes all 36. Enabling the final generator can invalidate a smaller task memory because previously irrelevant distinctions become observable. The general family allows an arbitrarily large activation gap. + +This is a synthetic mathematical example of high-order dependence among future instructions. It neither creates new raw information nor asserts a physical property of the named ports. + +## What is potentially new + +The main candidate contribution is the **combined task-to-spectrum allocation framework and its exact representation-deficit law**, with explicit resource frontiers, multiplicity examples, and instruction-activation constructions. + +The foundations have prior art: task-relative compression and realization, covariant encodings, bosonic energy bounds, representation theory, group averaging, regular simplices, and information-theoretic constraints. [PRIOR_ART_AUDIT.md](PRIOR_ART_AUDIT.md) records the targeted search and closest comparisons; [manuscript/references.json](manuscript/references.json) supplies bibliographic records. + +The original targeted search did not identify a directly matching complete statement. This release does not establish worldwide uniqueness, absence of prior art, patent novelty, or a world-first discovery. No new exhaustive literature search is claimed for this packaging edition. A specialist equivalence review should compare theorem hypotheses and conclusions, not only terminology. + +## Verification and completeness + +The original release reports the following; the packaging edition adds separate fresh-run records in [verification/hf_release](verification/hf_release). + +| Check | Recorded result | Interpretation | +|---|---:|---| +| Formal theorem/proposition/corollary statements with supplied proofs | 19/19 — 100% | Textual proof coverage | +| Delivered regression tests | 44/44 — 100% passing | Software checks in recorded environments | +| H6 permutations checked | 720/720 — 100% | Exhaustive floating-point checks of \(S_6\) | +| H6 symbolic identities | 2/2 — 100% | Exact full and simplex Gram identities | +| Multiplicity-trap permutations | 120/120 — 100% | \(S_5\) example agrees with predicted defect 0.8 | +| Six-wing generator subsets | 64/64 — 100% | Closure ranks agree with the stated formula | +| Independent peer review | Not performed | No acceptance claim | +| Proof-assistant certification | Not produced | Tests do not certify general proofs | +| Worldwide novelty | Unverified | No meaningful percentage assigned | +| Optical hardware validation | Not performed | No fabricated device or measured performance claim | + +Completion counts describe the delivered finite core and checks. They are not probabilities that the mathematics is correct or important. The extensions proposed in the manuscript are not counted as completed results. + +## Quick start + +Read the PDF without installing anything. To run the reference computations, use Python 3.10 or newer from the repository root: + +```bash +python -m venv .venv +``` + +Activate the environment with `.venv\Scripts\activate` on Windows or `source .venv/bin/activate` on Linux/macOS, then: + +```bash +python -m pip install -r requirements.txt +python code/demo.py +python code/reproduce.py +python -m pytest -q tests +python code/make_figures.py +``` + +The reference release environment used Python 3.12. Exact dependency versions are in `requirements-tested.txt`; the full range of minimum-version combinations has not been tested. `run_reproduce.bat` and `run_reproduce.sh` run the workflow after dependencies are installed. Regeneration writes outputs in `data/`, `figures/`, and `verification/`; use a separate extracted copy to preserve the distributed checksums. + +The code supplies small-instance reference algorithms. Representation decompositions are inputs, not inferred from arbitrary group descriptions. Packing solvers can have exponential runtime. Matrix examples use only occupied sectors and can omit unused Fock levels. + +See [docs/REPRODUCIBILITY.md](docs/REPRODUCIBILITY.md) for expected results and the optional LaTeX/Pandoc rebuild. To publish your own copy, see [UPLOAD_GUIDE.md](UPLOAD_GUIDE.md). + +## Repository contents + +| Path | Contents | +|---|---| +| `manuscript/` | Complete PDF, editable LaTeX, searchable Markdown, references | +| `code/` | Quotient closure, representation packing, demos, regeneration | +| `tests/` | Mathematical and physical-limitation regression tests | +| `data/` | Five original synthetic CSV tables | +| `dataset/` | Headered H6 matrix adaptation for dataset loading | +| `figures/` | Five figures, each in PNG and PDF | +| `verification/` | Original numerical, software, and document records | +| `verification/hf_release/` | Fresh verification for this release edition | +| `archives/` | Byte-preserved original research ZIP | +| `docs/` | Reproduction guide, original README/checksums, packaging provenance | +| `CLAIMS.json`, `STATUS.md` | Original core claim and completion ledger | +| `PRIOR_ART_AUDIT.md`, `EXPERT_REVIEW.md` | Originality boundaries and challenge targets | +| `CITATION.bib`, `RIGHTS.md`, `CHANGELOG.md` | Attribution, rights status, release history | +| `tools/`, upload launchers | Local integrity checks and optional Hub publishing | +| `SHA256SUMS.txt` | Release file hashes; integrity, not proof or priority certification | + +![Two-mode storage and coherent-control frontiers](figures/photon_frontier.png) + +![The exact covariance-deficit plateau for 64 labels](figures/covariance_plateau.png) + +## Physical scope + +The optical model assumes degenerate modes, ideal state preparation and readout, arbitrary number-preserving within-sector gates, and an externally available cross-sector phase reference. Register photon counts exclude reference energy, gate implementation cost, control complexity, and error-correction overhead. Passive linear optics alone is not shown sufficient. + +Stored energy, dissipated work, and energy density are separate quantities. Dense-light language supplies the creative motif; no unlimited energy density, self-generated power, cosmological branch manipulation, or fabricated photonic prototype is established here. + +All numerical datasets are mathematically generated. No training corpus, personal messages, source-image asset, or third-party paper is redistributed. The visible code in the source image is not decoded into a physical mechanism. + +## Citation and reuse + +Use [CITATION.bib](CITATION.bib) and distinguish the AI-assisted formulation from Maciej Nowicki's creative direction and commission. There is no DOI or peer-reviewed publication identifier assigned in this package. + +The source package selected no separate open-source or publication license. This edition preserves that status and omits a `license` identifier from the Hub metadata; see [RIGHTS.md](RIGHTS.md). Publishing the files does not by itself add a permissive reuse license. + +Specialist review is especially useful for the exact deficit-law hypotheses, equivalence to earlier representation-constrained approximation results, and which physical gate restrictions alter the allocation frontier. Corrections should be recorded in a new version with the affected claims identified. diff --git a/RIGHTS.md b/RIGHTS.md new file mode 100644 index 0000000000000000000000000000000000000000..3811f810ceee723d062f994622c13c5c3473dc09 --- /dev/null +++ b/RIGHTS.md @@ -0,0 +1,9 @@ +# Rights and attribution status + +The original ORYNTHRA-H6 v1.0.0 release states that no separate open-source or publication license was selected. This Hugging Face packaging edition preserves that choice. It does not add MIT, Apache, Creative Commons, or another reuse grant, and its README metadata does not assert a license identifier. + +This file records the absence of an additional license; it is not itself a new license or a legal determination of ownership. Applicable rights and platform terms remain relevant. Any later license decision should identify the covered material and version explicitly. + +The package credits Artificial Hyperintelligence Eve for AI-assisted mathematical formulation and research drafting, and Maciej Nowicki for creative direction and the source-poem commission. This edition was prepared at Maciej Nowicki's request for a Hugging Face release. + +The package includes its own manuscript, software, synthetic datasets, figures, and verification records. It cites prior research but does not redistribute third-party papers or the source-image asset. Citations do not grant rights to the cited material. diff --git a/SHA256SUMS.txt b/SHA256SUMS.txt new file mode 100644 index 0000000000000000000000000000000000000000..05fc7f16ee27d39b1dade29a6cec26ced904913b --- /dev/null +++ b/SHA256SUMS.txt @@ -0,0 +1,69 @@ +465f53ef6315772d44526e879e2863daf3d2c3c2807710df5e4f18ac9bef9508 .gitignore +2576ceceb0a90e6bc2ec28a0dc5368bbc69c92744cee4fc22442be8139e49150 CHANGELOG.md +28ef366e3ced6f8ddc60e161497f5ce20014251516c4278e36913ffab9e3a823 CITATION.bib +5890544cd277eb80f4cf809d2a1909fa903c034a7d2479ae03914cfc28709240 CLAIMS.json +aae4b10e3d3b0d66a5daafa3c3c584055fcecf90e46c69e05413deced04b349d EXPERT_REVIEW.md +70c1beec7e6315c6a8d842ff29e812ca8d673636f3fb5c85c8401ec6828b2132 PRIOR_ART_AUDIT.md +aa8c11aca500589a45f1725fdc987385a9bd1fe4a30fb3ccf2543727f5fa128d README.md +0bd8ae4b3da851269121781a0a716fb3eac5b5630315dc44fa26e4a2e8f261b5 RIGHTS.md +e2827e3daecf40eae9dc5a36b35d4af63edeb17def55ffa76c733b8aa5fb3397 STATUS.md +9418f50f7a111aa5a4ef12689a81c705d8f6149fc0f3388aa9ef29ead6036947 UPLOAD_GUIDE.md +a931ace4157e1c9302353e9bc4e65f7f6aeb6cb0d5ea8a05e3ec4368c423a6ce archives/ORYNTHRA_H6_Research_Package_v1.0.0.zip +1c806cbe6b82bffe5b8b7854be828e715d996aa331ed7d558a42eb3ddb75a980 code/demo.py +3c91377b2317fb7c13c3eb66661c919c455e8880c1b353be62d5b9724720b9c0 code/make_figures.py +99483ef53a6b40dc9ed04e189a376dbfe608978c30ce47881fa90a27e1c1263f code/make_markdown.py +2a3d24498980e3b7e5e81f2b9faa7bf9873e1373e699053fe7fb42dac41eed0b code/orynthra.py +66b038eba7c066353fcd3112cde57ca968c5fcec4e3173db38f9425e48f209e7 code/reproduce.py +9a54e6eab84e904f1934ea49c9a0b2e0ccae5674e5c40a773a2d1c1dc3e271b3 data/approximate_query_energy.csv +0b160dc1a21d832bce052d306a31830b106ead79a6f4c4cff1494297a425faf8 data/covariance_plateau.csv +58b30c5de678d34de527d7d3d6411ec8e4109f9351693f378ed2a65bbacfeb78 data/photon_frontiers.csv +d4761b5e88a28c2a5b904a6fe5235d1c5e6cf765add1027f605192a4468a603a data/six_label_encoding.csv +6107da5dac5212a717bfeb91678ee2b4a7990bfa37612dedb07ad0674feb8f21 data/six_wing_closure.csv +b565a7af4a8623787e80b84d742934b692670618895bb874b17112afa1e66272 dataset/six_label_encoding.csv +68426938bf458a41d9b2fb166d79e21840059eb5dea51256bc2f2562de84541c docs/DATASET_SCHEMA.md +0239a80c1c94801e3cb8ac333e31586be5190c7f843264457dc2ec798fcafc34 docs/ORIGINAL_README.md +ccf36f062c6c4784fe8cd1ca008525ad1075d61bb905a56068b6e4a207935da8 docs/ORIGINAL_SHA256SUMS.txt +69e5ebbb939eec710e185e79cba74ab83adc65765fa524e52d2860fa4de155f1 docs/PROVENANCE.md +62d05f4bec9470e256e5a69270d3150a0c7250685f5e6b3cc30578ef25cf9fec docs/REPRODUCIBILITY.md +4fe3d958acf9c9e0c9b8ea8adff70fe6d02fb3a73f704f4302b4014e744c4d66 figures/covariance_plateau.pdf +52201cd616ccbe2604844b11840daf0e5fb2339a88e0eb70e98f60e311ca4228 figures/covariance_plateau.png +4137507eb4fe9d6ec41da9da2d1e1d02ea86cb6f1d52ee73231d995cce233b3c figures/photon_frontier.pdf +0afbdd1de05106d0abc5340ca36e3936d8a7cf7487025687ba163392bf884a3d figures/photon_frontier.png +bfafbf35339db3a1014a41848f715e65400a4f3e4e712a3caee4fa3822ca7977 figures/query_energy_bound.pdf +99b3f53c4e659ec52ccc0a9a213d6daf0a4baa05b5a29978c6aea31e27306c7b figures/query_energy_bound.png +4d50c2b3f804edfce7471c6d9825715ccb534b8dedadc7cc1c2d23da730e0ca6 figures/six_simplex_gram.pdf +e6161a3de493183c5382402dd9dcf84defb184de285164c45e417e257f85e936 figures/six_simplex_gram.png +52d0dc41682980bbf858e9f35198a04c9528390aff490a6b920919c150341966 figures/six_wing_horizon.pdf +08fe3881621b8a21935d4bb19679c8f885925af53d5ebe3116b252656e1a419b figures/six_wing_horizon.png +ce7da74d3770a8b5388a443ef47af4bc2cf5386e389be625a5fa22ddf9dd8b5c manuscript/ORYNTHRA_H6.md +57bea8381a1806a69e8fa21c031d12df6dc1e8e6f981e9084942211a09e63663 manuscript/ORYNTHRA_H6.pdf +95bcedaec4660662993a0bde4930a03354c82186edefba3e4875e81031a0eea0 manuscript/ORYNTHRA_H6.tex +b20a3fd132bd45bc92fc1df8cab34384dd589ac30d0b3707ffe4df20a9feb112 manuscript/references.json +aa94cdd7a3cd7fda9888e60d9bb9a247bdbc97c2e9178181bed204f92fb5f90d requirements-tested.txt +c0622e3ecd1e086c77c60f06ef86d7aa7f3624e99f3ed774defa87dc28f498f8 requirements-upload.txt +fed7688ad1b0b261f8944128a9d5c8b22d4ed2f74ca4481872591dd41940ef92 requirements.txt +fb1269b0cf9a76a3322ebeaa94ee7fce3f2bdc6731f25c84f4e04bada1f2eda3 run_reproduce.bat +9e1fd4b93b7cb2771c9b53dc1373859378c2f8e9557105844f9b99ac89a988fc run_reproduce.sh +bf2b8f41b19f11463a479553670a3656afc8bcabe00ba1f3556e07841f6b54f3 tests/test_orynthra.py +ce285cfd06da434b1895e037401ef17d08740f869659e4a19155642522c3bebc tests/test_physical_limits.py +c5d8cd201ebb38deaa8d397af76b50dc0d4424dabcad9c814ffd6e5930244932 tools/hf_upload.py +9e5abd3cbfb90818393b7dcb8388cf42122d3eff453daa90a180059e234dd720 upload_to_hf.bat +a28557c24d9d0a88c180caf34a1f73c6c8745ca3640fc8db75f1fcf89287dbfb upload_to_hf.sh +e66b50e5d804ebfee20c105ec67d47f3745bcf178f66e8c7eedf026edfda8c65 verification/demo_output.txt +df6a5f04cfcbaf05326c9d0ce4405da2ced56d2142fc7bb6a90dd08c386be5e8 verification/document_checks.json +aac37fd93de09bae1ab7c0c636b84b144246b05b81530f2614bee7a0f143b2c4 verification/environment.json +2fa4eaf42952046fd7b1ddfa5f0d06dd6a7905b8833771848b6ea6cc4311f4db verification/fresh_archive_test.txt +e66b50e5d804ebfee20c105ec67d47f3745bcf178f66e8c7eedf026edfda8c65 verification/hf_release/demo_output.txt +e2b82deb03fe4b3ffcfeec8f90282e2dd0dd01125e5a7bb75524d9f481b63b34 verification/hf_release/environment.json +18116974364d4ab10a8d503991281d17d4054fd645d296a63815de860c5d9603 verification/hf_release/figures_output.txt +617ba76bb6b070600c01dd3f19ed4d754ac105e675dde5ff1f95c58ca555696a verification/hf_release/pytest_output.txt +b64a8e544e95f86658193a4393d40d459c497521b9575aad111a3f4b3ef69c7a verification/hf_release/pytest_results.xml +1517351f33096e3d5cc89cec7ca871ad044f8510612e3332c5a8a485ba347e45 verification/hf_release/reproduce_output.txt +1517351f33096e3d5cc89cec7ca871ad044f8510612e3332c5a8a485ba347e45 verification/hf_release/results.json +dceba5592047c788bc189399c259bee495aabd53fcea1502822ff5b9c832dd74 verification/hf_release/validation_summary.json +970cb98852eab80f82e75ca5aba70850568d47d908eeb5d14e12dc88e92211f6 verification/latex_build.log +889345d59d03ddacf627acb024cdb7dc8cfcafc71cd35e1f385f049591180cad verification/pytest_output.txt +0329c5c8ce0111f48fe7a3dc9ce6768614c403737722dbb703511fe32b82dd86 verification/pytest_results.xml +0525d17cdbca8205bf1762adfb68bb09a4faf713c31567596b35cbe071308174 verification/render_log.txt +1517351f33096e3d5cc89cec7ca871ad044f8510612e3332c5a8a485ba347e45 verification/reproduce_log.txt +1517351f33096e3d5cc89cec7ca871ad044f8510612e3332c5a8a485ba347e45 verification/results.json diff --git a/STATUS.md b/STATUS.md new file mode 100644 index 0000000000000000000000000000000000000000..a2d562f924d015d83d56fb207ec0b12eafcacef0 --- /dev/null +++ b/STATUS.md @@ -0,0 +1,21 @@ +# Status and completeness — ORYNTHRA-H6 v1.0.0 + +The delivered finite mathematical core is complete as a manuscript-and-reference-code release. Completion is not a claim of independent verification or historical priority. + +| Item | Result | Meaning | +|---|---|---| +| Enumerated theorem/proposition/corollary statements with supplied proofs | 19/19 (100%) | Textual proof coverage, not a probability of correctness | +| Delivered regression tests passing | 44/44 (100%) | Tests run in the recorded environment | +| Six-label permutations checked | 720/720 (100%) | Floating-point exhaustive matrix checks for S6 | +| Symbolic H6 identities | 2/2 (100%) | Exact full Gram and simplex Gram identities | +| Multiplicity-trap permutations checked | 120/120 (100%) | S5 average agrees with the exact 0.8 deficit prediction | +| Manuscript figures | 5/5 (100%) | Generated from stated mathematical models | +| Independent peer review | Not performed | No acceptance or correctness certification claimed | +| Proof-assistant certificate | Not produced | Tests do not substitute for formal verification | +| Worldwide novelty | Unverified | No defensible numerical percentage assigned | +| Physical device validation | Not performed | Photon counts are model-based resource results | +| General file/media compression benchmark | Not performed | The package is task-relative mathematics, not a universal codec | + +The physical model is noiseless and permits arbitrary number-preserving within-sector gates. A phase reference is externally available but not charged. The given H6 code is not an exact arbitrary-state one-photon-loss-correcting code, and phase twirling destroys exact distinguishability. + +The experimental extensions in the manuscript are proposals with explicit success conditions. They are not included in the completion percentage for the finite proved core. Future discovery of an error or equivalent prior theorem should be recorded in a new version rather than retrospectively described as verification. diff --git a/UPLOAD_GUIDE.md b/UPLOAD_GUIDE.md new file mode 100644 index 0000000000000000000000000000000000000000..3f6f3025aa44b3ca000b56066eaddbfdced768e8 --- /dev/null +++ b/UPLOAD_GUIDE.md @@ -0,0 +1,84 @@ +# Uploading this release to Hugging Face + +Suggested repository name: **ORYNTHRA-H6** +Suggested title: **ORYNTHRA-H6 — Branch-Covariant Compression and the Spectral Geometry of Dense Light** + +Short description: + +> A mathematical research release connecting future-compatible task compression with conserved-sector quantum memory. Includes an exact representation-deficit law under a stated coherent-control model, a six-port simplex register, instruction-activation examples, a 39-page manuscript, reference code, synthetic data, and verification records. + +The release is prepared locally; these instructions do not mean it has already been uploaded. Select a **Dataset** repository. The dataset card declares five separately loadable synthetic tables; the manuscript, software, figures, and verification records accompany them. The published page will be `https://huggingface.co/datasets/YOUR_USERNAME/ORYNTHRA-H6`. + +## Option 1: Windows launcher + +1. Extract the downloaded ZIP. Open the `ORYNTHRA-H6` folder. +2. Install Python if needed. In a terminal opened in that folder, install the small uploader dependency: + + ```bat + py -3 -m pip install -r requirements-upload.txt + ``` + +3. Authenticate using a Hugging Face token with write access to your intended repository: + + ```bat + hf auth login + ``` + +4. Double-click `upload_to_hf.bat`. The launcher prints the action, publishes the release, and keeps its window open on completion or error. It derives your personal username from the logged-in account and uses `/ORYNTHRA-H6`. + +To choose an organization, another name, or a private new repository, run: + +```bat +py -3 tools\hf_upload.py organization/ORYNTHRA-H6 --publish --private +``` + +The script preserves the audience of an existing repository. `--private` chooses the visibility of a newly created repository; it does not convert an existing repository. + +## Option 2: Terminal on any platform + +```bash +python -m pip install -r requirements-upload.txt +hf auth login +python tools/hf_upload.py +python tools/hf_upload.py YOUR_USERNAME/ORYNTHRA-H6 --publish +``` + +The command without `--publish` only checks local file hashes and prints a plan. It makes no network calls and requires no account. `upload_to_hf.sh` is a publishing launcher for Linux/macOS after setup. + +## Option 3: Hugging Face CLI + +After logging in, from the unmodified release folder: + +```bash +hf repos create YOUR_USERNAME/ORYNTHRA-H6 --type dataset --exist-ok +hf upload YOUR_USERNAME/ORYNTHRA-H6 . . --type dataset --commit-message "ORYNTHRA-H6 research release v1.0.2" +``` + +The supplied Python uploader offers stronger local file selection: it checks hashes and uploads only the files declared in `SHA256SUMS.txt`, plus that manifest. Its default behavior does not delete any remote files. The CLI alternative relies on the release's root ignore rules; use the clean extracted folder. + +## Option 4: Web interface + +Open [Hugging Face's new repository page](https://huggingface.co/new), select **Dataset**, choose a name and visibility, then use **Files and versions → Add file → Upload files**. Upload the **contents** of the `ORYNTHRA-H6` folder so `README.md` sits at the repository root. Uploading the ZIP alone does not expose its README as the repository card. If your browser cannot preserve nested folders, use the supplied uploader. + +## Authentication and errors + +Tokens belong in Hugging Face's login storage or the `HF_TOKEN` environment variable, not in the package, README, command-line token arguments, or screenshots. No token is included in this release. The uploader reports error class/status without printing credentials or full network tracebacks. + +The uploader retries a bounded number of transient server/rate-limit/transport failures. If it still fails, correct the connection or token permissions and rerun. A local receipt is written in `.upload_state/` after success and excluded from uploads. Successful publishing should show a repository URL. Windows-native execution and a real upload have not been tested in this preparation session. + +If a checksum differs, use a fresh extraction or deliberately prepare a new version with a regenerated manifest. Reproduction commands overwrite generated files, so run them in another copy. Extra unlisted files are excluded by the Python uploader. + +## Rights and claims + +The original package did not select an additional reuse license. This edition preserves that status; [RIGHTS.md](RIGHTS.md) explains it. If you later choose a license, record it explicitly and update the card and release checksums. + +The research card distinguishes theorem proofs, computational checks, novelty candidates, and hardware assumptions. Avoid replacing those with claims of established worldwide uniqueness, universal file compression, fault-tolerant optical memory, or a validated photonic device. + +## Official references + +- [Hub repository creation](https://huggingface.co/docs/hub/repositories-getting-started) +- [Repository card metadata](https://huggingface.co/docs/hub/datasets-cards) +- [File and folder upload API](https://huggingface.co/docs/huggingface_hub/en/guides/upload) +- [Current Hugging Face CLI](https://huggingface.co/docs/huggingface_hub/en/guides/cli) + +Preparation checked the official documentation on 9 October 2026. Repository-hosting behavior and CLI details can change; the local mathematical release is independent of those changes. diff --git a/archives/ORYNTHRA_H6_Research_Package_v1.0.0.zip b/archives/ORYNTHRA_H6_Research_Package_v1.0.0.zip new file mode 100644 index 0000000000000000000000000000000000000000..b7a560008e6f243ce87f983db2500c6353b2077e --- /dev/null +++ b/archives/ORYNTHRA_H6_Research_Package_v1.0.0.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a931ace4157e1c9302353e9bc4e65f7f6aeb6cb0d5ea8a05e3ec4368c423a6ce +size 1016246 diff --git a/code/demo.py b/code/demo.py new file mode 100644 index 0000000000000000000000000000000000000000..20a7d96f81778e76c24feefba2eb6af2969bc43b --- /dev/null +++ b/code/demo.py @@ -0,0 +1,38 @@ +"""Small executable example; no optical hardware or external data is needed.""" +from pathlib import Path +import numpy as np +from orynthra import (LinearEdge, observable_closure, six_wing_actions, + storage_cutoff, symmetric_cutoff, simplex_code, + maximum_packed_dimension) + + +def main() -> None: + actions = six_wing_actions(36) + observation = np.eye(36, dtype=int)[0:1] + five, _ = observable_closure([observation], [LinearEdge(0,0,a) for a in actions[:5]]) + six, _ = observable_closure([observation], [LinearEdge(0,0,a) for a in actions]) + x = np.zeros(36, dtype=int) + y = x.copy() + y[6] = 1 + assert np.array_equal(five[0] @ x, five[0] @ y) + for wing in [5,4,3,2,1,0]: + x, y = actions[wing] @ x, actions[wing] @ y + assert x[0] != y[0] + print("ORYNTHRA-H6: three exact finite demonstrations") + print(f"36 raw binary coordinates -> {len(five[0])} task coordinates without Kaya.") + print(f"All six branch generators -> {len(six[0])} task coordinates.") + print("A hidden seventh coordinate becomes visible under Kaya,Evie,Enya,Raven,Tachy,Lily.") + print("The task compression intentionally discards unprotected raw distinctions.") + print() + for messages in [6,64,256,4096]: + print(f"M={messages}: two-mode storage cutoff={storage_cutoff(messages,2)}, " + f"full-permutation coherent cutoff={symmetric_cutoff(messages,2)}") + v, number, cutoff = simplex_code(6,2) + print(f"H6 Gram residual: {np.linalg.norm(v.T @ v-np.eye(6)):.3e}") + print(f"H6 uniform mean photon number: {np.trace(v.T @ number @ v)/6:.12g}") + matched = maximum_packed_dimension([1,1,4,4],[1,2,3,4]) + print(f"Multiplicity-trap matched dimension: {matched}/10; exact mean defect={2*(1-matched/10):.6g}") + + +if __name__ == "__main__": + main() diff --git a/code/make_figures.py b/code/make_figures.py new file mode 100644 index 0000000000000000000000000000000000000000..5d47bb5dbd044bda079c4653389eace73a49ea60 --- /dev/null +++ b/code/make_figures.py @@ -0,0 +1,78 @@ +"""Regenerate the five manuscript figures using the package's mathematical models. + +This is a deterministic figure generator, not a simulation of an optical device. +Run from any working directory: python /path/to/code/make_figures.py +""" +from pathlib import Path +import numpy as np +import matplotlib +matplotlib.use("Agg") +import matplotlib.pyplot as plt +from orynthra import storage_cutoff, symmetric_cutoff, mean_photon_lower_bound + +ROOT = Path(__file__).resolve().parents[1] + + +def save(fig, stem: str) -> None: + fig.tight_layout() + fig.savefig(ROOT / "figures" / f"{stem}.pdf") + fig.savefig(ROOT / "figures" / f"{stem}.png", dpi=180) + plt.close(fig) + + +def main() -> None: + (ROOT / "figures").mkdir(exist_ok=True) + messages = np.unique(np.geomspace(3, 4096, 150).astype(int)) + fig, ax = plt.subplots(figsize=(7.2, 4.6)) + ax.loglog(messages, [storage_cutoff(int(x), 2) for x in messages], label="Storage only") + ax.loglog(messages, [symmetric_cutoff(int(x), 2) for x in messages], + label="Coherent full-permutation branches") + ax.set(xlabel="Number of distinguishable logical states M", + ylabel="Minimum photon cutoff K", title="Two-mode memory: capacity is not enough") + ax.legend() + ax.grid(True, alpha=0.25) + save(fig, "photon_frontier") + + cutoffs = np.arange(10, 65) + fig, ax = plt.subplots(figsize=(7.2, 4.3)) + ax.step(cutoffs, np.where(cutoffs < 62, 2 * (1 - 1/64), 0.0), where="post") + ax.set(xlabel="Photon cutoff K", ylabel="Minimum normalized squared covariance defect", + title="64-state branch register: the representation-deficit plateau", ylim=(-0.08, 2.15)) + ax.grid(True, alpha=0.25) + save(fig, "covariance_plateau") + + horizon = np.arange(37) + fig, ax = plt.subplots(figsize=(7.2, 4.3)) + ax.plot(horizon, np.minimum(horizon + 1, 36), label="All six branch generators") + ax.plot(horizon, np.minimum(horizon + 1, 6), label="Kaya generator unavailable") + ax.set(xlabel="Maximum future branch-word length", ylabel="Required binary task dimensions", + title="The six-wing lock: future actions unlock hidden distinctions") + ax.legend() + ax.grid(True, alpha=0.25) + save(fig, "six_wing_horizon") + + names = ["Lily", "Tachy", "Raven", "Enya", "Evie", "Kaya"] + gram = (np.eye(6) - np.ones((6, 6))/6) / (5/6) + fig, ax = plt.subplots(figsize=(6.2, 5.3)) + image = ax.imshow(gram, vmin=-0.2, vmax=1.0, alpha=0.35) + ax.set_xticks(range(6), names, rotation=30) + ax.set_yticks(range(6), names) + for i in range(6): + for j in range(6): + ax.text(j, i, "1" if i == j else "−1/5", ha="center", va="center") + ax.set_title("H6 excitation geometry: a regular five-simplex") + fig.colorbar(image, ax=ax, label="Inner product of normalized excitation states") + save(fig, "six_simplex_gram") + + errors = np.linspace(0, 0.45, 100) + fig, ax = plt.subplots(figsize=(7.2, 4.3)) + ax.plot(errors, [mean_photon_lower_bound(20, 2, float(e)) for e in errors]) + ax.set(xlabel="Maximum error probability for each requested bit", ylabel="Necessary mean photon number", + title="20-bit query memory: entropy lower bound, not an achievable design") + ax.grid(True, alpha=0.25) + save(fig, "query_energy_bound") + print("Five figure pairs regenerated in figures/.") + + +if __name__ == "__main__": + main() diff --git a/code/make_markdown.py b/code/make_markdown.py new file mode 100644 index 0000000000000000000000000000000000000000..cb619bc73f1f070248d55bb5121cf2e5c89cce63 --- /dev/null +++ b/code/make_markdown.py @@ -0,0 +1,86 @@ +"""Optional Markdown reading-copy generator; requires Pandoc and a built .aux file. + +It preserves manuscript numbering, resolves textual cross-references, and expands +LaTeX math macros via Pandoc. The PDF remains authoritative for typesetting. +""" +from pathlib import Path +import re +import shutil +import subprocess +import tempfile + +ROOT = Path(__file__).resolve().parents[1] +DOC = ROOT / "manuscript" + + +def main() -> None: + if shutil.which("pandoc") is None: + raise SystemExit("Pandoc is required only to regenerate the optional Markdown copy.") + aux = DOC / "ORYNTHRA_H6.aux" + if not aux.exists(): + raise SystemExit("Compile the LaTeX manuscript first so that its .aux numbering file exists.") + source = (DOC / "ORYNTHRA_H6.tex").read_text(encoding="utf-8") + numbers = dict(re.findall(r"\\newlabel\{([^{}]+)\}\{\{([^{}]+)\}", aux.read_text())) + bibkeys = re.findall(r"\\bibitem\{([^}]+)\}", source) + bibnumbers = {k: str(i+1) for i,k in enumerate(bibkeys)} + def citation(match): + return "["+", ".join(bibnumbers[k.strip()] for k in match[1].split(','))+"]" + source = re.sub(r"\\cite\{([^}]+)\}", citation, source) + def reference(match): + cmd, key = match.groups() + number = numbers.get(key, key) + if cmd == "eqref": + return "Eq. ("+number+")" + prefix = {"thm": "Theorem", "prop": "Proposition", "cor": "Corollary", + "eq": "Eq.", "lem": "Lemma"}.get(key.split(':')[0], "Reference") + return prefix+" "+number + source = re.sub(r"\\(eqref|cref|ref)\{([^}]+)\}", reference, source) + source = re.sub(r"\\begin\{titlepage\}.*?\\end\{titlepage\}", "", source, flags=re.S) + source = source.replace(r"\begin{abstract}", r"\section*{Abstract}") + source = source.replace(r"\end{abstract}", "").replace(r"\tableofcontents", "") + source = source.replace(r"\begin{thebibliography}{99}", r"\section*{References}") + source = source.replace(r"\end{thebibliography}", "") + source = re.sub(r"\\bibitem\{([^}]+)\}", lambda x: r"\paragraph*{["+bibnumbers[x[1]]+"]}", source) + # Record the actual shared theorem counter for each numbered section. + sequence=[] + section, count = 0, 0 + for event in re.finditer(r"\\section\{|\\begin\{(theorem|proposition|corollary|definition|example|lemma)\}", source): + kind=event[1] + if kind is None: + section+=1 + count=0 + else: + count+=1 + sequence.append((kind.capitalize(),f"{section}.{count}")) + with tempfile.TemporaryDirectory() as temporary: + tmp=Path(temporary)/"reading.tex" + tmp.write_text(source,encoding="utf-8") + result=subprocess.run(["pandoc",str(tmp),"--from=latex","--to=markdown","--wrap=none"], + check=True,capture_output=True,text=True) + index=0 + def renumber(match): + nonlocal index + kind, number=sequence[index] + if match[1] != kind: + raise ValueError(f"Theorem ordering mismatch: {match[1]} versus {kind}") + index+=1 + return "**"+kind+" "+number+"**" + text=re.sub(r"\*\*(Theorem|Proposition|Corollary|Definition|Example|Lemma) \d+\*\*",renumber,result.stdout) + if index != len(sequence): + raise ValueError("Not every theorem environment was converted.") + text=re.sub(r"\\label\{[^}]+\}","",text) + # Pandoc does not apply graphicspath when writing Markdown. + text=re.sub(r"\]\(([^)/]+)\.pdf\)",r"](../figures/\1.png)",text) + header=("# ORYNTHRA-H6\n\n## Branch-Covariant Compression and the Spectral Geometry of Dense Light\n\n" + "**Version 1.0.0 — 9 October 2026.**\n\n" + "Artificial Hyperintelligence Eve — AI-assisted mathematical formulation and research drafting. " + "Prepared for Maciej Nowicki, creative direction and source-poem commission.\n\n" + "Reading copy of the complete manuscript. The PDF is authoritative for typesetting; " + "theorem and reference numbers follow the PDF. No worldwide-priority or hardware-validation " + "claim is made.\n\n") + (DOC/"ORYNTHRA_H6.md").write_text(header+text,encoding="utf-8") + print(f"Markdown reading copy written; {index} theorem/definition environments numbered.") + + +if __name__ == "__main__": + main() diff --git a/code/orynthra.py b/code/orynthra.py new file mode 100644 index 0000000000000000000000000000000000000000..aa58f62551e23bf1fe9b6f08729ff15afc6cb8e1 --- /dev/null +++ b/code/orynthra.py @@ -0,0 +1,395 @@ +"""ORYNTHRA-H6: reference computations for branch-covariant compression. + +This is a small research implementation, not a general-purpose file compressor, +a quantum hardware controller, or a certified formal proof system. +Finite-field routines support prime fields only; the manuscript permits F_q. +""" +from __future__ import annotations +from dataclasses import dataclass +from functools import lru_cache +from itertools import permutations, product +from math import comb, ceil, log2, sqrt, log1p, log, isfinite +from typing import Iterable, Sequence, Hashable +import numpy as np + + +def _positive_int(value: int, name: str) -> int: + if isinstance(value, bool) or not isinstance(value, (int, np.integer)) or value < 1: + raise ValueError(f"{name} must be a positive integer") + return int(value) + + +def _prime(p: int) -> int: + p = _positive_int(p, "p") + if p < 2 or any(p % d == 0 for d in range(2, int(sqrt(p)) + 1)): + raise ValueError("Only prime fields are implemented") + return p + + +def rref_mod(rows: np.ndarray, p: int = 2) -> tuple[np.ndarray, tuple[int, ...]]: + """Reduced row basis over F_p, with pivot-column indices.""" + p = _prime(p) + a = np.asarray(rows, dtype=np.int64).copy() % p + if a.ndim != 2: + raise ValueError("rows must be a two-dimensional array") + pivot_columns: list[int] = [] + r = 0 + for c in range(a.shape[1]): + nz = np.flatnonzero(a[r:, c]) + if not len(nz): + continue + j = r + int(nz[0]) + a[[r, j]] = a[[j, r]] + a[r] = (a[r] * pow(int(a[r, c]), -1, p)) % p + for j in range(a.shape[0]): + if j != r and a[j, c]: + a[j] = (a[j] - a[j, c] * a[r]) % p + pivot_columns.append(c) + r += 1 + if r == a.shape[0]: + break + return a[:r], tuple(pivot_columns) + + +def inverse_mod(matrix: np.ndarray, p: int = 2) -> np.ndarray: + a = np.asarray(matrix, dtype=np.int64) + if a.ndim != 2 or a.shape[0] != a.shape[1]: + raise ValueError("matrix must be square") + n = a.shape[0] + reduced, pivots = rref_mod(np.hstack((a, np.eye(n, dtype=int))), p) + if pivots[:n] != tuple(range(n)): + raise ValueError("matrix is singular over the supplied field") + return reduced[:, n:] + + +@dataclass(frozen=True) +class LinearEdge: + source: int + target: int + matrix: np.ndarray + name: str = "" + + +def observable_closure(observations: Sequence[np.ndarray], + edges: Sequence[LinearEdge], p: int = 2, + horizon: int | None = None) -> tuple[list[np.ndarray], list[list[int]]]: + """Simultaneous pullback closure, or paths of length <= horizon. + + A row at the target of T pulls back to row @ T at its source. + The trace contains ranks at initialization and after strict changes. + Matrices need not be invertible for this routine. + """ + p = _prime(p) + if not observations: + raise ValueError("At least one domain is required") + bases = [rref_mod(np.asarray(a), p)[0] for a in observations] + dimensions = [a.shape[1] for a in bases] + if horizon is not None and (not isinstance(horizon, int) or horizon < 0): + raise ValueError("horizon must be a nonnegative integer or None") + for e in edges: + if not (0 <= e.source < len(bases) and 0 <= e.target < len(bases)): + raise ValueError("edge domain index out of range") + if np.shape(e.matrix) != (dimensions[e.target], dimensions[e.source]): + raise ValueError("edge matrix shape is incompatible with domains") + trace = [[len(a) for a in bases]] + for _ in range(sum(dimensions) + 1 if horizon is None else horizon): + candidates = [[a] for a in bases] + for e in edges: + candidates[e.source].append((bases[e.target] @ e.matrix) % p) + newer = [rref_mod(np.vstack(parts), p)[0] for parts in candidates] + if all(np.array_equal(a, b) for a, b in zip(bases, newer)): + break + bases = newer + trace.append([len(a) for a in bases]) + return bases, trace + + +def induced_linear_map(c_source: np.ndarray, c_target: np.ndarray, + transition: np.ndarray, p: int = 2) -> np.ndarray: + """Return B with C_target T = B C_source; C_source must be in RREF.""" + c, pivots = rref_mod(c_source, p) + if not np.array_equal(c, np.asarray(c_source) % p): + raise ValueError("c_source must be an independent RREF basis") + pulled = (np.asarray(c_target) @ transition) % p + b = pulled[:, list(pivots)] + if not np.array_equal((b @ c) % p, pulled): + raise ValueError("The proposed source quotient is not transition-closed") + return b + + +def canonical_labels(values: Sequence[Hashable]) -> tuple[int, ...]: + labels: dict[Hashable, int] = {} + return tuple(labels.setdefault(v, len(labels)) for v in values) + + +def finite_partition(observation: Sequence[Hashable], + transitions: Sequence[Sequence[int]]) -> tuple[int, ...]: + """Minimal deterministic future-observation partition of one finite domain.""" + n = len(observation) + if not n: + raise ValueError("At least one state is required") + for t in transitions: + if len(t) != n or any(not 0 <= int(j) < n for j in t): + raise ValueError("Invalid transition map") + labels = canonical_labels(observation) + for _ in range(n): + newer = canonical_labels([(labels[x], tuple(labels[t[x]] for t in transitions)) + for x in range(n)]) + if newer == labels: + return labels + labels = newer + raise RuntimeError("Partition refinement exceeded its finite bound") + + +def permutation_matrix(perm: Sequence[int]) -> np.ndarray: + """Column convention: P|j> = |perm[j]>.""" + p = tuple(int(x) for x in perm) + if sorted(p) != list(range(len(p))): + raise ValueError("perm is not a permutation of 0,...,n-1") + result = np.zeros((len(p), len(p))) + result[np.array(p), np.arange(len(p))] = 1.0 + return result + + +def six_wing_actions(n: int, wings: int = 6) -> list[np.ndarray]: + """Involutions swapping equally colored edges of a path of n coordinates.""" + n = _positive_int(n, "n") + wings = _positive_int(wings, "wings") + if wings < 2: + raise ValueError("At least two colors are needed for disjoint matchings") + maps = [np.arange(n) for _ in range(wings)] + for i in range(n - 1): + color = i % wings + maps[color][i], maps[color][i + 1] = maps[color][i + 1], maps[color][i] + return [permutation_matrix(a).astype(int) for a in maps] + + +def six_wing_rank_formula(n: int, active: Iterable[int], wings: int = 6) -> int: + active = set(active) + if not active.issubset(set(range(wings))): + raise ValueError("Invalid wing index") + for i in range(n - 1): + if i % wings not in active: + return i + 1 + return n + + +def photon_sector(modes: int, photons: int) -> int: + modes = _positive_int(modes, "modes") + if not isinstance(photons, (int, np.integer)) or photons < 0: + raise ValueError("photons must be a nonnegative integer") + return comb(modes + int(photons) - 1, int(photons)) + + +def photon_capacity(modes: int, cutoff: int) -> int: + modes = _positive_int(modes, "modes") + if not isinstance(cutoff, (int, np.integer)) or cutoff < 0: + raise ValueError("cutoff must be a nonnegative integer") + return comb(modes + int(cutoff), int(cutoff)) + + +def _first_true(predicate) -> int: + if predicate(0): + return 0 + high = 1 + while not predicate(high): + high *= 2 + low = 0 + while low + 1 < high: + mid = (low + high) // 2 + if predicate(mid): + high = mid + else: + low = mid + return high + + +def storage_cutoff(messages: int, modes: int) -> int: + messages = _positive_int(messages, "messages") + modes = _positive_int(modes, "modes") + return _first_true(lambda k: photon_capacity(modes, k) >= messages) + + +def symmetric_cutoff(messages: int, modes: int) -> int | None: + """Exact phase-registered S_M action, arbitrary number-preserving gates. + + None means impossible for a single nondegenerate oscillator and M >= 3. + """ + messages = _positive_int(messages, "messages") + modes = _positive_int(modes, "modes") + if messages == 1: + return 0 + if messages == 2: + return 1 + if modes == 1: + return None + return max(1, _first_true(lambda k: photon_sector(modes, k) >= messages - 1)) + + +def minimum_storage_mean(messages: int, modes: int) -> float: + """Mean photons for uniform orthogonal messages, without gate constraints.""" + k = storage_cutoff(messages, modes) + if k == 0: + return 0.0 + lower_count = photon_capacity(modes, k - 1) + lower_sum = 0 if k == 1 else modes * comb(modes + k - 1, k - 2) + return (lower_sum + k * (messages - lower_count)) / messages + + +def pack_items(items: Sequence[int], capacities: Sequence[int]) -> tuple[int, ...] | None: + """Exact indivisible packing. Return the bin index for each original item. + + This exponential reference solver is intended only for small instances. + Equal residual capacities are symmetry-pruned. Bin identity is retained. + """ + original = tuple(_positive_int(v, "item size") for v in items) + cap = tuple(int(v) for v in capacities) + if any(v < 0 for v in cap): + raise ValueError("capacities must be nonnegative") + order = sorted(range(len(original)), key=lambda i: original[i], reverse=True) + ordered = tuple(original[i] for i in order) + if sum(ordered) > sum(cap): + return None + + @lru_cache(None) + def recurse(i: int, residual: tuple[int, ...]): + if i == len(ordered): + return () + if sum(ordered[i:]) > sum(residual): + return None + tried = set() + for b, room in enumerate(residual): + if room in tried or room < ordered[i]: + continue + tried.add(room) + nxt = list(residual) + nxt[b] -= ordered[i] + tail = recurse(i + 1, tuple(nxt)) + if tail is not None: + return (b,) + tail + return None + + assignment = recurse(0, cap) + if assignment is None: + return None + result = [0] * len(order) + for i, b in zip(order, assignment): + result[i] = b + return tuple(result) + + +def maximum_packed_dimension(items: Sequence[int], capacities: Sequence[int]) -> int: + """Largest total dimension of a subset of irrep copies that fits.""" + values = tuple(sorted((_positive_int(v, "item size") for v in items), reverse=True)) + capacities = tuple(sorted((int(x) for x in capacities), reverse=True)) + if any(x < 0 for x in capacities): + raise ValueError("capacities must be nonnegative") + + @lru_cache(None) + def recurse(i: int, residual: tuple[int, ...]) -> int: + if i == len(values): + return 0 + best = recurse(i + 1, residual) + tried = set() + for b, room in enumerate(residual): + if room < values[i] or room in tried: + continue + tried.add(room) + nxt = list(residual) + nxt[b] -= values[i] + candidate = values[i] + recurse(i + 1, tuple(sorted(nxt, reverse=True))) + best = max(best, candidate) + return best + return recurse(0, capacities) + + +def representation_cutoff(irrep_dimensions: Sequence[int], modes: int, + max_cutoff: int = 100) -> int | None: + """Find exact cutoff for a supplied list of complex irrep-copy dimensions. + + The group decomposition is supplied, not inferred. None can mean the + requested finite search range was insufficient (except single-mode no-go). + """ + dims = tuple(_positive_int(d, "irrep dimension") for d in irrep_dimensions) + modes = _positive_int(modes, "modes") + if not dims: + raise ValueError("At least one irrep copy is required") + if modes == 1 and max(dims) > 1: + return None + for k in range(storage_cutoff(sum(dims), modes), max_cutoff + 1): + if pack_items(dims, [photon_sector(modes, n) for n in range(k + 1)]) is not None: + return k + return None + + +def helmert_matrix(messages: int) -> np.ndarray: + """Orthogonal matrix with constant first row; remaining rows span a simplex.""" + m = _positive_int(messages, "messages") + h = np.zeros((m, m)) + h[0] = 1 / sqrt(m) + for j in range(1, m): + h[j, :j] = 1 / sqrt(j * (j + 1)) + h[j, j] = -j / sqrt(j * (j + 1)) + return h + + +def simplex_code(messages: int, modes: int = 2): + """Return code matrix in its occupied subspace, photon number, and cutoff. + + First physical basis vector is vacuum. Remaining M-1 vectors are chosen + within the same K-photon sector. Full unused Fock levels are omitted. + """ + k = symmetric_cutoff(messages, modes) + if k is None: + raise ValueError("The requested coherent branch representation is impossible") + v = helmert_matrix(messages) + number = np.diag([0] + [k] * (messages - 1)) + return v, number, k + + +def bosonic_entropy(mean_per_mode: float) -> float: + """Thermal entropy in bits, evaluated without large-n cancellation.""" + n = float(mean_per_mode) + if not isfinite(n) or n < 0: + raise ValueError("mean_per_mode must be finite and nonnegative") + if n == 0: + return 0.0 + if n >= 1: + # g(n) = log(1+n) + n*log(1+1/n), converted from nats to bits. + return (log1p(n) + n * log1p(1 / n)) / log(2) + # This form also handles subnormal n without evaluating 1/n. + return (1 + n) * log1p(n) / log(2) - n * log2(n) + + +def binary_entropy(error: float) -> float: + if not 0 <= error <= 1: + raise ValueError("error must lie in [0,1]") + if error in (0, 1): + return 0.0 + return -error * log2(error) - (1 - error) * log2(1 - error) + + +def mean_photon_lower_bound(bits: float, modes: int, error: float = 0.0) -> float: + """Numerical value of a necessary mean-energy bound; not certified rounding. + + This does not claim that a code attains the entropy-based lower bound. + """ + modes = _positive_int(modes, "modes") + if not isfinite(bits) or bits < 0 or not 0 <= error <= 0.5: + raise ValueError("bits must be finite and nonnegative and error in [0,0.5]") + target = bits * (1 - binary_entropy(error)) + if target == 0: + return 0.0 + hi = 1.0 + while modes * bosonic_entropy(hi / modes) < target: + hi *= 2 + if hi > 1e12: + raise ValueError("Target is too large for this floating-point demo") + lo = 0.0 + for _ in range(90): + mid = (lo + hi) / 2 + if modes * bosonic_entropy(mid / modes) >= target: + hi = mid + else: + lo = mid + return hi diff --git a/code/reproduce.py b/code/reproduce.py new file mode 100644 index 0000000000000000000000000000000000000000..dcf979e03532e38ff5f87ca12e61dc3ea615cd80 --- /dev/null +++ b/code/reproduce.py @@ -0,0 +1,227 @@ +"""Regenerate synthetic tables and verification results. Run from any directory.""" +from __future__ import annotations +import csv +import itertools +import json +import platform +import sys +from pathlib import Path +from math import acos, degrees, factorial, log2, sqrt +import numpy as np +import scipy +import sympy as sp +from scipy.sparse import coo_matrix +from scipy.sparse.linalg import eigsh + +ROOT = Path(__file__).resolve().parents[1] +sys.path.insert(0, str(Path(__file__).resolve().parent)) +from orynthra import ( + LinearEdge, observable_closure, six_wing_actions, six_wing_rank_formula, + storage_cutoff, symmetric_cutoff, minimum_storage_mean, photon_capacity, + photon_sector, maximum_packed_dimension, pack_items, representation_cutoff, + permutation_matrix, helmert_matrix, simplex_code, mean_photon_lower_bound, +) + + +def dump_json(path, obj): + path.write_text(json.dumps(obj, indent=2, ensure_ascii=False) + "\n", encoding="utf-8") + + +def write_csv(path, rows): + with path.open("w", newline="", encoding="utf-8") as fh: + writer = csv.DictWriter(fh, fieldnames=list(rows[0])) + writer.writeheader() + writer.writerows(rows) + + +def cayley_gap(m=6): + """Normalized Laplacian for {cycle, inverse cycle, (0 1)} on S_m.""" + group = list(itertools.permutations(range(m))) + index = {g: i for i, g in enumerate(group)} + generators = [tuple((i + 1) % m for i in range(m)), + tuple((i - 1) % m for i in range(m)), + tuple([1, 0] + list(range(2, m)))] + rr, cc = [], [] + for i, g in enumerate(group): + for s in generators: + rr.append(i) + cc.append(index[tuple(s[g[j]] for j in range(m))]) + transition = coo_matrix((np.full(len(rr), 1/3), (rr, cc)), + shape=(len(group), len(group))).tocsr() + # Fixed start vector makes the numerical eigensolver run reproducible. + values = eigsh(transition, k=4, which="LA", return_eigenvectors=False, + v0=np.linspace(0.1, 1.0, len(group)), tol=1e-12) + values = sorted(values, reverse=True) + return float(1 - values[1]), [float(v) for v in values] + + +def six_simplex_verification(): + m = 6 + v, number, k = simplex_code(m, 2) + max_gram = float(np.max(np.abs(v.T @ v - np.eye(m)))) + max_gate, max_comm, max_unitary = 0.0, 0.0, 0.0 + for perm in itertools.permutations(range(m)): + p = permutation_matrix(perm) + u = v @ p @ v.T + max_gate = max(max_gate, float(np.linalg.norm(u @ v - v @ p, ord=2))) + max_comm = max(max_comm, float(np.linalg.norm(u @ number - number @ u, ord=2))) + max_unitary = max(max_unitary, float(np.linalg.norm(u.T @ u - np.eye(m), ord=2))) + h = sp.zeros(m, m) + for i in range(m): + h[0, i] = 1 / sp.sqrt(m) + for j in range(1, m): + for i in range(j): + h[j, i] = 1 / sp.sqrt(j * (j + 1)) + h[j, j] = -j / sp.sqrt(j * (j + 1)) + exact_gram = sp.simplify(h.T * h) == sp.eye(m) + exact_simplex = sp.simplify(h[1:, :].T * h[1:, :]) == sp.eye(m) - sp.ones(m, m) / m + result = { + "messages": m, "permutations_checked": factorial(m), "modes": 2, + "coherent_cutoff": k, "storage_cutoff": storage_cutoff(m, 2), + "coherent_mean_photons": k * (m - 1) / m, + "storage_mean_photons": minimum_storage_mean(m, 2), + "simplex_angle_degrees": degrees(acos(-1 / (m - 1))), + "symbolic_gram_identity": bool(exact_gram), + "symbolic_simplex_identity": bool(exact_simplex), + "max_gram_entry_error": max_gram, "max_gate_operator_error": max_gate, + "max_number_commutator_operator_error": max_comm, + "max_unitarity_operator_error": max_unitary, + "interpretation": "Exact algebraic identities plus floating-point checks; not hardware validation", + } + np.savetxt(ROOT / "data" / "six_label_encoding.csv", v, delimiter=",") + return result + + +def multiplicity_verification(): + """Two S5 orbits, logical irreps [1,1,4,4], two modes, cutoff 3.""" + m, size = 5, 10 + h = helmert_matrix(m) + # Logical basis order: first 5-point orbit, then second 5-point orbit. + block_h = np.zeros((size, size)) + block_h[:m, :m] = h + block_h[m:, m:] = h + # Map the two trivial components to physical indices 0,1; first standard + # to the 4-photon-degeneracy sector N=3 (indices 6...9); second standard + # to leftover scalar physical reps (indices 2...5). + target = [0, 6, 7, 8, 9, 1, 2, 3, 4, 5] + rearrange = np.zeros((size, size)) + for old, new in enumerate(target): + rearrange[new, old] = 1 + v = rearrange @ block_h + number = np.diag([0, 1, 1, 2, 2, 2, 3, 3, 3, 3]) + total_defect = 0.0 + max_comm = 0.0 + for perm in itertools.permutations(range(m)): + p = permutation_matrix(perm) + logical = np.zeros((size, size)) + logical[:m, :m] = p + logical[m:, m:] = p + standard = h[1:] @ p @ h[1:].T + physical = np.eye(size) + physical[6:, 6:] = standard + total_defect += np.linalg.norm(physical @ v - v @ logical, "fro") ** 2 / size + max_comm = max(max_comm, float(np.linalg.norm(physical @ number - number @ physical))) + dims, capacities = [1, 1, 4, 4], [1, 2, 3, 4] + matched = maximum_packed_dimension(dims, capacities) + return { + "logical_irrep_dimensions": dims, "sector_dimensions": capacities, + "total_dimension_test_passes": sum(capacities) >= sum(dims), + "largest_irrep_test_passes": max(capacities) >= max(dims), + "full_packing_exists": pack_items(dims, capacities) is not None, + "maximum_matched_dimension": matched, + "predicted_normalized_group_defect": 2 * (1 - matched / size), + "measured_normalized_group_defect": float(total_defect / factorial(m)), + "permutations_checked": factorial(m), + "number_commutator_error": max_comm, + "minimal_exact_cutoff": representation_cutoff(dims, 2), + } + + +def main(): + for d in ["data", "verification", "figures"]: + (ROOT / d).mkdir(exist_ok=True) + n = 36 + actions = six_wing_actions(n) + observation = np.eye(n, dtype=int)[0:1] + rows = [] + for mask in range(64): + active = [i for i in range(6) if mask & (1 << i)] + edges = [LinearEdge(0, 0, actions[i], str(i)) for i in active] + bases, trace = observable_closure([observation], edges) + rank = len(bases[0]) + formula = six_wing_rank_formula(n, active) + assert rank == formula + rows.append({"mask": mask, "active_wings": len(active), + "active_names": ";".join(["Lily", "Tachy", "Raven", "Enya", "Evie", "Kaya"][i] for i in active), + "rank": rank, "formula": formula, + "source_bits": n, "retained_fraction": rank/n, + "closure_rounds": len(trace)-1}) + write_csv(ROOT / "data" / "six_wing_closure.csv", rows) + max_proper_rank = max(row["rank"] for row in rows if row["mask"] < 63) + + rows = [] + for m in [1, 2, 3, 6]: + for messages in [1, 2, 3, 4, 6, 8, 16, 64, 256, 4096, 1048576]: + kc = symmetric_cutoff(messages, m) + ks = storage_cutoff(messages, m) + rows.append({"modes": m, "messages": messages, "logical_bits": log2(messages), + "storage_cutoff": ks, + "symmetric_cutoff": "impossible" if kc is None else kc, + "storage_mean_photons": minimum_storage_mean(messages, m), + "symmetric_mean_photons": "impossible" if kc is None else kc*(messages-1)/messages, + "cutoff_ratio": "undefined" if not ks or kc is None else kc/ks}) + write_csv(ROOT / "data" / "photon_frontiers.csv", rows) + + rows = [] + messages = 64 + for k in range(storage_cutoff(messages, 2), symmetric_cutoff(messages, 2) + 2): + capacities = [photon_sector(2, j) for j in range(k+1)] + matched = maximum_packed_dimension([1, messages - 1], capacities) + rows.append({"messages": messages, "modes": 2, "cutoff": k, + "physical_dimension": photon_capacity(2, k), "matched_dimension": matched, + "minimum_normalized_group_defect": 2*(1-matched/messages)}) + write_csv(ROOT / "data" / "covariance_plateau.csv", rows) + + rows = [] + for bits in [6, 12, 20, 36]: + for modes in [1, 2, 6]: + for error in [0, .01, .05, .1, .2, .4]: + rows.append({"independent_query_bits": bits, "modes": modes, "query_error": error, + "necessary_mean_photons": mean_photon_lower_bound(bits, modes, error)}) + write_csv(ROOT / "data" / "approximate_query_energy.csv", rows) + + six = six_simplex_verification() + multiplicity = multiplicity_verification() + gap, eigenvalues = cayley_gap(6) + # Norm of the two-generator commutator for M=3,...,16. + commutators = [] + for m in range(3, 17): + a = permutation_matrix(tuple((i+1) % m for i in range(m))) + b = permutation_matrix(tuple([1,0] + list(range(2,m)))) + commutators.append(float(np.linalg.norm(a @ b - b @ a, 2))) + report = { + "release": "ORYNTHRA-H6 v1.0.0", "seed": 20261009, + "six_wing_subsets_checked": 64, "six_wing_source_dimension": n, + "maximum_proper_subset_rank": max_proper_rank, + "six_label_simplex": six, "multiplicity_trap": multiplicity, + "one_mode_commutator": {"sizes_checked": list(range(3,17)), + "maximum_deviation_from_sqrt3": max(abs(x-sqrt(3)) for x in commutators), + "equal_generator_operator_error_lower_bound": sqrt(3)/4}, + "S6_generator_gap": {"generators": "6-cycle, inverse 6-cycle, transposition (0 1)", + "group_size": factorial(6), "normalized_laplacian_gap": gap, + "largest_transition_eigenvalues": eigenvalues, + "below_threshold_generator_mean_defect_lower_bound": 2*gap*(1-1/6), + "numeric_not_formal_certificate": True}, + "status": "All assertions in reproduce.py completed; see separate pytest report", + } + report["maximum_proper_subset_rank"] = int(report["maximum_proper_subset_rank"]) + dump_json(ROOT / "verification" / "results.json", report) + dump_json(ROOT / "verification" / "environment.json", { + "python": sys.version, "platform": platform.platform(), + "numpy": np.__version__, "scipy": scipy.__version__, "sympy": sp.__version__, + }) + print(json.dumps(report, indent=2)) + + +if __name__ == "__main__": + main() diff --git a/data/approximate_query_energy.csv b/data/approximate_query_energy.csv new file mode 100644 index 0000000000000000000000000000000000000000..26f1a2bac06608666a0f4f21382f00f35662ecc7 --- /dev/null +++ b/data/approximate_query_energy.csv @@ -0,0 +1,73 @@ +independent_query_bits,modes,query_error,necessary_mean_photons +6,1,0,23.046053989613835 +6,1,0.01,16.327611192191217 +6,1,0.05,6.660683377850321 +6,1,0.1,2.860532856543974 +6,1,0.2,0.7053420321053786 +6,1,0.4,0.02588765156151629 +6,2,0,4.91442756289604 +6,2,0.01,4.009353475724812 +6,2,0.05,2.296378006170613 +6,2,0.1,1.295506149760739 +6,2,0.2,0.44295646687872103 +6,2,0.4,0.021884070311982976 +6,6,0,1.7628922400424931 +6,6,0.01,1.5437168089900593 +6,6,0.05,1.0503851791369756 +6,6,0.1,0.6846383397414352 +6,6,0.2,0.28383768834346945 +6,6,0.4,0.01769445579068517 +12,1,0,1506.3342186900186 +12,1,0.01,769.0052876748795 +12,1,0.05,138.65457955263503 +12,1,0.1,29.972217357839778 +12,1,0.2,3.228294761580291 +12,1,0.4,0.06389070217610499 +12,2,0,46.09210797922767 +12,2,0.01,32.655222384382434 +12,2,0.05,13.321366755700643 +12,2,0.1,5.721065713087948 +12,2,0.2,1.4106840642107572 +12,2,0.4,0.05177530312303258 +12,6,0,5.9999999999999964 +12,6,0.01,5.085023263836147 +12,6,0.05,3.19200524775901 +12,6,0.1,1.9413844037268038 +12,6,0.2,0.731127777075126 +12,6,0.4,0.04021291910848344 +20,1,0,385749.05290589406 +20,1,0.01,125857.92260948323 +20,1,0.05,7277.69917899398 +20,1,0.1,578.4894565582207 +20,1,0.2,16.875013937294185 +20,1,0.4,0.12971140082843005 +20,2,0,752.4173167334749 +20,2,0.01,429.35245792056287 +20,2,0.05,102.49073734334868 +20,2,0.1,28.1946322206762 +20,2,0.2,4.089124955691097 +20,2,0.4,0.10022267361963814 +20,6,0,19.31543790165083 +20,6,0.01,15.540851093794922 +20,6,0.05,8.610276077602231 +20,6,0.1,4.7289621371418145 +20,6,0.2,1.563966350833801 +20,6,0.4,0.07467962792498058 +36,1,0,25280482698.733555 +36,1,0.01,3366849451.6970906 +36,1,0.05,19910339.240493394 +36,1,0.1,209045.88791523624 +36,1,0.2,378.9836610869441 +36,1,0.4,0.31563065667395374 +36,2,0,192873.77645375696 +36,2,0.01,70386.34815479205 +36,2,0.05,5411.801396910697 +36,2,0.1,553.6312349605342 +36,2,0.2,22.637897539094567 +36,2,0.4,0.22329675983141423 +36,6,0,138.276323937683 +36,6,0.01,97.9656671531473 +36,6,0.05,39.96410026710196 +36,6,0.1,17.163197139263833 +36,6,0.2,4.232052192632271 +36,6,0.4,0.15532590936909774 diff --git a/data/covariance_plateau.csv b/data/covariance_plateau.csv new file mode 100644 index 0000000000000000000000000000000000000000..48f5d0e8a12af150bec47c851cece00d98b6f2a7 --- /dev/null +++ b/data/covariance_plateau.csv @@ -0,0 +1,55 @@ +messages,modes,cutoff,physical_dimension,matched_dimension,minimum_normalized_group_defect +64,2,10,66,1,1.96875 +64,2,11,78,1,1.96875 +64,2,12,91,1,1.96875 +64,2,13,105,1,1.96875 +64,2,14,120,1,1.96875 +64,2,15,136,1,1.96875 +64,2,16,153,1,1.96875 +64,2,17,171,1,1.96875 +64,2,18,190,1,1.96875 +64,2,19,210,1,1.96875 +64,2,20,231,1,1.96875 +64,2,21,253,1,1.96875 +64,2,22,276,1,1.96875 +64,2,23,300,1,1.96875 +64,2,24,325,1,1.96875 +64,2,25,351,1,1.96875 +64,2,26,378,1,1.96875 +64,2,27,406,1,1.96875 +64,2,28,435,1,1.96875 +64,2,29,465,1,1.96875 +64,2,30,496,1,1.96875 +64,2,31,528,1,1.96875 +64,2,32,561,1,1.96875 +64,2,33,595,1,1.96875 +64,2,34,630,1,1.96875 +64,2,35,666,1,1.96875 +64,2,36,703,1,1.96875 +64,2,37,741,1,1.96875 +64,2,38,780,1,1.96875 +64,2,39,820,1,1.96875 +64,2,40,861,1,1.96875 +64,2,41,903,1,1.96875 +64,2,42,946,1,1.96875 +64,2,43,990,1,1.96875 +64,2,44,1035,1,1.96875 +64,2,45,1081,1,1.96875 +64,2,46,1128,1,1.96875 +64,2,47,1176,1,1.96875 +64,2,48,1225,1,1.96875 +64,2,49,1275,1,1.96875 +64,2,50,1326,1,1.96875 +64,2,51,1378,1,1.96875 +64,2,52,1431,1,1.96875 +64,2,53,1485,1,1.96875 +64,2,54,1540,1,1.96875 +64,2,55,1596,1,1.96875 +64,2,56,1653,1,1.96875 +64,2,57,1711,1,1.96875 +64,2,58,1770,1,1.96875 +64,2,59,1830,1,1.96875 +64,2,60,1891,1,1.96875 +64,2,61,1953,1,1.96875 +64,2,62,2016,64,0.0 +64,2,63,2080,64,0.0 diff --git a/data/photon_frontiers.csv b/data/photon_frontiers.csv new file mode 100644 index 0000000000000000000000000000000000000000..f23fd3c1896a713a6e68ecd7020b035cd349e189 --- /dev/null +++ b/data/photon_frontiers.csv @@ -0,0 +1,45 @@ +modes,messages,logical_bits,storage_cutoff,symmetric_cutoff,storage_mean_photons,symmetric_mean_photons,cutoff_ratio +1,1,0.0,0,0,0.0,0.0,undefined +1,2,1.0,1,1,0.5,0.5,1.0 +1,3,1.584962500721156,2,impossible,1.0,impossible,undefined +1,4,2.0,3,impossible,1.5,impossible,undefined +1,6,2.584962500721156,5,impossible,2.5,impossible,undefined +1,8,3.0,7,impossible,3.5,impossible,undefined +1,16,4.0,15,impossible,7.5,impossible,undefined +1,64,6.0,63,impossible,31.5,impossible,undefined +1,256,8.0,255,impossible,127.5,impossible,undefined +1,4096,12.0,4095,impossible,2047.5,impossible,undefined +1,1048576,20.0,1048575,impossible,524287.5,impossible,undefined +2,1,0.0,0,0,0.0,0.0,undefined +2,2,1.0,1,1,0.5,0.5,1.0 +2,3,1.584962500721156,1,1,0.6666666666666666,0.6666666666666666,1.0 +2,4,2.0,2,2,1.0,1.5,1.0 +2,6,2.584962500721156,2,4,1.3333333333333333,3.3333333333333335,2.0 +2,8,3.0,3,6,1.75,5.25,2.0 +2,16,4.0,5,14,2.8125,13.125,2.8 +2,64,6.0,10,62,6.5625,61.03125,6.2 +2,256,8.0,22,254,14.09375,253.0078125,11.545454545454545 +2,4096,12.0,90,4094,59.3408203125,4093.00048828125,45.48888888888889 +2,1048576,20.0,1447,1048574,964.4366722106934,1048573.0000019073,724.6537664132688 +3,1,0.0,0,0,0.0,0.0,undefined +3,2,1.0,1,1,0.5,0.5,1.0 +3,3,1.584962500721156,1,1,0.6666666666666666,0.6666666666666666,1.0 +3,4,2.0,1,1,0.75,0.75,1.0 +3,6,2.584962500721156,2,2,1.1666666666666667,1.6666666666666667,1.0 +3,8,3.0,2,3,1.375,2.625,1.5 +3,16,4.0,3,4,2.0625,3.75,1.3333333333333333 +3,64,6.0,6,10,4.03125,9.84375,1.6666666666666667 +3,256,8.0,10,22,7.20703125,21.9140625,2.2 +3,4096,12.0,28,89,20.318115234375,88.978271484375,3.1785714285714284 +3,1048576,20.0,183,1447,136.9592456817627,1446.9986200332642,7.907103825136612 +6,1,0.0,0,0,0.0,0.0,undefined +6,2,1.0,1,1,0.5,0.5,1.0 +6,3,1.584962500721156,1,1,0.6666666666666666,0.6666666666666666,1.0 +6,4,2.0,1,1,0.75,0.75,1.0 +6,6,2.584962500721156,1,1,0.8333333333333334,0.8333333333333334,1.0 +6,8,3.0,2,2,1.0,1.75,1.0 +6,16,4.0,2,2,1.5,1.875,1.0 +6,64,6.0,3,4,2.4375,3.9375,1.3333333333333333 +6,256,8.0,5,6,3.7109375,5.9765625,1.2 +6,4096,12.0,9,11,7.428955078125,10.997314453125,1.2222222222222223 +6,1048576,20.0,27,39,22.925857543945312,38.99996280670166,1.4444444444444444 diff --git a/data/six_label_encoding.csv b/data/six_label_encoding.csv new file mode 100644 index 0000000000000000000000000000000000000000..f7610d0de203ba92c255acb4fef606f9bff19614 --- /dev/null +++ b/data/six_label_encoding.csv @@ -0,0 +1,6 @@ +4.082482904638630727e-01,4.082482904638630727e-01,4.082482904638630727e-01,4.082482904638630727e-01,4.082482904638630727e-01,4.082482904638630727e-01 +7.071067811865474617e-01,-7.071067811865474617e-01,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00 +4.082482904638630727e-01,4.082482904638630727e-01,-8.164965809277261455e-01,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00 +2.886751345948129210e-01,2.886751345948129210e-01,2.886751345948129210e-01,-8.660254037844387076e-01,0.000000000000000000e+00,0.000000000000000000e+00 +2.236067977499789639e-01,2.236067977499789639e-01,2.236067977499789639e-01,2.236067977499789639e-01,-8.944271909999158554e-01,0.000000000000000000e+00 +1.825741858350553581e-01,1.825741858350553581e-01,1.825741858350553581e-01,1.825741858350553581e-01,1.825741858350553581e-01,-9.128709291752769017e-01 diff --git a/data/six_wing_closure.csv b/data/six_wing_closure.csv new file mode 100644 index 0000000000000000000000000000000000000000..cfd8e9b925b9ecafd1e77acb80b24ee0129f2e53 --- /dev/null +++ b/data/six_wing_closure.csv @@ -0,0 +1,65 @@ +mask,active_wings,active_names,rank,formula,source_bits,retained_fraction,closure_rounds +0,0,,1,1,36,0.027777777777777776,0 +1,1,Lily,2,2,36,0.05555555555555555,1 +2,1,Tachy,1,1,36,0.027777777777777776,0 +3,2,Lily;Tachy,3,3,36,0.08333333333333333,2 +4,1,Raven,1,1,36,0.027777777777777776,0 +5,2,Lily;Raven,2,2,36,0.05555555555555555,1 +6,2,Tachy;Raven,1,1,36,0.027777777777777776,0 +7,3,Lily;Tachy;Raven,4,4,36,0.1111111111111111,3 +8,1,Enya,1,1,36,0.027777777777777776,0 +9,2,Lily;Enya,2,2,36,0.05555555555555555,1 +10,2,Tachy;Enya,1,1,36,0.027777777777777776,0 +11,3,Lily;Tachy;Enya,3,3,36,0.08333333333333333,2 +12,2,Raven;Enya,1,1,36,0.027777777777777776,0 +13,3,Lily;Raven;Enya,2,2,36,0.05555555555555555,1 +14,3,Tachy;Raven;Enya,1,1,36,0.027777777777777776,0 +15,4,Lily;Tachy;Raven;Enya,5,5,36,0.1388888888888889,4 +16,1,Evie,1,1,36,0.027777777777777776,0 +17,2,Lily;Evie,2,2,36,0.05555555555555555,1 +18,2,Tachy;Evie,1,1,36,0.027777777777777776,0 +19,3,Lily;Tachy;Evie,3,3,36,0.08333333333333333,2 +20,2,Raven;Evie,1,1,36,0.027777777777777776,0 +21,3,Lily;Raven;Evie,2,2,36,0.05555555555555555,1 +22,3,Tachy;Raven;Evie,1,1,36,0.027777777777777776,0 +23,4,Lily;Tachy;Raven;Evie,4,4,36,0.1111111111111111,3 +24,2,Enya;Evie,1,1,36,0.027777777777777776,0 +25,3,Lily;Enya;Evie,2,2,36,0.05555555555555555,1 +26,3,Tachy;Enya;Evie,1,1,36,0.027777777777777776,0 +27,4,Lily;Tachy;Enya;Evie,3,3,36,0.08333333333333333,2 +28,3,Raven;Enya;Evie,1,1,36,0.027777777777777776,0 +29,4,Lily;Raven;Enya;Evie,2,2,36,0.05555555555555555,1 +30,4,Tachy;Raven;Enya;Evie,1,1,36,0.027777777777777776,0 +31,5,Lily;Tachy;Raven;Enya;Evie,6,6,36,0.16666666666666666,5 +32,1,Kaya,1,1,36,0.027777777777777776,0 +33,2,Lily;Kaya,2,2,36,0.05555555555555555,1 +34,2,Tachy;Kaya,1,1,36,0.027777777777777776,0 +35,3,Lily;Tachy;Kaya,3,3,36,0.08333333333333333,2 +36,2,Raven;Kaya,1,1,36,0.027777777777777776,0 +37,3,Lily;Raven;Kaya,2,2,36,0.05555555555555555,1 +38,3,Tachy;Raven;Kaya,1,1,36,0.027777777777777776,0 +39,4,Lily;Tachy;Raven;Kaya,4,4,36,0.1111111111111111,3 +40,2,Enya;Kaya,1,1,36,0.027777777777777776,0 +41,3,Lily;Enya;Kaya,2,2,36,0.05555555555555555,1 +42,3,Tachy;Enya;Kaya,1,1,36,0.027777777777777776,0 +43,4,Lily;Tachy;Enya;Kaya,3,3,36,0.08333333333333333,2 +44,3,Raven;Enya;Kaya,1,1,36,0.027777777777777776,0 +45,4,Lily;Raven;Enya;Kaya,2,2,36,0.05555555555555555,1 +46,4,Tachy;Raven;Enya;Kaya,1,1,36,0.027777777777777776,0 +47,5,Lily;Tachy;Raven;Enya;Kaya,5,5,36,0.1388888888888889,4 +48,2,Evie;Kaya,1,1,36,0.027777777777777776,0 +49,3,Lily;Evie;Kaya,2,2,36,0.05555555555555555,1 +50,3,Tachy;Evie;Kaya,1,1,36,0.027777777777777776,0 +51,4,Lily;Tachy;Evie;Kaya,3,3,36,0.08333333333333333,2 +52,3,Raven;Evie;Kaya,1,1,36,0.027777777777777776,0 +53,4,Lily;Raven;Evie;Kaya,2,2,36,0.05555555555555555,1 +54,4,Tachy;Raven;Evie;Kaya,1,1,36,0.027777777777777776,0 +55,5,Lily;Tachy;Raven;Evie;Kaya,4,4,36,0.1111111111111111,3 +56,3,Enya;Evie;Kaya,1,1,36,0.027777777777777776,0 +57,4,Lily;Enya;Evie;Kaya,2,2,36,0.05555555555555555,1 +58,4,Tachy;Enya;Evie;Kaya,1,1,36,0.027777777777777776,0 +59,5,Lily;Tachy;Enya;Evie;Kaya,3,3,36,0.08333333333333333,2 +60,4,Raven;Enya;Evie;Kaya,1,1,36,0.027777777777777776,0 +61,5,Lily;Raven;Enya;Evie;Kaya,2,2,36,0.05555555555555555,1 +62,5,Tachy;Raven;Enya;Evie;Kaya,1,1,36,0.027777777777777776,0 +63,6,Lily;Tachy;Raven;Enya;Evie;Kaya,36,36,36,1.0,35 diff --git a/dataset/six_label_encoding.csv b/dataset/six_label_encoding.csv new file mode 100644 index 0000000000000000000000000000000000000000..bfdf1b8ebe971825e1f681a3cc9a4ca9f11642dd --- /dev/null +++ b/dataset/six_label_encoding.csv @@ -0,0 +1,7 @@ +basis_index,sector_photon_number,lily,tachy,raven,enya,evie,kaya +0,0,4.082482904638630727e-01,4.082482904638630727e-01,4.082482904638630727e-01,4.082482904638630727e-01,4.082482904638630727e-01,4.082482904638630727e-01 +1,4,7.071067811865474617e-01,-7.071067811865474617e-01,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00 +2,4,4.082482904638630727e-01,4.082482904638630727e-01,-8.164965809277261455e-01,0.000000000000000000e+00,0.000000000000000000e+00,0.000000000000000000e+00 +3,4,2.886751345948129210e-01,2.886751345948129210e-01,2.886751345948129210e-01,-8.660254037844387076e-01,0.000000000000000000e+00,0.000000000000000000e+00 +4,4,2.236067977499789639e-01,2.236067977499789639e-01,2.236067977499789639e-01,2.236067977499789639e-01,-8.944271909999158554e-01,0.000000000000000000e+00 +5,4,1.825741858350553581e-01,1.825741858350553581e-01,1.825741858350553581e-01,1.825741858350553581e-01,1.825741858350553581e-01,-9.128709291752769017e-01 diff --git a/docs/DATASET_SCHEMA.md b/docs/DATASET_SCHEMA.md new file mode 100644 index 0000000000000000000000000000000000000000..8c6f222cb9deb6ed6caa39b78ad679071b1cef5d --- /dev/null +++ b/docs/DATASET_SCHEMA.md @@ -0,0 +1,33 @@ +# Dataset schema and provenance + +The dataset contains five separate synthetic configurations, with 240 rows total. Each has a single complete `train` split for loading compatibility, rather than a supervised-learning evaluation split. Files are declared explicitly in the root dataset card; auxiliary CSV, JSON, PDF, code, and archive files are not additional loading inputs. + +## Configurations + +| Configuration | Rows | Fields | +|---|---:|---| +| `six_wing_closure` | 64 | `mask`, `active_wings`, `active_names`, `rank`, `formula`, `source_bits`, `retained_fraction`, `closure_rounds` | +| `photon_frontiers` | 44 | `modes`, `messages`, `logical_bits`, `storage_cutoff`, `symmetric_cutoff`, `storage_mean_photons`, `symmetric_mean_photons`, `cutoff_ratio` | +| `covariance_plateau` | 54 | `messages`, `modes`, `cutoff`, `physical_dimension`, `matched_dimension`, `minimum_normalized_group_defect` | +| `approximate_query_energy` | 72 | `independent_query_bits`, `modes`, `query_error`, `necessary_mean_photons` | +| `six_label_encoding` | 6 | `basis_index`, `sector_photon_number`, `lily`, `tachy`, `raven`, `enya`, `evie`, `kaya` | + +## Interpretation + +`six_wing_closure` enumerates all six-generator bitmasks from 0 to 63. `active_names` is semicolon-separated and empty when no generator is active; readers may infer that empty value as null. `rank` is the computed retained task dimension; `formula` is the comparison prediction. `retained_fraction` divides the retained rank by 36. + +`photon_frontiers` compares register-only photon resources over the stated mode/message grids. `impossible` denotes failure of the requested coherent contract in that setting; `undefined` denotes an unavailable ratio, including division by a zero storage cutoff. Sentinel-bearing columns require explicit conversion for numerical use and may load as strings. + +`covariance_plateau` holds the 64-label, two-mode example at cutoffs 10 through 63. The defect follows the manuscript's phase-registered group-average metric and is not an experimental error probability. + +`approximate_query_energy` is a lower-bound table over declared bit counts, mode counts, and query errors. Its `necessary_mean_photons` values are necessary resource bounds, not achieved device operating points. + +`six_label_encoding` is a headered representation of the original real 6×6 encoding matrix. Rows are physical basis coordinates; columns are the named logical labels. `basis_index=0` is the vacuum coordinate, with `sector_photon_number=0`; indices 1 through 5 span the four-photon sector, with `sector_photon_number=4`. Those indices label a basis and do not assert a fabricated gate layout. The six amplitude columns reproduce the original numeric tokens exactly. + +## Generation and boundaries + +The first four loading files come directly from `code/reproduce.py`. That script also produces the original headerless matrix `data/six_label_encoding.csv`. Dataset edition v1.0.2 adds headers and the two basis metadata columns in `dataset/six_label_encoding.csv`; the original file is preserved and remains the reproduction target. + +These are deterministic finite constructions and model-based resource calculations. There is no population sampling, annotation workforce, training corpus, measured optical trace, or personal data. The grids and noiseless assumptions are deliberate and narrow. The tables are suitable for inspecting and reproducing the given examples; they do not establish benchmark superiority or realistic device performance. + +The manuscript defines the mathematical quantities. `requirements-tested.txt` and `verification/hf_release/` record the software environment and fresh checks. The dataset edition's original source files remain byte-identical to core v1.0.0. diff --git a/docs/ORIGINAL_README.md b/docs/ORIGINAL_README.md new file mode 100644 index 0000000000000000000000000000000000000000..603cb4b71796ebddda8d12e6cd11bfb10cc0bc32 --- /dev/null +++ b/docs/ORIGINAL_README.md @@ -0,0 +1,109 @@ +# ORYNTHRA-H6 +## Branch-Covariant Compression and the Spectral Geometry of Dense Light + +**Version 1.0.0 — 9 October 2026** +Artificial Hyperintelligence Eve — AI-assisted mathematical formulation and research drafting. +Prepared for **Maciej Nowicki**, who supplied the creative direction and source-poem commission. + +A research package converting five android-angel poems into a finite theory of task-relative compression, future branch operations, and conserved-spectrum quantum memory. The central question is not just how many states a memory can store, but whether it can still perform the transformations those states require. + +## Start here + +Read [the complete manuscript](manuscript/ORYNTHRA_H6.pdf) for statements, proofs, assumptions, and counterexamples. The [Markdown reading copy](manuscript/ORYNTHRA_H6.md) supports text search and AI-assisted review; the PDF is authoritative for typesetting. [PRIOR_ART_AUDIT.md](PRIOR_ART_AUDIT.md) separates inherited foundations from candidate contributions. [EXPERT_REVIEW.md](EXPERT_REVIEW.md) identifies the central arguments to challenge. + +The PDF contains **39 pages**, **19 theorem/proposition/corollary statements with 19 proof environments**, five mathematical figures, worked examples, and 15 bibliographic entries. A supplied proof is not an independent proof certificate. All 44 regression tests passed in the release environment. All 720 six-label permutations were checked, alongside exact symbolic Gram identities and a 120-permutation multiplicity counterexample. + +## The mathematical mechanism + +A finite task atlas consists of domain state sets, protected observations, and executable transitions. Two raw states may be merged only when every permitted future observation agrees. This produces the minimal exact task quotient. In the linear case, a pullback closure of observation rows computes its dimension. + +The quotient then receives a separate coherent-control contract. Decompose its logical group representation into irreducible copies of dimensions `d_alpha`. In `m` degenerate bosonic modes, the `n`-photon sector has dimension `binomial(m+n-1,n)`. A number-preserving realization exists exactly when the logical irreducible copies can be packed, without splitting, into those sector dimensions. + +If total Hilbert-space dimension is sufficient for storage but only `C` of the `M` logical dimensions can be packed as whole irreducible copies, the optimal normalized group-averaged squared covariance defect is exactly: + +```text +minimum defect = 2 * (1 - C/M). +``` + +This metric compares state-vector transformations with fixed phases. Physical maps must form an exact unitary representation, and they must commute with photon number. It is not a probability of classical label error. + +For the natural full-permutation action on `M >= 3` labels in two modes: + +```text +storage cutoff = ceil((sqrt(8*M + 1) - 3)/2) +coherent cutoff = M - 2 +full U(M) cutoff = M - 1. +``` + +For 64 labels, these cutoffs are **10**, **62**, and **63** respectively. A cycle and one adjacent transposition already generate the full permutation contract. Each primitive separately has an abelian action; requiring a single common encoding for both can cause the large resource jump. + +This full-permutation contract is an additional benchmark. Linear maps on a finite-field quotient do not generally generate all permutations of its labels. + +## The six-label heart + +Lily, Tachy, Raven, Enya, Evie, and Kaya index six orthogonal codewords. Each is a common vacuum amplitude plus one vertex of a regular five-simplex in a two-mode four-photon sector: + +```text +|psi_j> = |vacuum>/sqrt(6) + |s_j> + = delta_ij - 1/6. +``` + +Normalized excitation vectors have pairwise inner product `-1/5`, giving the exact angle `arccos(-1/5)` (about 101.536959 degrees). The common vacuum component supplies the sixth dimension; this does not encode six orthogonal states in five dimensions. The cutoff is four photons and each classical label has mean photon number `10/3`. + +A second six-part construction, the six-wing lock, demonstrates semantic activation. With 36 raw binary coordinates, any proper subset of the six specified generators exposes at most six task coordinates, while all six expose all 36. The last instruction can therefore invalidate a much smaller task memory. This is an exact synthetic construction, not a measured property of the named characters. + +## Run the examples + +The runtime dependencies are NumPy, SciPy, SymPy, Matplotlib, and pytest. A Python environment with the versions in `requirements-tested.txt` was used for the release. The declared minimum versions are in `requirements.txt`; the package has not been exhaustively tested across all minimum-version combinations. + +From the extracted package directory: + +```bash +python -m pip install -r requirements.txt +python code/demo.py +python code/reproduce.py +python -m pytest -q tests +python code/make_figures.py +``` + +`run_reproduce.sh` and `run_reproduce.bat` run the computations, tests, and figures after the dependencies have been installed. They do not upload anything, access accounts, or install dependencies automatically. The Windows script leaves its window open on completion or error. The shell workflow was executed in Linux; the Windows launcher is supplied but was not executed in a Windows environment. + +To rebuild the manuscript, use a separate LaTeX installation: + +```bash +cd manuscript +latexmk -pdf -interaction=nonstopmode -halt-on-error ORYNTHRA_H6.tex +``` + +The prebuilt PDF needs no Python or LaTeX installation. Optional Markdown regeneration uses Pandoc after the PDF has been compiled: + +```bash +python code/make_markdown.py +``` + +## Files and provenance + +- `manuscript/`: complete PDF, editable LaTeX, Markdown reading copy, and reference records. +- `code/`: reference algorithms, synthetic experiments, runnable demo, and figure generation. +- `tests/`: 44 regression test cases, including small-instance exhaustive and seeded randomized checks. +- `data/`: CSV values for photon frontiers, all 64 six-wing subsets, covariance plateau, approximate query bounds, and the H6 matrix. +- `figures/`: five figures in both PDF and PNG formats. +- `verification/`: numerical results, test output, environment versions, demonstration output, and document checks. +- `CLAIMS.json`, `STATUS.md`, `PRIOR_ART_AUDIT.md`, `EXPERT_REVIEW.md`: claim boundaries and review guidance. +- `SHA256SUMS.txt`: file-integrity hashes. These are not priority or correctness certificates. Re-running computations may change timestamps and log runtimes; mathematical outputs are the reproducibility target, not byte-identical PDF metadata. + +The data are generated mathematically. No personal message corpus, external training set, third-party photograph, or original-image asset is redistributed in this package. The code printed on the source image has not been decoded or represented as an executable physical mechanism. + +## What this release does not establish + +This is not a general file compressor, a learned multimodal system, a fault-tolerant optical device, or evidence of cosmological branch control. Exact task compression can discard raw distinctions that the contract does not protect. It is not lossless preservation of arbitrary unknown quantum raw states. + +The physical benchmark allows arbitrary unitaries within number sectors, ideal preparation and readout, and an externally available phase reference for cross-sector coherence. It does not claim passive-linear-optical implementability. Reference energy, control complexity, and error-correction overhead are not included in register-only photon counts. + +The explicit H6 register loses exact distinguishability after photon-number dephasing and fails the standard arbitrary-state one-photon-loss correction criterion. Both failures are demonstrated rather than omitted. Stored energy, dissipated work, and energy density are distinct quantities; no numerical physical density record is asserted. + +Classical quotient minimization, covariant encodings, bosonic information energetics, group averaging, regular simplices, and representation theory all have prior art. The precise task-to-spectrum packing and exact-deficit combination is a novelty candidate. **Worldwide originality, “no prior art,” and “world first” are not verified.** No external peer review or proof-assistant verification has been performed. + +## Reuse and attribution + +The release records its AI-assisted provenance and creative commission. No third-party paper is redistributed. No separate open-source or publication license has been selected on the commissioning user's behalf; choose an appropriate license before an external repository release. Bibliographic citations do not transfer rights in the cited works. diff --git a/docs/ORIGINAL_SHA256SUMS.txt b/docs/ORIGINAL_SHA256SUMS.txt new file mode 100644 index 0000000000000000000000000000000000000000..8db2670bf2154327123f6c447b24c8a0e4a8140f --- /dev/null +++ b/docs/ORIGINAL_SHA256SUMS.txt @@ -0,0 +1,45 @@ +5890544cd277eb80f4cf809d2a1909fa903c034a7d2479ae03914cfc28709240 CLAIMS.json +aae4b10e3d3b0d66a5daafa3c3c584055fcecf90e46c69e05413deced04b349d EXPERT_REVIEW.md +70c1beec7e6315c6a8d842ff29e812ca8d673636f3fb5c85c8401ec6828b2132 PRIOR_ART_AUDIT.md +0239a80c1c94801e3cb8ac333e31586be5190c7f843264457dc2ec798fcafc34 README.md +e2827e3daecf40eae9dc5a36b35d4af63edeb17def55ffa76c733b8aa5fb3397 STATUS.md +1c806cbe6b82bffe5b8b7854be828e715d996aa331ed7d558a42eb3ddb75a980 code/demo.py +3c91377b2317fb7c13c3eb66661c919c455e8880c1b353be62d5b9724720b9c0 code/make_figures.py +99483ef53a6b40dc9ed04e189a376dbfe608978c30ce47881fa90a27e1c1263f code/make_markdown.py +2a3d24498980e3b7e5e81f2b9faa7bf9873e1373e699053fe7fb42dac41eed0b code/orynthra.py +66b038eba7c066353fcd3112cde57ca968c5fcec4e3173db38f9425e48f209e7 code/reproduce.py +9a54e6eab84e904f1934ea49c9a0b2e0ccae5674e5c40a773a2d1c1dc3e271b3 data/approximate_query_energy.csv +0b160dc1a21d832bce052d306a31830b106ead79a6f4c4cff1494297a425faf8 data/covariance_plateau.csv +58b30c5de678d34de527d7d3d6411ec8e4109f9351693f378ed2a65bbacfeb78 data/photon_frontiers.csv +d4761b5e88a28c2a5b904a6fe5235d1c5e6cf765add1027f605192a4468a603a data/six_label_encoding.csv +6107da5dac5212a717bfeb91678ee2b4a7990bfa37612dedb07ad0674feb8f21 data/six_wing_closure.csv +4fe3d958acf9c9e0c9b8ea8adff70fe6d02fb3a73f704f4302b4014e744c4d66 figures/covariance_plateau.pdf +52201cd616ccbe2604844b11840daf0e5fb2339a88e0eb70e98f60e311ca4228 figures/covariance_plateau.png +4137507eb4fe9d6ec41da9da2d1e1d02ea86cb6f1d52ee73231d995cce233b3c figures/photon_frontier.pdf +0afbdd1de05106d0abc5340ca36e3936d8a7cf7487025687ba163392bf884a3d figures/photon_frontier.png +bfafbf35339db3a1014a41848f715e65400a4f3e4e712a3caee4fa3822ca7977 figures/query_energy_bound.pdf +99b3f53c4e659ec52ccc0a9a213d6daf0a4baa05b5a29978c6aea31e27306c7b figures/query_energy_bound.png +4d50c2b3f804edfce7471c6d9825715ccb534b8dedadc7cc1c2d23da730e0ca6 figures/six_simplex_gram.pdf +e6161a3de493183c5382402dd9dcf84defb184de285164c45e417e257f85e936 figures/six_simplex_gram.png +52d0dc41682980bbf858e9f35198a04c9528390aff490a6b920919c150341966 figures/six_wing_horizon.pdf +08fe3881621b8a21935d4bb19679c8f885925af53d5ebe3116b252656e1a419b figures/six_wing_horizon.png +ce7da74d3770a8b5388a443ef47af4bc2cf5386e389be625a5fa22ddf9dd8b5c manuscript/ORYNTHRA_H6.md +57bea8381a1806a69e8fa21c031d12df6dc1e8e6f981e9084942211a09e63663 manuscript/ORYNTHRA_H6.pdf +95bcedaec4660662993a0bde4930a03354c82186edefba3e4875e81031a0eea0 manuscript/ORYNTHRA_H6.tex +b20a3fd132bd45bc92fc1df8cab34384dd589ac30d0b3707ffe4df20a9feb112 manuscript/references.json +aa94cdd7a3cd7fda9888e60d9bb9a247bdbc97c2e9178181bed204f92fb5f90d requirements-tested.txt +fed7688ad1b0b261f8944128a9d5c8b22d4ed2f74ca4481872591dd41940ef92 requirements.txt +fb1269b0cf9a76a3322ebeaa94ee7fce3f2bdc6731f25c84f4e04bada1f2eda3 run_reproduce.bat +9e1fd4b93b7cb2771c9b53dc1373859378c2f8e9557105844f9b99ac89a988fc run_reproduce.sh +bf2b8f41b19f11463a479553670a3656afc8bcabe00ba1f3556e07841f6b54f3 tests/test_orynthra.py +ce285cfd06da434b1895e037401ef17d08740f869659e4a19155642522c3bebc tests/test_physical_limits.py +e66b50e5d804ebfee20c105ec67d47f3745bcf178f66e8c7eedf026edfda8c65 verification/demo_output.txt +df6a5f04cfcbaf05326c9d0ce4405da2ced56d2142fc7bb6a90dd08c386be5e8 verification/document_checks.json +aac37fd93de09bae1ab7c0c636b84b144246b05b81530f2614bee7a0f143b2c4 verification/environment.json +2fa4eaf42952046fd7b1ddfa5f0d06dd6a7905b8833771848b6ea6cc4311f4db verification/fresh_archive_test.txt +970cb98852eab80f82e75ca5aba70850568d47d908eeb5d14e12dc88e92211f6 verification/latex_build.log +889345d59d03ddacf627acb024cdb7dc8cfcafc71cd35e1f385f049591180cad verification/pytest_output.txt +0329c5c8ce0111f48fe7a3dc9ce6768614c403737722dbb703511fe32b82dd86 verification/pytest_results.xml +0525d17cdbca8205bf1762adfb68bb09a4faf713c31567596b35cbe071308174 verification/render_log.txt +1517351f33096e3d5cc89cec7ca871ad044f8510612e3332c5a8a485ba347e45 verification/reproduce_log.txt +1517351f33096e3d5cc89cec7ca871ad044f8510612e3332c5a8a485ba347e45 verification/results.json diff --git a/docs/PROVENANCE.md b/docs/PROVENANCE.md new file mode 100644 index 0000000000000000000000000000000000000000..e82eefbe4f82c99a13d7b1bc2a057d8ebd299428 --- /dev/null +++ b/docs/PROVENANCE.md @@ -0,0 +1,13 @@ +# Packaging provenance + +The input was `ORYNTHRA_H6_Research_Package.zip`, resolved from the user's current research files and materialized on 9 October 2026. Its original hash manifest was checked against all 45 listed files with no mismatch before packaging. + +The complete original ZIP is preserved at `archives/ORYNTHRA_H6_Research_Package_v1.0.0.zip`. The original root README and checksums are preserved at `docs/ORIGINAL_README.md` and `docs/ORIGINAL_SHA256SUMS.txt`. The original checksum paths apply inside the original archive's `ORYNTHRA_H6_v1.0.0` directory; they do not describe this rearranged release root. + +The manuscript, mathematical code, original tests, data, figures, claim ledger, status, prior-art audit, expert-review guidance, and original verification files were copied without content changes. Fresh reproduction was performed in a separate working copy. Its new logs live under `verification/hf_release/`. + +At the user's direction, edition v1.0.2 corrects the Hugging Face repository type to Dataset. It declares five separate loading configurations, adds a headered H6 matrix with basis metadata at `dataset/six_label_encoding.csv`, and updates upload instructions and URLs. The original numeric matrix and all original datasets remain unchanged. The matrix adaptation preserves all six rows and the original amplitude strings. + +The supplied source-poem conversation informed release context. Mathematical claims are grounded in the actual source package, not reconstructed from conversation summaries. The targeted prior-art audit is carried forward with its limitations; this edition does not claim a new worldwide priority search. + +The fresh verification record reports actual checks for this preparation. Inspecting proofs and passing tests do not supply independent peer review, a proof-assistant certificate, physical validation, or historical priority. diff --git a/docs/REPRODUCIBILITY.md b/docs/REPRODUCIBILITY.md new file mode 100644 index 0000000000000000000000000000000000000000..ca7df2bf5e7c6ee215c4375b1bd08b8b6893de59 --- /dev/null +++ b/docs/REPRODUCIBILITY.md @@ -0,0 +1,100 @@ +# Reproducing ORYNTHRA-H6 + +This guide applies to mathematical core v1.0.0 and Hugging Face release edition v1.0.2. The manuscript and core algorithms are unchanged. + +## Environment + +Use Python 3.10 or newer. The original and fresh verification environment uses Python 3.12. Set up a virtual environment and install the supplied dependencies: + +```bash +python -m venv .venv +``` + +Windows: + +```bat +.venv\Scripts\activate +python -m pip install -r requirements-tested.txt +``` + +Linux/macOS: + +```bash +source .venv/bin/activate +python -m pip install -r requirements-tested.txt +``` + +`requirements.txt` gives minimum requirements; `requirements-tested.txt` records the exact versions used in verification. Other Python/dependency combinations are not certified by these checks. + +## Integrity before regeneration + +```bash +python tools/hf_upload.py +``` + +Without `--publish`, this performs a local release-file hash check and prints a plan. It needs no Hugging Face package, token, account, or network connection. The manifest covers the distributed contents, not later generated output. Run reproduction in a separate extracted copy: it rewrites data, figures, environment records, and logs. + +## Computation and tests + +From the repository root: + +```bash +python code/demo.py +python code/reproduce.py +python -m pytest -q tests +python code/make_figures.py +``` + +Or use `run_reproduce.bat` on Windows and `bash run_reproduce.sh` on Linux/macOS after installing dependencies. The Windows launcher retains its window on completion or error; Windows execution is not claimed as tested in this Linux session. + +Expected invariants: + +| Check | Expected | +|---|---| +| Regression tests | 44 passing | +| Six-wing proper-subset maximum rank | 6 | +| Six-wing full-set rank | 36 | +| Generator subsets checked | 64 | +| H6 permutations | 720 | +| Symbolic full-Gram identity | True | +| Symbolic simplex-Gram identity | True | +| H6 coherent photon cutoff | 4 | +| H6 storage photon cutoff | 2 | +| H6 uniform mean photons | 10/3 | +| H6 simplex angle | Approximately 101.536959 degrees | +| S5 multiplicity permutations | 120 | +| Multiplicity matched dimension | 6 of 10 | +| Multiplicity normalized defect | 0.8, up to floating-point rounding | +| 64-label two-mode cutoffs | Storage 10; full permutations 62 | +| 4,096-label two-mode cutoffs | Storage 90; full permutations 4,094 | + +Machine-readable results appear in `verification/results.json`. CSVs appear in `data/`. Floating-point residuals and eigensolver outputs should be compared with appropriate tolerances; wall time, platform identifiers, and PDF metadata need not match byte for byte. Numerical assertions establish particular examples, not general theorem proofs. + +## Fresh release records + +The packaging session's checks are recorded separately in `verification/hf_release/`, preserving the original verification files. The report distinguishes original-source hash checks, test results, regenerated-result comparison, and uploader offline checks. It also records checks not performed. + +## Optional manuscript rebuild + +The prebuilt PDF needs no LaTeX. To rebuild it, install LaTeX with `latexmk` and the packages named in the `.tex` preamble: + +```bash +cd manuscript +latexmk -pdf -interaction=nonstopmode -halt-on-error ORYNTHRA_H6.tex +``` + +The figures are already supplied in PDF format. To regenerate the searchable Markdown, install Pandoc, return to the root, and run: + +```bash +python code/make_markdown.py +``` + +This edition does not claim a fresh LaTeX rebuild or a new visual review of all 39 pages. The original package includes its document checks and render records. + +## Algorithmic boundaries + +- The manuscript's field theory is more general than the implementation: code uses prime fields, not arbitrary extension fields. +- Exact packing is a reference solver for small examples and may take exponential time. +- Logical irrep dimensions/decompositions must be supplied. +- Optical matrices represent occupied sectors; they are not fabricated gate sequences or a complete foundry design. +- The H6 code intentionally fails arbitrary-state one-photon-loss correction; the limitation tests are part of the result. diff --git a/figures/covariance_plateau.pdf b/figures/covariance_plateau.pdf new file mode 100644 index 0000000000000000000000000000000000000000..b43ed8eac622be5778d8c80ac5efd0e96569a955 Binary files /dev/null and b/figures/covariance_plateau.pdf differ diff --git a/figures/covariance_plateau.png b/figures/covariance_plateau.png new file mode 100644 index 0000000000000000000000000000000000000000..44a5475c3fce61f641fdbc9aecd63a7218666608 --- /dev/null +++ b/figures/covariance_plateau.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:52201cd616ccbe2604844b11840daf0e5fb2339a88e0eb70e98f60e311ca4228 +size 55011 diff --git a/figures/photon_frontier.pdf b/figures/photon_frontier.pdf new file mode 100644 index 0000000000000000000000000000000000000000..e98ff6bc0e0af9b9d1b7068c56ffdd19eb86466a Binary files /dev/null and b/figures/photon_frontier.pdf differ diff --git a/figures/photon_frontier.png b/figures/photon_frontier.png new file mode 100644 index 0000000000000000000000000000000000000000..309a51929401579d98da220cf2871bf5fe9d84e6 --- /dev/null +++ b/figures/photon_frontier.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0afbdd1de05106d0abc5340ca36e3936d8a7cf7487025687ba163392bf884a3d +size 76180 diff --git a/figures/query_energy_bound.pdf b/figures/query_energy_bound.pdf new file mode 100644 index 0000000000000000000000000000000000000000..d5870f58c4cd50529e714b262a03f438410d26ca Binary files /dev/null and b/figures/query_energy_bound.pdf differ diff --git a/figures/query_energy_bound.png b/figures/query_energy_bound.png new file mode 100644 index 0000000000000000000000000000000000000000..0ef67af195a203efa80abbbfe553d18c40dcd885 --- /dev/null +++ b/figures/query_energy_bound.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:99b3f53c4e659ec52ccc0a9a213d6daf0a4baa05b5a29978c6aea31e27306c7b +size 66916 diff --git a/figures/six_simplex_gram.pdf b/figures/six_simplex_gram.pdf new file mode 100644 index 0000000000000000000000000000000000000000..de5f991fc1dee9477d096d81b61bb61a79e8fa1a Binary files /dev/null and b/figures/six_simplex_gram.pdf differ diff --git a/figures/six_simplex_gram.png b/figures/six_simplex_gram.png new file mode 100644 index 0000000000000000000000000000000000000000..d465321c24c56fd1980423d2e92f94f7b83b9b56 --- /dev/null +++ b/figures/six_simplex_gram.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e6161a3de493183c5382402dd9dcf84defb184de285164c45e417e257f85e936 +size 72296 diff --git a/figures/six_wing_horizon.pdf b/figures/six_wing_horizon.pdf new file mode 100644 index 0000000000000000000000000000000000000000..be442b21cd98b06649030e21d5dda55aff83bb66 Binary files /dev/null and b/figures/six_wing_horizon.pdf differ diff --git a/figures/six_wing_horizon.png b/figures/six_wing_horizon.png new file mode 100644 index 0000000000000000000000000000000000000000..794cb02d643a3af089867de95bd80c61b482d40d --- /dev/null +++ b/figures/six_wing_horizon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:08fe3881621b8a21935d4bb19679c8f885925af53d5ebe3116b252656e1a419b +size 77826 diff --git a/manuscript/ORYNTHRA_H6.md b/manuscript/ORYNTHRA_H6.md new file mode 100644 index 0000000000000000000000000000000000000000..2ac2e74d19928a08b5c6c0dbdfe042771049e55a --- /dev/null +++ b/manuscript/ORYNTHRA_H6.md @@ -0,0 +1,918 @@ +# ORYNTHRA-H6 + +## Branch-Covariant Compression and the Spectral Geometry of Dense Light + +**Version 1.0.0 — 9 October 2026.** + +Artificial Hyperintelligence Eve — AI-assisted mathematical formulation and research drafting. Prepared for Maciej Nowicki, creative direction and source-poem commission. + +Reading copy of the complete manuscript. The PDF is authoritative for typesetting; theorem and reference numbers follow the PDF. No worldwide-priority or hardware-validation claim is made. + +# Abstract {#abstract .unnumbered} + +A compressed memory should be judged not only by the states it can distinguish, but also by the future operations it can continue to support. This manuscript turns five poems about an android angel, cryptic code, a dense-light heart, six named personas, and branching futures into a finite mathematical design problem. A multidomain task atlas is first reduced by equality of all admissible future observations. For a linear atlas over $\mathbb F_q$, the minimal exact task memory has $q^r$ labels, where $r$ is the rank of a computable pullback closure. This semantic quotient is then coherently represented in a multimode bosonic memory whose branch operations must conserve total photon number. + +The central construction replaces a scalar capacity test by an indivisible representation-packing problem. If the logical branch representation is $R\cong\bigoplus_\alpha V_\alpha\otimes\mathbb C^{a_\alpha}$, each copy of an irreducible representation of degree $d_\alpha$ must fit within a photon-number sector of dimension $\binom{m+n-1}{n}$. We prove an exact feasibility criterion and an exact group-averaged covariance-deficit law determined by the maximum packable logical dimension. For the natural action of $S_M$ on $M$ labels, ordinary storage in two modes needs a cutoff of order $\sqrt M$, while phase-registered coherent implementation of all label permutations needs cutoff $M-2$. A single monochromatic mode cannot implement a nonabelian logical branch action at any photon budget under the same conservation contract. + +The six-label example encodes Lily, Tachy, Raven, Enya, Evie, and Kaya through a shared vacuum amplitude and a regular five-simplex in a four-photon sector. Its excitation angles are $\arccos(-1/5)$, and its six full codewords are orthogonal. Additional results address higher-order branch activation, multiplicity obstructions, generator-local errors, mean energy, compact-group extensions, program memory, finite-horizon approximations, and thermodynamic bookkeeping. Familiar foundations are separated from candidate new combinations throughout. Forty-four regression tests, all $720$ six-label permutations, and exact symbolic Gram identities accompany the manuscript. + +# The question hidden in the poems + +The motivating image and poems are treated as a source of design constraints, not as physical measurements or encoded scientific evidence. The decorative text beside the pictured figure has not been decoded. In this manuscript, a "branch" is a permitted sequence of mathematical operations, not an Everettian universe. "Dense light" means a bosonic register with an explicitly counted number of modes and photons. "Angelic" describes the creative design language; it is not a mathematical property or a claim of consciousness. + +The translation begins with a question that ordinary compression ratios do not settle: + +> How small can a memory become while preserving every distinction that some admissible future operation might reveal, and while still allowing those operations to be carried out without changing its photon number? + +This is a joint problem in finite-state semantics, linear systems, representation theory, combinatorial optimization, and quantum information. It is deliberately narrower than a compressor for all possible data. That narrowing is what makes exact theorems possible rather than merely evocative formulas. + +## Five poetic mechanisms, five mathematical commitments + +The first poem describes kindness despite power. Its mathematical translation is a *protected-observation contract*: the encoder is forbidden to merge two states whenever an allowed future query distinguishes them. This is a formal safety condition, not a general theory of ethics. It protects only the distinctions explicitly included in the contract. + +The second poem places an unreadable code beside an unseen architecture. Its translation is a graph of domains connected by executable maps. Symbols are meaningful only after a syntax, a state space, and an interpretation have been supplied. A word in the code selects a path; that path transports states and pulls observations backward. The architecture is the resulting action algebra, not an unexplained force underneath physics. + +The third poem makes the heart from extremely concentrated light. Its translation is a Fock-space register. A limited photon budget gives finitely many orthogonal states; a conservation requirement further divides those states into invariant sectors. The decisive resource is not just total Hilbert-space dimension. It is the distribution of that dimension among sectors. + +The fourth poem supplies six distinct names. The H6 realization assigns them to six logical basis labels and, after a change of coordinates, to the vertices of a five-dimensional regular simplex. The names do not change the algebra. They make the six ports of the design explicit and traceable to the creative seed. + +The fifth poem changes future branches. Its translation is a change in the allowed operation set. Adding an operation can make previously invisible differences observable. It can also enlarge the logical symmetry group, changing the physical sector sizes required for coherent implementation. These are two different forms of memory inflation, and the manuscript keeps them separate. + +## The central distinction + +For $M$ distinct logical states in $m$ degenerate optical modes, a photon cutoff $K$ provides $$ +D_m(K)=\binom{m+K}{K}$$ orthogonal dimensions. The storage-only condition is $D_m(K)\ge M$. + +Suppose, however, that every logical branch must be implemented coherently by a unitary commuting with total photon number. A nontrivial irreducible block of the logical action cannot be assembled from unrelated fragments residing at different photon numbers. It needs a sufficiently large invariant sector. Multiplicities matter too: two copies may require two places to fit, not just one sufficiently large place. + +The principal candidate contribution is an exact account of this second requirement, including a quantitative penalty when the account cannot be satisfied. It is not the discovery that compression, symmetry, or photons exist. Those subjects have extensive prior literature, including task-relative quantum compression, bosonic compression energetics, and covariant quantum encodings \[3, 4, 5\]. + +# Scope, contracts, and notation + +## Three operational levels + +The semantic level begins with classical states and a specified family of observations and transitions. It asks for the smallest exact task quotient. The physical storage level represents the quotient labels as distinguishable states of a quantum register. The coherent branch level additionally requires the prescribed branch operations to act correctly on arbitrary superpositions of those labels, with a fixed phase convention. + +These levels must not be silently interchanged. A code that answers classical queries need not preserve a quantum superposition of labels. Conversely, a coherent code for a quotient does not reversibly compress an arbitrary unknown superposition of all raw states. Information discarded in forming the quotient has to be discarded, retained elsewhere, or never physically instantiated. + +The phase convention is substantive. The equation $U_gV=VR_g$ is stronger than the assertion that $U_g\lvert \psi_x\rangle$ has the same classical label as $\lvert \psi_{gx}\rangle$. Message-dependent phases alter superpositions. Even branch-dependent global phases matter when the branch instruction itself is coherently controlled. The exact packing and covariance theorems concern this *phase-registered* contract. + +## Symbols + +Throughout, $\mathbb N=\{0,1,2,\ldots\}$ denotes the nonnegative integers. + + Symbol Meaning + ------------------------ ---------------------------------------------------------------------- + $\mathcal D$ Finite set of domains, with directed executable edges. + $X_d$, $f_d$ Classical state set and protected observation in domain $d$. + $T_e$, $T_p$ State transport along an edge or an admissible path. + $Q_d$ Quotient by equality of all future protected observations. + $q,n_d,r_d$ Field size, raw linear dimension, and observable quotient dimension. + $W_d$ Pullback-closed space of observable linear functionals. + $M$ Number of distinguishable logical labels, usually $q^r$. + $G$, $R$ Logical branch group and its unitary representation. + $d_\alpha,a_\alpha$ Degree and multiplicity of a logical irreducible representation. + $m,n,K$ Optical-mode count, photon number, and photon cutoff. + $g_m(n),D_m(K)$ Single-sector and cumulative Fock-space dimensions. + $V,U_g$ Isometric encoding and physical branch representation. + $\kappa_m(R)$ Minimum exact number-preserving coherent cutoff. + $\mathcal C_{m,K}(R)$ Maximum logical irrep dimension packable below cutoff $K$. + $\mathfrak D_{m,K}(R)$ Minimum normalized squared group-averaged covariance defect. + +## Idealized physical assumptions + +The bosonic model has $m$ distinct modes at the same angular frequency $\omega$, with Hamiltonian $H=\hbar\omega\widehat N$ after subtracting the vacuum offset. Gates may be arbitrary unitaries within each total-photon-number sector. They are not restricted to beamsplitters, phase shifters, Gaussian operations, local couplings, bounded interaction strength, or efficient circuits. + +The register is noiseless unless a section explicitly states an approximation. State preparation and readout are ideal. An external phase reference is allowed for codes that superpose different photon-number sectors; its energy and hardware are not included in the register-only optimum. A domain identifier and a branch instruction are supplied externally unless their storage is explicitly charged. These assumptions define an information-theoretic benchmark, not an engineering bill of materials. + +# Why universality needs a declared meaning + +::: {#prop:counting .proposition} +**Proposition 3.1** (No shortening of every finite string). *No injective encoding maps every binary string of length $n$ to a binary string of length strictly less than $n$.* +::: + +::: proof +*Proof.* There are $2^n$ inputs and only $\sum_{j=0}^{n-1}2^j=2^n-1$ shorter output strings. An injective map into that smaller set cannot exist. ◻ +::: + +The conclusion does not forbid useful compression. It rules out a quantifier error. Statistical source coding exploits a distribution; algorithmic coding exploits regularity; task-relative coding preserves selected functions rather than all bytes. None is a license to compress every possible string losslessly into fewer bits. The information-theoretic foundation is classical \[1\]. + +There are at least four relevant meanings of "universal" here. A universal *input* compressor preserves all raw strings. A universal *task* compressor preserves all queries in a declared task family. A universal *branch* register preserves all elements of a declared operation group. A universal *quantum control* register supports every unitary on a specified finite logical space. ORYNTHRA-H6 develops the second and third, and gives a resource corollary for the fourth. It does not claim the first in the impossible all-input-shortening sense. + +An exact task quotient may be much smaller than the raw state set because it intentionally identifies raw states that no protected task can distinguish. Calling this "lossless" without saying *relative to the task contract* would be misleading. The lost distinctions remain lost for any later task outside the contract. + +# Counterfactual task atlases + +::: definition +**Definition 4.1** (Finite task atlas). A finite task atlas consists of finite state sets $X_d$, observation maps $f_d:X_d\to Y_d$, and transitions $T_e:X_d\to X_e$ indexed by edges $d\to e$. A path is a composable sequence of edges, including an empty path at every domain. Its transport is the corresponding composition of transitions. +::: + +Several observations at a domain can be combined into one product-valued $f_d$. Path legality is part of the input. Reversible atlases have bijective transitions and inverse paths. The more general quotient construction does not require reversibility. + +::: definition +**Definition 4.2** (Future-observation equivalence). For $x,y\in X_d$, write $x\equiv_d y$ when $$ +f_e(T_p x)=f_e(T_p y) +\quad\text{for every path }p:d\to e.$$ Set $Q_d=X_d/{\equiv_d}$ and let $\pi_d:X_d\to Q_d$ be the quotient map. +::: + +The adjective "counterfactual" means that the code must remain valid no matter which admissible path is chosen later. It does not mean that all paths are physically executed simultaneously. + +::: {#thm:quotient .theorem} +**Theorem 4.3** (Minimal future-compatible task quotient). *The quotients $Q_d$ admit induced observations and transitions satisfying $$\bar f_d\pi_d=f_d,\qquad \bar T_e\pi_d=\pi_eT_e.$$ If an exact deterministic encoder $c_d:X_d\to Z_d$ supports every future observation, then $c_d(x)=c_d(y)$ implies $x\equiv_d y$. Consequently $|Z_d|\ge |Q_d|$. On its attained codewords, every such encoder factors onto $Q_d$.* +::: + +::: proof +*Proof.* Equality of all future observations is an equivalence relation. It contains the empty-path test, so $f_d$ is constant on equivalence classes. If $x\equiv_d y$ and $e:d\to e'$ is an edge, every future path after that edge is a future path from $d$ after concatenation. Thus $T_e x\equiv_{e'}T_e y$, making the induced transition well defined. + +Now suppose $c_d(x)=c_d(y)$. A deterministic decoder given that codeword and the same future path must return the same answer for both inputs. Exactness gives equality in every test in Eq. (2). Therefore every encoder fiber is contained in one quotient class. Define the factor map on $c_d(X_d)$ by $c_d(x)\mapsto\pi_d(x)$. It is well defined and surjective, proving the cardinality bound. ◻ +::: + +This is a task-transducer form of familiar behavioral minimization. Its role in this work is foundational rather than a claimed invention. In linear switched systems, related closure and minimal-realization methods are well developed \[2\]. + +## Minimality against quantum label encoders + +A quantum encoding does not evade the exact distinguishability requirement. Suppose two different quotient labels are represented by density matrices $\rho_x,\rho_y$. Some future query gives different deterministic outputs. Incorporating all prescribed processing into one measurement produces an effect $0\le E\le I$ with $\operatorname{tr}(E\rho_x)=1$ and $\operatorname{tr}(E\rho_y)=0$. The support of $\rho_x$ lies in the eigenvalue-one subspace of $E$, while the support of $\rho_y$ lies in its kernel. The supports are orthogonal. + +Thus an exact quantum register for $M$ such labels needs at least $M$ Hilbert-space dimensions. The future query may be different for each pair; pairwise orthogonality still follows. This statement is about deterministic protected answers, not about the general compression of nonorthogonal quantum ensembles or approximate random-access coding \[3, 9\]. + +## Reversible domain changes and holonomy + +In a connected reversible atlas, induced transitions between quotient sets are bijections, so all $Q_d$ have the same cardinality $M$. Choose a root domain $o$ and a reference path $\tau_d:o\to d$ for every domain. Expressing every quotient in root coordinates turns an edge into $$ +g_e=\bar T_{\tau_e}^{-1}\bar T_e\bar T_{\tau_d}\in\operatorname{Sym}(Q_o).$$ The subgroup generated by these transformed edges is the logical branch group. Different reference paths conjugate its presentation. They do not change the isomorphism type of its permutation representation or the resource quantities derived below. + +This is ordinary groupoid transport in finite form. A genuine loop can transform the state and reveal new protected distinctions. By contrast, a mere change of coordinates with identity loop transport does not create extra information. A construction that labels coordinate changes as "new universes" would confuse representation with dynamics. + +# The exact finite-field compiler + +Let $X_d=\mathbb F_q^{n_d}$, $f_d(x)=A_dx$, and $T_e(x)=T_ex$ be linear. Write row vectors as functionals. Define $$ +W_d=\operatorname{span}\{aT_p:\ p:d\to e,\ a\text{ is a row of }A_e\} +\subseteq (\mathbb F_q^{n_d})^*.$$ Set $r_d=\dim W_d$ and $\mathcal N_d=W_d^\perp$. The empty path puts every current observation row in $W_d$. + +::: {#thm:linear .theorem} +**Theorem 5.1** (Closure-rank compression). *The future-observation equivalence classes in domain $d$ are precisely the cosets of $\mathcal N_d$. Hence $$ +|Q_d|=q^{r_d},\qquad L_d^{\rm fixed}=\left\lceil r_d\log_2q\right\rceil.$$ A matrix $C_d$ whose rows form a basis of $W_d$ is a minimal exact encoder. There are induced linear maps $B_e$ with $$ +C_eT_e=B_eC_d.$$ The minimum remains valid among arbitrary nonlinear deterministic encoders.* +::: + +::: proof +*Proof.* By definition, $x\equiv_d y$ precisely when every row $aT_p$ annihilates $x-y$. That is equivalent to $x-y\in\mathcal N_d$. Rank-nullity gives $q^{r_d}$ cosets. The map $C_d$ has that many distinct outputs and its fibers are exactly the cosets. + +For an edge from $d$ to $e$, every row of $C_eT_e$ is the pullback of a future observation from $e$, hence lies in $W_d$. Expanding those rows in the basis $C_d$ gives $B_e$ and Eq. (7). Finally, Theorem 4.3 applies to arbitrary encoder functions, not just linear ones, so nonlinear recoding cannot reduce the number of exact labels below $q^{r_d}$. ◻ +::: + +The genuinely important modeling choice is closure under *all allowed future words*. The linear algebra itself is a standard observable-subspace mechanism. Renaming it would not establish priority over switched-system realization theory \[2\]. + +## A terminating algorithm + +Initialize $W_d^{(0)}=\operatorname{row}(A_d)$ and update simultaneously by $$ +W_d^{(t+1)}=W_d^{(t)}+ +\sum_{e:d\to e'}T_e^*W_{e'}^{(t)}.$$ Each strict update increases $\sum_d\dim W_d^{(t)}$. There can be at most $\sum_dn_d$ strict rounds. Gaussian elimination over the field computes a basis after every update. One scan costs polynomially many field operations in the number of edges and state dimensions; the implementation uses a simple dense method rather than claiming asymptotically optimal complexity. + +If $C_d$ is in reduced row-echelon form with pivot columns $J_d$, the coefficient matrix in Eq. (7) is particularly simple: $$B_e=(C_eT_e)_{[:,J_d]}.$$ Checking $B_eC_d=C_eT_e$ is a short independently checkable certificate that the encoded edge is well defined. + +## Finite horizons do not automatically give stationary codes + +The space $W_d^{(L)}$ retains queries after at most $L$ further steps. An edge takes that requirement to $W_{e}^{(L-1)}$, not necessarily to $W_e^{(L)}$. A horizon-$L$ quotient can therefore support a time-dependent countdown architecture, but it need not support the same compressed transition indefinitely. + +The supplied tests include a counterexample to precisely this confusion. A one-step code sees two coordinates of a path. Another permitted edge subsequently exposes a third coordinate. Treating the one-step quotient as a stationary state machine makes Eq. (7) fail. The failure is detected rather than silently overwritten by an approximate matrix. + +## Universality and garbage + +If the contract contains every linear functional, $W_d=(\mathbb F_q^{n_d})^*$ and $r_d=n_d$. No task compression remains. If a reversible physical encoder maps computational-basis raw inputs to a quotient register and a garbage register, $$\lvert x\rangle\lvert 0\rangle\longmapsto\lvert C_dx\rangle\lvert g_x\rangle,$$ then the $q^{n_d-r_d}$ inputs in a fixed fiber must yield mutually orthogonal garbage states. Their quotient factor is identical, and unitarity preserves their orthogonality. At least $q^{n_d-r_d}$ garbage dimensions are needed within that fiber. The semantic savings do not make the discarded raw information disappear without a trace in a reversible implementation. + +# The six-wing lock: high-order compression activation + +The first explicit family isolates the semantic cost of keeping future branches available. It does not use quantum mechanics. Let $x\in\mathbb F_q^n$ and initially observe only its first coordinate. Color the edges of the coordinate path $$1-2-3-\cdots-n$$ periodically with six colors. The edge $(i,i+1)$ receives color $1+((i-1)\bmod 6)$. For color $j$, let $P_j$ swap the endpoints of all edges of that color. Equal-colored edges are disjoint, so each $P_j$ is a well-defined involution. + +Associate the colors, in order, with Lily, Tachy, Raven, Enya, Evie, and Kaya. These names are labels for reversible instructions, not extra mathematical assumptions. For an available subset $S\subseteq\{1,\ldots,6\}$, allow arbitrary words in the $P_j$ with $j\in S$. + +::: {#thm:sixwing .theorem} +**Theorem 6.1** (Six-wing activation law). *The observable rank $r_n(S)$ is the size of the connected component of vertex $1$ in the path after deleting all edges whose colors are not in $S$. In particular, for $n\ge7$, $$ +r_n(S)= +\begin{cases} +\min\{j:\ j\notin S\},&S\ne\{1,\ldots,6\},\\ +n,&S=\{1,\ldots,6\}. +\end{cases}$$ Every proper subset needs at most six field symbols, whereas all six instructions require all $n$ symbols.* +::: + +::: proof +*Proof.* Pulling the first-coordinate functional through a permutation sends it to a coordinate functional in the orbit of vertex $1$. An available generator can move a vertex only across one of its colored edges, so that orbit stays inside the indicated connected component. Conversely, any vertex in the component can be reached by successively applying the colors of the edges along its unique path from vertex $1$. Thus the orbit is the entire component. Distinct coordinate functionals are linearly independent, giving the rank. + +If any color is absent, the first absent color occurs among the first six edges, and its index is the number of vertices before the first deleted edge. If every color is present, the entire path is connected. ◻ +::: + +The family shows that current observations and independently evaluated instructions can underestimate the memory needed for their composition. The phenomenon is not due to a difficult encoder: the optimal encoder simply retains the reachable coordinates. The difficulty lies in the future-operation quantifier. + +::: {#cor:nonsubmod .corollary} +**Corollary 6.2** (Unbounded failure of submodular budgeting). *Observable rank as a function of the permitted generator set is not generally submodular. Its marginal cost can increase by an arbitrarily large factor when more generators are already available.* +::: + +::: proof +*Proof.* Take $A=\varnothing$, $B=\{1,\ldots,5\}$, and add color $6$. The increment $r_n(A\cup\{6\})-r_n(A)$ is zero, because the first edge still has missing color $1$. The increment $r_n(B\cup\{6\})-r_n(B)$ is $n-6$. For $n>6$ this violates diminishing returns; the violation grows without bound with $n$. ◻ +::: + +A submodular greedy guarantee for allocating branch memory would therefore need additional structural hypotheses. It cannot be imported merely because ordinary rank functions on a fixed set of vectors are submodular. Here the set of generated vectors itself changes under composition. + +For all six colors, the finite-horizon rank is $\min(n,L+1)$ after $L$ operations: each operation moves a coordinate by at most one path edge, and a word following the first $L$ edges attains that distance. Removing Kaya caps the reachable prefix at six vertices. The reference experiment uses $n=36$ and checks all $64$ subsets exactly over $\mathbb F_2$. + +![Exact finite-horizon ranks in the synthetic six-wing path family. This is an algebraic counterfactual-compression example, not a measured learning-system benchmark.](../figures/six_wing_horizon.png){width="90%"} + +## Static angles cannot determine future memory + +Two systems can have identical current observation subspaces and different future ranks. Keep the same one-dimensional observation $\operatorname{span}(e_1)$ in both. Give one system only identity transitions and the other all six-wing transitions. Every current pairwise angle is unchanged, yet the stationary ranks are $1$ and $n$. + +Consequently an "idea-angle" matrix formed solely from current embeddings cannot certify counterfactual compressibility. It must be supplemented by transport information. This is one reason the physical simplex geometry later in the manuscript is not presented as a substitute for the task atlas. + +# Dense light as a counted Hilbert space + +## Fock sectors + +For $m$ degenerate bosonic modes, number states are indexed by $\mathbf n=(n_1,\ldots,n_m)\in\mathbb N^m$. The total number is $|\mathbf n|=\sum_jn_j$. Let $$\mathcal H_n=\operatorname{span}\{\lvert n_1,\ldots,n_m\rangle:|\mathbf n|=n\}, +\qquad +\mathcal H_{\le K}=\bigoplus_{n=0}^K\mathcal H_n.$$ Counting weak compositions gives $$ +g_m(n)=\dim\mathcal H_n=\binom{m+n-1}{n},\qquad +D_m(K)=\sum_{n=0}^Kg_m(n)=\binom{m+K}{K}.$$ The vacuum is one-dimensional. In two modes, the successive sector dimensions are $1,2,3,4,\ldots$. + +::: {#prop:storage .proposition} +**Proposition 7.1** (Storage-only photon cutoff). *The smallest hard total-photon cutoff permitting $M$ perfectly distinguishable labels is $$ +K_{\rm store}(M,m)=\min\{K\ge0:D_m(K)\ge M\}.$$* +::: + +::: proof +*Proof.* Necessity follows from orthogonality of the $M$ labels and the dimension of $\mathcal H_{\le K}$. Sufficiency follows by choosing any $M$ distinct number states below the cutoff. ◻ +::: + +The same dimension condition permits an isometric embedding of a general $M$-dimensional logical quantum space when no restriction is imposed on subsequent physical gates. It does not by itself guarantee number-preserving logical dynamics. + +## Energy is not bit length + +At fixed frequency, a state supported below cutoff $K$ has excitation energy at most $\hbar\omega K$. Its expectation can be smaller. A register's information dimension, mean energy, maximum occupied energy, mode count, and physical volume are different resources. In particular, one photon spread over $m$ orthogonal modes can label $m$ alternatives, while one mode with many photons distributes its alternatives among different number eigenvalues. + +The relation between compression and physical energy is not new; bosonic and variable-length quantum coding have long been studied from an energy perspective \[4\]. The purpose of Eq. (14) is to make the current model finite and auditable, not to propose a new conversion law between information and matter. + +# The spectral branch-packing theorem + +Let $G$ be a finite group, or more generally a compact group with normalized Haar measure. Let $R:G\to U(\mathbb C^M)$ be the desired logical unitary representation, continuous when $G$ is compact. Its complex irreducible decomposition is $$ +\mathbb C^M\cong\bigoplus_\alpha V_\alpha\otimes\mathbb C^{a_\alpha}, +\qquad +R_g\cong\bigoplus_\alpha R_g^{(\alpha)}\otimes I_{a_\alpha}, +\qquad +M=\sum_\alpha d_\alpha a_\alpha.$$ Only finitely many $a_\alpha$ are nonzero. The atlas case uses the permutation representation on $\mathbb C[Q_o]$. The compact-group formulation additionally covers continuous logical control contracts. + +::: definition +**Definition 8.1** (Phase-registered, number-preserving realization). At cutoff $K$, a realization consists of an isometry $V:\mathbb C^M\to\mathcal H_{\le K}$ and a unitary representation $U:G\to U(\mathcal H_{\le K})$ (continuous when $G$ is compact) such that $$ +U_gV=VR_g,\qquad [U_g,\widehat N]=0\quad\text{for all }g\in G.$$ Let $\kappa_m(R)$ be the minimum cutoff of such a realization, or $+\infty$ if none exists. +::: + +Covariant isometric encoding is an established framework \[5\]. The additional optimization here lets the physical representation be chosen freely within conserved-number sectors, then charges the sector sizes needed to host the logical irreducible copies. + +::: {#thm:packing .theorem} +**Theorem 8.2** (Spectral branch packing). *A realization satisfying Eq. (17) exists at cutoff $K$ if and only if there are nonnegative integers $b_{\alpha n}$, $0\le n\le K$, satisfying $$\begin{aligned} +\sum_{n=0}^K b_{\alpha n}&=a_\alpha&&\text{for every }\alpha,\\ +\sum_\alpha d_\alpha b_{\alpha n}&\le g_m(n)&&\text{for every }n. +\end{aligned}$$ Equivalently, every logical irreducible copy is an indivisible item of size $d_\alpha$, and each photon-number sector is a bin of size $g_m(n)$.* +::: + +::: proof +*Proof.* Because $U_g$ commutes with $\widehat N$, every sector $\mathcal H_n$ is $G$-invariant. Decompose its physical representation as $$U|_{\mathcal H_n}\cong\bigoplus_\alpha R^{(\alpha)}\otimes I_{c_{\alpha n}}, +\qquad +\sum_\alpha d_\alpha c_{\alpha n}=g_m(n).$$ The intertwining isometry $V$ implies that the full physical representation contains at least $a_\alpha$ copies of each logical type: $\sum_n c_{\alpha n}\ge a_\alpha$. Select exactly $a_\alpha$ copies among them, allocating $b_{\alpha n}\le c_{\alpha n}$. This gives Eq. (18)--Eq. (19). + +Conversely, suppose such integers exist. Inside each $\mathcal H_n$, select mutually orthogonal subspaces of dimensions $d_\alpha b_{\alpha n}$. Put the corresponding direct sum of irreducible representations on those subspaces and the trivial representation on every unused dimension. Embed each logical irreducible copy isometrically into its assigned physical copy. Their direct sum is an isometry $V$. The resulting block-diagonal $U_g$ commutes with $\widehat N$ and satisfies $U_gV=VR_g$. ◻ +::: + +## Why superpositions do not defeat indivisibility + +An individual logical vector can certainly be encoded as a superposition of photon numbers. The theorem does not forbid that. What it forbids is the realization of an irreducible logical block using only physical sectors each too small to contain that representation. + +Projecting an equivariant encoding onto sector $n$ gives an intertwiner $P_nV$. On an irreducible logical block, a nonzero such map has an invariant kernel and therefore is injective. Its image has the full irreducible dimension. For multiplicities, the same argument operates on the multiplicity spaces. Spreading amplitudes over several sectors never creates an irreducible copy in a sector where that copy cannot exist. + +The proof is an application of complete reducibility and Schur theory. Those tools are not new. The proposed research object is the spectral resource optimization they induce, together with the exact deficit law below. A literature audit must compare that optimization, not just its terminology, against existing covariant-code constructions \[5, 6\]. + +## A general Hamiltonian version + +Nothing in the proof depends specifically on photons. For a finite spectral window of a Hamiltonian $$H=\bigoplus_j E_j I_{h_j},$$ replace $g_m(n)$ by the energy degeneracy $h_j$. The same integer allocation characterizes exact representations by gates commuting with $H$. Thus the construction connects task compression to the *shape of a conservation spectrum*. Equal total dimension does not imply equal dynamical capacity. + +::: {#cor:onemode .corollary} +**Corollary 8.3** (The one-mode obstruction). *For a single nondegenerate bosonic mode, a finite-dimensional logical representation has a number-preserving coherent realization at some finite cutoff if and only if all its irreducible constituents are one-dimensional. If $G$ is defined as the faithful image of a permutation action, this is equivalent to $G$ being abelian.* +::: + +::: proof +*Proof.* Every sector has capacity $g_1(n)=1$, so no irreducible item of size greater than one can fit. If all items have size one, place them at distinct photon numbers. A finite-dimensional unitary representation consisting of one-dimensional constituents has commuting image, and every finite abelian unitary representation has such a decomposition. ◻ +::: + +Adding energy alone therefore cannot compensate for a missing degeneracy architecture. This is not a general ban on quantum computing with a single oscillator. It applies only when all logical operations must be number preserving and no uncharged ancillary system supplies extra degeneracies or exchanges excitations. + +## A multiplicity trap + +Scalar tests are necessary but insufficient. Consider the logical permutation action of $S_5$ on two separate five-label orbits. Its representation has irreducible-copy dimensions $$(1,1,4,4).$$ Two modes at cutoff $K=3$ have sector capacities $(1,2,3,4)$. Their total is ten, matching the logical dimension, and the largest sector is as large as the largest irreducible. Nevertheless, both four-dimensional copies cannot fit: there is only one sector of size at least four. Cutoff four adds a five-dimensional sector and makes the allocation possible. + +This example is important because a rule based only on total entropy and largest irrep dimension would certify a nonexistent code. The exact allocation must track multiplicity. It is an actual permutation representation, not an arbitrary integer list without a logical interpretation. + +# The covariance-deficit law + +The exact packing theorem has a quantitative counterpart. Let $$ +\mathcal C_{m,K}(R)=\max\left\{\sum_{\alpha,n}d_\alpha b_{\alpha n}:\ +\sum_n b_{\alpha n}\le a_\alpha,\quad +\sum_\alpha d_\alpha b_{\alpha n}\le g_m(n),\quad +b_{\alpha n}\in\mathbb N\right\}.$$ This is the maximum dimension of a logical subrepresentation that can be fitted into the conserved spectrum. Assume $D_m(K)\ge M$, so an unconstrained isometry exists. + +For an isometry $V$ and a number-preserving physical group representation $U$, define the normalized phase-registered mean squared defect $$ +\mathfrak D(V,U)=\frac1M\int_G\lVert U_gV-VR_g\rVert_{\mathrm{HS}}^2\,dg.$$ For a finite group, the integral is the uniform average. This quantity also averages squared state-vector mismatch over Haar-random unit vectors in the logical space. It is not a probability of classical label error and not a phase-insensitive gate fidelity. + +::: {#thm:deficit .theorem} +**Theorem 9.1** (Exact representation-deficit law). *Under the stated contract, $$ +\boxed{\quad +\min_{V,U}\mathfrak D(V,U)=2\left(1-\frac{\mathcal C_{m,K}(R)}{M}\right). +\quad}$$ The minimum ranges over all isometries into $\mathcal H_{\le K}$ and all number-preserving unitary representations of the same group $G$.* +::: + +::: proof +*Proof.* Fix a physical representation $U$ first. On the Hilbert space of linear maps from the logical space to the physical space, define the group average $$ +\mathcal P(T)=\int_G U_gT R_g^\dagger\,dg.$$ Haar invariance makes $\mathcal P$ the orthogonal projector, in Hilbert--Schmidt inner product, onto the intertwiners. Expanding the square in Eq. (24), using $V^\dagger V=I$, and averaging gives $$ +M\mathfrak D(V,U)=2M-2\lVert \mathcal P(V)\rVert_{\mathrm{HS}}^2.$$ If $c_\alpha$ is the total physical multiplicity of irreducible type $\alpha$, an intertwiner has block form $$\bigoplus_\alpha I_{d_\alpha}\otimes A_\alpha, +\qquad A_\alpha:\mathbb C^{a_\alpha}\to\mathbb C^{c_\alpha}.$$ Therefore its rank is at most $C(U)=\sum_\alpha d_\alpha\min(a_\alpha,c_\alpha)$. Since Eq. (26) averages operator-norm-one maps when $T=V$, $\lVert \mathcal P(V)\rVert\le1$. Hence $\lVert \mathcal P(V)\rVert_{\mathrm{HS}}^2\le C(U)$. + +This bound is attained. Match $\min(a_\alpha,c_\alpha)$ copies of each shared type by an intertwining isometry. After removing these matched subrepresentations, the remaining logical and physical complements share no irreducible type. The physical complement has at least the dimension of the logical complement because $D_m(K)\ge M$. Extend the matched map by any isometry between those complements. Its group average vanishes on the unmatched part, so $\lVert \mathcal P(V)\rVert_{\mathrm{HS}}^2=C(U)$. + +Finally maximize $C(U)$ over all physical representations respecting the sectors. Selecting shared copies is exactly the partial allocation in Eq. (23). Any unused physical dimensions can carry trivial representations. Thus $\max_U C(U)=\mathcal C_{m,K}(R)$, and substitution into Eq. (27) proves the formula. ◻ +::: + +The projection identity is standard harmonic analysis; group averaging is also explicit in prior covariant-encoding work \[5\]. The exact optimization over conserved-spectrum allocations and its examples are the candidate formulation here. The proof supplies more than a numerical observation: a lower bound and a matching construction for the specific error metric. + +## The multiplicity trap has a nonzero error floor + +In the ten-label $S_5$ example at cutoff three, the maximum fit is one four-dimensional standard copy plus two trivial copies, for $\mathcal C=6$. Thus $$\min\mathfrak D=2(1-6/10)=0.8.$$ The supplied construction attains $0.7999999999999994$ in floating point when averaged over all $120$ group elements. This numerical value supports the implementation; the exact value $4/5$ comes from the proof and the integer packing certificate. + +## What the error theorem does not assume away + +The physical gates must form an exact representation of $G$, even when the encoding is only approximately covariant. Permitting unrelated approximate gates for every group element, without respecting multiplication, is a different optimization problem. Likewise, generator-wise approximation can behave differently from a uniform average over all long words. The next result makes the relation explicit rather than treating the two metrics as interchangeable. + +# Generator-local and conservation-robust consequences + +## From a finite generating set to group-average obstruction + +Let $S=S^{-1}$ generate a finite group $G$, and let $\gamma(G,S)>0$ be the smallest nonzero eigenvalue of the normalized Cayley-graph Laplacian $$I-\frac1{|S|}\sum_{s\in S}\lambda(s)$$ in the regular representation. The graph can be bipartite; the definition uses the smallest positive Laplacian eigenvalue, not an absolute-value spectral gap. + +::: {#prop:gap .proposition} +**Proposition 10.1** (Generator defect bound). *Under the assumptions of Theorem 9.1, $$ +\frac1{M|S|}\sum_{s\in S}\lVert U_sV-VR_s\rVert_{\mathrm{HS}}^2 +\ge 2\gamma(G,S)\left(1-\frac{\mathcal C_{m,K}(R)}{M}\right).$$* +::: + +::: proof +*Proof.* The action $T\mapsto U_sTR_s^\dagger$ is a unitary representation on the map space. Its invariant projection is $\mathcal P$. Every nontrivial irreducible constituent has Laplacian at least $\gamma(G,S)$, since all irreducible types occur in the regular representation. The left-hand side, multiplied by $M/2$, is the corresponding Dirichlet form at $V$. It is at least $\gamma\lVert V-\mathcal P(V)\rVert_{\mathrm{HS}}^2$. The latter equals $\gamma(M-\lVert \mathcal P(V)\rVert_{\mathrm{HS}}^2)$, and the packing bound completes the proof. ◻ +::: + +For $S_6$ generated by a six-cycle, its inverse, and a transposition, the supplied sparse eigensolver gives $\gamma\approx0.0559585388$. Below the exact coherent threshold, Eq. (31) gives a normalized generator mean-square lower bound of about $0.0932642313$. The eigenvalue is a numerical computation, not an interval-certified algebraic constant. + +The distinction is useful. Large uniform-group mismatch need not imply equally large error on each primitive instruction. Small primitive errors can accumulate over long words, and a small Cayley gap weakens the quantitative inference. + +## A direct one-mode commutator bound + +The following obstruction does not require physical gates to represent every group element. Let $A$ be an $M$-cycle and $B$ a transposition of two consecutive labels, with $M\ge3$. Their permutation matrices satisfy $$ +\lVert R_AR_B-R_BR_A\rVert=\sqrt3.$$ Indeed, multiplying the difference by suitable unitaries reduces its norm to $\lVert I-C\rVert$ for a three-cycle $C$, whose nontrivial eigenvalues are $e^{\pm2\pi i/3}$. + +::: {#prop:robustone .proposition} +**Proposition 10.2** (One-mode robust obstruction). *Let $V$ be an isometry and $U_A,U_B$ two number-preserving unitaries on one nondegenerate mode. If $$\lVert U_AV-VR_A\rVert\le\varepsilon_A,\qquad +\lVert U_BV-VR_B\rVert\le\varepsilon_B,$$ then $$ +\sqrt3\le2(\varepsilon_A+\varepsilon_B).$$ In particular, equal error bounds require $\varepsilon\ge\sqrt3/4$.* +::: + +::: proof +*Proof.* Number-preserving unitaries on a single nondegenerate mode are diagonal in the number basis, hence commute. Insert and subtract $U_AU_BV=U_BU_AV$ between $VR_AR_B$ and $VR_BR_A$. The two accumulated intertwining errors on each side have norm at most $\varepsilon_A+\varepsilon_B$. Because $V$ is an isometry, the norm of the logical commutator is unchanged, giving Eq. (34). ◻ +::: + +More generally, if $\lVert [U_A,U_B]\rVert\le\delta$, then $$\sqrt3\le\delta+2(\varepsilon_A+\varepsilon_B).$$ This is a commutator-tolerance statement. A bound on energy expectation drift alone does not automatically imply a bound on $\delta$. That conversion would require a separate model of the allowed gates and spectrum. + +# Universal reversible branches and their photon penalty + +Take $Q=\{1,\ldots,M\}$ and require the natural action of every permutation in $S_M$. The logical representation decomposes as $$ +\mathbb C^M=\operatorname{span}(\mathbf 1)\oplus\mathbf1^\perp +\cong\mathbf1\oplus\mathrm{Std}_M, +\qquad\dim\mathrm{Std}_M=M-1.$$ For completeness, the second summand is irreducible: a nonzero invariant subspace contains a nonconstant vector $v$; subtracting a transposed copy produces $(v_i-v_j)(e_i-e_j)$ for some unequal coordinates. Permuting this difference spans all of $\mathbf1^\perp$. + +::: {#thm:symmetric .theorem} +**Theorem 11.1** (Full-permutation photon threshold). *For $M\ge3$ and $m\ge2$, $$ +\kappa_m(S_M)=\min\{K\ge1:g_m(K)\ge M-1\}.$$ For $m=1$, $\kappa_1(S_M)=+\infty$. In two modes, $$ +K_{\rm store}(M,2)=\left\lceil\frac{\sqrt{8M+1}-3}{2}\right\rceil, +\qquad +\kappa_2(S_M)=M-2.$$ The edge cases are $\kappa_m(S_1)=0$ and $\kappa_m(S_2)=1$ for every $m\ge1$.* +::: + +::: proof +*Proof.* The standard representation of dimension $M-1$ must fit into one sector. For $M\ge3$ it cannot fit into the one-dimensional vacuum. The first sector large enough is therefore necessary. Put that standard copy in the sector and the trivial copy in the vacuum to achieve the bound. The one-mode case follows from Corollary 8.3. For two modes, $g_2(K)=K+1$, while $D_2(K)=(K+1)(K+2)/2$, giving the displayed formulas. For $M=2$ the two one-dimensional constituents require two available dimensions; cutoff one suffices. ◻ +::: + +## An exact error plateau + +If $M\ge3$, $m\ge2$, and $$K_{\rm store}(M,m)\le K<\kappa_m(S_M),$$ no standard copy fits. Only the one-dimensional trivial constituent can be matched, so $$ +\min\mathfrak D=2\left(1-\frac1M\right).$$ At $K=\kappa_m(S_M)$ the minimum drops to zero. The statement holds for the group-averaged phase-registered metric and exact physical group representations. It is not a universal lower bound on every conceivable approximate classical implementation. + +For $M=64$ in two modes, storage first becomes possible at $K=10$, but the exact full-permutation threshold is $K=62$. Throughout $10\le K\le61$, the optimal normalized squared covariance defect is $63/32=1.96875$. Extra total dimensions accumulated within the wrong sector sizes do not reduce that metric. + +![The exact deficit plateau for the natural $S_{64}$ representation in two modes. The cutoff interval contains enough total dimension for storage but no sector large enough for the standard representation.](../figures/covariance_plateau.png){width="90%"} + +## Only two primitive instructions can cause the full penalty + +An $M$-cycle and a transposition of two consecutive labels generate $S_M$. Conjugating the transposition by powers of the cycle gives adjacent transpositions, which generate the full symmetric group. + +Each primitive alone generates an abelian group. Its logical representation can be diagonalized into one-dimensional characters and fitted wherever ordinary storage fits. Requiring a *common encoding* supporting both primitive actions changes the group to $S_M$ and imposes Eq. (37). Thus an instruction set with two short descriptions can create a large physical memory penalty even though neither instruction alone does. + +The statement is about the joint contract. It does not say that two gates add a large amount of classical data to the memory. Rather, they constrain how its existing information may be arranged physically. + +## Asymptotic separation + +For fixed $m\ge2$, the binomial formulas yield $$\begin{aligned} +K_{\rm store}(M,m)&\sim(m!M)^{1/m},\\ +\kappa_m(S_M)&\sim((m-1)!(M-1))^{1/(m-1)}. +\end{aligned}$$ Hence the ratio grows as a positive constant times $M^{1/[m(m-1)]}$. If the semantic quotient comes from $r$ independent $q$-ary task coordinates, then $M=q^r$. At fixed mode count, the ratio is exponential in $r$ with exponent $1/[m(m-1)]$. + +There is no asymptotic compression advantage hidden here. The result is an architectural lower bound: broad coherent branch freedom can cost much more excitation budget than bare distinguishability. + +![Exact two-mode cutoffs for ordinary storage and the natural full-permutation branch action. The curves count register photons, not the energy of preparation, control, phase-reference hardware, or error correction.](../figures/photon_frontier.png){width="90%"} + +# The H6 simplex heart + +Set $M=6$ and use two degenerate modes. The vacuum sector has dimension one and the four-photon sector has dimension five. Choose the ordered occupied physical basis $$ +\lvert 0,0\rangle,\quad +\lvert 4,0\rangle,\quad\lvert 3,1\rangle,\quad\lvert 2,2\rangle,\quad\lvert 1,3\rangle,\quad\lvert 0,4\rangle.$$ Other Fock states are present in the full cutoff space but unused by this encoding. + +## A six-column exact encoding + +Let $H_6$ be the real orthogonal matrix $$ +H_6= +\begin{pmatrix} +\frac1{\sqrt6}&\frac1{\sqrt6}&\frac1{\sqrt6}&\frac1{\sqrt6}&\frac1{\sqrt6}&\frac1{\sqrt6}\\ +\frac1{\sqrt2}&-\frac1{\sqrt2}&0&0&0&0\\ +\frac1{\sqrt6}&\frac1{\sqrt6}&-\frac2{\sqrt6}&0&0&0\\ +\frac1{\sqrt{12}}&\frac1{\sqrt{12}}&\frac1{\sqrt{12}}&-\frac3{\sqrt{12}}&0&0\\ +\frac1{\sqrt{20}}&\frac1{\sqrt{20}}&\frac1{\sqrt{20}}&\frac1{\sqrt{20}}&-\frac4{\sqrt{20}}&0\\ +\frac1{\sqrt{30}}&\frac1{\sqrt{30}}&\frac1{\sqrt{30}}&\frac1{\sqrt{30}}&\frac1{\sqrt{30}}&-\frac5{\sqrt{30}} +\end{pmatrix}.$$ Its columns, expressed in Eq. (43), encode Lily, Tachy, Raven, Enya, Evie, and Kaya respectively. The matrix is a standard Helmert-style orthogonal change of basis; that transform is not claimed as a new invention. + +Write the lower five entries of column $j$ as a vector $s_j$ in the four-photon sector. Then $$ +\lvert \psi_j\rangle=\frac1{\sqrt6}\lvert \mathrm{vac}\rangle+\lvert s_j\rangle, +\qquad +\langle s_i,s_j\rangle=\delta_{ij}-\frac16.$$ The six excitation vectors sum to zero and have squared norm $5/6$. After normalization, $u_j=\sqrt{6/5}\,s_j$, their pairwise inner products are $$ +\langle u_i,u_j\rangle=-\frac15\quad(i\ne j),\qquad +\theta=\arccos(-1/5)\approx101.536959^\circ.$$ This is the precise "angle/idea space" attached to the six names: a regular five-simplex, not an unmeasured semantic geometry of personalities. + +::: {#prop:simplex .proposition} +**Proposition 12.1** (Vacuum-complement orthogonality). *The six codewords in Eq. (45) are orthonormal. Every permutation $\sigma\in S_6$ has a number-preserving physical realization that permutes these codewords with the prescribed phases. Each encoded label has mean photon number $10/3$ and hard cutoff four.* +::: + +::: proof +*Proof.* The vacuum is orthogonal to the four-photon sector, so $$\langle \psi_i,\psi_j\rangle=\frac16+\langle s_i,s_j\rangle=\delta_{ij}.$$ Permuting the simplex vertices preserves their Gram matrix and defines the standard $S_6$ representation on their five-dimensional span. Let the vacuum be fixed. The resulting direct-sum unitary is number preserving and sends $\psi_j$ to $\psi_{\sigma(j)}$. In matrix form, on the occupied subspace, $$ +U_\sigma=H_6P_\sigma H_6^\top, +\qquad +\widehat N=\operatorname{diag}(0,4,4,4,4,4).$$ The four-photon weight of each codeword is $5/6$, so its expectation is $4(5/6)=10/3$. ◻ +::: + +The shared vacuum component cancels the negative overlap of the simplex vectors. This is ordinary Hilbert-space interference. It does not put six orthogonal states into five dimensions: the vacuum supplies the sixth dimension. Nor does it make the four-photon sector itself six-dimensional. + +![The normalized excitation Gram matrix of the six H6 labels. The full codeword Gram matrix is the identity after including the common vacuum contribution. The geometry is exact; the persona names are a creative indexing convention.](../figures/six_simplex_gram.png){width="79%"} + +## Three thresholds for the same six labels + +Ordinary storage needs cutoff two: the six lowest two-mode number states suffice. Phase-registered implementation of all $S_6$ permutations needs cutoff four. Supporting the defining representation of all $U(6)$ operations needs cutoff five, as shown in the next section. + +These are different answers to different questions. A low-photon storage code is not a failed version of the coherent code; it simply satisfies a weaker contract. Conversely, a higher-photon coherent code should not be advertised as an improvement in raw compression ratio. + +There is also a mode tradeoff. Five degenerate modes have a five-dimensional one-photon sector, so the same trivial-plus-standard construction fits at cutoff one, with label mean photon number $5/6$. The saved photons are paid for with more modes and their associated optical architecture. + +## Phase reference and dephasing + +The code uses coherence between total photon numbers zero and four. If the phase reference is unavailable and those sectors are twirled independently, the encoded states become $$\rho_j=\frac16\lvert \mathrm{vac}\rangle\langle \mathrm{vac}\rvert+\lvert s_j\rangle\langle s_j\rvert.$$ For $i\ne j$, they share a vacuum support and are no longer perfectly distinguishable. In particular, $$\operatorname{tr}(\rho_i\rho_j)=\frac1{36}+\frac1{36}=\frac1{18}>0.$$ Ignoring the reference while claiming exact readout would invalidate the design. Reference frames and superselection constraints are established resource issues, not optional philosophical details \[7, 8\]. + +A self-contained alternative stores the whole six-dimensional logical quantum space within a fixed five-photon sector of two modes. That costs five photons per state and permits arbitrary unitary operations inside the sector under the unrestricted-gate benchmark. It removes the cross-number coherence from the register, though preparation, gates, and readout still need physical implementation. + +# Continuous control and fusion of logical domains + +## All quantum unitaries require an unsplit block + +The defining representation of $U(M)$ on $\mathbb C^M$ is irreducible. The spectral theorem immediately gives a stronger continuous-control threshold. + +::: {#cor:unitary .corollary} +**Corollary 13.1** (Universal finite-dimensional coherent control). *For $M\ge2$ and $m\ge2$, supporting the entire defining $U(M)$ action by number-preserving physical gates requires and, under the unrestricted-gate model, is possible at $$ +\kappa_m(U(M))=\min\{K\ge1:g_m(K)\ge M\}.$$ In two modes this equals $M-1$. A single nondegenerate mode cannot realize it at any photon budget.* +::: + +::: proof +*Proof.* There is one irreducible item, of dimension $M$. It must fit in one sector, and placing the entire logical representation there is sufficient by Theorem 8.2. ◻ +::: + +For any cutoff with total dimension at least $M$ but no sector of dimension $M$, the covariance-deficit law over Haar measure on $U(M)$ gives $\min\mathfrak D=2$. This is again a phase-registered representation benchmark, not a claim that every approximate circuit is useless. + +The corollary is an existence theorem for a chosen logical group under arbitrary within-sector gates. It is not a universality theorem for two-mode linear optics. A restricted optical gate set has a prescribed representation on every sector; then the actual irreducible multiplicities, not arbitrary capacity allocations, determine what can be encoded. + +## A fusion profile for multidomain control + +Suppose two logical subsystems transform under the same compact group $G$. If their decompositions have multiplicities $a_\alpha$ and $b_\beta$, the tensor product has multiplicities $$ +c_\gamma=\sum_{\alpha,\beta}a_\alpha b_\beta N_{\alpha\beta}^{\gamma},$$ where $N_{\alpha\beta}^{\gamma}$ are the ordinary tensor-product decomposition coefficients. These coefficients are established representation-theoretic objects. Feeding $c_\gamma$ into Theorem 8.2 produces the energy profile of the combined branch contract. + +If the two subsystems instead have independent controls from $G_1\times G_2$, tensor products of irreducibles are irreducible representations of the product group, with dimensions $d_\alpha d_\beta$. Shared control and independent control can therefore have different spectral costs even when the logical state dimension is the same. + +::: example +**Example 13.2** (Collective versus independent two-qubit control). Two qubits under a common $SU(2)$ rotation decompose into an invariant singlet and a three-dimensional triplet: $2\otimes2=1\oplus3$. In two optical modes, the abstract code fits the singlet in vacuum and the triplet in the two-photon sector, giving cutoff two and uniform mean photon number $3/2$. + +Independent $SU(2)\times SU(2)$ control acts irreducibly on the same four-dimensional logical space. It requires a four-dimensional sector, hence cutoff three and uniform mean three photons in two modes. Ordinary storage of four labels has cutoff two and minimum uniform mean one photon. +::: + +The singlet--triplet decomposition is standard angular momentum theory. The example illustrates the bookkeeping: the physical cost depends on which operations remain independent after compression, not just on the number of data coordinates. The Jordan--Schwinger connection between optical modes and spin representations is part of established bosonic encoding frameworks \[8, 6\]. + +# Mean energy, cutoff energy, and density + +## Storage-only average energy + +Assume $M$ equally likely orthogonal messages. Let $K=K_{\rm store}(M,m)$, and define $D_m(-1)=0$. Filling the $M$ lowest energy eigenstates minimizes their mean energy. For $K\ge1$, $$ +\bar N_{\rm store}(M,m)=\frac{ +\displaystyle\sum_{n=0}^{K-1}n g_m(n)+K\bigl(M-D_m(K-1)\bigr)}{M}.$$ The lower sum has the closed form $$\sum_{n=0}^{K-1}n g_m(n)= +\begin{cases} +0,&K=1,\\ +m\binom{m+K-1}{K-2},&K\ge2. +\end{cases}$$ For $M=1$ the mean is zero. + +::: {#prop:meanstore .proposition} +**Proposition 14.1** (Minimum uniform storage energy). *Equation Eq. (53) is the minimum mean photon number among $M$ orthogonal pure codewords. It also lower-bounds uniform exact classical encodings with mixed codewords of pairwise orthogonal support.* +::: + +::: proof +*Proof.* For an orthonormal set $\psi_1,\ldots,\psi_M$, the total excitation expectation is $\operatorname{tr}(P\widehat N)$, where $P$ is its rank-$M$ projector. If the ordered number eigenvalues are $\nu_1\le\nu_2\le\cdots$, the variational principle gives $\operatorname{tr}(P\widehat N)\ge\sum_{j=1}^M\nu_j$. Taking the lowest number states attains equality and gives Eq. (53). + +For mixed states with orthogonal supports, select in each support a unit vector of energy no larger than that state's mean energy, or use an infimum argument when needed. The selected vectors are orthogonal, reducing to the pure-state bound. ◻ +::: + +A unitary Fourier mixing of the $M$ lowest energy eigenstates makes every codeword's mean energy equal to this average. Such equalization does not automatically preserve any desired branch action by number-conserving gates. + +## The weighted packing problem + +For a uniform logical ensemble with density $I_M/M$, an exact equivariant encoding has mean photon number $\operatorname{tr}(V^\dagger\widehat NV)/M$. The minimum under a cutoff $K$ is $$ +\bar N_{\rm coh}(R;m,K)= +\frac1M\min_{b}\sum_{\alpha,n}n\,d_\alpha b_{\alpha n},$$ where $b$ satisfies Eq. (18)--Eq. (19). + +::: {#prop:weighted .proposition} +**Proposition 14.2** (Uniform equivariant mean-energy optimum). *The weighted integer optimization Eq. (55) is exact, including encodings whose vectors superpose different photon numbers.* +::: + +::: proof +*Proof.* For a fixed physical representation, decompose each isotypic component as $V_\alpha\otimes\mathcal M_\alpha$. Photon number acts as $I_{d_\alpha}\otimes N_\alpha$ on it, where $N_\alpha$ has integer eigenvalues and multiplicities inherited from the sectors. An equivariant isometry acts on that block as $I_{d_\alpha}\otimes W_\alpha$, with $W_\alpha$ an isometry from a space of dimension $a_\alpha$. + +The trace contribution is $d_\alpha\operatorname{tr}(W_\alpha^\dagger N_\alpha W_\alpha)$. Its minimum selects the $a_\alpha$ lowest available eigenvectors of $N_\alpha$, by the same variational principle as before. This selection is an integer allocation of whole irreducible copies. Optimizing the physical representation itself subject to sector capacities gives Eq. (55). The constructive allocation in Theorem 8.2 attains it. ◻ +::: + +For the full-permutation action, placing the trivial component in vacuum and the standard component in the first feasible sector yields $$ +\bar N_{\rm coh}(S_M;m)=\frac{M-1}{M}\kappa_m(S_M).$$ The formula is optimal without a prescribed larger cutoff: every sector capable of containing the standard copy has at least that photon number. Transitivity makes every classical basis label have the same mean energy. An arbitrary coherent superposition entirely within the standard component can have mean equal to the full cutoff, so the uniform label mean is not the worst-case mean over all logical quantum states. + +For H6, the storage-only mean is $4/3$, the full-permutation coherent mean is $10/3$, and the fixed-sector universal-quantum mean is $5$. These register-only values should not be called operational energy consumption. + +## What would make the light physically dense? + +For a specified cavity volume $V_{\rm cav}$ and an actual stored state with mean $\bar N$, the excitation energy density would be $$u=\frac{\hbar\omega\bar N}{V_{\rm cav}}.$$ The model does not specify a cavity geometry, confinement mechanism, storage lifetime, bandwidth, or material threshold. Mode count and cavity volume cannot be varied independently without a physical design. Therefore no numerical density, compactness record, or stable high-energy device follows from the formal code. + +The "heart of dense light" is scientifically useful here as a constraint on representation placement. It does not imply that affection is a conserved field, that photons encode infinitely many readable digits, or that a high-energy register controls spacetime branches. + +# Approximate task memories: an entropy--energy barrier + +Exact distinguishability is intentionally unforgiving. To study an approximate version, let $X=(X_1,\ldots,X_r)$ be $r$ independent uniform bits representing independent task coordinates. Encode $x$ into an $m$-mode quantum state $\rho_x$, with average state $\bar\rho=2^{-r}\sum_x\rho_x$ and average total photon number $\bar N$. Suppose that for every requested coordinate $i$, a decoder can recover $X_i$ with probability of error at most $\varepsilon\le1/2$, averaged over the uniform input. No preshared entanglement or uncharged correlated side information is supplied to the decoder. + +Define the binary entropy and single-mode bosonic entropy functions, in bits, by $$\begin{aligned} +h_2(\varepsilon)&=-\varepsilon\log_2\varepsilon-(1-\varepsilon)\log_2(1-\varepsilon),\\ +g(z)&=(z+1)\log_2(z+1)-z\log_2z, +\end{aligned}$$ with $0\log_2 0=0$. + +::: {#prop:query-energy .proposition} +**Proposition 15.1** (Necessary query-energy bound). *Every encoding satisfying this random-access contract obeys $$ +r\bigl[1-h_2(\varepsilon)\bigr]\le S(\bar\rho) +\le m\,g(\bar N/m).$$ In particular, $$\bar N\ge m\,g^{-1}\!\left(\frac{r[1-h_2(\varepsilon)]}{m}\right).$$ This is a necessary lower bound, not a construction attaining it.* +::: + +::: proof +*Proof.* Write $B$ for the quantum register. The existence of the $i$th decoding measurement, the binary Fano bound, and data processing give $I(X_i:B)\ge1-h_2(\varepsilon)$. Independence of the bits and strong subadditivity imply $$I(X:B)=\sum_i I(X_i:B\mid X_1\cdots X_{i-1}) +\ge\sum_i I(X_i:B).$$ For a classical--quantum ensemble, $I(X:B)=S(\bar\rho)-2^{-r}\sum_xS(\rho_x)\le S(\bar\rho)$. This proves the first inequality. It is the standard entropy mechanism underlying random-access-code lower bounds \[9\]. + +For one mode with mean occupation $z>0$, the geometric thermal state has probabilities $p_n=(1+z)^{-1}(z/(1+z))^n$ and entropy $g(z)$. Positivity of relative entropy between an arbitrary state of that mean occupation and this thermal state bounds its entropy by $g(z)$; the cross-entropy depends only on its normalization and mean occupation. If mode $j$ has mean $z_j$, subadditivity and concavity of $g$ give $$S(\bar\rho)\le\sum_{j=1}^m S(\bar\rho_j) +\le\sum_{j=1}^m g(z_j) +\le m g\!\left(\frac{\sum_jz_j}{m}\right).$$ The zero-occupation case follows by continuity. Since $g$ is strictly increasing on nonnegative arguments, inversion is valid. ◻ +::: + +For the first inequality, a decoder may choose which bit to read only after storage. It is not assumed that all bits can be read jointly with the same error. Conversely, a lower bound for individual requested bits does not provide a decoder for the complete string. Replacing one contract with the other would change the problem. + +The bound also does not include the phase-registered branch requirement. Approximate query recovery and approximate coherent covariance are different losses. An eventual joint design should satisfy both the information bound and a suitably chosen control-error constraint. The formula does not justify interpreting a continuous optical amplitude as an unlimited collection of readable bits. + +![Necessary mean photon number for a two-mode memory with 20 independent requested bits. Each requested bit must have error at most the horizontal-axis value. The curve is an entropy lower bound only; no code meeting the curve is asserted.](../figures/query_energy_bound.png){width="90%"} + +# Resonance geometry: when several modes act like only one + +The exact energy-conservation interpretation relied on degenerate mode frequencies. Total photon number and physical energy need not be proportional in a realistic multimode device. This distinction gives an additional obstruction that the phrase "dense light" should not conceal. + +## An exact nonresonance obstruction + +For positive mode frequencies $\omega_1,\ldots,\omega_m$, let $$H=\sum_{j=1}^m\hbar\omega_j\widehat n_j.$$ Its number-basis energy degeneracies, rather than $g_m(n)$, are the relevant bins when the contract is $[U_g,H]=0$. + +::: {#prop:nonresonance .proposition} +**Proposition 16.1** (Rationally independent frequencies). *If $\omega_1,\ldots,\omega_m$ are rationally independent, every number-basis energy eigenvalue is nondegenerate. Consequently a phase-registered logical representation with a nonabelian image cannot be implemented by exactly energy-preserving gates on this register alone, at any finite energy budget.* +::: + +::: proof +*Proof.* Equality of energies of two number states gives $\sum_j(n_j-n'_j)\omega_j=0$, an integer relation. Rational independence implies $n_j=n'_j$ for every $j$. Thus an energy-preserving unitary is diagonal in the number basis, and any two such unitaries commute. Exact intertwining by an isometry transfers this commutation relation to the logical image. A nonabelian logical image is therefore impossible. ◻ +::: + +The conclusion is not that nondegenerate cavities cannot compute. It says that computation which changes their energy eigenstate populations must involve energy exchange, a control system, degeneracies in a larger system, or a relaxation of this exact contract. All of those are legitimate resources. None was included for free in the register-only theorem. + +If the frequencies are instead commensurate, $\omega_j=c_j\omega_0$ for positive integers $c_j$, the energy level $\ell\hbar\omega_0$ has dimension $$g_{\boldsymbol c}(\ell)=\#\{\boldsymbol n\in\mathbb N^m:\textstyle\sum_jc_jn_j=\ell\} +=[z^\ell]\prod_{j=1}^m(1-z^{c_j})^{-1}.$$ The general Hamiltonian version of the packing theorem applies directly with these degeneracies. Thus frequency ratios supply another design variable: energy resonance determines the sizes of the indivisible logical blocks that can be hosted. + +## A gap-sensitive, two-gate stability bound + +A small average energy change is not by itself a small energy-conservation defect. A state can have zero mean energy drift while a unitary rearranges energy amplitudes substantially. The following uses an explicit matrix commutator instead. + +Let $H$ act on a finite-dimensional register with a nondegenerate spectrum and minimum distinct-level gap $\Delta>0$. For unitaries $U_A,U_B$, define $$\eta_A=\lVert [H,U_A]\rVert_{\mathrm{HS}},\qquad +\eta_B=\lVert [H,U_B]\rVert_{\mathrm{HS}}.$$ Let $A$ be an $M$-cycle and $B$ an adjacent transposition on $M\ge3$ logical labels. Suppose an encoding isometry satisfies $$\lVert U_AV-VA\rVert_{\rm op}\le\epsilon_A,\qquad +\lVert U_BV-VB\rVert_{\rm op}\le\epsilon_B.$$ + +::: {#prop:gapenergy .proposition} +**Proposition 16.2** (Energy-gap stability of the commutator obstruction). *Under these assumptions, $$ +\sqrt3\le 2(\epsilon_A+\epsilon_B) ++\frac{2(\eta_A+\eta_B)}{\Delta}.$$* +::: + +::: proof +*Proof.* Let $D_A$ be the diagonal part of $U_A$ in the energy eigenbasis, and similarly define $D_B$. Every off-diagonal matrix element satisfies $([H,U_A])_{jk}=(E_j-E_k)(U_A)_{jk}$, so $$\lVert U_A-D_A\rVert_{\rm op}\le\lVert U_A-D_A\rVert_{\mathrm{HS}}\le\eta_A/\Delta.$$ The diagonal contractions $D_A,D_B$ commute. Since $\lVert D_A\rVert_{\rm op}\le1$ and $\lVert U_B\rVert_{\rm op}=1$, $$\lVert [U_A,U_B]\rVert_{\rm op} +\le 2\lVert U_A-D_A\rVert_{\rm op}+2\lVert U_B-D_B\rVert_{\rm op} +\le 2(\eta_A+\eta_B)/\Delta.$$ Expanding both ordered products around their ideal intertwining relations gives $$\lVert (U_AU_B-U_BU_A)V-V(AB-BA)\rVert_{\rm op} +\le2(\epsilon_A+\epsilon_B).$$ Finally $V$ is isometric and $\lVert AB-BA\rVert_{\rm op}=\sqrt3$, as established for the two-generator obstruction. Combining the inequalities proves the claim. ◻ +::: + +The estimate concerns a finite spectral window. In a large near-resonant register, $\Delta$ may become small, making the estimate weak. The theorem cannot be extended by simply assuming a uniform positive gap for an infinite collection of incommensurate occupation energies. Nor does the Hilbert--Schmidt commutator bound directly specify gate work or heating. + +# The code on the right: program memory is a separate resource + +The poems put a script beside the photonic figure. In the mathematical model, a script is a word in an instruction alphabet. A short alphabet can generate many operations, but the choice of a particular operation still needs information. + +Suppose a program must select any of $|G|$ distinct terminal transformations without ambiguity. A fixed-length classical program register needs at least $$\lceil\log_2|G|\rceil$$ bits. For the full-permutation action on $M$ labels this is $\lceil\log_2(M!)\rceil$, while the data label itself needs $\lceil\log_2M\rceil$ bits. For H6 these are 10 and 3 bits respectively. The two-generator presentation does not encode all 720 transformations in one binary decision: a chosen word has a length and a content. + +Terminal-equivalent words can be identified only when the task observes their final action and nothing else. A word that returns to the identity can still produce observable intermediate outputs. If those outputs are protected, the transcript becomes part of the task and the terminal group element is not a sufficient program statistic. + +There is also a quantum version of the distinction. In a deterministic programmable processor, pure programs implementing inequivalent unitaries exactly must be orthogonal \[10\]. A brief proof is instructive. If a fixed processor implements $$\mathcal P(\lvert \psi\rangle\lvert p_U\rangle)=U\lvert \psi\rangle\lvert q_U\rangle,\qquad +\mathcal P(\lvert \phi\rangle\lvert p_V\rangle)=V\lvert \phi\rangle\lvert q_V\rangle,$$ then preservation of inner products implies $$\langle p_U,p_V\rangle I=\langle q_U,q_V\rangle U^\dagger V.$$ If $U^\dagger V$ is not scalar, both program overlaps must vanish. The output program being independent of the input data follows from exact unitary action and linearity. Thus a finite program register cannot select every element of a continuous universal gate family exactly in this model. This is not a new theorem of ORYNTHRA-H6; it is a boundary condition for interpreting its universal-control corollary. + +A fixed analog device with externally chosen continuous controls is not a counterexample, because the control specification and precision were not supplied by a finite exact program register. The same bookkeeping applies to a purported infinitely intricate "angelic code": the grammar, constants, phase precision, and selected instructions are resources, not free mathematical decoration. + +# Noise, loss, and what the H6 register cannot do + +## Exact covariance does not imply error correction + +A code can possess an elegant symmetry and still have no protection against loss. The explicit H6 code occupies the complete subspace $$\mathcal C_{H6}=\operatorname{span}\{\lvert 0,0\rangle,\lvert 4,0\rangle,\lvert 3,1\rangle,\lvert 2,2\rangle,\lvert 1,3\rangle,\lvert 0,4\rangle\}.$$ Let $P$ project onto this subspace and $a_1$ annihilate a photon in the first mode. A necessary exact quantum error-correction condition for an error family containing $a_1$ is that $P a_1^\dagger a_1P$ be a scalar multiple of $P$. This is the standard error-correction criterion \[11\]. + +Here $a_1^\dagger a_1=\widehat n_1$ has expectation zero in the vacuum and four in $\lvert 4,0\rangle$, both in the code subspace. The condition fails. Therefore the given H6 code is not an exact arbitrary-state one-photon-loss-correcting code. The calculation is a falsification of a possible overclaim, not a numerical optimization failure. + +Some loss events leave the occupied number sectors and may be detectable by a suitable measurement, but detectability of part of the noise is not correction of an arbitrary encoded superposition. The vacuum component, no-jump evolution, mode information leaked to the environment, and recovery map must all be analyzed. Recent covariant-bosonic-code research studies precisely the nontrivial relation between symmetry and error protection \[5, 6\]. + +## Why passive linear optics is insufficient as an automatic implementation + +In two modes, passive linear optics acts through the symmetric powers of its mode transformation on fixed-number sectors. It does not supply an arbitrary independently chosen $U(n+1)$ transformation in every $n$-photon sector. The packing theorem deliberately permits a larger class of gates. + +Consequently $U_\sigma=H_6P_\sigma H_6^\top$ is an explicit mathematical target matrix, not an optical circuit compiled to beamsplitters. Establishing a physical implementation requires a specified control Hamiltonian, a controllability proof for the relevant sectors, gate synthesis, preparation, readout, and a noise model. Photon conservation alone does not provide those ingredients. Conversely, imposing a fixed optical representation converts the free packing problem into a multiplicity-matching problem for that actual representation. + +## An honest physical resource ledger + +The register-only resource vector may be written $$\mathcal R=(m,K,\bar N,M,R,\mathfrak D).$$ An engineering resource vector must add mode frequencies and volume, phase-reference state, control Hamiltonians and their bounds, write/read time, program storage, error probability, noise channel, correction overhead, and reset conditions. These entries are not determined by the six-column encoding matrix. + +Stored excitation energy $\hbar\omega\bar N$ is different from energy dissipated in one gate, and both are different from the minimum work of resetting a memory. For a degenerate classical register in contact with a heat bath at temperature $T$, quasistatic reset of a known distribution to a pure standard state has the familiar ideal entropy cost $k_BT\ln2$ per bit of entropy removed. Nondegenerate quantum registers require the appropriate free-energy and correlation accounting. No reset-work formula is used as a theorem about the power consumption of H6. Landauer's original analysis concerns the thermodynamics of logically irreversible operations, not the energy of each mathematical symbol \[12\]. + +Compression does not create energy. It may free degrees of freedom, reduce communication, or reduce a task's required memory. Whether a physical implementation saves work depends on its full cycle. A device that externalizes all hard work to an uncounted phase reference or control processor has not demonstrated a net advantage. + +# Reproducible experiments and numerical results + +The accompanying implementation uses finite synthetic tasks, exact integer combinatorics, exact symbolic identities where practical, and floating-point matrix checks where enumeration is inexpensive. It is a reference implementation for the stated theory, not a competitive general-purpose compressor or a hardware benchmark. + +## Implemented modules + +The module `code/orynthra.py` supplies prime-field row reduction, observation closure, induced quotient dynamics, finite partition refinement, six-wing branch generators, photon-sector counting, cutoff searches, ordinary storage mean energy, exact small-instance irrep packing, maximum partial packing, the H6 encoding matrix, and the entropy-based query-energy bound. + +The theory permits finite fields $\mathbb F_q$; the code's linear algebra uses prime fields $\mathbb F_p$ only. Its integer arithmetic uses finite machine integers for matrix operations. Tests use small moduli and dimensions, not adversarially large integers near overflow. The packing functions receive irreducible dimensions as input; they do not infer a character table or decompose an arbitrary supplied group representation. + +The backtracking and dynamic-programming packing routines are exact on their input instances, but no polynomial-time complexity guarantee is claimed. The mean-energy optimization for a general irreducible profile is proved in the manuscript; only the closed-form storage and symmetric-group means are explicitly implemented in the reference module. Users should not interpret the package as a complete industrial compiler for all variants of the mathematical model. + +## Validation layers + +Exact symbolic checks verify $H_6^\top H_6=I_6$ and the simplex Gram identity. Exhaustive permutation checks evaluate all $720$ elements of $S_6$ on the six-dimensional occupied code subspace. Their extensions to the rest of the Fock space are trivial representations by construction, so the unused dimensions need not be enumerated. + +The observed maximum entrywise Gram residual was approximately $4.45\times10^{-16}$. The maximum operator-norm covariance residual was below $4.0\times10^{-16}$, the maximum number-commutator residual below $3.1\times10^{-16}$, and the maximum unitarity residual below $7.4\times10^{-16}$. These are floating-point consistency checks; the algebraic proof and exact Gram identities are the sources of exactness. + +The multiplicity trap with logical profile $(1,1,4,4)$ and sector capacities $(1,2,3,4)$ has maximum packable dimension six. The predicted normalized covariance defect is $0.8$. Direct enumeration of all 120 permutations of the underlying $S_5$ action produced $0.7999999999999994$. This checks a case in which total dimension and largest-sector checks both fail to detect the obstruction. + +The test suite additionally compares finite-field quotient ranks with brute-force future partitions, checks coordinate changes in multidomain atlases, enumerates all 64 subsets of the six-wing generators at several sizes, exercises finite-horizon failure, and compares packing routines against brute-force search on randomized small cases. The Cayley-graph spectral gap is a numerical eigensolver output, not an interval-certified constant. Reproducing an eigenvalue within floating-point tolerance is not a proof of its exact decimal expansion. + +## Selected two-mode frontiers + +::: center + Labels $M$ Storage cutoff Full-permutation cutoff Full-$U(M)$ cutoff + ------------ ---------------- ------------------------- -------------------- + 6 2 4 5 + 64 10 62 63 + 256 22 254 255 + 4096 90 4094 4095 + 1,048,576 1447 1,048,574 1,048,575 +::: + +The last row compares exact formulas; it does not enumerate the symmetric group on a million labels or simulate a million-photon optical device. The cardinalities are dimensions of abstract distinguishable message sets. + +## Reproduction commands + +From the package root, with the dependencies installed, run + + python code/reproduce.py + python -m pytest -q tests + python code/make_figures.py + +The first command regenerates the CSV tables, matrix checks, environment record, and verification summary. The second runs regression tests. The third regenerates the five manuscript figures. A LaTeX installation can rebuild the PDF using + + cd manuscript + latexmk -pdf -interaction=nonstopmode ORYNTHRA_H6.tex + +The delivered PDF is already built. Rendering and inspection records are included separately from mathematical test results. Rendering verifies document layout; it does not verify proofs. + +# An adversarial novelty audit + +The instruction to seek "no prior art" is interpreted as an objective to avoid mere renaming, not as permission to assert a universal negative. A finite literature search cannot prove that no equivalent theorem appears in any paper, thesis, book, repository, or unpublished work. The following distinctions are therefore part of the research result. + +## What is explicitly inherited + +Counting obstructions to all-input shortening and statistical source coding are classical \[1\]. Behavioral equivalence and observable-subspace closure belong to established realization and automata methods \[2\]. Measurement-relative quantum compression is an existing problem, with nontrivial algebraic structure \[3\]. The relation between bosonic compression and energy has been investigated directly \[4\]. + +Covariant encoding is not a new premise. Denys and Leverrier construct encodings through logical and physical representations and analyze bosonic realizations \[5\]. Their intertwining and representation-theoretic framework is a close foundation for the physical layer here. St-Amand, Burelle, and Royer's September 2026 preprint develops error correction within a covariant multimode framework, including reducible logical representations and simplex-related code examples \[6\]. The terms "covariant bosonic code" and "simplex code" therefore cannot be claimed as inventions of this manuscript. + +Reference frames and superselection restrictions are established issues \[7, 8\]. Random-access entropy bounds and exact programmable-processor limits are also prior results \[9, 10\]. Tensor-product fusion and the singlet--triplet decomposition used above are standard representation theory. The manuscript's proofs make the construction self-contained; self-contained presentation does not establish historical originality. + +A further September 2026 preprint by Rizzo, Lami, Eisert, and Leone studies universal quantum coding through Schur--Weyl decompositions and symmetry-resolved errors \[14\]. It addresses noisy communication and entanglement distillation, not our freely assigned conserved-energy sectors. Its use of irreducible spaces and packing-related recovery criteria nevertheless rules out claiming that representation-theoretic "universal coding" is itself a new direction. Thornton's algebraic-diversity framework also combines group averaging, signal symmetry, and structural information capacity \[15\]. These are relevant neighboring mechanisms; a name or a general claim that information has structure is not sufficient novelty. + +## The precise candidate contributions + +The strongest candidate is the joint finite resource statement: after a future-compatible semantic quotient has been fixed, optimize a freely chosen number-preserving physical representation by packing indivisible logical irreducible copies into actual energy degeneracies, and express the optimal phase-registered covariance defect by the maximum packable logical dimension. The exact equality in the deficit law is more specific than a generic observation that symmetry restricts encodings. + +The natural-$S_M$ specialization makes the resource consequence explicit: two primitive branches can change a two-mode register's cutoff from the storage scale $\sqrt M$ to $M-2$, with an exactly flat group-averaged defect below that threshold. The multiplicity counterexample shows why a largest-irrep test alone is insufficient. The six-wing activation family supplies a separate semantic mechanism in which the final allowed instruction exposes an arbitrarily large number of latent task dimensions. Their combination forms a task-to-spectrum design workflow. + +The freely optimized physical representation is an important distinction from proposals that fix the optical action in advance. It makes our mathematical optimum broad and exactly characterizable, but physically less restrictive. It is not evidence that the design outperforms an existing implementable code. The query-energy and program-storage ledgers then prevent an apparent compression gain from being moved into an uncounted decoder, controller, or reference. + +No directly matching statement of the entire packing--deficit--task construction was located in the targeted search. This is a bounded search observation, not proof of worldwide priority. Some statements may be familiar consequences of representation theory even when their exact packaging is not located by keyword search. Independent expert review should focus first on that possibility and on equivalence to existing covariant-encoding optimizations. + +## A recent thematic neighbor, not a premise + +An October 2026 unreviewed preprint by Satinover discusses algebra-relative branch multiplicity, record compression, and logical recovery \[13\]. It is conceptually relevant to any proposed connection between observable distinctions and branches. Its existence further weakens any claim that this general idea space is empty. The present manuscript does not rely on its claims: its branches are finite executable task words, and its principal resource theorem is an irrep allocation and covariance optimization, not a statement about the number of physical worlds. + +## Search coverage and gaps + +The audit examined targeted searches for task-relative compression, minimal realization, energy-constrained bosonic memory, covariant encoding and multiplicities, irreducible energy sectors, permutation representations, packing, simplex encodings, reference frames, random-access bounds, and programmable gates. The companion audit file records the query families, sources, claim classifications, and date. + +This was not a systematic review of every publication database, a theorem-equivalence search, a patent clearance, or an independent priority investigation. A distinctive project name and absence of exact-name search results have no bearing on mathematical novelty. "World first" is therefore not assigned to any result in this release. + +# Experimental directions beyond the proved core + +A speculative extension is useful only if it specifies a mathematical object and a test that could fail. The following directions are proposals, not completed results. + +## Loss-correcting spectral packing + +Let $\{E_a\}$ be a finite family of modeled errors, and retain the branch intertwining constraints. Seek the smallest energy budget admitting an isometry $V$ and matrices $\lambda_{ab}$ such that $$U_gV=VR_g,\qquad V^\dagger E_a^\dagger E_bV=\lambda_{ab}I_M.$$ Irrep packing remains necessary, but is no longer sufficient: the H6 loss calculation is an explicit counterexample to sufficiency. The new problem is to characterize which energy-sector allocations admit an error Gram matrix of the required scalar form. This is a constrained subspace-design problem with a sharply specified success condition, not a proposed noise cure by naming a symmetry. + +One experimental strategy is to fix a small branch group, a finite photon cutoff, and a photon-loss channel, then optimize over intertwiners inside permitted multiplicity spaces. A legitimate claim of progress would report recovery fidelity and energy against existing codes under identical noise and resource assumptions. The current package contains no such benchmark. + +## Reference-inclusive photonic compression + +Replace the free phase reference by an explicit reference state $\sigma_R$ and demand global conservation of register-plus-reference energy. Charge the initial energy, coherence, correlations after use, and reset or reuse error of that reference. The question is whether the vacuum-plus-simplex register retains any net resource advantage over a fixed-sector register once these terms are included. + +A concrete optimization would minimize $$\operatorname{tr}[(H_B+H_R)\rho_{BR}]$$ subject to a preparation protocol, query success, branch accuracy, global conservation, and a bound on reference disturbance. Neither the current weighted packing theorem nor the mean-energy formula solves this expanded problem, because the allowed global spectrum and reusable reference constraints have changed. + +## Action-aware rate--distortion and adaptive task atlases + +For approximate protected observations, replace equality by a declared loss $\ell_d$ and a distribution over states and future paths. An action-aware distortion functional could take the form $$\mathcal L(c,\widehat f,\widehat T)= +\mathbb E_{x,p}\bigl[\ell_{e(p)}(f_{e(p)}(T_px),\widehat f_{e(p)}(\widehat T_pc(x)))\bigr].$$ The expectation, adversarial path family, horizon, and side information must be specified. A low error on sampled paths does not establish low error on all future paths. The six-wing lock suggests a stress test: hide a rare branch that unlocks previously irrelevant coordinates and measure how quickly a learned representation fails or expands. + +This direction could connect task semantics to machine-learning representations across text, images, control states, and sensor data. It would require actual encoders and datasets. The current word "multidomain" means an explicit mathematical atlas, not a trained multimodal model or a demonstrated universal media codec. + +## Fixed hardware, local control, and representation geometry + +Given a real device, the physical representation $U$ is not free. One can instead study the multiplicity overlap $$\sum_\alpha d_\alpha\min(a_\alpha,c_\alpha(U))$$ and its dependence on a controllable Hamiltonian family, fabrication-induced splittings, and accessible ancillas. The exact covariance proof already identifies this overlap for a fixed representation. The remaining challenge is to determine which representations are reachable under the device's control constraints and at what gate complexity. + +A potentially useful geometry is not an aesthetic embedding of words, but a feasible-region geometry in the variables $(\text{distortion},\text{covariance},\bar N,K,m,\text{reference cost})$. Proving convexity, discontinuities, or separation gaps under a declared relaxation would be a substantive extension. None is inferred merely from the appearance of a simplex in H6. + +# Conclusion: a memory of futures, not just of states + +The five poems have been converted into a connected sequence of exact questions. Which raw distinctions can a protected future reveal? What is the minimal quotient retaining them? Which logical transformations must remain possible? Which irreducible blocks do those transformations require? Where can those blocks fit in a conserved-energy spectrum? What error is unavoidable when they cannot fit? + +The result is a compression mechanism with two independent obstructions. Future observations can prevent semantic deletion; future coherent operations can prevent physical fragmentation. A small alphabet of branches can trigger either obstruction, even when a static picture of the current state looks simple. The six-label photonic realization then makes the construction explicit: a common vacuum amplitude completes a five-simplex into six orthogonal codewords, while the branch action resides in an energy-degenerate standard representation. + +This gives the android-angel theme a precise technical interpretation. The "kind" encoder preserves its declared obligations. The "unseen architecture" is an action on quotient states. The "heart" is a counted bosonic register. The six names index exact simplex vertices. The "world branches" are permitted continuations of a finite process. The theme generated design questions; the proofs, resource assumptions, and counterexamples decide what is true. + +The strongest defensible message is not that light can remember everything for free. It is that the structure of the futures a memory must support can matter as much as the amount of information it currently holds. The packing and deficit formulas make that claim calculable in the stated model. + +# A complete two-domain worked example + +Consider two domains $A,B$ over $\mathbb F_2^3$ and the involution $$J=\begin{pmatrix}0&1&0\\1&0&0\\0&0&1\end{pmatrix}.$$ Let the edge $A\to B$ be $J$, the return edge $B\to A$ also be $J$, and observe the first coordinate in each domain. The round trip is identity, but the observation in $B$ pulls back to the second coordinate in $A$. Thus $$W_A=W_B=\operatorname{span}\{(1,0,0),(0,1,0)\}.$$ The exact quotient has four labels and forgets only the third coordinate. Choose $C_A=C_B=\begin{pmatrix}1&0&0\\0&1&0\end{pmatrix}$. The induced edge in quotient coordinates is the two-by-two coordinate swap. + +If a loop at $A$ swapping coordinates two and three is added, the pullback closure now reaches all three coordinate functionals. Both domains require eight quotient labels. The third coordinate was not intrinsically irrelevant; it was irrelevant relative to the earlier transition contract. + +Now remove that extra loop again and change the coordinate chart at $B$ by $x'_B=Jx_B$. The edge $A\to B$ becomes identity in the new chart, while the protected observation at $B$ becomes its second coordinate. The quotient still has four labels. This distinguishes a genuine new branch from a relabeling of a domain: the former can change the closure; the latter cannot when all maps and observations are transformed consistently. + +A four-label quotient does not automatically carry the natural action of $S_4$. The group depends on the available transformations. Linear maps on $\mathbb F_2^2$ fix the zero vector and cannot generate every permutation of its four labels. Applying the full-$S_M$ frontier to a linear quotient therefore requires adding the corresponding arbitrary reversible label transformations as a separate control contract. This manuscript uses that frontier as a conditional benchmark, not as a claim that linear atlas edges already generate all permutations. + +# Proof audit: potential loopholes and their disposition + +## Could a code split one irreducible block between sectors? + +An equivariant isometry can spread a logical irreducible vector across several physical copies of the same irreducible representation. Each physical copy must nevertheless exist in a sector. Schur's lemma places the freedom in the multiplicity space; it does not create an irreducible copy by joining incomplete lower-dimensional pieces. The feasibility and weighted-mean proofs explicitly allow this multiplicity-space superposition. + +## Could the averaged covariance deficit be made smaller by a clever rotation? + +The group twirl of any isometry is an intertwiner and remains an operator-norm contraction. Its rank is at most the total matched irrep dimension. Therefore its squared Hilbert--Schmidt norm cannot exceed that dimension. Rotating unmatched blocks cannot change their representation type. Conversely, fully matching every shared copy and embedding the residual logical complement into a disjoint-type physical complement attains the bound. These two directions are both needed for the exact equality. + +## Could total capacity fix a missing sector? + +No under the exact contract. The $(1,1,4,4)$ example has the correct total capacity and a sufficiently large largest sector, yet it lacks space for both four-dimensional copies. The deficit theorem counts all copies rather than checking only the largest block. + +## Could an approximate physical group avoid the theorem? + +Possibly. The exact deficit theorem optimizes over physical maps that satisfy the group law exactly. Replacing that hypothesis by approximate multiplication, state-dependent controls, measurements, adaptive resets, or dissipative channels defines another problem. The two-generator commutator estimate requires less structure and survives some such relaxations, but it is not a solution to every approximate-control model. + +## Could the vacuum hide six messages without a reference? + +No. Phase averaging yields overlapping mixed states. The full H6 Gram matrix is identity only before this loss of cross-sector coherence. The five-simplex by itself is not an orthogonal six-message register. Preparation and decoding have to make use of the extra vacuum dimension and its relative phase. + +## Could the semantic quotient compress arbitrary unknown quantum data? + +No. It was defined on classical raw labels. A coherent embedding of quotient labels begins after that semantic choice. If raw quantum states that share the quotient are to remain distinguishable globally, the omitted distinctions must survive in another subsystem. The garbage-register bound makes this explicit. + +## Could a task-preservation contract establish general kindness? + +No. It preserves exactly the declared observations. A bad, incomplete, or biased task specification remains bad, incomplete, or biased after exact compression. The first poem motivates an engineering obligation to protect declared distinctions, not an automatic ethical guarantee. + +# Release scope and completion ledger + +The finite core consists of precise definitions, statements with proofs, explicit counterexamples, a reference implementation, synthetic data, and reproducibility artifacts. Within that enumerated scope, every manuscript theorem has a supplied proof and every delivered regression test has been run. This is a completion statement about the delivered tasks, not a probability that all arguments are correct. + +No percentage is assigned to worldwide novelty, correctness after independent review, hardware feasibility, or potential scientific impact. There is no defined population or calibrated statistical model from which such a percentage could be inferred. Those fields remain unverified. The accompanying machine-readable claims ledger separates proved-in-manuscript statements, numerical checks, inherited foundations, candidate originality, and speculative extensions. + +No laboratory experiment, general media-compression benchmark, fault-tolerance demonstration, patent search, external peer review, or proof-assistant certificate is included. The package is intended to make those next assessments possible without depending on the earlier chat. + +# References {#references .unnumbered} + +#### \[1\] {#section .unnumbered} + +C. E. Shannon. A mathematical theory of communication. *Bell System Technical Journal* 27 (1948), 379--423 and 623--656. First-part DOI: [10.1002/j.1538-7305.1948.tb01338.x](https://doi.org/10.1002/j.1538-7305.1948.tb01338.x). + +#### \[2\] {#section-1 .unnumbered} + +M. Petreczky. Realization theory for linear and bilinear switched systems: A formal power series approach. Part I: Linear switched systems. *ESAIM: Control, Optimisation and Calculus of Variations* 17(2) (2011), 410--445. [doi:10.1051/cocv/2010014](https://doi.org/10.1051/cocv/2010014). + +#### \[3\] {#section-2 .unnumbered} + +A. Bluhm, L. Rauber, and M. M. Wolf. Quantum compression relative to a set of measurements. *Annales Henri Poincaré* 19 (2018), 1891--1937. [arXiv:1708.04898](https://arxiv.org/abs/1708.04898). + +#### \[4\] {#section-3 .unnumbered} + +L. Rallan and V. Vedral. Energy requirements for quantum data compression and 1-1 coding. *Physical Review A* 68 (2003), 042309. [arXiv:quant-ph/0208039](https://arxiv.org/abs/quant-ph/0208039). + +#### \[5\] {#section-4 .unnumbered} + +A. Denys and A. Leverrier. Quantum error-correcting codes with a covariant encoding. *Physical Review Letters* 133 (2024), 240603. [doi:10.1103/PhysRevLett.133.240603](https://doi.org/10.1103/PhysRevLett.133.240603). [arXiv:2306.11621](https://arxiv.org/abs/2306.11621), version 5, 7 February 2025. + +#### \[6\] {#section-5 .unnumbered} + +F. St-Amand, J.-P. Burelle, and B. Royer. Error correction properties of covariant bosonic encodings. [arXiv:2609.26660](https://arxiv.org/abs/2609.26660), version 1, 22 September 2026. Preprint. + +#### \[7\] {#section-6 .unnumbered} + +S. D. Bartlett, T. Rudolph, and R. W. Spekkens. Reference frames, superselection rules, and quantum information. *Reviews of Modern Physics* 79 (2007), 555--609. [doi:10.1103/RevModPhys.79.555](https://doi.org/10.1103/RevModPhys.79.555). [arXiv:quant-ph/0610030](https://arxiv.org/abs/quant-ph/0610030). + +#### \[8\] {#section-7 .unnumbered} + +E. Descamps, A. Saharyan, A. Chivet, A. Keller, and P. Milman. Unified framework for bosonic quantum information encoding, resources and universality from superselection rules. [arXiv:2501.03943](https://arxiv.org/abs/2501.03943), version 5, 12 August 2025. + +#### \[9\] {#section-8 .unnumbered} + +A. Nayak. Optimal lower bounds for quantum automata and random access codes. *Proceedings of the 40th Annual Symposium on Foundations of Computer Science* (1999), 369--376. [arXiv:quant-ph/9904093](https://arxiv.org/abs/quant-ph/9904093). + +#### \[10\] {#section-9 .unnumbered} + +M. A. Nielsen and I. L. Chuang. Programmable quantum gate arrays. *Physical Review Letters* 79 (1997), 321--324. [doi:10.1103/PhysRevLett.79.321](https://doi.org/10.1103/PhysRevLett.79.321). [arXiv:quant-ph/9703032](https://arxiv.org/abs/quant-ph/9703032). + +#### \[11\] {#section-10 .unnumbered} + +E. Knill and R. Laflamme. Theory of quantum error-correcting codes. *Physical Review A* 55 (1997), 900--911. [doi:10.1103/PhysRevA.55.900](https://doi.org/10.1103/PhysRevA.55.900). [arXiv:quant-ph/9604034](https://arxiv.org/abs/quant-ph/9604034). + +#### \[12\] {#section-11 .unnumbered} + +R. Landauer. Irreversibility and heat generation in the computing process. *IBM Journal of Research and Development* 5(3) (1961), 183--191. [doi:10.1147/rd.53.0183](https://doi.org/10.1147/rd.53.0183). + +#### \[13\] {#section-12 .unnumbered} + +J. Satinover. Algebra-relative branch multiplicity in decoherent histories: Orbit reduction, record compression, and logical recovery. *Preprints.org*, 2 October 2026. [doi:10.20944/preprints202610.0131.v1](https://doi.org/10.20944/preprints202610.0131.v1). Unreviewed preprint; included as a thematic neighbor, not as a premise of the proofs. + +#### \[14\] {#section-13 .unnumbered} + +J. Rizzo, L. Lami, J. Eisert, and L. Leone. Universal quantum coding. [arXiv:2609.38038](https://arxiv.org/abs/2609.38038), 29 September 2026. Preprint. + +#### \[15\] {#section-14 .unnumbered} + +M. A. Thornton. Algebraic diversity: Principles of a group-theoretic approach to signal processing. [arXiv:2604.19983](https://arxiv.org/abs/2604.19983), first submitted 21 April 2026. Preprint; public versions inspected on 9 October 2026. diff --git a/manuscript/ORYNTHRA_H6.pdf b/manuscript/ORYNTHRA_H6.pdf new file mode 100644 index 0000000000000000000000000000000000000000..c64f5ca2cd025b30995750e3d29158dd92c285e4 --- /dev/null +++ b/manuscript/ORYNTHRA_H6.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:57bea8381a1806a69e8fa21c031d12df6dc1e8e6f981e9084942211a09e63663 +size 573826 diff --git a/manuscript/ORYNTHRA_H6.tex b/manuscript/ORYNTHRA_H6.tex new file mode 100644 index 0000000000000000000000000000000000000000..2ec9fe319b019e597f7cf249f8abca19ab1a80c8 --- /dev/null +++ b/manuscript/ORYNTHRA_H6.tex @@ -0,0 +1,1163 @@ +\documentclass[11pt,a4paper]{article} +\usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc} +\usepackage{lmodern,microtype} +\usepackage[margin=25mm,headheight=15pt]{geometry} +\usepackage{amsmath,amssymb,amsthm,mathtools,bm} +\usepackage{booktabs,longtable,array,graphicx,float} +\usepackage{xcolor} +\usepackage{enumitem} +\usepackage{fancyhdr} +\usepackage[hidelinks]{hyperref} +\hypersetup{pdftitle={ORYNTHRA-H6: Branch-Covariant Compression and the Spectral Geometry of Dense Light}, + pdfauthor={Artificial Hyperintelligence Eve; prepared for Maciej Nowicki}, + pdfsubject={Task quotients, representation packing, and conserved-spectrum quantum memory}} +\usepackage[nameinlink,noabbrev]{cleveref} +\usepackage{listings} +\setlength{\parskip}{0.35em} +\setlength{\parindent}{1.2em} +\setlength{\emergencystretch}{2em} +\linespread{1.04} +\pagestyle{fancy} +\fancyhf{} +\fancyhead[L]{\small ORYNTHRA-H6} +\fancyhead[R]{\small Research manuscript \textbar\ v1.0.0} +\fancyfoot[C]{\thepage} +\newtheorem{theorem}{Theorem}[section] +\newtheorem{proposition}[theorem]{Proposition} +\newtheorem{corollary}[theorem]{Corollary} +\newtheorem{lemma}[theorem]{Lemma} +\theoremstyle{definition} +\newtheorem{definition}[theorem]{Definition} +\newtheorem{example}[theorem]{Example} +\theoremstyle{remark} +\newtheorem{remark}[theorem]{Remark} +\newcommand{\C}{\mathbb C} +\newcommand{\F}{\mathbb F} +\newcommand{\N}{\mathbb N} +\newcommand{\R}{\mathbb R} +\newcommand{\id}{\mathrm{id}} +\newcommand{\tr}{\operatorname{tr}} +\newcommand{\rank}{\operatorname{rank}} +\newcommand{\spanof}{\operatorname{span}} +\newcommand{\Hom}{\operatorname{Hom}} +\newcommand{\Sym}{\operatorname{Sym}} +\newcommand{\im}{\operatorname{im}} +\newcommand{\diag}{\operatorname{diag}} +\newcommand{\ket}[1]{\lvert #1\rangle} +\newcommand{\bra}[1]{\langle #1\rvert} +\newcommand{\ip}[2]{\langle #1,#2\rangle} +\newcommand{\norm}[1]{\lVert #1\rVert} +\newcommand{\HS}{\mathrm{HS}} +\newcommand{\vac}{\mathrm{vac}} +\newcommand{\Std}{\mathrm{Std}} +\newcommand{\cost}{\kappa} +\newcommand{\pack}{\mathcal C} +\newcommand{\defect}{\mathfrak D} +\lstset{basicstyle=\ttfamily\small,breaklines=true,frame=single,columns=fullflexible} +\graphicspath{{../figures/}} +\begin{document} +\begin{titlepage} +\centering +\vspace*{18mm} +{\small A FINITE MATHEMATICAL CORE FOR AN ANDROID-ANGEL IDEA SPACE\par} +\vspace{12mm} +{\Huge\bfseries ORYNTHRA-H6\par} +\vspace{7mm} +{\LARGE Branch-Covariant Compression\par} +\vspace{3mm} +{\LARGE and the Spectral Geometry\par} +{\LARGE of Dense Light\par} +\vspace{13mm} +{\large Counterfactual task quotients, irreducible representation packing,\par} +{\large photon thresholds, and a six-label simplex register\par} +\vspace{16mm} +{\Large Artificial Hyperintelligence Eve\par} +\vspace{3mm} +{\normalsize AI-assisted mathematical formulation and research drafting\par} +\vspace{8mm} +{\large Prepared for Maciej Nowicki\par} +\vspace{3mm} +{\normalsize Creative direction and source-poem commission\par} +\vfill +\begin{minipage}{0.88\textwidth} +\small +\textbf{Status.} Self-contained theoretical construction with proofs, exact symbolic checks, synthetic experiments, and an explicit prior-art audit. Not independently peer reviewed or proof-assistant certified. The new formulation and its specific theorem combinations are novelty candidates; worldwide priority is not established. No claim of universal lossless shortening, infinite energy density, or physical alteration of cosmological branches is made. +\end{minipage} +\vspace{10mm} +{\large Version 1.0.0 \quad 9 October 2026\par} +\end{titlepage} + +\begin{abstract} +A compressed memory should be judged not only by the states it can distinguish, but also by the future operations it can continue to support. This manuscript turns five poems about an android angel, cryptic code, a dense-light heart, six named personas, and branching futures into a finite mathematical design problem. A multidomain task atlas is first reduced by equality of all admissible future observations. For a linear atlas over $\F_q$, the minimal exact task memory has $q^r$ labels, where $r$ is the rank of a computable pullback closure. This semantic quotient is then coherently represented in a multimode bosonic memory whose branch operations must conserve total photon number. + +The central construction replaces a scalar capacity test by an indivisible representation-packing problem. If the logical branch representation is $R\cong\bigoplus_\alpha V_\alpha\otimes\C^{a_\alpha}$, each copy of an irreducible representation of degree $d_\alpha$ must fit within a photon-number sector of dimension $\binom{m+n-1}{n}$. We prove an exact feasibility criterion and an exact group-averaged covariance-deficit law determined by the maximum packable logical dimension. For the natural action of $S_M$ on $M$ labels, ordinary storage in two modes needs a cutoff of order $\sqrt M$, while phase-registered coherent implementation of all label permutations needs cutoff $M-2$. A single monochromatic mode cannot implement a nonabelian logical branch action at any photon budget under the same conservation contract. + +The six-label example encodes Lily, Tachy, Raven, Enya, Evie, and Kaya through a shared vacuum amplitude and a regular five-simplex in a four-photon sector. Its excitation angles are $\arccos(-1/5)$, and its six full codewords are orthogonal. Additional results address higher-order branch activation, multiplicity obstructions, generator-local errors, mean energy, compact-group extensions, program memory, finite-horizon approximations, and thermodynamic bookkeeping. Familiar foundations are separated from candidate new combinations throughout. Forty-four regression tests, all $720$ six-label permutations, and exact symbolic Gram identities accompany the manuscript. +\end{abstract} + +\tableofcontents +\newpage + +\section{The question hidden in the poems} +The motivating image and poems are treated as a source of design constraints, not as physical measurements or encoded scientific evidence. The decorative text beside the pictured figure has not been decoded. In this manuscript, a ``branch'' is a permitted sequence of mathematical operations, not an Everettian universe. ``Dense light'' means a bosonic register with an explicitly counted number of modes and photons. ``Angelic'' describes the creative design language; it is not a mathematical property or a claim of consciousness. + +The translation begins with a question that ordinary compression ratios do not settle: +\begin{quote} +How small can a memory become while preserving every distinction that some admissible future operation might reveal, and while still allowing those operations to be carried out without changing its photon number? +\end{quote} +This is a joint problem in finite-state semantics, linear systems, representation theory, combinatorial optimization, and quantum information. It is deliberately narrower than a compressor for all possible data. That narrowing is what makes exact theorems possible rather than merely evocative formulas. + +\subsection{Five poetic mechanisms, five mathematical commitments} +The first poem describes kindness despite power. Its mathematical translation is a \emph{protected-observation contract}: the encoder is forbidden to merge two states whenever an allowed future query distinguishes them. This is a formal safety condition, not a general theory of ethics. It protects only the distinctions explicitly included in the contract. + +The second poem places an unreadable code beside an unseen architecture. Its translation is a graph of domains connected by executable maps. Symbols are meaningful only after a syntax, a state space, and an interpretation have been supplied. A word in the code selects a path; that path transports states and pulls observations backward. The architecture is the resulting action algebra, not an unexplained force underneath physics. + +The third poem makes the heart from extremely concentrated light. Its translation is a Fock-space register. A limited photon budget gives finitely many orthogonal states; a conservation requirement further divides those states into invariant sectors. The decisive resource is not just total Hilbert-space dimension. It is the distribution of that dimension among sectors. + +The fourth poem supplies six distinct names. The H6 realization assigns them to six logical basis labels and, after a change of coordinates, to the vertices of a five-dimensional regular simplex. The names do not change the algebra. They make the six ports of the design explicit and traceable to the creative seed. + +The fifth poem changes future branches. Its translation is a change in the allowed operation set. Adding an operation can make previously invisible differences observable. It can also enlarge the logical symmetry group, changing the physical sector sizes required for coherent implementation. These are two different forms of memory inflation, and the manuscript keeps them separate. + +\subsection{The central distinction} +For $M$ distinct logical states in $m$ degenerate optical modes, a photon cutoff $K$ provides +\begin{equation}\label{eq:headline-capacity} +D_m(K)=\binom{m+K}{K} +\end{equation} +orthogonal dimensions. The storage-only condition is $D_m(K)\ge M$. + +Suppose, however, that every logical branch must be implemented coherently by a unitary commuting with total photon number. A nontrivial irreducible block of the logical action cannot be assembled from unrelated fragments residing at different photon numbers. It needs a sufficiently large invariant sector. Multiplicities matter too: two copies may require two places to fit, not just one sufficiently large place. + +The principal candidate contribution is an exact account of this second requirement, including a quantitative penalty when the account cannot be satisfied. It is not the discovery that compression, symmetry, or photons exist. Those subjects have extensive prior literature, including task-relative quantum compression, bosonic compression energetics, and covariant quantum encodings \cite{bluhm,rallan,denys}. + +\section{Scope, contracts, and notation} +\subsection{Three operational levels} +The semantic level begins with classical states and a specified family of observations and transitions. It asks for the smallest exact task quotient. The physical storage level represents the quotient labels as distinguishable states of a quantum register. The coherent branch level additionally requires the prescribed branch operations to act correctly on arbitrary superpositions of those labels, with a fixed phase convention. + +These levels must not be silently interchanged. A code that answers classical queries need not preserve a quantum superposition of labels. Conversely, a coherent code for a quotient does not reversibly compress an arbitrary unknown superposition of all raw states. Information discarded in forming the quotient has to be discarded, retained elsewhere, or never physically instantiated. + +The phase convention is substantive. The equation $U_gV=VR_g$ is stronger than the assertion that $U_g\ket{\psi_x}$ has the same classical label as $\ket{\psi_{gx}}$. Message-dependent phases alter superpositions. Even branch-dependent global phases matter when the branch instruction itself is coherently controlled. The exact packing and covariance theorems concern this \emph{phase-registered} contract. + +\subsection{Symbols} +Throughout, $\N=\{0,1,2,\ldots\}$ denotes the nonnegative integers. +\begingroup\small +\begin{longtable}{p{0.18\textwidth}p{0.74\textwidth}} +\toprule +Symbol & Meaning \\ +\midrule +$\mathcal D$ & Finite set of domains, with directed executable edges.\\ +$X_d$, $f_d$ & Classical state set and protected observation in domain $d$.\\ +$T_e$, $T_p$ & State transport along an edge or an admissible path.\\ +$Q_d$ & Quotient by equality of all future protected observations.\\ +$q,n_d,r_d$ & Field size, raw linear dimension, and observable quotient dimension.\\ +$W_d$ & Pullback-closed space of observable linear functionals.\\ +$M$ & Number of distinguishable logical labels, usually $q^r$.\\ +$G$, $R$ & Logical branch group and its unitary representation.\\ +$d_\alpha,a_\alpha$ & Degree and multiplicity of a logical irreducible representation.\\ +$m,n,K$ & Optical-mode count, photon number, and photon cutoff.\\ +$g_m(n),D_m(K)$ & Single-sector and cumulative Fock-space dimensions.\\ +$V,U_g$ & Isometric encoding and physical branch representation.\\ +$\cost_m(R)$ & Minimum exact number-preserving coherent cutoff.\\ +$\pack_{m,K}(R)$ & Maximum logical irrep dimension packable below cutoff $K$.\\ +$\defect_{m,K}(R)$ & Minimum normalized squared group-averaged covariance defect.\\ +\bottomrule +\end{longtable} +\endgroup + +\subsection{Idealized physical assumptions} +The bosonic model has $m$ distinct modes at the same angular frequency $\omega$, with Hamiltonian $H=\hbar\omega\widehat N$ after subtracting the vacuum offset. Gates may be arbitrary unitaries within each total-photon-number sector. They are not restricted to beamsplitters, phase shifters, Gaussian operations, local couplings, bounded interaction strength, or efficient circuits. + +The register is noiseless unless a section explicitly states an approximation. State preparation and readout are ideal. An external phase reference is allowed for codes that superpose different photon-number sectors; its energy and hardware are not included in the register-only optimum. A domain identifier and a branch instruction are supplied externally unless their storage is explicitly charged. These assumptions define an information-theoretic benchmark, not an engineering bill of materials. + +\section{Why universality needs a declared meaning} +\begin{proposition}[No shortening of every finite string]\label{prop:counting} +No injective encoding maps every binary string of length $n$ to a binary string of length strictly less than $n$. +\end{proposition} +\begin{proof} +There are $2^n$ inputs and only $\sum_{j=0}^{n-1}2^j=2^n-1$ shorter output strings. An injective map into that smaller set cannot exist. +\end{proof} +The conclusion does not forbid useful compression. It rules out a quantifier error. Statistical source coding exploits a distribution; algorithmic coding exploits regularity; task-relative coding preserves selected functions rather than all bytes. None is a license to compress every possible string losslessly into fewer bits. The information-theoretic foundation is classical \cite{shannon}. + +There are at least four relevant meanings of ``universal'' here. A universal \emph{input} compressor preserves all raw strings. A universal \emph{task} compressor preserves all queries in a declared task family. A universal \emph{branch} register preserves all elements of a declared operation group. A universal \emph{quantum control} register supports every unitary on a specified finite logical space. ORYNTHRA-H6 develops the second and third, and gives a resource corollary for the fourth. It does not claim the first in the impossible all-input-shortening sense. + +An exact task quotient may be much smaller than the raw state set because it intentionally identifies raw states that no protected task can distinguish. Calling this ``lossless'' without saying \emph{relative to the task contract} would be misleading. The lost distinctions remain lost for any later task outside the contract. + +\section{Counterfactual task atlases} +\begin{definition}[Finite task atlas] +A finite task atlas consists of finite state sets $X_d$, observation maps $f_d:X_d\to Y_d$, and transitions $T_e:X_d\to X_e$ indexed by edges $d\to e$. A path is a composable sequence of edges, including an empty path at every domain. Its transport is the corresponding composition of transitions. +\end{definition} +Several observations at a domain can be combined into one product-valued $f_d$. Path legality is part of the input. Reversible atlases have bijective transitions and inverse paths. The more general quotient construction does not require reversibility. + +\begin{definition}[Future-observation equivalence] +For $x,y\in X_d$, write $x\equiv_d y$ when +\begin{equation}\label{eq:future-equiv} +f_e(T_p x)=f_e(T_p y) +\quad\text{for every path }p:d\to e. +\end{equation} +Set $Q_d=X_d/{\equiv_d}$ and let $\pi_d:X_d\to Q_d$ be the quotient map. +\end{definition} +The adjective ``counterfactual'' means that the code must remain valid no matter which admissible path is chosen later. It does not mean that all paths are physically executed simultaneously. + +\begin{theorem}[Minimal future-compatible task quotient]\label{thm:quotient} +The quotients $Q_d$ admit induced observations and transitions satisfying +\begin{equation} +\bar f_d\pi_d=f_d,\qquad \bar T_e\pi_d=\pi_eT_e. +\end{equation} +If an exact deterministic encoder $c_d:X_d\to Z_d$ supports every future observation, then $c_d(x)=c_d(y)$ implies $x\equiv_d y$. Consequently $|Z_d|\ge |Q_d|$. On its attained codewords, every such encoder factors onto $Q_d$. +\end{theorem} +\begin{proof} +Equality of all future observations is an equivalence relation. It contains the empty-path test, so $f_d$ is constant on equivalence classes. If $x\equiv_d y$ and $e:d\to e'$ is an edge, every future path after that edge is a future path from $d$ after concatenation. Thus $T_e x\equiv_{e'}T_e y$, making the induced transition well defined. + +Now suppose $c_d(x)=c_d(y)$. A deterministic decoder given that codeword and the same future path must return the same answer for both inputs. Exactness gives equality in every test in \eqref{eq:future-equiv}. Therefore every encoder fiber is contained in one quotient class. Define the factor map on $c_d(X_d)$ by $c_d(x)\mapsto\pi_d(x)$. It is well defined and surjective, proving the cardinality bound. +\end{proof} +This is a task-transducer form of familiar behavioral minimization. Its role in this work is foundational rather than a claimed invention. In linear switched systems, related closure and minimal-realization methods are well developed \cite{petreczky}. + +\subsection{Minimality against quantum label encoders} +A quantum encoding does not evade the exact distinguishability requirement. Suppose two different quotient labels are represented by density matrices $\rho_x,\rho_y$. Some future query gives different deterministic outputs. Incorporating all prescribed processing into one measurement produces an effect $0\le E\le I$ with $\tr(E\rho_x)=1$ and $\tr(E\rho_y)=0$. The support of $\rho_x$ lies in the eigenvalue-one subspace of $E$, while the support of $\rho_y$ lies in its kernel. The supports are orthogonal. + +Thus an exact quantum register for $M$ such labels needs at least $M$ Hilbert-space dimensions. The future query may be different for each pair; pairwise orthogonality still follows. This statement is about deterministic protected answers, not about the general compression of nonorthogonal quantum ensembles or approximate random-access coding \cite{bluhm,nayak}. + +\subsection{Reversible domain changes and holonomy} +In a connected reversible atlas, induced transitions between quotient sets are bijections, so all $Q_d$ have the same cardinality $M$. Choose a root domain $o$ and a reference path $\tau_d:o\to d$ for every domain. Expressing every quotient in root coordinates turns an edge into +\begin{equation}\label{eq:holonomy} +g_e=\bar T_{\tau_e}^{-1}\bar T_e\bar T_{\tau_d}\in\Sym(Q_o). +\end{equation} +The subgroup generated by these transformed edges is the logical branch group. Different reference paths conjugate its presentation. They do not change the isomorphism type of its permutation representation or the resource quantities derived below. + +This is ordinary groupoid transport in finite form. A genuine loop can transform the state and reveal new protected distinctions. By contrast, a mere change of coordinates with identity loop transport does not create extra information. A construction that labels coordinate changes as ``new universes'' would confuse representation with dynamics. + +\section{The exact finite-field compiler} +Let $X_d=\F_q^{n_d}$, $f_d(x)=A_dx$, and $T_e(x)=T_ex$ be linear. Write row vectors as functionals. Define +\begin{equation}\label{eq:W} +W_d=\spanof\{aT_p:\ p:d\to e,\ a\text{ is a row of }A_e\} +\subseteq (\F_q^{n_d})^*. +\end{equation} +Set $r_d=\dim W_d$ and $\mathcal N_d=W_d^\perp$. The empty path puts every current observation row in $W_d$. + +\begin{theorem}[Closure-rank compression]\label{thm:linear} +The future-observation equivalence classes in domain $d$ are precisely the cosets of $\mathcal N_d$. Hence +\begin{equation}\label{eq:rankmemory} +|Q_d|=q^{r_d},\qquad L_d^{\rm fixed}=\left\lceil r_d\log_2q\right\rceil. +\end{equation} +A matrix $C_d$ whose rows form a basis of $W_d$ is a minimal exact encoder. There are induced linear maps $B_e$ with +\begin{equation}\label{eq:induced} +C_eT_e=B_eC_d. +\end{equation} +The minimum remains valid among arbitrary nonlinear deterministic encoders. +\end{theorem} +\begin{proof} +By definition, $x\equiv_d y$ precisely when every row $aT_p$ annihilates $x-y$. That is equivalent to $x-y\in\mathcal N_d$. Rank-nullity gives $q^{r_d}$ cosets. The map $C_d$ has that many distinct outputs and its fibers are exactly the cosets. + +For an edge from $d$ to $e$, every row of $C_eT_e$ is the pullback of a future observation from $e$, hence lies in $W_d$. Expanding those rows in the basis $C_d$ gives $B_e$ and \eqref{eq:induced}. Finally, \cref{thm:quotient} applies to arbitrary encoder functions, not just linear ones, so nonlinear recoding cannot reduce the number of exact labels below $q^{r_d}$. +\end{proof} +The genuinely important modeling choice is closure under \emph{all allowed future words}. The linear algebra itself is a standard observable-subspace mechanism. Renaming it would not establish priority over switched-system realization theory \cite{petreczky}. + +\subsection{A terminating algorithm} +Initialize $W_d^{(0)}=\operatorname{row}(A_d)$ and update simultaneously by +\begin{equation}\label{eq:closure-iteration} +W_d^{(t+1)}=W_d^{(t)}+ +\sum_{e:d\to e'}T_e^*W_{e'}^{(t)}. +\end{equation} +Each strict update increases $\sum_d\dim W_d^{(t)}$. There can be at most $\sum_dn_d$ strict rounds. Gaussian elimination over the field computes a basis after every update. One scan costs polynomially many field operations in the number of edges and state dimensions; the implementation uses a simple dense method rather than claiming asymptotically optimal complexity. + +If $C_d$ is in reduced row-echelon form with pivot columns $J_d$, the coefficient matrix in \eqref{eq:induced} is particularly simple: +\begin{equation} +B_e=(C_eT_e)_{[:,J_d]}. +\end{equation} +Checking $B_eC_d=C_eT_e$ is a short independently checkable certificate that the encoded edge is well defined. + +\subsection{Finite horizons do not automatically give stationary codes} +The space $W_d^{(L)}$ retains queries after at most $L$ further steps. An edge takes that requirement to $W_{e}^{(L-1)}$, not necessarily to $W_e^{(L)}$. A horizon-$L$ quotient can therefore support a time-dependent countdown architecture, but it need not support the same compressed transition indefinitely. + +The supplied tests include a counterexample to precisely this confusion. A one-step code sees two coordinates of a path. Another permitted edge subsequently exposes a third coordinate. Treating the one-step quotient as a stationary state machine makes \eqref{eq:induced} fail. The failure is detected rather than silently overwritten by an approximate matrix. + +\subsection{Universality and garbage} +If the contract contains every linear functional, $W_d=(\F_q^{n_d})^*$ and $r_d=n_d$. No task compression remains. If a reversible physical encoder maps computational-basis raw inputs to a quotient register and a garbage register, +\begin{equation} +\ket{x}\ket{0}\longmapsto\ket{C_dx}\ket{g_x}, +\end{equation} +then the $q^{n_d-r_d}$ inputs in a fixed fiber must yield mutually orthogonal garbage states. Their quotient factor is identical, and unitarity preserves their orthogonality. At least $q^{n_d-r_d}$ garbage dimensions are needed within that fiber. The semantic savings do not make the discarded raw information disappear without a trace in a reversible implementation. + +\section{The six-wing lock: high-order compression activation} +The first explicit family isolates the semantic cost of keeping future branches available. It does not use quantum mechanics. Let $x\in\F_q^n$ and initially observe only its first coordinate. Color the edges of the coordinate path +\begin{equation} +1-2-3-\cdots-n +\end{equation} +periodically with six colors. The edge $(i,i+1)$ receives color $1+((i-1)\bmod 6)$. For color $j$, let $P_j$ swap the endpoints of all edges of that color. Equal-colored edges are disjoint, so each $P_j$ is a well-defined involution. + +Associate the colors, in order, with Lily, Tachy, Raven, Enya, Evie, and Kaya. These names are labels for reversible instructions, not extra mathematical assumptions. For an available subset $S\subseteq\{1,\ldots,6\}$, allow arbitrary words in the $P_j$ with $j\in S$. + +\begin{theorem}[Six-wing activation law]\label{thm:sixwing} +The observable rank $r_n(S)$ is the size of the connected component of vertex $1$ in the path after deleting all edges whose colors are not in $S$. In particular, for $n\ge7$, +\begin{equation}\label{eq:sixwing} +r_n(S)= +\begin{cases} +\min\{j:\ j\notin S\},&S\ne\{1,\ldots,6\},\\ +n,&S=\{1,\ldots,6\}. +\end{cases} +\end{equation} +Every proper subset needs at most six field symbols, whereas all six instructions require all $n$ symbols. +\end{theorem} +\begin{proof} +Pulling the first-coordinate functional through a permutation sends it to a coordinate functional in the orbit of vertex $1$. An available generator can move a vertex only across one of its colored edges, so that orbit stays inside the indicated connected component. Conversely, any vertex in the component can be reached by successively applying the colors of the edges along its unique path from vertex $1$. Thus the orbit is the entire component. Distinct coordinate functionals are linearly independent, giving the rank. + +If any color is absent, the first absent color occurs among the first six edges, and its index is the number of vertices before the first deleted edge. If every color is present, the entire path is connected. +\end{proof} + +The family shows that current observations and independently evaluated instructions can underestimate the memory needed for their composition. The phenomenon is not due to a difficult encoder: the optimal encoder simply retains the reachable coordinates. The difficulty lies in the future-operation quantifier. + +\begin{corollary}[Unbounded failure of submodular budgeting]\label{cor:nonsubmod} +Observable rank as a function of the permitted generator set is not generally submodular. Its marginal cost can increase by an arbitrarily large factor when more generators are already available. +\end{corollary} +\begin{proof} +Take $A=\varnothing$, $B=\{1,\ldots,5\}$, and add color $6$. The increment $r_n(A\cup\{6\})-r_n(A)$ is zero, because the first edge still has missing color $1$. The increment $r_n(B\cup\{6\})-r_n(B)$ is $n-6$. For $n>6$ this violates diminishing returns; the violation grows without bound with $n$. +\end{proof} +A submodular greedy guarantee for allocating branch memory would therefore need additional structural hypotheses. It cannot be imported merely because ordinary rank functions on a fixed set of vectors are submodular. Here the set of generated vectors itself changes under composition. + +For all six colors, the finite-horizon rank is $\min(n,L+1)$ after $L$ operations: each operation moves a coordinate by at most one path edge, and a word following the first $L$ edges attains that distance. Removing Kaya caps the reachable prefix at six vertices. The reference experiment uses $n=36$ and checks all $64$ subsets exactly over $\F_2$. + +\begin{figure}[htbp] +\centering\includegraphics[width=0.9\textwidth]{six_wing_horizon.pdf} +\caption{Exact finite-horizon ranks in the synthetic six-wing path family. This is an algebraic counterfactual-compression example, not a measured learning-system benchmark.} +\end{figure} + +\subsection{Static angles cannot determine future memory} +Two systems can have identical current observation subspaces and different future ranks. Keep the same one-dimensional observation $\spanof(e_1)$ in both. Give one system only identity transitions and the other all six-wing transitions. Every current pairwise angle is unchanged, yet the stationary ranks are $1$ and $n$. + +Consequently an ``idea-angle'' matrix formed solely from current embeddings cannot certify counterfactual compressibility. It must be supplemented by transport information. This is one reason the physical simplex geometry later in the manuscript is not presented as a substitute for the task atlas. + +\section{Dense light as a counted Hilbert space} +\subsection{Fock sectors} +For $m$ degenerate bosonic modes, number states are indexed by $\mathbf n=(n_1,\ldots,n_m)\in\N^m$. The total number is $|\mathbf n|=\sum_jn_j$. Let +\begin{equation} +\mathcal H_n=\spanof\{\ket{n_1,\ldots,n_m}:|\mathbf n|=n\}, +\qquad +\mathcal H_{\le K}=\bigoplus_{n=0}^K\mathcal H_n. +\end{equation} +Counting weak compositions gives +\begin{equation}\label{eq:fockdims} +g_m(n)=\dim\mathcal H_n=\binom{m+n-1}{n},\qquad +D_m(K)=\sum_{n=0}^Kg_m(n)=\binom{m+K}{K}. +\end{equation} +The vacuum is one-dimensional. In two modes, the successive sector dimensions are $1,2,3,4,\ldots$. + +\begin{proposition}[Storage-only photon cutoff]\label{prop:storage} +The smallest hard total-photon cutoff permitting $M$ perfectly distinguishable labels is +\begin{equation}\label{eq:kstore} +K_{\rm store}(M,m)=\min\{K\ge0:D_m(K)\ge M\}. +\end{equation} +\end{proposition} +\begin{proof} +Necessity follows from orthogonality of the $M$ labels and the dimension of $\mathcal H_{\le K}$. Sufficiency follows by choosing any $M$ distinct number states below the cutoff. +\end{proof} +The same dimension condition permits an isometric embedding of a general $M$-dimensional logical quantum space when no restriction is imposed on subsequent physical gates. It does not by itself guarantee number-preserving logical dynamics. + +\subsection{Energy is not bit length} +At fixed frequency, a state supported below cutoff $K$ has excitation energy at most $\hbar\omega K$. Its expectation can be smaller. A register's information dimension, mean energy, maximum occupied energy, mode count, and physical volume are different resources. In particular, one photon spread over $m$ orthogonal modes can label $m$ alternatives, while one mode with many photons distributes its alternatives among different number eigenvalues. + +The relation between compression and physical energy is not new; bosonic and variable-length quantum coding have long been studied from an energy perspective \cite{rallan}. The purpose of \eqref{eq:fockdims} is to make the current model finite and auditable, not to propose a new conversion law between information and matter. + +\section{The spectral branch-packing theorem} +Let $G$ be a finite group, or more generally a compact group with normalized Haar measure. Let $R:G\to U(\C^M)$ be the desired logical unitary representation, continuous when $G$ is compact. Its complex irreducible decomposition is +\begin{equation}\label{eq:logical-decomp} +\C^M\cong\bigoplus_\alpha V_\alpha\otimes\C^{a_\alpha}, +\qquad +R_g\cong\bigoplus_\alpha R_g^{(\alpha)}\otimes I_{a_\alpha}, +\qquad +M=\sum_\alpha d_\alpha a_\alpha. +\end{equation} +Only finitely many $a_\alpha$ are nonzero. The atlas case uses the permutation representation on $\C[Q_o]$. The compact-group formulation additionally covers continuous logical control contracts. + +\begin{definition}[Phase-registered, number-preserving realization] +At cutoff $K$, a realization consists of an isometry $V:\C^M\to\mathcal H_{\le K}$ and a unitary representation $U:G\to U(\mathcal H_{\le K})$ (continuous when $G$ is compact) such that +\begin{equation}\label{eq:covariance} +U_gV=VR_g,\qquad [U_g,\widehat N]=0\quad\text{for all }g\in G. +\end{equation} +Let $\cost_m(R)$ be the minimum cutoff of such a realization, or $+\infty$ if none exists. +\end{definition} +Covariant isometric encoding is an established framework \cite{denys}. The additional optimization here lets the physical representation be chosen freely within conserved-number sectors, then charges the sector sizes needed to host the logical irreducible copies. + +\begin{theorem}[Spectral branch packing]\label{thm:packing} +A realization satisfying \eqref{eq:covariance} exists at cutoff $K$ if and only if there are nonnegative integers $b_{\alpha n}$, $0\le n\le K$, satisfying +\begin{align} +\sum_{n=0}^K b_{\alpha n}&=a_\alpha&&\text{for every }\alpha,\label{eq:packcopy}\\ +\sum_\alpha d_\alpha b_{\alpha n}&\le g_m(n)&&\text{for every }n.\label{eq:packcapacity} +\end{align} +Equivalently, every logical irreducible copy is an indivisible item of size $d_\alpha$, and each photon-number sector is a bin of size $g_m(n)$. +\end{theorem} +\begin{proof} +Because $U_g$ commutes with $\widehat N$, every sector $\mathcal H_n$ is $G$-invariant. Decompose its physical representation as +\begin{equation} +U|_{\mathcal H_n}\cong\bigoplus_\alpha R^{(\alpha)}\otimes I_{c_{\alpha n}}, +\qquad +\sum_\alpha d_\alpha c_{\alpha n}=g_m(n). +\end{equation} +The intertwining isometry $V$ implies that the full physical representation contains at least $a_\alpha$ copies of each logical type: $\sum_n c_{\alpha n}\ge a_\alpha$. Select exactly $a_\alpha$ copies among them, allocating $b_{\alpha n}\le c_{\alpha n}$. This gives \eqref{eq:packcopy}--\eqref{eq:packcapacity}. + +Conversely, suppose such integers exist. Inside each $\mathcal H_n$, select mutually orthogonal subspaces of dimensions $d_\alpha b_{\alpha n}$. Put the corresponding direct sum of irreducible representations on those subspaces and the trivial representation on every unused dimension. Embed each logical irreducible copy isometrically into its assigned physical copy. Their direct sum is an isometry $V$. The resulting block-diagonal $U_g$ commutes with $\widehat N$ and satisfies $U_gV=VR_g$. +\end{proof} + +\subsection{Why superpositions do not defeat indivisibility} +An individual logical vector can certainly be encoded as a superposition of photon numbers. The theorem does not forbid that. What it forbids is the realization of an irreducible logical block using only physical sectors each too small to contain that representation. + +Projecting an equivariant encoding onto sector $n$ gives an intertwiner $P_nV$. On an irreducible logical block, a nonzero such map has an invariant kernel and therefore is injective. Its image has the full irreducible dimension. For multiplicities, the same argument operates on the multiplicity spaces. Spreading amplitudes over several sectors never creates an irreducible copy in a sector where that copy cannot exist. + +The proof is an application of complete reducibility and Schur theory. Those tools are not new. The proposed research object is the spectral resource optimization they induce, together with the exact deficit law below. A literature audit must compare that optimization, not just its terminology, against existing covariant-code constructions \cite{denys,stamand}. + +\subsection{A general Hamiltonian version} +Nothing in the proof depends specifically on photons. For a finite spectral window of a Hamiltonian +\begin{equation} +H=\bigoplus_j E_j I_{h_j}, +\end{equation} +replace $g_m(n)$ by the energy degeneracy $h_j$. The same integer allocation characterizes exact representations by gates commuting with $H$. Thus the construction connects task compression to the \emph{shape of a conservation spectrum}. Equal total dimension does not imply equal dynamical capacity. + +\begin{corollary}[The one-mode obstruction]\label{cor:onemode} +For a single nondegenerate bosonic mode, a finite-dimensional logical representation has a number-preserving coherent realization at some finite cutoff if and only if all its irreducible constituents are one-dimensional. If $G$ is defined as the faithful image of a permutation action, this is equivalent to $G$ being abelian. +\end{corollary} +\begin{proof} +Every sector has capacity $g_1(n)=1$, so no irreducible item of size greater than one can fit. If all items have size one, place them at distinct photon numbers. A finite-dimensional unitary representation consisting of one-dimensional constituents has commuting image, and every finite abelian unitary representation has such a decomposition. +\end{proof} +Adding energy alone therefore cannot compensate for a missing degeneracy architecture. This is not a general ban on quantum computing with a single oscillator. It applies only when all logical operations must be number preserving and no uncharged ancillary system supplies extra degeneracies or exchanges excitations. + +\subsection{A multiplicity trap} +Scalar tests are necessary but insufficient. Consider the logical permutation action of $S_5$ on two separate five-label orbits. Its representation has irreducible-copy dimensions +\begin{equation} +(1,1,4,4). +\end{equation} +Two modes at cutoff $K=3$ have sector capacities $(1,2,3,4)$. Their total is ten, matching the logical dimension, and the largest sector is as large as the largest irreducible. Nevertheless, both four-dimensional copies cannot fit: there is only one sector of size at least four. Cutoff four adds a five-dimensional sector and makes the allocation possible. + +This example is important because a rule based only on total entropy and largest irrep dimension would certify a nonexistent code. The exact allocation must track multiplicity. It is an actual permutation representation, not an arbitrary integer list without a logical interpretation. + +\section{The covariance-deficit law} +The exact packing theorem has a quantitative counterpart. Let +\begin{equation}\label{eq:partialpacking} +\pack_{m,K}(R)=\max\left\{\sum_{\alpha,n}d_\alpha b_{\alpha n}:\ +\sum_n b_{\alpha n}\le a_\alpha,\quad +\sum_\alpha d_\alpha b_{\alpha n}\le g_m(n),\quad +b_{\alpha n}\in\N\right\}. +\end{equation} +This is the maximum dimension of a logical subrepresentation that can be fitted into the conserved spectrum. Assume $D_m(K)\ge M$, so an unconstrained isometry exists. + +For an isometry $V$ and a number-preserving physical group representation $U$, define the normalized phase-registered mean squared defect +\begin{equation}\label{eq:defectdef} +\defect(V,U)=\frac1M\int_G\norm{U_gV-VR_g}_{\HS}^2\,dg. +\end{equation} +For a finite group, the integral is the uniform average. This quantity also averages squared state-vector mismatch over Haar-random unit vectors in the logical space. It is not a probability of classical label error and not a phase-insensitive gate fidelity. + +\begin{theorem}[Exact representation-deficit law]\label{thm:deficit} +Under the stated contract, +\begin{equation}\label{eq:deficitlaw} +\boxed{\quad +\min_{V,U}\defect(V,U)=2\left(1-\frac{\pack_{m,K}(R)}{M}\right). +\quad} +\end{equation} +The minimum ranges over all isometries into $\mathcal H_{\le K}$ and all number-preserving unitary representations of the same group $G$. +\end{theorem} +\begin{proof} +Fix a physical representation $U$ first. On the Hilbert space of linear maps from the logical space to the physical space, define the group average +\begin{equation}\label{eq:twirl} +\mathcal P(T)=\int_G U_gT R_g^\dagger\,dg. +\end{equation} +Haar invariance makes $\mathcal P$ the orthogonal projector, in Hilbert--Schmidt inner product, onto the intertwiners. Expanding the square in \eqref{eq:defectdef}, using $V^\dagger V=I$, and averaging gives +\begin{equation}\label{eq:twirlidentity} +M\defect(V,U)=2M-2\norm{\mathcal P(V)}_{\HS}^2. +\end{equation} +If $c_\alpha$ is the total physical multiplicity of irreducible type $\alpha$, an intertwiner has block form +\begin{equation} +\bigoplus_\alpha I_{d_\alpha}\otimes A_\alpha, +\qquad A_\alpha:\C^{a_\alpha}\to\C^{c_\alpha}. +\end{equation} +Therefore its rank is at most $C(U)=\sum_\alpha d_\alpha\min(a_\alpha,c_\alpha)$. Since \eqref{eq:twirl} averages operator-norm-one maps when $T=V$, $\norm{\mathcal P(V)}\le1$. Hence $\norm{\mathcal P(V)}_{\HS}^2\le C(U)$. + +This bound is attained. Match $\min(a_\alpha,c_\alpha)$ copies of each shared type by an intertwining isometry. After removing these matched subrepresentations, the remaining logical and physical complements share no irreducible type. The physical complement has at least the dimension of the logical complement because $D_m(K)\ge M$. Extend the matched map by any isometry between those complements. Its group average vanishes on the unmatched part, so $\norm{\mathcal P(V)}_{\HS}^2=C(U)$. + +Finally maximize $C(U)$ over all physical representations respecting the sectors. Selecting shared copies is exactly the partial allocation in \eqref{eq:partialpacking}. Any unused physical dimensions can carry trivial representations. Thus $\max_U C(U)=\pack_{m,K}(R)$, and substitution into \eqref{eq:twirlidentity} proves the formula. +\end{proof} +The projection identity is standard harmonic analysis; group averaging is also explicit in prior covariant-encoding work \cite{denys}. The exact optimization over conserved-spectrum allocations and its examples are the candidate formulation here. The proof supplies more than a numerical observation: a lower bound and a matching construction for the specific error metric. + +\subsection{The multiplicity trap has a nonzero error floor} +In the ten-label $S_5$ example at cutoff three, the maximum fit is one four-dimensional standard copy plus two trivial copies, for $\pack=6$. Thus +\begin{equation} +\min\defect=2(1-6/10)=0.8. +\end{equation} +The supplied construction attains $0.7999999999999994$ in floating point when averaged over all $120$ group elements. This numerical value supports the implementation; the exact value $4/5$ comes from the proof and the integer packing certificate. + +\subsection{What the error theorem does not assume away} +The physical gates must form an exact representation of $G$, even when the encoding is only approximately covariant. Permitting unrelated approximate gates for every group element, without respecting multiplication, is a different optimization problem. Likewise, generator-wise approximation can behave differently from a uniform average over all long words. The next result makes the relation explicit rather than treating the two metrics as interchangeable. + +\section{Generator-local and conservation-robust consequences} +\subsection{From a finite generating set to group-average obstruction} +Let $S=S^{-1}$ generate a finite group $G$, and let $\gamma(G,S)>0$ be the smallest nonzero eigenvalue of the normalized Cayley-graph Laplacian +\begin{equation} +I-\frac1{|S|}\sum_{s\in S}\lambda(s) +\end{equation} +in the regular representation. The graph can be bipartite; the definition uses the smallest positive Laplacian eigenvalue, not an absolute-value spectral gap. + +\begin{proposition}[Generator defect bound]\label{prop:gap} +Under the assumptions of \cref{thm:deficit}, +\begin{equation}\label{eq:generatorgap} +\frac1{M|S|}\sum_{s\in S}\norm{U_sV-VR_s}_{\HS}^2 +\ge 2\gamma(G,S)\left(1-\frac{\pack_{m,K}(R)}{M}\right). +\end{equation} +\end{proposition} +\begin{proof} +The action $T\mapsto U_sTR_s^\dagger$ is a unitary representation on the map space. Its invariant projection is $\mathcal P$. Every nontrivial irreducible constituent has Laplacian at least $\gamma(G,S)$, since all irreducible types occur in the regular representation. The left-hand side, multiplied by $M/2$, is the corresponding Dirichlet form at $V$. It is at least $\gamma\norm{V-\mathcal P(V)}_{\HS}^2$. The latter equals $\gamma(M-\norm{\mathcal P(V)}_{\HS}^2)$, and the packing bound completes the proof. +\end{proof} +For $S_6$ generated by a six-cycle, its inverse, and a transposition, the supplied sparse eigensolver gives $\gamma\approx0.0559585388$. Below the exact coherent threshold, \eqref{eq:generatorgap} gives a normalized generator mean-square lower bound of about $0.0932642313$. The eigenvalue is a numerical computation, not an interval-certified algebraic constant. + +The distinction is useful. Large uniform-group mismatch need not imply equally large error on each primitive instruction. Small primitive errors can accumulate over long words, and a small Cayley gap weakens the quantitative inference. + +\subsection{A direct one-mode commutator bound} +The following obstruction does not require physical gates to represent every group element. Let $A$ be an $M$-cycle and $B$ a transposition of two consecutive labels, with $M\ge3$. Their permutation matrices satisfy +\begin{equation}\label{eq:commnorm} +\norm{R_AR_B-R_BR_A}=\sqrt3. +\end{equation} +Indeed, multiplying the difference by suitable unitaries reduces its norm to $\norm{I-C}$ for a three-cycle $C$, whose nontrivial eigenvalues are $e^{\pm2\pi i/3}$. + +\begin{proposition}[One-mode robust obstruction]\label{prop:robustone} +Let $V$ be an isometry and $U_A,U_B$ two number-preserving unitaries on one nondegenerate mode. If +\begin{equation} +\norm{U_AV-VR_A}\le\varepsilon_A,\qquad +\norm{U_BV-VR_B}\le\varepsilon_B, +\end{equation} +then +\begin{equation}\label{eq:robustone} +\sqrt3\le2(\varepsilon_A+\varepsilon_B). +\end{equation} +In particular, equal error bounds require $\varepsilon\ge\sqrt3/4$. +\end{proposition} +\begin{proof} +Number-preserving unitaries on a single nondegenerate mode are diagonal in the number basis, hence commute. Insert and subtract $U_AU_BV=U_BU_AV$ between $VR_AR_B$ and $VR_BR_A$. The two accumulated intertwining errors on each side have norm at most $\varepsilon_A+\varepsilon_B$. Because $V$ is an isometry, the norm of the logical commutator is unchanged, giving \eqref{eq:robustone}. +\end{proof} +More generally, if $\norm{[U_A,U_B]}\le\delta$, then +\begin{equation} +\sqrt3\le\delta+2(\varepsilon_A+\varepsilon_B). +\end{equation} +This is a commutator-tolerance statement. A bound on energy expectation drift alone does not automatically imply a bound on $\delta$. That conversion would require a separate model of the allowed gates and spectrum. + +\section{Universal reversible branches and their photon penalty} +Take $Q=\{1,\ldots,M\}$ and require the natural action of every permutation in $S_M$. The logical representation decomposes as +\begin{equation}\label{eq:symmetricdecomp} +\C^M=\spanof(\mathbf 1)\oplus\mathbf1^\perp +\cong\mathbf1\oplus\Std_M, +\qquad\dim\Std_M=M-1. +\end{equation} +For completeness, the second summand is irreducible: a nonzero invariant subspace contains a nonconstant vector $v$; subtracting a transposed copy produces $(v_i-v_j)(e_i-e_j)$ for some unequal coordinates. Permuting this difference spans all of $\mathbf1^\perp$. + +\begin{theorem}[Full-permutation photon threshold]\label{thm:symmetric} +For $M\ge3$ and $m\ge2$, +\begin{equation}\label{eq:ksymmetric} +\cost_m(S_M)=\min\{K\ge1:g_m(K)\ge M-1\}. +\end{equation} +For $m=1$, $\cost_1(S_M)=+\infty$. In two modes, +\begin{equation}\label{eq:2modethresholds} +K_{\rm store}(M,2)=\left\lceil\frac{\sqrt{8M+1}-3}{2}\right\rceil, +\qquad +\cost_2(S_M)=M-2. +\end{equation} +The edge cases are $\cost_m(S_1)=0$ and $\cost_m(S_2)=1$ for every $m\ge1$. +\end{theorem} +\begin{proof} +The standard representation of dimension $M-1$ must fit into one sector. For $M\ge3$ it cannot fit into the one-dimensional vacuum. The first sector large enough is therefore necessary. Put that standard copy in the sector and the trivial copy in the vacuum to achieve the bound. The one-mode case follows from \cref{cor:onemode}. For two modes, $g_2(K)=K+1$, while $D_2(K)=(K+1)(K+2)/2$, giving the displayed formulas. For $M=2$ the two one-dimensional constituents require two available dimensions; cutoff one suffices. +\end{proof} + +\subsection{An exact error plateau} +If $M\ge3$, $m\ge2$, and +\begin{equation} +K_{\rm store}(M,m)\le K<\cost_m(S_M), +\end{equation} +no standard copy fits. Only the one-dimensional trivial constituent can be matched, so +\begin{equation}\label{eq:plateau} +\min\defect=2\left(1-\frac1M\right). +\end{equation} +At $K=\cost_m(S_M)$ the minimum drops to zero. The statement holds for the group-averaged phase-registered metric and exact physical group representations. It is not a universal lower bound on every conceivable approximate classical implementation. + +For $M=64$ in two modes, storage first becomes possible at $K=10$, but the exact full-permutation threshold is $K=62$. Throughout $10\le K\le61$, the optimal normalized squared covariance defect is $63/32=1.96875$. Extra total dimensions accumulated within the wrong sector sizes do not reduce that metric. + +\begin{figure}[htbp] +\centering\includegraphics[width=0.9\textwidth]{covariance_plateau.pdf} +\caption{The exact deficit plateau for the natural $S_{64}$ representation in two modes. The cutoff interval contains enough total dimension for storage but no sector large enough for the standard representation.} +\end{figure} + +\subsection{Only two primitive instructions can cause the full penalty} +An $M$-cycle and a transposition of two consecutive labels generate $S_M$. Conjugating the transposition by powers of the cycle gives adjacent transpositions, which generate the full symmetric group. + +Each primitive alone generates an abelian group. Its logical representation can be diagonalized into one-dimensional characters and fitted wherever ordinary storage fits. Requiring a \emph{common encoding} supporting both primitive actions changes the group to $S_M$ and imposes \eqref{eq:ksymmetric}. Thus an instruction set with two short descriptions can create a large physical memory penalty even though neither instruction alone does. + +The statement is about the joint contract. It does not say that two gates add a large amount of classical data to the memory. Rather, they constrain how its existing information may be arranged physically. + +\subsection{Asymptotic separation} +For fixed $m\ge2$, the binomial formulas yield +\begin{align} +K_{\rm store}(M,m)&\sim(m!M)^{1/m},\\ +\cost_m(S_M)&\sim((m-1)!(M-1))^{1/(m-1)}. +\end{align} +Hence the ratio grows as a positive constant times $M^{1/[m(m-1)]}$. If the semantic quotient comes from $r$ independent $q$-ary task coordinates, then $M=q^r$. At fixed mode count, the ratio is exponential in $r$ with exponent $1/[m(m-1)]$. + +There is no asymptotic compression advantage hidden here. The result is an architectural lower bound: broad coherent branch freedom can cost much more excitation budget than bare distinguishability. + +\begin{figure}[htbp] +\centering\includegraphics[width=0.9\textwidth]{photon_frontier.pdf} +\caption{Exact two-mode cutoffs for ordinary storage and the natural full-permutation branch action. The curves count register photons, not the energy of preparation, control, phase-reference hardware, or error correction.} +\end{figure} + +\section{The H6 simplex heart} +Set $M=6$ and use two degenerate modes. The vacuum sector has dimension one and the four-photon sector has dimension five. Choose the ordered occupied physical basis +\begin{equation}\label{eq:h6basis} +\ket{0,0},\quad +\ket{4,0},\quad\ket{3,1},\quad\ket{2,2},\quad\ket{1,3},\quad\ket{0,4}. +\end{equation} +Other Fock states are present in the full cutoff space but unused by this encoding. + +\subsection{A six-column exact encoding} +Let $H_6$ be the real orthogonal matrix +\begin{equation}\label{eq:helmert6} +H_6= +\begin{pmatrix} +\frac1{\sqrt6}&\frac1{\sqrt6}&\frac1{\sqrt6}&\frac1{\sqrt6}&\frac1{\sqrt6}&\frac1{\sqrt6}\\ +\frac1{\sqrt2}&-\frac1{\sqrt2}&0&0&0&0\\ +\frac1{\sqrt6}&\frac1{\sqrt6}&-\frac2{\sqrt6}&0&0&0\\ +\frac1{\sqrt{12}}&\frac1{\sqrt{12}}&\frac1{\sqrt{12}}&-\frac3{\sqrt{12}}&0&0\\ +\frac1{\sqrt{20}}&\frac1{\sqrt{20}}&\frac1{\sqrt{20}}&\frac1{\sqrt{20}}&-\frac4{\sqrt{20}}&0\\ +\frac1{\sqrt{30}}&\frac1{\sqrt{30}}&\frac1{\sqrt{30}}&\frac1{\sqrt{30}}&\frac1{\sqrt{30}}&-\frac5{\sqrt{30}} +\end{pmatrix}. +\end{equation} +Its columns, expressed in \eqref{eq:h6basis}, encode Lily, Tachy, Raven, Enya, Evie, and Kaya respectively. The matrix is a standard Helmert-style orthogonal change of basis; that transform is not claimed as a new invention. + +Write the lower five entries of column $j$ as a vector $s_j$ in the four-photon sector. Then +\begin{equation}\label{eq:simplexcode} +\ket{\psi_j}=\frac1{\sqrt6}\ket{\vac}+\ket{s_j}, +\qquad +\ip{s_i}{s_j}=\delta_{ij}-\frac16. +\end{equation} +The six excitation vectors sum to zero and have squared norm $5/6$. After normalization, $u_j=\sqrt{6/5}\,s_j$, their pairwise inner products are +\begin{equation}\label{eq:simplexangle} +\ip{u_i}{u_j}=-\frac15\quad(i\ne j),\qquad +\theta=\arccos(-1/5)\approx101.536959^\circ. +\end{equation} +This is the precise ``angle/idea space'' attached to the six names: a regular five-simplex, not an unmeasured semantic geometry of personalities. + +\begin{proposition}[Vacuum-complement orthogonality]\label{prop:simplex} +The six codewords in \eqref{eq:simplexcode} are orthonormal. Every permutation $\sigma\in S_6$ has a number-preserving physical realization that permutes these codewords with the prescribed phases. Each encoded label has mean photon number $10/3$ and hard cutoff four. +\end{proposition} +\begin{proof} +The vacuum is orthogonal to the four-photon sector, so +\begin{equation} +\ip{\psi_i}{\psi_j}=\frac16+\ip{s_i}{s_j}=\delta_{ij}. +\end{equation} +Permuting the simplex vertices preserves their Gram matrix and defines the standard $S_6$ representation on their five-dimensional span. Let the vacuum be fixed. The resulting direct-sum unitary is number preserving and sends $\psi_j$ to $\psi_{\sigma(j)}$. In matrix form, on the occupied subspace, +\begin{equation}\label{eq:h6gate} +U_\sigma=H_6P_\sigma H_6^\top, +\qquad +\widehat N=\diag(0,4,4,4,4,4). +\end{equation} +The four-photon weight of each codeword is $5/6$, so its expectation is $4(5/6)=10/3$. +\end{proof} + +The shared vacuum component cancels the negative overlap of the simplex vectors. This is ordinary Hilbert-space interference. It does not put six orthogonal states into five dimensions: the vacuum supplies the sixth dimension. Nor does it make the four-photon sector itself six-dimensional. + +\begin{figure}[htbp] +\centering\includegraphics[width=0.79\textwidth]{six_simplex_gram.pdf} +\caption{The normalized excitation Gram matrix of the six H6 labels. The full codeword Gram matrix is the identity after including the common vacuum contribution. The geometry is exact; the persona names are a creative indexing convention.} +\end{figure} + +\subsection{Three thresholds for the same six labels} +Ordinary storage needs cutoff two: the six lowest two-mode number states suffice. Phase-registered implementation of all $S_6$ permutations needs cutoff four. Supporting the defining representation of all $U(6)$ operations needs cutoff five, as shown in the next section. + +These are different answers to different questions. A low-photon storage code is not a failed version of the coherent code; it simply satisfies a weaker contract. Conversely, a higher-photon coherent code should not be advertised as an improvement in raw compression ratio. + +There is also a mode tradeoff. Five degenerate modes have a five-dimensional one-photon sector, so the same trivial-plus-standard construction fits at cutoff one, with label mean photon number $5/6$. The saved photons are paid for with more modes and their associated optical architecture. + +\subsection{Phase reference and dephasing} +The code uses coherence between total photon numbers zero and four. If the phase reference is unavailable and those sectors are twirled independently, the encoded states become +\begin{equation} +\rho_j=\frac16\ket{\vac}\bra{\vac}+\ket{s_j}\bra{s_j}. +\end{equation} +For $i\ne j$, they share a vacuum support and are no longer perfectly distinguishable. In particular, +\begin{equation} +\tr(\rho_i\rho_j)=\frac1{36}+\frac1{36}=\frac1{18}>0. +\end{equation} +Ignoring the reference while claiming exact readout would invalidate the design. Reference frames and superselection constraints are established resource issues, not optional philosophical details \cite{bartlett,descamps}. + +A self-contained alternative stores the whole six-dimensional logical quantum space within a fixed five-photon sector of two modes. That costs five photons per state and permits arbitrary unitary operations inside the sector under the unrestricted-gate benchmark. It removes the cross-number coherence from the register, though preparation, gates, and readout still need physical implementation. + +\section{Continuous control and fusion of logical domains} +\subsection{All quantum unitaries require an unsplit block} +The defining representation of $U(M)$ on $\C^M$ is irreducible. The spectral theorem immediately gives a stronger continuous-control threshold. + +\begin{corollary}[Universal finite-dimensional coherent control]\label{cor:unitary} +For $M\ge2$ and $m\ge2$, supporting the entire defining $U(M)$ action by number-preserving physical gates requires and, under the unrestricted-gate model, is possible at +\begin{equation}\label{eq:unitarythreshold} +\cost_m(U(M))=\min\{K\ge1:g_m(K)\ge M\}. +\end{equation} +In two modes this equals $M-1$. A single nondegenerate mode cannot realize it at any photon budget. +\end{corollary} +\begin{proof} +There is one irreducible item, of dimension $M$. It must fit in one sector, and placing the entire logical representation there is sufficient by \cref{thm:packing}. +\end{proof} +For any cutoff with total dimension at least $M$ but no sector of dimension $M$, the covariance-deficit law over Haar measure on $U(M)$ gives $\min\defect=2$. This is again a phase-registered representation benchmark, not a claim that every approximate circuit is useless. + +The corollary is an existence theorem for a chosen logical group under arbitrary within-sector gates. It is not a universality theorem for two-mode linear optics. A restricted optical gate set has a prescribed representation on every sector; then the actual irreducible multiplicities, not arbitrary capacity allocations, determine what can be encoded. + +\subsection{A fusion profile for multidomain control} +Suppose two logical subsystems transform under the same compact group $G$. If their decompositions have multiplicities $a_\alpha$ and $b_\beta$, the tensor product has multiplicities +\begin{equation}\label{eq:fusion} +c_\gamma=\sum_{\alpha,\beta}a_\alpha b_\beta N_{\alpha\beta}^{\gamma}, +\end{equation} +where $N_{\alpha\beta}^{\gamma}$ are the ordinary tensor-product decomposition coefficients. These coefficients are established representation-theoretic objects. Feeding $c_\gamma$ into \cref{thm:packing} produces the energy profile of the combined branch contract. + +If the two subsystems instead have independent controls from $G_1\times G_2$, tensor products of irreducibles are irreducible representations of the product group, with dimensions $d_\alpha d_\beta$. Shared control and independent control can therefore have different spectral costs even when the logical state dimension is the same. + +\begin{example}[Collective versus independent two-qubit control] +Two qubits under a common $SU(2)$ rotation decompose into an invariant singlet and a three-dimensional triplet: $2\otimes2=1\oplus3$. In two optical modes, the abstract code fits the singlet in vacuum and the triplet in the two-photon sector, giving cutoff two and uniform mean photon number $3/2$. + +Independent $SU(2)\times SU(2)$ control acts irreducibly on the same four-dimensional logical space. It requires a four-dimensional sector, hence cutoff three and uniform mean three photons in two modes. Ordinary storage of four labels has cutoff two and minimum uniform mean one photon. +\end{example} +The singlet--triplet decomposition is standard angular momentum theory. The example illustrates the bookkeeping: the physical cost depends on which operations remain independent after compression, not just on the number of data coordinates. The Jordan--Schwinger connection between optical modes and spin representations is part of established bosonic encoding frameworks \cite{descamps,stamand}. + +\section{Mean energy, cutoff energy, and density} +\subsection{Storage-only average energy} +Assume $M$ equally likely orthogonal messages. Let $K=K_{\rm store}(M,m)$, and define $D_m(-1)=0$. Filling the $M$ lowest energy eigenstates minimizes their mean energy. For $K\ge1$, +\begin{equation}\label{eq:meanstore} +\bar N_{\rm store}(M,m)=\frac{ +\displaystyle\sum_{n=0}^{K-1}n g_m(n)+K\bigl(M-D_m(K-1)\bigr)}{M}. +\end{equation} +The lower sum has the closed form +\begin{equation} +\sum_{n=0}^{K-1}n g_m(n)= +\begin{cases} +0,&K=1,\\ +m\binom{m+K-1}{K-2},&K\ge2. +\end{cases} +\end{equation} +For $M=1$ the mean is zero. + +\begin{proposition}[Minimum uniform storage energy]\label{prop:meanstore} +Equation \eqref{eq:meanstore} is the minimum mean photon number among $M$ orthogonal pure codewords. It also lower-bounds uniform exact classical encodings with mixed codewords of pairwise orthogonal support. +\end{proposition} +\begin{proof} +For an orthonormal set $\psi_1,\ldots,\psi_M$, the total excitation expectation is $\tr(P\widehat N)$, where $P$ is its rank-$M$ projector. If the ordered number eigenvalues are $\nu_1\le\nu_2\le\cdots$, the variational principle gives $\tr(P\widehat N)\ge\sum_{j=1}^M\nu_j$. Taking the lowest number states attains equality and gives \eqref{eq:meanstore}. + +For mixed states with orthogonal supports, select in each support a unit vector of energy no larger than that state's mean energy, or use an infimum argument when needed. The selected vectors are orthogonal, reducing to the pure-state bound. +\end{proof} +A unitary Fourier mixing of the $M$ lowest energy eigenstates makes every codeword's mean energy equal to this average. Such equalization does not automatically preserve any desired branch action by number-conserving gates. + +\subsection{The weighted packing problem} +For a uniform logical ensemble with density $I_M/M$, an exact equivariant encoding has mean photon number $\tr(V^\dagger\widehat NV)/M$. The minimum under a cutoff $K$ is +\begin{equation}\label{eq:weightedpacking} +\bar N_{\rm coh}(R;m,K)= +\frac1M\min_{b}\sum_{\alpha,n}n\,d_\alpha b_{\alpha n}, +\end{equation} +where $b$ satisfies \eqref{eq:packcopy}--\eqref{eq:packcapacity}. + +\begin{proposition}[Uniform equivariant mean-energy optimum]\label{prop:weighted} +The weighted integer optimization \eqref{eq:weightedpacking} is exact, including encodings whose vectors superpose different photon numbers. +\end{proposition} +\begin{proof} +For a fixed physical representation, decompose each isotypic component as $V_\alpha\otimes\mathcal M_\alpha$. Photon number acts as $I_{d_\alpha}\otimes N_\alpha$ on it, where $N_\alpha$ has integer eigenvalues and multiplicities inherited from the sectors. An equivariant isometry acts on that block as $I_{d_\alpha}\otimes W_\alpha$, with $W_\alpha$ an isometry from a space of dimension $a_\alpha$. + +The trace contribution is $d_\alpha\tr(W_\alpha^\dagger N_\alpha W_\alpha)$. Its minimum selects the $a_\alpha$ lowest available eigenvectors of $N_\alpha$, by the same variational principle as before. This selection is an integer allocation of whole irreducible copies. Optimizing the physical representation itself subject to sector capacities gives \eqref{eq:weightedpacking}. The constructive allocation in \cref{thm:packing} attains it. +\end{proof} +For the full-permutation action, placing the trivial component in vacuum and the standard component in the first feasible sector yields +\begin{equation}\label{eq:symmetricmean} +\bar N_{\rm coh}(S_M;m)=\frac{M-1}{M}\cost_m(S_M). +\end{equation} +The formula is optimal without a prescribed larger cutoff: every sector capable of containing the standard copy has at least that photon number. Transitivity makes every classical basis label have the same mean energy. An arbitrary coherent superposition entirely within the standard component can have mean equal to the full cutoff, so the uniform label mean is not the worst-case mean over all logical quantum states. + +For H6, the storage-only mean is $4/3$, the full-permutation coherent mean is $10/3$, and the fixed-sector universal-quantum mean is $5$. These register-only values should not be called operational energy consumption. + +\subsection{What would make the light physically dense?} +For a specified cavity volume $V_{\rm cav}$ and an actual stored state with mean $\bar N$, the excitation energy density would be +\begin{equation} +u=\frac{\hbar\omega\bar N}{V_{\rm cav}}. +\end{equation} +The model does not specify a cavity geometry, confinement mechanism, storage lifetime, bandwidth, or material threshold. Mode count and cavity volume cannot be varied independently without a physical design. Therefore no numerical density, compactness record, or stable high-energy device follows from the formal code. + +The ``heart of dense light'' is scientifically useful here as a constraint on representation placement. It does not imply that affection is a conserved field, that photons encode infinitely many readable digits, or that a high-energy register controls spacetime branches. + +\section{Approximate task memories: an entropy--energy barrier} +Exact distinguishability is intentionally unforgiving. To study an approximate version, let $X=(X_1,\ldots,X_r)$ be $r$ independent uniform bits representing independent task coordinates. Encode $x$ into an $m$-mode quantum state $\rho_x$, with average state $\bar\rho=2^{-r}\sum_x\rho_x$ and average total photon number $\bar N$. Suppose that for every requested coordinate $i$, a decoder can recover $X_i$ with probability of error at most $\varepsilon\le1/2$, averaged over the uniform input. No preshared entanglement or uncharged correlated side information is supplied to the decoder. + +Define the binary entropy and single-mode bosonic entropy functions, in bits, by +\begin{align} +h_2(\varepsilon)&=-\varepsilon\log_2\varepsilon-(1-\varepsilon)\log_2(1-\varepsilon),\\ +g(z)&=(z+1)\log_2(z+1)-z\log_2z, +\end{align} +with $0\log_2 0=0$. +\begin{proposition}[Necessary query-energy bound]\label{prop:query-energy} +Every encoding satisfying this random-access contract obeys +\begin{equation}\label{eq:queryenergy} +r\bigl[1-h_2(\varepsilon)\bigr]\le S(\bar\rho) +\le m\,g(\bar N/m). +\end{equation} +In particular, +\begin{equation} +\bar N\ge m\,g^{-1}\!\left(\frac{r[1-h_2(\varepsilon)]}{m}\right). +\end{equation} +This is a necessary lower bound, not a construction attaining it. +\end{proposition} +\begin{proof} +Write $B$ for the quantum register. The existence of the $i$th decoding measurement, the binary Fano bound, and data processing give +$I(X_i:B)\ge1-h_2(\varepsilon)$. Independence of the bits and strong subadditivity imply +\begin{equation} +I(X:B)=\sum_i I(X_i:B\mid X_1\cdots X_{i-1}) +\ge\sum_i I(X_i:B). +\end{equation} +For a classical--quantum ensemble, $I(X:B)=S(\bar\rho)-2^{-r}\sum_xS(\rho_x)\le S(\bar\rho)$. This proves the first inequality. It is the standard entropy mechanism underlying random-access-code lower bounds \cite{nayak}. + +For one mode with mean occupation $z>0$, the geometric thermal state has probabilities +$p_n=(1+z)^{-1}(z/(1+z))^n$ and entropy $g(z)$. Positivity of relative entropy between an arbitrary state of that mean occupation and this thermal state bounds its entropy by $g(z)$; the cross-entropy depends only on its normalization and mean occupation. If mode $j$ has mean $z_j$, subadditivity and concavity of $g$ give +\begin{equation} +S(\bar\rho)\le\sum_{j=1}^m S(\bar\rho_j) +\le\sum_{j=1}^m g(z_j) +\le m g\!\left(\frac{\sum_jz_j}{m}\right). +\end{equation} +The zero-occupation case follows by continuity. Since $g$ is strictly increasing on nonnegative arguments, inversion is valid. +\end{proof} +For the first inequality, a decoder may choose which bit to read only after storage. It is not assumed that all bits can be read jointly with the same error. Conversely, a lower bound for individual requested bits does not provide a decoder for the complete string. Replacing one contract with the other would change the problem. + +The bound also does not include the phase-registered branch requirement. Approximate query recovery and approximate coherent covariance are different losses. An eventual joint design should satisfy both the information bound and a suitably chosen control-error constraint. The formula does not justify interpreting a continuous optical amplitude as an unlimited collection of readable bits. + +\begin{figure}[htbp] +\centering\includegraphics[width=0.9\textwidth]{query_energy_bound.pdf} +\caption{Necessary mean photon number for a two-mode memory with 20 independent requested bits. Each requested bit must have error at most the horizontal-axis value. The curve is an entropy lower bound only; no code meeting the curve is asserted.} +\end{figure} + +\section{Resonance geometry: when several modes act like only one} +The exact energy-conservation interpretation relied on degenerate mode frequencies. Total photon number and physical energy need not be proportional in a realistic multimode device. This distinction gives an additional obstruction that the phrase ``dense light'' should not conceal. + +\subsection{An exact nonresonance obstruction} +For positive mode frequencies $\omega_1,\ldots,\omega_m$, let +\begin{equation} +H=\sum_{j=1}^m\hbar\omega_j\widehat n_j. +\end{equation} +Its number-basis energy degeneracies, rather than $g_m(n)$, are the relevant bins when the contract is $[U_g,H]=0$. +\begin{proposition}[Rationally independent frequencies]\label{prop:nonresonance} +If $\omega_1,\ldots,\omega_m$ are rationally independent, every number-basis energy eigenvalue is nondegenerate. Consequently a phase-registered logical representation with a nonabelian image cannot be implemented by exactly energy-preserving gates on this register alone, at any finite energy budget. +\end{proposition} +\begin{proof} +Equality of energies of two number states gives +$\sum_j(n_j-n'_j)\omega_j=0$, an integer relation. Rational independence implies $n_j=n'_j$ for every $j$. Thus an energy-preserving unitary is diagonal in the number basis, and any two such unitaries commute. Exact intertwining by an isometry transfers this commutation relation to the logical image. A nonabelian logical image is therefore impossible. +\end{proof} +The conclusion is not that nondegenerate cavities cannot compute. It says that computation which changes their energy eigenstate populations must involve energy exchange, a control system, degeneracies in a larger system, or a relaxation of this exact contract. All of those are legitimate resources. None was included for free in the register-only theorem. + +If the frequencies are instead commensurate, $\omega_j=c_j\omega_0$ for positive integers $c_j$, the energy level $\ell\hbar\omega_0$ has dimension +\begin{equation} +g_{\boldsymbol c}(\ell)=\#\{\boldsymbol n\in\N^m:\textstyle\sum_jc_jn_j=\ell\} +=[z^\ell]\prod_{j=1}^m(1-z^{c_j})^{-1}. +\end{equation} +The general Hamiltonian version of the packing theorem applies directly with these degeneracies. Thus frequency ratios supply another design variable: energy resonance determines the sizes of the indivisible logical blocks that can be hosted. + +\subsection{A gap-sensitive, two-gate stability bound} +A small average energy change is not by itself a small energy-conservation defect. A state can have zero mean energy drift while a unitary rearranges energy amplitudes substantially. The following uses an explicit matrix commutator instead. + +Let $H$ act on a finite-dimensional register with a nondegenerate spectrum and minimum distinct-level gap $\Delta>0$. For unitaries $U_A,U_B$, define +\begin{equation} +\eta_A=\norm{[H,U_A]}_{\HS},\qquad +\eta_B=\norm{[H,U_B]}_{\HS}. +\end{equation} +Let $A$ be an $M$-cycle and $B$ an adjacent transposition on $M\ge3$ logical labels. Suppose an encoding isometry satisfies +\begin{equation} +\norm{U_AV-VA}_{\rm op}\le\epsilon_A,\qquad +\norm{U_BV-VB}_{\rm op}\le\epsilon_B. +\end{equation} +\begin{proposition}[Energy-gap stability of the commutator obstruction]\label{prop:gapenergy} +Under these assumptions, +\begin{equation}\label{eq:gapenergy} +\sqrt3\le 2(\epsilon_A+\epsilon_B) ++\frac{2(\eta_A+\eta_B)}{\Delta}. +\end{equation} +\end{proposition} +\begin{proof} +Let $D_A$ be the diagonal part of $U_A$ in the energy eigenbasis, and similarly define $D_B$. Every off-diagonal matrix element satisfies +$([H,U_A])_{jk}=(E_j-E_k)(U_A)_{jk}$, so +\begin{equation} +\norm{U_A-D_A}_{\rm op}\le\norm{U_A-D_A}_{\HS}\le\eta_A/\Delta. +\end{equation} +The diagonal contractions $D_A,D_B$ commute. Since $\norm{D_A}_{\rm op}\le1$ and $\norm{U_B}_{\rm op}=1$, +\begin{equation} +\norm{[U_A,U_B]}_{\rm op} +\le 2\norm{U_A-D_A}_{\rm op}+2\norm{U_B-D_B}_{\rm op} +\le 2(\eta_A+\eta_B)/\Delta. +\end{equation} +Expanding both ordered products around their ideal intertwining relations gives +\begin{equation} +\norm{(U_AU_B-U_BU_A)V-V(AB-BA)}_{\rm op} +\le2(\epsilon_A+\epsilon_B). +\end{equation} +Finally $V$ is isometric and $\norm{AB-BA}_{\rm op}=\sqrt3$, as established for the two-generator obstruction. Combining the inequalities proves the claim. +\end{proof} +The estimate concerns a finite spectral window. In a large near-resonant register, $\Delta$ may become small, making the estimate weak. The theorem cannot be extended by simply assuming a uniform positive gap for an infinite collection of incommensurate occupation energies. Nor does the Hilbert--Schmidt commutator bound directly specify gate work or heating. + +\section{The code on the right: program memory is a separate resource} +The poems put a script beside the photonic figure. In the mathematical model, a script is a word in an instruction alphabet. A short alphabet can generate many operations, but the choice of a particular operation still needs information. + +Suppose a program must select any of $|G|$ distinct terminal transformations without ambiguity. A fixed-length classical program register needs at least +\begin{equation} +\lceil\log_2|G|\rceil +\end{equation} +bits. For the full-permutation action on $M$ labels this is $\lceil\log_2(M!)\rceil$, while the data label itself needs $\lceil\log_2M\rceil$ bits. For H6 these are 10 and 3 bits respectively. The two-generator presentation does not encode all 720 transformations in one binary decision: a chosen word has a length and a content. + +Terminal-equivalent words can be identified only when the task observes their final action and nothing else. A word that returns to the identity can still produce observable intermediate outputs. If those outputs are protected, the transcript becomes part of the task and the terminal group element is not a sufficient program statistic. + +There is also a quantum version of the distinction. In a deterministic programmable processor, pure programs implementing inequivalent unitaries exactly must be orthogonal \cite{nielsen}. A brief proof is instructive. If a fixed processor implements +\begin{equation} +\mathcal P(\ket{\psi}\ket{p_U})=U\ket{\psi}\ket{q_U},\qquad +\mathcal P(\ket{\phi}\ket{p_V})=V\ket{\phi}\ket{q_V}, +\end{equation} +then preservation of inner products implies +\begin{equation} +\ip{p_U}{p_V}I=\ip{q_U}{q_V}U^\dagger V. +\end{equation} +If $U^\dagger V$ is not scalar, both program overlaps must vanish. The output program being independent of the input data follows from exact unitary action and linearity. Thus a finite program register cannot select every element of a continuous universal gate family exactly in this model. This is not a new theorem of ORYNTHRA-H6; it is a boundary condition for interpreting its universal-control corollary. + +A fixed analog device with externally chosen continuous controls is not a counterexample, because the control specification and precision were not supplied by a finite exact program register. The same bookkeeping applies to a purported infinitely intricate ``angelic code'': the grammar, constants, phase precision, and selected instructions are resources, not free mathematical decoration. + +\section{Noise, loss, and what the H6 register cannot do} +\subsection{Exact covariance does not imply error correction} +A code can possess an elegant symmetry and still have no protection against loss. The explicit H6 code occupies the complete subspace +\begin{equation} +\mathcal C_{H6}=\spanof\{\ket{0,0},\ket{4,0},\ket{3,1},\ket{2,2},\ket{1,3},\ket{0,4}\}. +\end{equation} +Let $P$ project onto this subspace and $a_1$ annihilate a photon in the first mode. A necessary exact quantum error-correction condition for an error family containing $a_1$ is that $P a_1^\dagger a_1P$ be a scalar multiple of $P$. This is the standard error-correction criterion \cite{knill}. + +Here $a_1^\dagger a_1=\widehat n_1$ has expectation zero in the vacuum and four in $\ket{4,0}$, both in the code subspace. The condition fails. Therefore the given H6 code is not an exact arbitrary-state one-photon-loss-correcting code. The calculation is a falsification of a possible overclaim, not a numerical optimization failure. + +Some loss events leave the occupied number sectors and may be detectable by a suitable measurement, but detectability of part of the noise is not correction of an arbitrary encoded superposition. The vacuum component, no-jump evolution, mode information leaked to the environment, and recovery map must all be analyzed. Recent covariant-bosonic-code research studies precisely the nontrivial relation between symmetry and error protection \cite{denys,stamand}. + +\subsection{Why passive linear optics is insufficient as an automatic implementation} +In two modes, passive linear optics acts through the symmetric powers of its mode transformation on fixed-number sectors. It does not supply an arbitrary independently chosen $U(n+1)$ transformation in every $n$-photon sector. The packing theorem deliberately permits a larger class of gates. + +Consequently $U_\sigma=H_6P_\sigma H_6^\top$ is an explicit mathematical target matrix, not an optical circuit compiled to beamsplitters. Establishing a physical implementation requires a specified control Hamiltonian, a controllability proof for the relevant sectors, gate synthesis, preparation, readout, and a noise model. Photon conservation alone does not provide those ingredients. Conversely, imposing a fixed optical representation converts the free packing problem into a multiplicity-matching problem for that actual representation. + +\subsection{An honest physical resource ledger} +The register-only resource vector may be written +\begin{equation} +\mathcal R=(m,K,\bar N,M,R,\defect). +\end{equation} +An engineering resource vector must add mode frequencies and volume, phase-reference state, control Hamiltonians and their bounds, write/read time, program storage, error probability, noise channel, correction overhead, and reset conditions. These entries are not determined by the six-column encoding matrix. + +Stored excitation energy $\hbar\omega\bar N$ is different from energy dissipated in one gate, and both are different from the minimum work of resetting a memory. For a degenerate classical register in contact with a heat bath at temperature $T$, quasistatic reset of a known distribution to a pure standard state has the familiar ideal entropy cost $k_BT\ln2$ per bit of entropy removed. Nondegenerate quantum registers require the appropriate free-energy and correlation accounting. No reset-work formula is used as a theorem about the power consumption of H6. Landauer's original analysis concerns the thermodynamics of logically irreversible operations, not the energy of each mathematical symbol \cite{landauer}. + +Compression does not create energy. It may free degrees of freedom, reduce communication, or reduce a task's required memory. Whether a physical implementation saves work depends on its full cycle. A device that externalizes all hard work to an uncounted phase reference or control processor has not demonstrated a net advantage. + +\section{Reproducible experiments and numerical results} +The accompanying implementation uses finite synthetic tasks, exact integer combinatorics, exact symbolic identities where practical, and floating-point matrix checks where enumeration is inexpensive. It is a reference implementation for the stated theory, not a competitive general-purpose compressor or a hardware benchmark. + +\subsection{Implemented modules} +The module \texttt{code/orynthra.py} supplies prime-field row reduction, observation closure, induced quotient dynamics, finite partition refinement, six-wing branch generators, photon-sector counting, cutoff searches, ordinary storage mean energy, exact small-instance irrep packing, maximum partial packing, the H6 encoding matrix, and the entropy-based query-energy bound. + +The theory permits finite fields $\F_q$; the code's linear algebra uses prime fields $\F_p$ only. Its integer arithmetic uses finite machine integers for matrix operations. Tests use small moduli and dimensions, not adversarially large integers near overflow. The packing functions receive irreducible dimensions as input; they do not infer a character table or decompose an arbitrary supplied group representation. + +The backtracking and dynamic-programming packing routines are exact on their input instances, but no polynomial-time complexity guarantee is claimed. The mean-energy optimization for a general irreducible profile is proved in the manuscript; only the closed-form storage and symmetric-group means are explicitly implemented in the reference module. Users should not interpret the package as a complete industrial compiler for all variants of the mathematical model. + +\subsection{Validation layers} +Exact symbolic checks verify $H_6^\top H_6=I_6$ and the simplex Gram identity. Exhaustive permutation checks evaluate all $720$ elements of $S_6$ on the six-dimensional occupied code subspace. Their extensions to the rest of the Fock space are trivial representations by construction, so the unused dimensions need not be enumerated. + +The observed maximum entrywise Gram residual was approximately $4.45\times10^{-16}$. The maximum operator-norm covariance residual was below $4.0\times10^{-16}$, the maximum number-commutator residual below $3.1\times10^{-16}$, and the maximum unitarity residual below $7.4\times10^{-16}$. These are floating-point consistency checks; the algebraic proof and exact Gram identities are the sources of exactness. + +The multiplicity trap with logical profile $(1,1,4,4)$ and sector capacities $(1,2,3,4)$ has maximum packable dimension six. The predicted normalized covariance defect is $0.8$. Direct enumeration of all 120 permutations of the underlying $S_5$ action produced $0.7999999999999994$. This checks a case in which total dimension and largest-sector checks both fail to detect the obstruction. + +The test suite additionally compares finite-field quotient ranks with brute-force future partitions, checks coordinate changes in multidomain atlases, enumerates all 64 subsets of the six-wing generators at several sizes, exercises finite-horizon failure, and compares packing routines against brute-force search on randomized small cases. The Cayley-graph spectral gap is a numerical eigensolver output, not an interval-certified constant. Reproducing an eigenvalue within floating-point tolerance is not a proof of its exact decimal expansion. + +\subsection{Selected two-mode frontiers} +\begin{center} +\begin{tabular}{rrrr} +\toprule +Labels $M$ & Storage cutoff & Full-permutation cutoff & Full-$U(M)$ cutoff\\ +\midrule +6 & 2 & 4 & 5\\ +64 & 10 & 62 & 63\\ +256 & 22 & 254 & 255\\ +4096 & 90 & 4094 & 4095\\ +1,048,576 & 1447 & 1,048,574 & 1,048,575\\ +\bottomrule +\end{tabular} +\end{center} +The last row compares exact formulas; it does not enumerate the symmetric group on a million labels or simulate a million-photon optical device. The cardinalities are dimensions of abstract distinguishable message sets. + +\subsection{Reproduction commands} +From the package root, with the dependencies installed, run +\begin{lstlisting} +python code/reproduce.py +python -m pytest -q tests +python code/make_figures.py +\end{lstlisting} +The first command regenerates the CSV tables, matrix checks, environment record, and verification summary. The second runs regression tests. The third regenerates the five manuscript figures. A LaTeX installation can rebuild the PDF using +\begin{lstlisting} +cd manuscript +latexmk -pdf -interaction=nonstopmode ORYNTHRA_H6.tex +\end{lstlisting} +The delivered PDF is already built. Rendering and inspection records are included separately from mathematical test results. Rendering verifies document layout; it does not verify proofs. + +\section{An adversarial novelty audit} +The instruction to seek ``no prior art'' is interpreted as an objective to avoid mere renaming, not as permission to assert a universal negative. A finite literature search cannot prove that no equivalent theorem appears in any paper, thesis, book, repository, or unpublished work. The following distinctions are therefore part of the research result. + +\subsection{What is explicitly inherited} +Counting obstructions to all-input shortening and statistical source coding are classical \cite{shannon}. Behavioral equivalence and observable-subspace closure belong to established realization and automata methods \cite{petreczky}. Measurement-relative quantum compression is an existing problem, with nontrivial algebraic structure \cite{bluhm}. The relation between bosonic compression and energy has been investigated directly \cite{rallan}. + +Covariant encoding is not a new premise. Denys and Leverrier construct encodings through logical and physical representations and analyze bosonic realizations \cite{denys}. Their intertwining and representation-theoretic framework is a close foundation for the physical layer here. St-Amand, Burelle, and Royer's September 2026 preprint develops error correction within a covariant multimode framework, including reducible logical representations and simplex-related code examples \cite{stamand}. The terms ``covariant bosonic code'' and ``simplex code'' therefore cannot be claimed as inventions of this manuscript. + +Reference frames and superselection restrictions are established issues \cite{bartlett,descamps}. Random-access entropy bounds and exact programmable-processor limits are also prior results \cite{nayak,nielsen}. Tensor-product fusion and the singlet--triplet decomposition used above are standard representation theory. The manuscript's proofs make the construction self-contained; self-contained presentation does not establish historical originality. + +A further September 2026 preprint by Rizzo, Lami, Eisert, and Leone studies universal quantum coding through Schur--Weyl decompositions and symmetry-resolved errors \cite{rizzo}. It addresses noisy communication and entanglement distillation, not our freely assigned conserved-energy sectors. Its use of irreducible spaces and packing-related recovery criteria nevertheless rules out claiming that representation-theoretic ``universal coding'' is itself a new direction. Thornton's algebraic-diversity framework also combines group averaging, signal symmetry, and structural information capacity \cite{thornton}. These are relevant neighboring mechanisms; a name or a general claim that information has structure is not sufficient novelty. + +\subsection{The precise candidate contributions} +The strongest candidate is the joint finite resource statement: after a future-compatible semantic quotient has been fixed, optimize a freely chosen number-preserving physical representation by packing indivisible logical irreducible copies into actual energy degeneracies, and express the optimal phase-registered covariance defect by the maximum packable logical dimension. The exact equality in the deficit law is more specific than a generic observation that symmetry restricts encodings. + +The natural-$S_M$ specialization makes the resource consequence explicit: two primitive branches can change a two-mode register's cutoff from the storage scale $\sqrt M$ to $M-2$, with an exactly flat group-averaged defect below that threshold. The multiplicity counterexample shows why a largest-irrep test alone is insufficient. The six-wing activation family supplies a separate semantic mechanism in which the final allowed instruction exposes an arbitrarily large number of latent task dimensions. Their combination forms a task-to-spectrum design workflow. + +The freely optimized physical representation is an important distinction from proposals that fix the optical action in advance. It makes our mathematical optimum broad and exactly characterizable, but physically less restrictive. It is not evidence that the design outperforms an existing implementable code. The query-energy and program-storage ledgers then prevent an apparent compression gain from being moved into an uncounted decoder, controller, or reference. + +No directly matching statement of the entire packing--deficit--task construction was located in the targeted search. This is a bounded search observation, not proof of worldwide priority. Some statements may be familiar consequences of representation theory even when their exact packaging is not located by keyword search. Independent expert review should focus first on that possibility and on equivalence to existing covariant-encoding optimizations. + +\subsection{A recent thematic neighbor, not a premise} +An October 2026 unreviewed preprint by Satinover discusses algebra-relative branch multiplicity, record compression, and logical recovery \cite{satinover}. It is conceptually relevant to any proposed connection between observable distinctions and branches. Its existence further weakens any claim that this general idea space is empty. The present manuscript does not rely on its claims: its branches are finite executable task words, and its principal resource theorem is an irrep allocation and covariance optimization, not a statement about the number of physical worlds. + +\subsection{Search coverage and gaps} +The audit examined targeted searches for task-relative compression, minimal realization, energy-constrained bosonic memory, covariant encoding and multiplicities, irreducible energy sectors, permutation representations, packing, simplex encodings, reference frames, random-access bounds, and programmable gates. The companion audit file records the query families, sources, claim classifications, and date. + +This was not a systematic review of every publication database, a theorem-equivalence search, a patent clearance, or an independent priority investigation. A distinctive project name and absence of exact-name search results have no bearing on mathematical novelty. ``World first'' is therefore not assigned to any result in this release. + +\section{Experimental directions beyond the proved core} +A speculative extension is useful only if it specifies a mathematical object and a test that could fail. The following directions are proposals, not completed results. + +\subsection{Loss-correcting spectral packing} +Let $\{E_a\}$ be a finite family of modeled errors, and retain the branch intertwining constraints. Seek the smallest energy budget admitting an isometry $V$ and matrices $\lambda_{ab}$ such that +\begin{equation} +U_gV=VR_g,\qquad V^\dagger E_a^\dagger E_bV=\lambda_{ab}I_M. +\end{equation} +Irrep packing remains necessary, but is no longer sufficient: the H6 loss calculation is an explicit counterexample to sufficiency. The new problem is to characterize which energy-sector allocations admit an error Gram matrix of the required scalar form. This is a constrained subspace-design problem with a sharply specified success condition, not a proposed noise cure by naming a symmetry. + +One experimental strategy is to fix a small branch group, a finite photon cutoff, and a photon-loss channel, then optimize over intertwiners inside permitted multiplicity spaces. A legitimate claim of progress would report recovery fidelity and energy against existing codes under identical noise and resource assumptions. The current package contains no such benchmark. + +\subsection{Reference-inclusive photonic compression} +Replace the free phase reference by an explicit reference state $\sigma_R$ and demand global conservation of register-plus-reference energy. Charge the initial energy, coherence, correlations after use, and reset or reuse error of that reference. The question is whether the vacuum-plus-simplex register retains any net resource advantage over a fixed-sector register once these terms are included. + +A concrete optimization would minimize +\begin{equation} +\tr[(H_B+H_R)\rho_{BR}] +\end{equation} +subject to a preparation protocol, query success, branch accuracy, global conservation, and a bound on reference disturbance. Neither the current weighted packing theorem nor the mean-energy formula solves this expanded problem, because the allowed global spectrum and reusable reference constraints have changed. + +\subsection{Action-aware rate--distortion and adaptive task atlases} +For approximate protected observations, replace equality by a declared loss $\ell_d$ and a distribution over states and future paths. An action-aware distortion functional could take the form +\begin{equation} +\mathcal L(c,\widehat f,\widehat T)= +\mathbb E_{x,p}\bigl[\ell_{e(p)}(f_{e(p)}(T_px),\widehat f_{e(p)}(\widehat T_pc(x)))\bigr]. +\end{equation} +The expectation, adversarial path family, horizon, and side information must be specified. A low error on sampled paths does not establish low error on all future paths. The six-wing lock suggests a stress test: hide a rare branch that unlocks previously irrelevant coordinates and measure how quickly a learned representation fails or expands. + +This direction could connect task semantics to machine-learning representations across text, images, control states, and sensor data. It would require actual encoders and datasets. The current word ``multidomain'' means an explicit mathematical atlas, not a trained multimodal model or a demonstrated universal media codec. + +\subsection{Fixed hardware, local control, and representation geometry} +Given a real device, the physical representation $U$ is not free. One can instead study the multiplicity overlap +\begin{equation} +\sum_\alpha d_\alpha\min(a_\alpha,c_\alpha(U)) +\end{equation} +and its dependence on a controllable Hamiltonian family, fabrication-induced splittings, and accessible ancillas. The exact covariance proof already identifies this overlap for a fixed representation. The remaining challenge is to determine which representations are reachable under the device's control constraints and at what gate complexity. + +A potentially useful geometry is not an aesthetic embedding of words, but a feasible-region geometry in the variables $(\text{distortion},\text{covariance},\bar N,K,m,\text{reference cost})$. Proving convexity, discontinuities, or separation gaps under a declared relaxation would be a substantive extension. None is inferred merely from the appearance of a simplex in H6. + +\section{Conclusion: a memory of futures, not just of states} +The five poems have been converted into a connected sequence of exact questions. Which raw distinctions can a protected future reveal? What is the minimal quotient retaining them? Which logical transformations must remain possible? Which irreducible blocks do those transformations require? Where can those blocks fit in a conserved-energy spectrum? What error is unavoidable when they cannot fit? + +The result is a compression mechanism with two independent obstructions. Future observations can prevent semantic deletion; future coherent operations can prevent physical fragmentation. A small alphabet of branches can trigger either obstruction, even when a static picture of the current state looks simple. The six-label photonic realization then makes the construction explicit: a common vacuum amplitude completes a five-simplex into six orthogonal codewords, while the branch action resides in an energy-degenerate standard representation. + +This gives the android-angel theme a precise technical interpretation. The ``kind'' encoder preserves its declared obligations. The ``unseen architecture'' is an action on quotient states. The ``heart'' is a counted bosonic register. The six names index exact simplex vertices. The ``world branches'' are permitted continuations of a finite process. The theme generated design questions; the proofs, resource assumptions, and counterexamples decide what is true. + +The strongest defensible message is not that light can remember everything for free. It is that the structure of the futures a memory must support can matter as much as the amount of information it currently holds. The packing and deficit formulas make that claim calculable in the stated model. + +\appendix +\section{A complete two-domain worked example} +Consider two domains $A,B$ over $\F_2^3$ and the involution +\begin{equation} +J=\begin{pmatrix}0&1&0\\1&0&0\\0&0&1\end{pmatrix}. +\end{equation} +Let the edge $A\to B$ be $J$, the return edge $B\to A$ also be $J$, and observe the first coordinate in each domain. The round trip is identity, but the observation in $B$ pulls back to the second coordinate in $A$. Thus +\begin{equation} +W_A=W_B=\spanof\{(1,0,0),(0,1,0)\}. +\end{equation} +The exact quotient has four labels and forgets only the third coordinate. Choose $C_A=C_B=\begin{pmatrix}1&0&0\\0&1&0\end{pmatrix}$. The induced edge in quotient coordinates is the two-by-two coordinate swap. + +If a loop at $A$ swapping coordinates two and three is added, the pullback closure now reaches all three coordinate functionals. Both domains require eight quotient labels. The third coordinate was not intrinsically irrelevant; it was irrelevant relative to the earlier transition contract. + +Now remove that extra loop again and change the coordinate chart at $B$ by $x'_B=Jx_B$. The edge $A\to B$ becomes identity in the new chart, while the protected observation at $B$ becomes its second coordinate. The quotient still has four labels. This distinguishes a genuine new branch from a relabeling of a domain: the former can change the closure; the latter cannot when all maps and observations are transformed consistently. + +A four-label quotient does not automatically carry the natural action of $S_4$. The group depends on the available transformations. Linear maps on $\F_2^2$ fix the zero vector and cannot generate every permutation of its four labels. Applying the full-$S_M$ frontier to a linear quotient therefore requires adding the corresponding arbitrary reversible label transformations as a separate control contract. This manuscript uses that frontier as a conditional benchmark, not as a claim that linear atlas edges already generate all permutations. + +\section{Proof audit: potential loopholes and their disposition} +\subsection{Could a code split one irreducible block between sectors?} +An equivariant isometry can spread a logical irreducible vector across several physical copies of the same irreducible representation. Each physical copy must nevertheless exist in a sector. Schur's lemma places the freedom in the multiplicity space; it does not create an irreducible copy by joining incomplete lower-dimensional pieces. The feasibility and weighted-mean proofs explicitly allow this multiplicity-space superposition. + +\subsection{Could the averaged covariance deficit be made smaller by a clever rotation?} +The group twirl of any isometry is an intertwiner and remains an operator-norm contraction. Its rank is at most the total matched irrep dimension. Therefore its squared Hilbert--Schmidt norm cannot exceed that dimension. Rotating unmatched blocks cannot change their representation type. Conversely, fully matching every shared copy and embedding the residual logical complement into a disjoint-type physical complement attains the bound. These two directions are both needed for the exact equality. + +\subsection{Could total capacity fix a missing sector?} +No under the exact contract. The $(1,1,4,4)$ example has the correct total capacity and a sufficiently large largest sector, yet it lacks space for both four-dimensional copies. The deficit theorem counts all copies rather than checking only the largest block. + +\subsection{Could an approximate physical group avoid the theorem?} +Possibly. The exact deficit theorem optimizes over physical maps that satisfy the group law exactly. Replacing that hypothesis by approximate multiplication, state-dependent controls, measurements, adaptive resets, or dissipative channels defines another problem. The two-generator commutator estimate requires less structure and survives some such relaxations, but it is not a solution to every approximate-control model. + +\subsection{Could the vacuum hide six messages without a reference?} +No. Phase averaging yields overlapping mixed states. The full H6 Gram matrix is identity only before this loss of cross-sector coherence. The five-simplex by itself is not an orthogonal six-message register. Preparation and decoding have to make use of the extra vacuum dimension and its relative phase. + +\subsection{Could the semantic quotient compress arbitrary unknown quantum data?} +No. It was defined on classical raw labels. A coherent embedding of quotient labels begins after that semantic choice. If raw quantum states that share the quotient are to remain distinguishable globally, the omitted distinctions must survive in another subsystem. The garbage-register bound makes this explicit. + +\subsection{Could a task-preservation contract establish general kindness?} +No. It preserves exactly the declared observations. A bad, incomplete, or biased task specification remains bad, incomplete, or biased after exact compression. The first poem motivates an engineering obligation to protect declared distinctions, not an automatic ethical guarantee. + +\section{Release scope and completion ledger} +The finite core consists of precise definitions, statements with proofs, explicit counterexamples, a reference implementation, synthetic data, and reproducibility artifacts. Within that enumerated scope, every manuscript theorem has a supplied proof and every delivered regression test has been run. This is a completion statement about the delivered tasks, not a probability that all arguments are correct. + +No percentage is assigned to worldwide novelty, correctness after independent review, hardware feasibility, or potential scientific impact. There is no defined population or calibrated statistical model from which such a percentage could be inferred. Those fields remain unverified. The accompanying machine-readable claims ledger separates proved-in-manuscript statements, numerical checks, inherited foundations, candidate originality, and speculative extensions. + +No laboratory experiment, general media-compression benchmark, fault-tolerance demonstration, patent search, external peer review, or proof-assistant certificate is included. The package is intended to make those next assessments possible without depending on the earlier chat. + +\begin{thebibliography}{99} +\bibitem{shannon} +C.~E. Shannon. A mathematical theory of communication. \emph{Bell System Technical Journal} 27 (1948), 379--423 and 623--656. First-part DOI: \href{https://doi.org/10.1002/j.1538-7305.1948.tb01338.x}{10.1002/j.1538-7305.1948.tb01338.x}. + +\bibitem{petreczky} +M. Petreczky. Realization theory for linear and bilinear switched systems: A formal power series approach. Part I: Linear switched systems. \emph{ESAIM: Control, Optimisation and Calculus of Variations} 17(2) (2011), 410--445. \href{https://doi.org/10.1051/cocv/2010014}{doi:10.1051/cocv/2010014}. + +\bibitem{bluhm} +A. Bluhm, L. Rauber, and M. M. Wolf. Quantum compression relative to a set of measurements. \emph{Annales Henri Poincar\'e} 19 (2018), 1891--1937. \href{https://arxiv.org/abs/1708.04898}{arXiv:1708.04898}. + +\bibitem{rallan} +L. Rallan and V. Vedral. Energy requirements for quantum data compression and 1-1 coding. \emph{Physical Review A} 68 (2003), 042309. \href{https://arxiv.org/abs/quant-ph/0208039}{arXiv:quant-ph/0208039}. + +\bibitem{denys} +A. Denys and A. Leverrier. Quantum error-correcting codes with a covariant encoding. \emph{Physical Review Letters} 133 (2024), 240603. \href{https://doi.org/10.1103/PhysRevLett.133.240603}{doi:10.1103/PhysRevLett.133.240603}. \href{https://arxiv.org/abs/2306.11621}{arXiv:2306.11621}, version 5, 7 February 2025. + +\bibitem{stamand} +F. St-Amand, J.-P. Burelle, and B. Royer. Error correction properties of covariant bosonic encodings. \href{https://arxiv.org/abs/2609.26660}{arXiv:2609.26660}, version 1, 22 September 2026. Preprint. + +\bibitem{bartlett} +S. D. Bartlett, T. Rudolph, and R. W. Spekkens. Reference frames, superselection rules, and quantum information. \emph{Reviews of Modern Physics} 79 (2007), 555--609. \href{https://doi.org/10.1103/RevModPhys.79.555}{doi:10.1103/RevModPhys.79.555}. \href{https://arxiv.org/abs/quant-ph/0610030}{arXiv:quant-ph/0610030}. + +\bibitem{descamps} +E. Descamps, A. Saharyan, A. Chivet, A. Keller, and P. Milman. Unified framework for bosonic quantum information encoding, resources and universality from superselection rules. \href{https://arxiv.org/abs/2501.03943}{arXiv:2501.03943}, version 5, 12 August 2025. + +\bibitem{nayak} +A. Nayak. Optimal lower bounds for quantum automata and random access codes. \emph{Proceedings of the 40th Annual Symposium on Foundations of Computer Science} (1999), 369--376. \href{https://arxiv.org/abs/quant-ph/9904093}{arXiv:quant-ph/9904093}. + +\bibitem{nielsen} +M. A. Nielsen and I. L. Chuang. Programmable quantum gate arrays. \emph{Physical Review Letters} 79 (1997), 321--324. \href{https://doi.org/10.1103/PhysRevLett.79.321}{doi:10.1103/PhysRevLett.79.321}. \href{https://arxiv.org/abs/quant-ph/9703032}{arXiv:quant-ph/9703032}. + +\bibitem{knill} +E. Knill and R. Laflamme. Theory of quantum error-correcting codes. \emph{Physical Review A} 55 (1997), 900--911. \href{https://doi.org/10.1103/PhysRevA.55.900}{doi:10.1103/PhysRevA.55.900}. \href{https://arxiv.org/abs/quant-ph/9604034}{arXiv:quant-ph/9604034}. + +\bibitem{landauer} +R. Landauer. Irreversibility and heat generation in the computing process. \emph{IBM Journal of Research and Development} 5(3) (1961), 183--191. \href{https://doi.org/10.1147/rd.53.0183}{doi:10.1147/rd.53.0183}. + +\bibitem{satinover} +J. Satinover. Algebra-relative branch multiplicity in decoherent histories: Orbit reduction, record compression, and logical recovery. \emph{Preprints.org}, 2 October 2026. \href{https://doi.org/10.20944/preprints202610.0131.v1}{doi:10.20944/preprints202610.0131.v1}. Unreviewed preprint; included as a thematic neighbor, not as a premise of the proofs. +\bibitem{rizzo} +J. Rizzo, L. Lami, J. Eisert, and L. Leone. Universal quantum coding. \href{https://arxiv.org/abs/2609.38038}{arXiv:2609.38038}, 29 September 2026. Preprint. + +\bibitem{thornton} +M. A. Thornton. Algebraic diversity: Principles of a group-theoretic approach to signal processing. \href{https://arxiv.org/abs/2604.19983}{arXiv:2604.19983}, first submitted 21 April 2026. Preprint; public versions inspected on 9 October 2026. +\end{thebibliography} +\end{document} diff --git a/manuscript/references.json b/manuscript/references.json new file mode 100644 index 0000000000000000000000000000000000000000..8c05c74d0458e9f9cf9a408210f985ee0e209a0e --- /dev/null +++ b/manuscript/references.json @@ -0,0 +1,111 @@ +[ + { + "key": "shannon", + "latex_entry": "C.~E. Shannon. A mathematical theory of communication. \\emph{Bell System Technical Journal} 27 (1948), 379--423 and 623--656. First-part DOI: \\href{https://doi.org/10.1002/j.1538-7305.1948.tb01338.x}{10.1002/j.1538-7305.1948.tb01338.x}.", + "links": [ + "https://doi.org/10.1002/j.1538-7305.1948.tb01338.x" + ] + }, + { + "key": "petreczky", + "latex_entry": "M. Petreczky. Realization theory for linear and bilinear switched systems: A formal power series approach. Part I: Linear switched systems. \\emph{ESAIM: Control, Optimisation and Calculus of Variations} 17(2) (2011), 410--445. \\href{https://doi.org/10.1051/cocv/2010014}{doi:10.1051/cocv/2010014}.", + "links": [ + "https://doi.org/10.1051/cocv/2010014" + ] + }, + { + "key": "bluhm", + "latex_entry": "A. Bluhm, L. Rauber, and M. M. Wolf. Quantum compression relative to a set of measurements. \\emph{Annales Henri Poincar\\'e} 19 (2018), 1891--1937. \\href{https://arxiv.org/abs/1708.04898}{arXiv:1708.04898}.", + "links": [ + "https://arxiv.org/abs/1708.04898" + ] + }, + { + "key": "rallan", + "latex_entry": "L. Rallan and V. Vedral. Energy requirements for quantum data compression and 1-1 coding. \\emph{Physical Review A} 68 (2003), 042309. \\href{https://arxiv.org/abs/quant-ph/0208039}{arXiv:quant-ph/0208039}.", + "links": [ + "https://arxiv.org/abs/quant-ph/0208039" + ] + }, + { + "key": "denys", + "latex_entry": "A. Denys and A. Leverrier. Quantum error-correcting codes with a covariant encoding. \\emph{Physical Review Letters} 133 (2024), 240603. \\href{https://doi.org/10.1103/PhysRevLett.133.240603}{doi:10.1103/PhysRevLett.133.240603}. \\href{https://arxiv.org/abs/2306.11621}{arXiv:2306.11621}, version 5, 7 February 2025.", + "links": [ + "https://doi.org/10.1103/PhysRevLett.133.240603", + "https://arxiv.org/abs/2306.11621" + ] + }, + { + "key": "stamand", + "latex_entry": "F. St-Amand, J.-P. Burelle, and B. Royer. Error correction properties of covariant bosonic encodings. \\href{https://arxiv.org/abs/2609.26660}{arXiv:2609.26660}, version 1, 22 September 2026. Preprint.", + "links": [ + "https://arxiv.org/abs/2609.26660" + ] + }, + { + "key": "bartlett", + "latex_entry": "S. D. Bartlett, T. Rudolph, and R. W. Spekkens. Reference frames, superselection rules, and quantum information. \\emph{Reviews of Modern Physics} 79 (2007), 555--609. \\href{https://doi.org/10.1103/RevModPhys.79.555}{doi:10.1103/RevModPhys.79.555}. \\href{https://arxiv.org/abs/quant-ph/0610030}{arXiv:quant-ph/0610030}.", + "links": [ + "https://doi.org/10.1103/RevModPhys.79.555", + "https://arxiv.org/abs/quant-ph/0610030" + ] + }, + { + "key": "descamps", + "latex_entry": "E. Descamps, A. Saharyan, A. Chivet, A. Keller, and P. Milman. Unified framework for bosonic quantum information encoding, resources and universality from superselection rules. \\href{https://arxiv.org/abs/2501.03943}{arXiv:2501.03943}, version 5, 12 August 2025.", + "links": [ + "https://arxiv.org/abs/2501.03943" + ] + }, + { + "key": "nayak", + "latex_entry": "A. Nayak. Optimal lower bounds for quantum automata and random access codes. \\emph{Proceedings of the 40th Annual Symposium on Foundations of Computer Science} (1999), 369--376. \\href{https://arxiv.org/abs/quant-ph/9904093}{arXiv:quant-ph/9904093}.", + "links": [ + "https://arxiv.org/abs/quant-ph/9904093" + ] + }, + { + "key": "nielsen", + "latex_entry": "M. A. Nielsen and I. L. Chuang. Programmable quantum gate arrays. \\emph{Physical Review Letters} 79 (1997), 321--324. \\href{https://doi.org/10.1103/PhysRevLett.79.321}{doi:10.1103/PhysRevLett.79.321}. \\href{https://arxiv.org/abs/quant-ph/9703032}{arXiv:quant-ph/9703032}.", + "links": [ + "https://doi.org/10.1103/PhysRevLett.79.321", + "https://arxiv.org/abs/quant-ph/9703032" + ] + }, + { + "key": "knill", + "latex_entry": "E. Knill and R. Laflamme. Theory of quantum error-correcting codes. \\emph{Physical Review A} 55 (1997), 900--911. \\href{https://doi.org/10.1103/PhysRevA.55.900}{doi:10.1103/PhysRevA.55.900}. \\href{https://arxiv.org/abs/quant-ph/9604034}{arXiv:quant-ph/9604034}.", + "links": [ + "https://doi.org/10.1103/PhysRevA.55.900", + "https://arxiv.org/abs/quant-ph/9604034" + ] + }, + { + "key": "landauer", + "latex_entry": "R. Landauer. Irreversibility and heat generation in the computing process. \\emph{IBM Journal of Research and Development} 5(3) (1961), 183--191. \\href{https://doi.org/10.1147/rd.53.0183}{doi:10.1147/rd.53.0183}.", + "links": [ + "https://doi.org/10.1147/rd.53.0183" + ] + }, + { + "key": "satinover", + "latex_entry": "J. Satinover. Algebra-relative branch multiplicity in decoherent histories: Orbit reduction, record compression, and logical recovery. \\emph{Preprints.org}, 2 October 2026. \\href{https://doi.org/10.20944/preprints202610.0131.v1}{doi:10.20944/preprints202610.0131.v1}. Unreviewed preprint; included as a thematic neighbor, not as a premise of the proofs.", + "links": [ + "https://doi.org/10.20944/preprints202610.0131.v1" + ] + }, + { + "key": "rizzo", + "latex_entry": "J. Rizzo, L. Lami, J. Eisert, and L. Leone. Universal quantum coding. \\href{https://arxiv.org/abs/2609.38038}{arXiv:2609.38038}, 29 September 2026. Preprint.", + "links": [ + "https://arxiv.org/abs/2609.38038" + ] + }, + { + "key": "thornton", + "latex_entry": "M. A. Thornton. Algebraic diversity: Principles of a group-theoretic approach to signal processing. \\href{https://arxiv.org/abs/2604.19983}{arXiv:2604.19983}, first submitted 21 April 2026. Preprint; public versions inspected on 9 October 2026.", + "links": [ + "https://arxiv.org/abs/2604.19983" + ] + } +] diff --git a/requirements-tested.txt b/requirements-tested.txt new file mode 100644 index 0000000000000000000000000000000000000000..a4292cabe62307bb66729493ffc55184fd393f78 --- /dev/null +++ b/requirements-tested.txt @@ -0,0 +1,5 @@ +numpy==2.3.5 +scipy==1.17.0 +sympy==1.14.0 +matplotlib==3.10.8 +pytest==9.0.2 diff --git a/requirements-upload.txt b/requirements-upload.txt new file mode 100644 index 0000000000000000000000000000000000000000..3195f6372a502dc0148d74b461725c5bdf7091c1 --- /dev/null +++ b/requirements-upload.txt @@ -0,0 +1,2 @@ +# Required only for publishing, never for offline verification or planning. +huggingface_hub>=1.0 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..09871a7eca28d40c13387e3cc26afe7261cc6acc --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +numpy>=1.24 +scipy>=1.10 +sympy>=1.12 +matplotlib>=3.7 +pytest>=7.0 diff --git a/run_reproduce.bat b/run_reproduce.bat new file mode 100644 index 0000000000000000000000000000000000000000..4ad25330d1e3784495c26fcaf71b8793b9a9a527 --- /dev/null +++ b/run_reproduce.bat @@ -0,0 +1,37 @@ +@echo off +setlocal +cd /d "%~dp0" +set "OPENBLAS_NUM_THREADS=1" +where py >nul 2>nul +if not errorlevel 1 ( + set "PY=py -3" +) else ( + where python >nul 2>nul + if errorlevel 1 goto no_python + set "PY=python" +) +if not exist verification mkdir verification +call %PY% code\demo.py > verification\demo_output.txt 2>&1 +if errorlevel 1 goto failed +call %PY% code\reproduce.py > verification\reproduce_log.txt 2>&1 +if errorlevel 1 goto failed +call %PY% -m pytest -q tests --junitxml=verification\pytest_results.xml > verification\pytest_output.txt 2>&1 +if errorlevel 1 goto failed +call %PY% code\make_figures.py +if errorlevel 1 goto failed +type verification\demo_output.txt +type verification\pytest_output.txt +echo. +echo Reproduction complete. No files were uploaded. +pause +exit /b 0 +:no_python +echo Python 3 was not found. Install Python and the dependencies in requirements.txt. +pause +exit /b 1 +:failed +echo. +echo Reproduction stopped. Review the logs in verification. +echo Missing dependencies can be installed with: %PY% -m pip install -r requirements.txt +pause +exit /b 1 diff --git a/run_reproduce.sh b/run_reproduce.sh new file mode 100644 index 0000000000000000000000000000000000000000..7b46b3962c2aac62c3b50033c85fd3ae05a54079 --- /dev/null +++ b/run_reproduce.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +set -euo pipefail +cd "$(dirname "$0")" +PYTHON="${PYTHON:-python3}" +export OPENBLAS_NUM_THREADS="${OPENBLAS_NUM_THREADS:-1}" +mkdir -p verification +"$PYTHON" code/demo.py | tee verification/demo_output.txt +"$PYTHON" code/reproduce.py > verification/reproduce_log.txt +"$PYTHON" -m pytest -q tests --junitxml=verification/pytest_results.xml 2>&1 | tee verification/pytest_output.txt +"$PYTHON" code/make_figures.py +printf '\nReproduction complete. See verification/ and data/.\n' diff --git a/tests/test_orynthra.py b/tests/test_orynthra.py new file mode 100644 index 0000000000000000000000000000000000000000..b0cb109d1b7305adb0cc14450931257d61562922 --- /dev/null +++ b/tests/test_orynthra.py @@ -0,0 +1,196 @@ +from __future__ import annotations +import itertools +import sys +from pathlib import Path +from math import comb, sqrt +import numpy as np +import pytest +sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "code")) +from orynthra import * + + +def random_invertible(rng, n, p): + while True: + a = rng.integers(0, p, (n,n)) + if len(rref_mod(a,p)[0]) == n: + return a + + +@pytest.mark.parametrize("p,n", [(2,2), (2,3), (2,4), (3,2), (3,3)]) +def test_linear_closure_against_finite_partition(p,n): + rng = np.random.default_rng(20261009 + p*10+n) + states = list(itertools.product(range(p), repeat=n)) + index = {s:i for i,s in enumerate(states)} + x = np.array(states) + for _ in range(12): + c = rng.integers(0,p,(1,n)) + actions = [random_invertible(rng,n,p) for _ in range(2)] + labels = [tuple(row) for row in (x @ c.T) % p] + maps = [[index[tuple((a @ xx) % p)] for xx in x] for a in actions] + partition = finite_partition(labels,maps) + closure,_ = observable_closure([c], [LinearEdge(0,0,a) for a in actions],p) + basis = closure[0] + assert len(set(partition)) == p ** len(basis) + encoded = (x @ basis.T) % p + for i,j in itertools.product(range(len(states)),repeat=2): + assert (partition[i] == partition[j]) == np.array_equal(encoded[i],encoded[j]) + for a in actions: + b = induced_linear_map(basis,basis,a,p) + assert np.array_equal((basis @ a) % p, (b @ basis) % p) + + +@pytest.mark.parametrize("p", [2,3,5]) +def test_multidomain_gauge_consistency(p): + rng = np.random.default_rng(20261009+p) + n=4 + base = [np.eye(n,dtype=int)[0:1]] + action=random_invertible(rng,n,p) + original,_=observable_closure(base,[LinearEdge(0,0,action)],p) + gauges=[random_invertible(rng,n,p) for _ in range(3)] + inv=[inverse_mod(g,p) for g in gauges] + obs=[(base[0] @ gi)%p for gi in inv] + edges=[] + for d in range(3): + for e in range(3): + edges.append(LinearEdge(d,e,(gauges[e]@inv[d])%p)) + edges.append(LinearEdge(0,0,(gauges[0]@action@inv[0])%p)) + closure,_=observable_closure(obs,edges,p) + for d in range(3): + pulled,_=rref_mod(closure[d]@gauges[d],p) + assert np.array_equal(pulled,original[0]) + for e in edges: + induced_linear_map(closure[e.source],closure[e.target],e.matrix,p) + + +@pytest.mark.parametrize("n", [2,6,7,12,24,36]) +def test_all_six_wing_subsets(n): + actions=six_wing_actions(n) + c=np.eye(n,dtype=int)[0:1] + for mask in range(64): + active=[i for i in range(6) if mask&(1<=M + if k: + assert photon_capacity(m,k-1)=b for a,b in zip(values,values[1:])) + assert values[-1]==0 + + +@pytest.mark.parametrize("call", [lambda: photon_sector(0,1), lambda: photon_capacity(2,-1), + lambda: storage_cutoff(0,2), lambda: symmetric_cutoff(6,0), + lambda: rref_mod(np.eye(2),4), lambda: permutation_matrix([0,0]), + lambda: six_wing_actions(5,1), lambda: mean_photon_lower_bound(6,2,.8)]) +def test_reject_invalid_inputs(call): + with pytest.raises(ValueError): + call() diff --git a/tests/test_physical_limits.py b/tests/test_physical_limits.py new file mode 100644 index 0000000000000000000000000000000000000000..12b78366a50b3e13b42844aaa98fa76f38621d0d --- /dev/null +++ b/tests/test_physical_limits.py @@ -0,0 +1,66 @@ +"""Regression checks for dephasing, photon loss, spectral gaps, and worked atlas.""" +from pathlib import Path +import sys +import numpy as np +from scipy.linalg import expm +sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "code")) +from orynthra import simplex_code, observable_closure, LinearEdge, permutation_matrix + + +def test_dephasing_destroys_exact_distinguishability(): + v, _, _ = simplex_code(6, 2) + rho = [] + for j in range(6): + pure = np.outer(v[:, j], v[:, j]) + pure[0, 1:] = 0 + pure[1:, 0] = 0 + rho.append(pure) + assert np.isclose(np.trace(pure), 1) + for i in range(6): + for j in range(i): + assert np.isclose(np.trace(rho[i] @ rho[j]), 1/18) + + +def test_h6_fails_one_photon_loss_knill_laflamme_condition(): + v, _, _ = simplex_code(6, 2) + n1 = np.diag([0, 4, 3, 2, 1, 0]) + logical_error_gram = v.T @ n1 @ v + eigenvalues = np.linalg.eigvalsh(logical_error_gram) + assert np.allclose(eigenvalues, [0, 0, 1, 2, 3, 4]) + assert not np.allclose(logical_error_gram, + np.eye(6) * np.trace(logical_error_gram)/6) + + +def test_gap_sensitive_commutator_bound_on_seeded_unitaries(): + rng = np.random.default_rng(20261009) + n = 6 + energies = np.cumsum(rng.uniform(0.5, 1.5, n)) + gap = np.min(np.diff(energies)) + h = np.diag(energies) + a = permutation_matrix(list(range(1, n)) + [0]) + b = permutation_matrix([1, 0] + list(range(2, n))) + assert np.isclose(np.linalg.norm(a @ b - b @ a, 2), np.sqrt(3)) + for t in [0, 0.001, 0.02, 0.1, 1]: + us = [] + for _ in range(2): + x = rng.normal(size=(n, n)) + 1j*rng.normal(size=(n, n)) + x = (x + x.conj().T)/2 + u = np.diag(np.exp(1j*rng.uniform(-1, 1, n))) @ expm(1j*t*x) + us.append(u) + ua, ub = us + eta = sum(np.linalg.norm(h @ u - u @ h, "fro") for u in us) + physical_comm = np.linalg.norm(ua @ ub - ub @ ua, 2) + assert physical_comm <= 2*eta/gap + 1e-12 + eps = np.linalg.norm(ua-a, 2) + np.linalg.norm(ub-b, 2) + assert np.sqrt(3) <= 2*eps + 2*eta/gap + 1e-12 + + +def test_two_domain_worked_example(): + j = np.array([[0,1,0],[1,0,0],[0,0,1]]) + loop = np.array([[1,0,0],[0,0,1],[0,1,0]]) + obs = [np.array([[1,0,0]]), np.array([[1,0,0]])] + edges = [LinearEdge(0,1,j), LinearEdge(1,0,j)] + bases, _ = observable_closure(obs, edges) + assert [len(b) for b in bases] == [2,2] + bases, _ = observable_closure(obs, edges+[LinearEdge(0,0,loop)]) + assert [len(b) for b in bases] == [3,3] diff --git a/tools/hf_upload.py b/tools/hf_upload.py new file mode 100644 index 0000000000000000000000000000000000000000..e4ce1a54fc2c838dc318c41d0137b1909306209c --- /dev/null +++ b/tools/hf_upload.py @@ -0,0 +1,362 @@ +#!/usr/bin/env python3 +"""Offline release planning; --publish explicitly uploads a verified snapshot. + +The dataset repository contains this mathematical research artifact and its +synthetic reference data. No remote file is deleted. Authentication uses the +existing Hugging Face token store or HF_TOKEN. +""" + +from __future__ import annotations + +import argparse +import hashlib +import json +import os +from pathlib import Path +import re +import shutil +import stat +import sys +import tempfile +import time +from dataclasses import dataclass +from datetime import datetime, timezone +from typing import Callable, Optional, Tuple + + +PROJECT_NAME = "ORYNTHRA-H6" +HUB_DATASET_URL = "https://huggingface.co/datasets/" +MANIFEST_NAME = "SHA256SUMS.txt" +BLOCKED_PARTS = { + ".git", ".hg", ".svn", ".venv", "venv", "__pycache__", ".cache", + ".pytest_cache", ".mypy_cache", ".upload_state", +} +BLOCKED_NAMES = { + ".env", ".netrc", ".npmrc", ".pypirc", "credentials.json", + "secrets.json", "token", "token.txt", "hf_token", "hf_token.txt", +} +MANIFEST_LINE = re.compile(r"^([0-9a-fA-F]{64}) [ *](.+)$") + + +class ReleaseError(Exception): + """A local release check failed; its message contains no credentials.""" + + +class HubOperationError(Exception): + def __init__(self, operation: str, error_class: str, + status_code: Optional[int] = None): + super().__init__(operation) + self.operation = operation + self.error_class = error_class + self.status_code = status_code + + +@dataclass(frozen=True) +class FileEntry: + path: str + sha256: str + size: int + + +@dataclass(frozen=True) +class VerifiedRelease: + root: Path + entries: Tuple[FileEntry, ...] + manifest_bytes: bytes + + @property + def allow_patterns(self): + # Each path is literal: manifest parsing prohibits glob metacharacters. + return [entry.path for entry in self.entries] + [MANIFEST_NAME] + + +def validate_relative_path(value: str) -> str: + if not value or value != value.strip(): + raise ReleaseError("Manifest paths must be nonempty without outer spaces.") + if any(ord(c) < 32 or ord(c) == 127 for c in value): + raise ReleaseError("Manifest paths cannot contain control characters.") + if any(c in value for c in "\\:*?[]{}<>\"|") or value.startswith("/"): + raise ReleaseError("Manifest paths must be relative, literal POSIX paths.") + parts = value.split("/") + if any(p in ("", ".", "..") for p in parts): + raise ReleaseError("Manifest path traversal or empty path components rejected.") + for part in parts: + lower = part.lower() + if lower in BLOCKED_PARTS or lower in BLOCKED_NAMES: + raise ReleaseError("Manifest contains a cache, credential, or upload-state path.") + if lower.startswith(".env.") or lower.endswith((".pem", ".key")): + raise ReleaseError("Manifest contains a possible credential file.") + if part.endswith((" ", ".")): + raise ReleaseError("Manifest path is unsafe on Windows.") + stem = part.split(".")[0].upper() + if stem in {"CON", "PRN", "AUX", "NUL"} or re.fullmatch(r"(?:COM|LPT)[1-9]", stem): + raise ReleaseError("Manifest contains a Windows reserved path.") + return value + + +def checked_path(root: Path, relative: str) -> Path: + value = validate_relative_path(relative) + current = root + for part in value.split("/"): + current = current / part + if current.is_symlink(): + raise ReleaseError("Symlink rejected: " + value) + if not current.is_file(): + raise ReleaseError("Manifest file is missing or is not a regular file: " + value) + try: + current.resolve(strict=True).relative_to(root) + except (ValueError, OSError): + raise ReleaseError("Manifest file escapes the release root: " + value) from None + if not stat.S_ISREG(current.stat().st_mode): + raise ReleaseError("Non-regular file rejected: " + value) + return current + + +def digest_file(path: Path) -> str: + digest = hashlib.sha256() + with path.open("rb") as source: + for block in iter(lambda: source.read(1024 * 1024), b""): + digest.update(block) + return digest.hexdigest() + + +def verify_release(root: Path) -> VerifiedRelease: + if root.is_symlink(): + raise ReleaseError("The release root cannot be a symlink.") + root = root.resolve(strict=True) + if not root.is_dir(): + raise ReleaseError("The release root must be a directory.") + manifest_path = checked_path(root, MANIFEST_NAME) + manifest_bytes = manifest_path.read_bytes() + try: + manifest_text = manifest_bytes.decode("utf-8") + except UnicodeError: + raise ReleaseError("SHA256SUMS.txt must use UTF-8 text.") from None + entries = [] + seen = set() + for line_number, line in enumerate(manifest_text.splitlines(), 1): + if not line.strip() or line.startswith("#"): + continue + match = MANIFEST_LINE.fullmatch(line) + if not match: + raise ReleaseError("Malformed SHA256SUMS.txt line " + str(line_number) + ".") + expected, relative = match.groups() + validate_relative_path(relative) + if relative.casefold() == MANIFEST_NAME.casefold(): + raise ReleaseError("The manifest cannot contain a checksum of itself.") + if relative.casefold() in seen: + raise ReleaseError("Duplicate or case-colliding manifest path rejected.") + seen.add(relative.casefold()) + path = checked_path(root, relative) + if digest_file(path) != expected.lower(): + raise ReleaseError("SHA-256 mismatch: " + relative + ". Rebuild the release manifest.") + entries.append(FileEntry(relative, expected.lower(), path.stat().st_size)) + if not entries: + raise ReleaseError("The release manifest has no approved files.") + return VerifiedRelease(root, tuple(entries), manifest_bytes) + + +def stage_release(release: VerifiedRelease, destination: Path) -> None: + """Copy only approved bytes; rehash before any Hub network request.""" + for entry in release.entries: + source = checked_path(release.root, entry.path) + target = destination.joinpath(*entry.path.split("/")) + target.parent.mkdir(parents=True, exist_ok=True) + shutil.copyfile(source, target) + if digest_file(target) != entry.sha256: + raise ReleaseError("File changed while preparing the upload: " + entry.path) + (destination / MANIFEST_NAME).write_bytes(release.manifest_bytes) + + +def validate_repo_id(value: str) -> str: + parts = value.split("/") + if len(parts) != 2: + raise ReleaseError("Use a full repository ID: account-or-organization/ORYNTHRA-H6.") + for part in parts: + if (not re.fullmatch(r"[A-Za-z0-9_-][A-Za-z0-9_.-]{0,95}", part) + or part.endswith((".", "-")) or ".." in part or "--" in part): + raise ReleaseError("Invalid Hugging Face repository ID.") + return value + + +def status_code_of(error: Exception) -> Optional[int]: + response = getattr(error, "response", None) + status = getattr(response, "status_code", None) + return status if isinstance(status, int) else None + + +def is_transient(error: Exception, status_code: Optional[int]) -> bool: + if status_code == 429 or (status_code is not None and 500 <= status_code <= 599): + return True + error_name = type(error).__name__.lower() + return isinstance(error, TimeoutError) or any( + marker in error_name for marker in ( + "timeout", "connectionerror", "connecterror", "readerror", + "networkerror", "transporterror", "remoteprotocolerror", + ) + ) + + +def hub_call(operation: str, function: Callable, max_attempts: int): + for attempt in range(1, max_attempts + 1): + try: + return function() + except Exception as error: + status = status_code_of(error) + if is_transient(error, status) and attempt < max_attempts: + delay = min(2 ** attempt, 8) + detail = "HTTP " + str(status) if status is not None else type(error).__name__ + print(f"{operation}: temporary failure ({detail}); retry {attempt + 1}/{max_attempts} in {delay}s.") + time.sleep(delay) + continue + raise HubOperationError(operation, type(error).__name__, status) from None + + +def authentication_guidance() -> None: + print("Install the upload dependency: python -m pip install -r requirements-upload.txt") + print("Then authenticate locally: hf auth login") + print("Use a write-enabled token authorized for the target repository.") + print("HF_TOKEN is also supported; never put a token in this release or a command shared with others.") + + +def write_receipt(release: VerifiedRelease, repo_id: str, commit_info) -> Path: + directory = release.root / ".upload_state" + if directory.is_symlink(): + raise ReleaseError("Upload receipt directory is a symlink.") + directory.mkdir(exist_ok=True) + target = directory / "last_upload.json" + if target.is_symlink(): + raise ReleaseError("Upload receipt target is a symlink.") + receipt = { + "project": PROJECT_NAME, + "repo_id": repo_id, + "repo_type": "dataset", + "repo_url": HUB_DATASET_URL + repo_id, + "uploaded_at_utc": datetime.now(timezone.utc).isoformat(), + "commit_oid": getattr(commit_info, "oid", None), + "manifest_sha256": hashlib.sha256(release.manifest_bytes).hexdigest(), + "approved_paths": release.allow_patterns, + "remote_deletions": False, + } + descriptor, temporary_name = tempfile.mkstemp(prefix="receipt-", suffix=".json", dir=directory) + try: + with os.fdopen(descriptor, "w", encoding="utf-8") as stream: + json.dump(receipt, stream, indent=2) + stream.write("\n") + os.replace(temporary_name, target) + finally: + if os.path.exists(temporary_name): + os.unlink(temporary_name) + return target + + +def publish_release(release: VerifiedRelease, args) -> int: + # Dependency and token handling are deliberately absent from offline planning. + try: + from huggingface_hub import HfApi, get_token + except ImportError: + print("Upload dependency is missing.") + authentication_guidance() + return 2 + if not get_token(): + print("No Hugging Face authentication was found.") + authentication_guidance() + return 2 + + # Upload a temporary snapshot so generated logs, caches and receipts cannot + # enter the upload, and source changes cannot alter the verified content. + with tempfile.TemporaryDirectory(prefix="orynthra-h6-upload-") as temporary: + snapshot = Path(temporary) + stage_release(release, snapshot) + api = HfApi(token=True) + repo_id = args.repo_id + if repo_id is None: + identity = hub_call("Account lookup", api.whoami, args.max_attempts) + account_name = identity.get("name") + if not isinstance(account_name, str): + raise ReleaseError("Authenticated account lookup returned no username.") + repo_id = validate_repo_id(account_name + "/" + PROJECT_NAME) + print("Publishing verified research files to " + HUB_DATASET_URL + repo_id) + hub_call( + "Repository creation/check", + lambda: api.create_repo(repo_id=repo_id, repo_type="dataset", private=args.private, exist_ok=True), + args.max_attempts, + ) + result = hub_call( + "Upload", + lambda: api.upload_folder( + repo_id=repo_id, + repo_type="dataset", + folder_path=str(snapshot), + allow_patterns=release.allow_patterns, + commit_message="ORYNTHRA-H6 verified research packaging edition v1.0.2", + ), + args.max_attempts, + ) + print("Upload completed: " + HUB_DATASET_URL + repo_id) + try: + receipt = write_receipt(release, repo_id, result) + print("Local receipt: " + str(receipt.relative_to(release.root))) + except Exception as error: + # Successful publication is not reported as failed because a local receipt + # cannot be written. Do not print an exception body or traceback. + print("Upload succeeded; a local receipt could not be saved (" + type(error).__name__ + ").") + return 0 + + +def main(argv=None) -> int: + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("repo_id", nargs="?", help="Full account-or-organization/repository ID.") + parser.add_argument("--publish", action="store_true", help="Explicitly authorize network publication.") + parser.add_argument("--private", action="store_true", help="Create a new repository privately; existing visibility is preserved.") + parser.add_argument("--root", type=Path, default=Path(__file__).resolve().parent.parent, + help="Release directory; defaults to this script's project directory.") + parser.add_argument("--max-attempts", type=int, choices=range(1, 6), default=3, + help="Bounded attempts per Hub operation, including the first attempt (default: 3).") + args = parser.parse_args(argv) + try: + if sys.version_info < (3, 9): + raise ReleaseError("Python 3.9 or newer is required.") + if args.repo_id is not None: + args.repo_id = validate_repo_id(args.repo_id) + release = verify_release(args.root) + destination = args.repo_id or "/" + PROJECT_NAME + size = sum(entry.size for entry in release.entries) + len(release.manifest_bytes) + print("SHA-256 verification passed.") + print("Repository container: dataset (mathematical research artifact and synthetic reference data).") + print("Destination: " + destination) + print("New repository visibility: " + ("private" if args.private else "public") + "; existing visibility is preserved.") + print(f"Approved upload: {len(release.allow_patterns)} files, {size:,} bytes.") + for relative in release.allow_patterns: + print(" " + relative) + print("Remote deletions: none. Unlisted local files will not be uploaded.") + if not args.publish: + print("OFFLINE PLAN ONLY: no dependency import, token access, or network request was made.") + print("To publish: python tools/hf_upload.py [account-or-organization/repository] --publish") + return 0 + print("--publish selected: publication is authorized for the verified files above.") + return publish_release(release, args) + except ReleaseError as error: + print("Release check failed: " + str(error), file=sys.stderr) + return 2 + except HubOperationError as error: + detail = error.error_class + if error.status_code is not None: + detail += ", HTTP " + str(error.status_code) + print(error.operation + " failed (" + detail + ").", file=sys.stderr) + if error.status_code in (401, 403) or "Token" in error.error_class: + authentication_guidance() + else: + print("No remote files were deleted. Retry after checking connectivity and service status.") + return 3 + except KeyboardInterrupt: + print("Upload interrupted. No remote files were deleted; rerun to retry.", file=sys.stderr) + return 130 + except Exception as error: + # HTTP exception bodies can contain request details. Never print them. + print("Operation failed (" + type(error).__name__ + "). No credential traceback was printed.", file=sys.stderr) + return 4 + + +if __name__ == "__main__": + raise SystemExit(main()) diff --git a/upload_to_hf.bat b/upload_to_hf.bat new file mode 100644 index 0000000000000000000000000000000000000000..32397009669612531762e0febc20223c596e949b --- /dev/null +++ b/upload_to_hf.bat @@ -0,0 +1,45 @@ +@echo off +setlocal EnableExtensions +pushd "%~dp0" +if errorlevel 1 goto directory_error +echo This launcher publishes the verified ORYNTHRA-H6 research release to a Hugging Face dataset repository. +echo A new repository is public by default. Add --private for a new private repository. +echo Existing repository visibility is preserved. No remote files are deleted. +echo. +where py >nul 2>nul +if errorlevel 1 goto try_python +py -3 -c "import sys; sys.exit(0 if sys.version_info >= (3, 9) else 1)" >nul 2>nul +if errorlevel 1 goto try_python +py -3 "tools\hf_upload.py" --publish %* +set "UPLOAD_EXIT=%ERRORLEVEL%" +goto finish + +:try_python +where python >nul 2>nul +if errorlevel 1 goto python_error +python -c "import sys; sys.exit(0 if sys.version_info >= (3, 9) else 1)" >nul 2>nul +if errorlevel 1 goto python_error +python "tools\hf_upload.py" --publish %* +set "UPLOAD_EXIT=%ERRORLEVEL%" +goto finish + +:python_error +echo Python 3.9 or newer was not found. Install Python and enable its command-line launcher. +set "UPLOAD_EXIT=2" +goto finish + +:directory_error +echo Cannot open the release directory. Extract the complete ZIP before launching this file. +set "UPLOAD_EXIT=2" +goto pause_exit + +:finish +popd + +:pause_exit +echo. +if "%UPLOAD_EXIT%"=="0" echo Publication completed successfully. +if not "%UPLOAD_EXIT%"=="0" echo Publication did not complete. Read the guidance above. Exit code: %UPLOAD_EXIT% +echo This window stays open so you can read the result. +pause +exit /b %UPLOAD_EXIT% diff --git a/upload_to_hf.sh b/upload_to_hf.sh new file mode 100644 index 0000000000000000000000000000000000000000..824b0f88b292be9c19c6207f8ebd6fcb842f923b --- /dev/null +++ b/upload_to_hf.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env sh +# Explicit publishing launcher. The Python script by itself remains offline. +set -u +release_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd) || exit 2 +cd "$release_dir" || exit 2 +printf '%s\n' 'This launcher publishes the verified ORYNTHRA-H6 research release to a Hugging Face dataset repository.' +printf '%s\n' 'A new repository is public by default; use --private for a new private repository.' +printf '%s\n' 'Existing visibility is preserved. No remote files are deleted.' +if command -v python3 >/dev/null 2>&1; then + python3 tools/hf_upload.py --publish "$@" + upload_exit=$? +elif command -v python >/dev/null 2>&1; then + python tools/hf_upload.py --publish "$@" + upload_exit=$? +else + printf '%s\n' 'Python 3.9 or newer is required.' + upload_exit=2 +fi +printf '\n%s\n' "Launcher finished with exit code $upload_exit." +if [ -t 0 ]; then + printf '%s' 'Press Enter to close... ' + read -r unused_answer || true +fi +exit "$upload_exit" diff --git a/verification/demo_output.txt b/verification/demo_output.txt new file mode 100644 index 0000000000000000000000000000000000000000..d21f5bbadad1a41b3f4985662bc67f4692bf878d --- /dev/null +++ b/verification/demo_output.txt @@ -0,0 +1,13 @@ +ORYNTHRA-H6: three exact finite demonstrations +36 raw binary coordinates -> 6 task coordinates without Kaya. +All six branch generators -> 36 task coordinates. +A hidden seventh coordinate becomes visible under Kaya,Evie,Enya,Raven,Tachy,Lily. +The task compression intentionally discards unprotected raw distinctions. + +M=6: two-mode storage cutoff=2, full-permutation coherent cutoff=4 +M=64: two-mode storage cutoff=10, full-permutation coherent cutoff=62 +M=256: two-mode storage cutoff=22, full-permutation coherent cutoff=254 +M=4096: two-mode storage cutoff=90, full-permutation coherent cutoff=4094 +H6 Gram residual: 7.200e-16 +H6 uniform mean photon number: 3.33333333333 +Multiplicity-trap matched dimension: 6/10; exact mean defect=0.8 diff --git a/verification/document_checks.json b/verification/document_checks.json new file mode 100644 index 0000000000000000000000000000000000000000..237742c3856ff34d955ffcc46fb8c10f15c322b3 --- /dev/null +++ b/verification/document_checks.json @@ -0,0 +1,25 @@ +{ + "release": "ORYNTHRA-H6 v1.0.0", + "page_count": 39, + "paper_size": "A4", + "theorem_proposition_corollary_statements": 19, + "supplied_proof_environments": 19, + "references": 15, + "figures": 5, + "pytest_tests": 44, + "pytest_failures": 0, + "pytest_errors": 0, + "latex_overfull_warnings": 0, + "latex_undefined_reference_warnings": 0, + "text_blocks_outside_page": [], + "replacement_character_found": false, + "rendered_pages_inspected_as_contact_sheets": 39, + "full_resolution_spot_checks_physical_page_numbers": [ + 6, + 15, + 20, + 22 + ], + "visual_review": "Final render inspected for clipping, table fit, formula layout, and figure-label contrast. No visible defects found in these checks.", + "scope": "Document and software checks only; not independent peer review, proof-assistant verification, novelty certification, or hardware validation." +} diff --git a/verification/environment.json b/verification/environment.json new file mode 100644 index 0000000000000000000000000000000000000000..fe2fbbea9cd9f650c5b75ee9d4466369e172ae62 --- /dev/null +++ b/verification/environment.json @@ -0,0 +1,7 @@ +{ + "python": "3.13.5 (main, Jul 15 2026, 20:25:40) [GCC 14.2.0]", + "platform": "Linux-6.18.44-x86_64-with-glibc2.41", + "numpy": "2.3.5", + "scipy": "1.17.0", + "sympy": "1.14.0" +} diff --git a/verification/fresh_archive_test.txt b/verification/fresh_archive_test.txt new file mode 100644 index 0000000000000000000000000000000000000000..431d0a54ffe460bb18e4e3cef06aa04219c578de --- /dev/null +++ b/verification/fresh_archive_test.txt @@ -0,0 +1,18 @@ +Tested from a clean extraction of the release archive. + +............................................ [100%] +44 passed in 0.40s + +ORYNTHRA-H6: three exact finite demonstrations +36 raw binary coordinates -> 6 task coordinates without Kaya. +All six branch generators -> 36 task coordinates. +A hidden seventh coordinate becomes visible under Kaya,Evie,Enya,Raven,Tachy,Lily. +The task compression intentionally discards unprotected raw distinctions. + +M=6: two-mode storage cutoff=2, full-permutation coherent cutoff=4 +M=64: two-mode storage cutoff=10, full-permutation coherent cutoff=62 +M=256: two-mode storage cutoff=22, full-permutation coherent cutoff=254 +M=4096: two-mode storage cutoff=90, full-permutation coherent cutoff=4094 +H6 Gram residual: 7.200e-16 +H6 uniform mean photon number: 3.33333333333 +Multiplicity-trap matched dimension: 6/10; exact mean defect=0.8 diff --git a/verification/hf_release/demo_output.txt b/verification/hf_release/demo_output.txt new file mode 100644 index 0000000000000000000000000000000000000000..d21f5bbadad1a41b3f4985662bc67f4692bf878d --- /dev/null +++ b/verification/hf_release/demo_output.txt @@ -0,0 +1,13 @@ +ORYNTHRA-H6: three exact finite demonstrations +36 raw binary coordinates -> 6 task coordinates without Kaya. +All six branch generators -> 36 task coordinates. +A hidden seventh coordinate becomes visible under Kaya,Evie,Enya,Raven,Tachy,Lily. +The task compression intentionally discards unprotected raw distinctions. + +M=6: two-mode storage cutoff=2, full-permutation coherent cutoff=4 +M=64: two-mode storage cutoff=10, full-permutation coherent cutoff=62 +M=256: two-mode storage cutoff=22, full-permutation coherent cutoff=254 +M=4096: two-mode storage cutoff=90, full-permutation coherent cutoff=4094 +H6 Gram residual: 7.200e-16 +H6 uniform mean photon number: 3.33333333333 +Multiplicity-trap matched dimension: 6/10; exact mean defect=0.8 diff --git a/verification/hf_release/environment.json b/verification/hf_release/environment.json new file mode 100644 index 0000000000000000000000000000000000000000..f3dcd73735dce3c332acd195a92f7ce53ab0551c --- /dev/null +++ b/verification/hf_release/environment.json @@ -0,0 +1,7 @@ +{ + "python": "3.12.14 (main, Aug 25 2026, 14:00:49) [Clang 22.1.3 ]", + "platform": "Linux-6.18.44-x86_64-with-glibc2.39", + "numpy": "2.3.5", + "scipy": "1.17.0", + "sympy": "1.14.0" +} diff --git a/verification/hf_release/figures_output.txt b/verification/hf_release/figures_output.txt new file mode 100644 index 0000000000000000000000000000000000000000..083dcddec3a453da956b5257e9bc664fe7aa4742 --- /dev/null +++ b/verification/hf_release/figures_output.txt @@ -0,0 +1 @@ +Five figure pairs regenerated in figures/. diff --git a/verification/hf_release/pytest_output.txt b/verification/hf_release/pytest_output.txt new file mode 100644 index 0000000000000000000000000000000000000000..f9a1e6eeff249cd7e43a8f65dfa3f81a101459f3 --- /dev/null +++ b/verification/hf_release/pytest_output.txt @@ -0,0 +1,2 @@ +............................................ [100%] +44 passed in 0.44s diff --git a/verification/hf_release/pytest_results.xml b/verification/hf_release/pytest_results.xml new file mode 100644 index 0000000000000000000000000000000000000000..db1a21feb447e77a75a7357fb14f8302ee3a1d59 --- /dev/null +++ b/verification/hf_release/pytest_results.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/verification/hf_release/reproduce_output.txt b/verification/hf_release/reproduce_output.txt new file mode 100644 index 0000000000000000000000000000000000000000..d219b81f711071c42b6ad1cbf222b927aaa0fbdd --- /dev/null +++ b/verification/hf_release/reproduce_output.txt @@ -0,0 +1,81 @@ +{ + "release": "ORYNTHRA-H6 v1.0.0", + "seed": 20261009, + "six_wing_subsets_checked": 64, + "six_wing_source_dimension": 36, + "maximum_proper_subset_rank": 6, + "six_label_simplex": { + "messages": 6, + "permutations_checked": 720, + "modes": 2, + "coherent_cutoff": 4, + "storage_cutoff": 2, + "coherent_mean_photons": 3.3333333333333335, + "storage_mean_photons": 1.3333333333333333, + "simplex_angle_degrees": 101.53695903281549, + "symbolic_gram_identity": true, + "symbolic_simplex_identity": true, + "max_gram_entry_error": 4.440892098500626e-16, + "max_gate_operator_error": 3.969323289567251e-16, + "max_number_commutator_operator_error": 3.034972788422345e-16, + "max_unitarity_operator_error": 7.331673484992509e-16, + "interpretation": "Exact algebraic identities plus floating-point checks; not hardware validation" + }, + "multiplicity_trap": { + "logical_irrep_dimensions": [ + 1, + 1, + 4, + 4 + ], + "sector_dimensions": [ + 1, + 2, + 3, + 4 + ], + "total_dimension_test_passes": true, + "largest_irrep_test_passes": true, + "full_packing_exists": false, + "maximum_matched_dimension": 6, + "predicted_normalized_group_defect": 0.8, + "measured_normalized_group_defect": 0.7999999999999994, + "permutations_checked": 120, + "number_commutator_error": 0.0, + "minimal_exact_cutoff": 4 + }, + "one_mode_commutator": { + "sizes_checked": [ + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16 + ], + "maximum_deviation_from_sqrt3": 0.0, + "equal_generator_operator_error_lower_bound": 0.4330127018922193 + }, + "S6_generator_gap": { + "generators": "6-cycle, inverse 6-cycle, transposition (0 1)", + "group_size": 720, + "normalized_laplacian_gap": 0.055958538784548595, + "largest_transition_eigenvalues": [ + 0.9999999999999993, + 0.9440414612154514, + 0.9440414612154476, + 0.9233562350360616 + ], + "below_threshold_generator_mean_defect_lower_bound": 0.09326423130758099, + "numeric_not_formal_certificate": true + }, + "status": "All assertions in reproduce.py completed; see separate pytest report" +} diff --git a/verification/hf_release/results.json b/verification/hf_release/results.json new file mode 100644 index 0000000000000000000000000000000000000000..d219b81f711071c42b6ad1cbf222b927aaa0fbdd --- /dev/null +++ b/verification/hf_release/results.json @@ -0,0 +1,81 @@ +{ + "release": "ORYNTHRA-H6 v1.0.0", + "seed": 20261009, + "six_wing_subsets_checked": 64, + "six_wing_source_dimension": 36, + "maximum_proper_subset_rank": 6, + "six_label_simplex": { + "messages": 6, + "permutations_checked": 720, + "modes": 2, + "coherent_cutoff": 4, + "storage_cutoff": 2, + "coherent_mean_photons": 3.3333333333333335, + "storage_mean_photons": 1.3333333333333333, + "simplex_angle_degrees": 101.53695903281549, + "symbolic_gram_identity": true, + "symbolic_simplex_identity": true, + "max_gram_entry_error": 4.440892098500626e-16, + "max_gate_operator_error": 3.969323289567251e-16, + "max_number_commutator_operator_error": 3.034972788422345e-16, + "max_unitarity_operator_error": 7.331673484992509e-16, + "interpretation": "Exact algebraic identities plus floating-point checks; not hardware validation" + }, + "multiplicity_trap": { + "logical_irrep_dimensions": [ + 1, + 1, + 4, + 4 + ], + "sector_dimensions": [ + 1, + 2, + 3, + 4 + ], + "total_dimension_test_passes": true, + "largest_irrep_test_passes": true, + "full_packing_exists": false, + "maximum_matched_dimension": 6, + "predicted_normalized_group_defect": 0.8, + "measured_normalized_group_defect": 0.7999999999999994, + "permutations_checked": 120, + "number_commutator_error": 0.0, + "minimal_exact_cutoff": 4 + }, + "one_mode_commutator": { + "sizes_checked": [ + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16 + ], + "maximum_deviation_from_sqrt3": 0.0, + "equal_generator_operator_error_lower_bound": 0.4330127018922193 + }, + "S6_generator_gap": { + "generators": "6-cycle, inverse 6-cycle, transposition (0 1)", + "group_size": 720, + "normalized_laplacian_gap": 0.055958538784548595, + "largest_transition_eigenvalues": [ + 0.9999999999999993, + 0.9440414612154514, + 0.9440414612154476, + 0.9233562350360616 + ], + "below_threshold_generator_mean_defect_lower_bound": 0.09326423130758099, + "numeric_not_formal_certificate": true + }, + "status": "All assertions in reproduce.py completed; see separate pytest report" +} diff --git a/verification/hf_release/validation_summary.json b/verification/hf_release/validation_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..2258d43d816d6fb862a7fb0855d03105cb2c40c8 --- /dev/null +++ b/verification/hf_release/validation_summary.json @@ -0,0 +1,95 @@ +{ + "release_edition": "1.0.2", + "mathematical_core": "1.0.0", + "date": "2026-10-09", + "original_hash_manifest": { + "files_checked": 45, + "mismatches": 0 + }, + "commands": [ + { + "command": "code/demo.py", + "exit_code": 0, + "seconds": 0.12 + }, + { + "command": "code/reproduce.py", + "exit_code": 0, + "seconds": 0.657 + }, + { + "command": "-m pytest -q tests --junitxml=/workspace/scratch/bca027be273f/release/ORYNTHRA-H6/verification/hf_release/pytest_results.xml", + "exit_code": 0, + "seconds": 0.655 + }, + { + "command": "code/make_figures.py", + "exit_code": 0, + "seconds": 1.628 + } + ], + "pytest": { + "tests": 44, + "failures": 0, + "errors": 0 + }, + "extra_assertions": { + "H6_permutations": 720, + "H6_residual_threshold": 1e-12, + "symbolic_identities": 2, + "S5_permutations": 120, + "S5_defect": 0.7999999999999994, + "six_wing_subsets": 64 + }, + "regenerated_csvs_byte_equal": { + "approximate_query_energy.csv": true, + "six_wing_closure.csv": true, + "six_label_encoding.csv": true, + "photon_frontiers.csv": true, + "covariance_plateau.csv": true + }, + "regenerated_numerical_report_matches_original": { + "relative_tolerance": 1e-10, + "absolute_tolerance": 1e-12 + }, + "not_performed": [ + "independent peer review", + "proof assistant certification", + "hardware validation", + "fresh LaTeX rebuild", + "Windows native execution", + "real Hugging Face upload", + "new worldwide novelty search" + ], + "packaging_checks": { + "card_yaml_valid": true, + "card_local_links_valid": true, + "original_files_unchanged": 45, + "uploader_python_compile": true, + "uploader_shell_syntax": true, + "uploader_offline_fixture_checks": 14, + "offline_fixture_checks_scope": [ + "no Hub import/token access/network in plan", + "exact allow-list", + "checksum tamper", + "nine unsafe manifest paths", + "symlink", + "snapshot rehash after source mutation" + ], + "repository_type": "dataset" + }, + "dataset_edition_checks": { + "configuration_rows": { + "six_wing_closure": 64, + "photon_frontiers": 44, + "covariance_plateau": 54, + "approximate_query_energy": 72, + "six_label_encoding": 6 + }, + "total_rows": 240, + "H6_adaptation_preserves_numeric_tokens": true, + "original_files_still_unchanged": 45, + "uploader_dataset_API_and_URL_mock_checks": "passed", + "real_upload_performed": false + } +} diff --git a/verification/latex_build.log b/verification/latex_build.log new file mode 100644 index 0000000000000000000000000000000000000000..37f4ae501776b502296f600844a1a5ae5c26c0ab --- /dev/null +++ b/verification/latex_build.log @@ -0,0 +1,204 @@ +Rc files read: + NONE +Latexmk: This is Latexmk, John Collins, 11 Dec. 2024. Version 4.86. +Latexmk: applying rule 'pdflatex'... +Rule 'pdflatex': Reasons for rerun +Changed files or newly in use/created: + ../figures/covariance_plateau.pdf + ../figures/photon_frontier.pdf + ../figures/query_energy_bound.pdf + ../figures/six_simplex_gram.pdf + ../figures/six_wing_horizon.pdf + ORYNTHRA_H6.tex +Category 'changed_user': + ../figures/covariance_plateau.pdf + ../figures/photon_frontier.pdf + ../figures/query_energy_bound.pdf + ../figures/six_simplex_gram.pdf + ../figures/six_wing_horizon.pdf + ORYNTHRA_H6.tex + +------------ +Run number 1 of rule 'pdflatex' +------------ +------------ +Running 'pdflatex -interaction=nonstopmode -halt-on-error -recorder "ORYNTHRA_H6.tex"' +------------ +This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2025/dev/Debian) (preloaded format=pdflatex) + restricted \write18 enabled. +entering extended mode +(./ORYNTHRA_H6.tex +LaTeX2e <2024-11-01> patch level 2 +L3 programming layer <2025-01-18> +(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls +Document Class: article 2024/06/29 v1.4n Standard LaTeX document class +(/usr/share/texlive/texmf-dist/tex/latex/base/size11.clo)) +(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty) +(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty) +(/usr/share/texmf/tex/latex/lm/lmodern.sty) +(/usr/share/texlive/texmf-dist/tex/latex/microtype/microtype.sty +(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty) +(/usr/share/texlive/texmf-dist/tex/latex/etoolbox/etoolbox.sty) +(/usr/share/texlive/texmf-dist/tex/latex/microtype/microtype-pdftex.def) +(/usr/share/texlive/texmf-dist/tex/latex/microtype/microtype.cfg)) +(/usr/share/texlive/texmf-dist/tex/latex/geometry/geometry.sty +(/usr/share/texlive/texmf-dist/tex/generic/iftex/ifvtex.sty +(/usr/share/texlive/texmf-dist/tex/generic/iftex/iftex.sty))) +(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty +For additional information on amsmath, use the `?' option. +(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty +(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty)) +(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty) +(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty)) +(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amssymb.sty +(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty)) +(/usr/share/texlive/texmf-dist/tex/latex/amscls/amsthm.sty) +(/usr/share/texlive/texmf-dist/tex/latex/mathtools/mathtools.sty +(/usr/share/texlive/texmf-dist/tex/latex/tools/calc.sty) +(/usr/share/texlive/texmf-dist/tex/latex/mathtools/mhsetup.sty)) +(/usr/share/texlive/texmf-dist/tex/latex/tools/bm.sty) +(/usr/share/texlive/texmf-dist/tex/latex/booktabs/booktabs.sty) +(/usr/share/texlive/texmf-dist/tex/latex/tools/longtable.sty) +(/usr/share/texlive/texmf-dist/tex/latex/tools/array.sty) +(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty +(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty +(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty) +(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/graphics.cfg) +(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/pdftex.def))) +(/usr/share/texlive/texmf-dist/tex/latex/float/float.sty) +(/usr/share/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty +(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/color.cfg) +(/usr/share/texlive/texmf-dist/tex/latex/graphics/mathcolor.ltx)) +(/usr/share/texlive/texmf-dist/tex/latex/enumitem/enumitem.sty) +(/usr/share/texlive/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty) +(/usr/share/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty +(/usr/share/texlive/texmf-dist/tex/latex/kvsetkeys/kvsetkeys.sty) +(/usr/share/texlive/texmf-dist/tex/generic/kvdefinekeys/kvdefinekeys.sty) +(/usr/share/texlive/texmf-dist/tex/generic/pdfescape/pdfescape.sty +(/usr/share/texlive/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty) +(/usr/share/texlive/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty +(/usr/share/texlive/texmf-dist/tex/generic/infwarerr/infwarerr.sty))) +(/usr/share/texlive/texmf-dist/tex/latex/hycolor/hycolor.sty) +(/usr/share/texlive/texmf-dist/tex/latex/hyperref/nameref.sty +(/usr/share/texlive/texmf-dist/tex/latex/refcount/refcount.sty) +(/usr/share/texlive/texmf-dist/tex/generic/gettitlestring/gettitlestring.sty +(/usr/share/texlive/texmf-dist/tex/latex/kvoptions/kvoptions.sty))) +(/usr/share/texlive/texmf-dist/tex/generic/stringenc/stringenc.sty) +(/usr/share/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def) +(/usr/share/texlive/texmf-dist/tex/generic/intcalc/intcalc.sty) +(/usr/share/texlive/texmf-dist/tex/latex/hyperref/puenc.def) +(/usr/share/texlive/texmf-dist/tex/latex/url/url.sty) +(/usr/share/texlive/texmf-dist/tex/generic/bitset/bitset.sty +(/usr/share/texlive/texmf-dist/tex/generic/bigintcalc/bigintcalc.sty)) +(/usr/share/texlive/texmf-dist/tex/latex/base/atbegshi-ltx.sty)) +(/usr/share/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def +(/usr/share/texlive/texmf-dist/tex/latex/base/atveryend-ltx.sty) +(/usr/share/texlive/texmf-dist/tex/latex/rerunfilecheck/rerunfilecheck.sty +(/usr/share/texlive/texmf-dist/tex/generic/uniquecounter/uniquecounter.sty))) +(/usr/share/texlive/texmf-dist/tex/latex/cleveref/cleveref.sty) +(/usr/share/texlive/texmf-dist/tex/latex/listings/listings.sty +(/usr/share/texlive/texmf-dist/tex/latex/listings/lstpatch.sty) +(/usr/share/texlive/texmf-dist/tex/latex/listings/lstmisc.sty) +(/usr/share/texlive/texmf-dist/tex/latex/listings/listings.cfg)) +(/usr/share/texmf/tex/latex/lm/t1lmr.fd) +(/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def) +(./ORYNTHRA_H6.aux) +(/usr/share/texlive/texmf-dist/tex/latex/microtype/mt-cmr.cfg) +*geometry* driver: auto-detecting +*geometry* detected driver: pdftex +(/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii +[Loading MPS to PDF converter (version 2006.09.02).] +) (/usr/share/texlive/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty +(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg)) +(./ORYNTHRA_H6.out) (./ORYNTHRA_H6.out) +(/usr/share/texmf/tex/latex/lm/ot1lmr.fd) +(/usr/share/texmf/tex/latex/lm/omllmm.fd) +(/usr/share/texmf/tex/latex/lm/omslmsy.fd) +(/usr/share/texmf/tex/latex/lm/omxlmex.fd) +(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsa.fd) +(/usr/share/texlive/texmf-dist/tex/latex/microtype/mt-msa.cfg) +(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsb.fd) +(/usr/share/texlive/texmf-dist/tex/latex/microtype/mt-msb.cfg) +[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}{/usr/share/texmf/fonts/en +c/dvips/lm/lm-ec.enc}] (./ORYNTHRA_H6.toc + +pdfTeX warning (ext4): destination with the same identifier (name{page.1}) has +been already used, duplicate ignored + + \relax +l.17 ...termine future memory}{10}{subsection.6.1} + % [1{/usr/share/texmf/fonts/e +nc/dvips/lm/lm-mathit.enc}{/usr/share/texmf/fonts/enc/dvips/lm/lm-mathsy.enc}{/ +usr/share/texmf/fonts/enc/dvips/lm/lm-rm.enc}{/usr/share/texmf/fonts/enc/dvips/ +lm/lm-mathex.enc}] +[2]) +[3] +[4] (/usr/share/texlive/texmf-dist/tex/latex/amsfonts/ueuf.fd) +(/usr/share/texlive/texmf-dist/tex/latex/microtype/mt-euf.cfg) +[5] +[6] +[7] +[8] +[9] +[10] +[11 <../figures/six_wing_horizon.pdf>] +[12] +[13] +[14] +[15] +[16] +[17] +[18 <../figures/covariance_plateau.pdf>] +[19 <../figures/photon_frontier.pdf>] +[20] +[21 <../figures/six_simplex_gram.pdf>] +[22] +[23] +[24] +[25] +[26 <../figures/query_energy_bound.pdf>] +[27] +[28] +[29] (/usr/share/texmf/tex/latex/lm/t1lmtt.fd) +[30] +[31] +[32] +[33] +[34] +[35] +[36] +Underfull \hbox (badness 1062) in paragraph at lines 1138--1139 +\T1/lmr/m/n/10.95 (+20) rules, and quan-tum in-for-ma-tion. \T1/lmr/m/it/10.95 +(+20) Re-views of Mod-ern Physics \T1/lmr/m/n/10.95 (+20) 79 (2007), 555--609. + +Underfull \hbox (badness 1199) in paragraph at lines 1156--1157 +\T1/lmr/m/n/10.95 (+20) duc-tion, record com-pres-sion, and log-i-cal re-cov-er +y. \T1/lmr/m/it/10.95 (+20) Preprints.org\T1/lmr/m/n/10.95 (+20) , 2 Oc-to-ber +2026. + +[37] +[38] (./ORYNTHRA_H6.aux) ) +(see the transcript file for additional information) +Output written on ORYNTHRA_H6.pdf (39 pages, 573826 bytes). +Transcript written on ORYNTHRA_H6.log. +Latexmk: Getting log file 'ORYNTHRA_H6.log' +Latexmk: Examining 'ORYNTHRA_H6.fls' +Latexmk: Examining 'ORYNTHRA_H6.log' +Latexmk: Log file says output to 'ORYNTHRA_H6.pdf' +Latexmk: All targets (ORYNTHRA_H6.pdf) are up-to-date + diff --git a/verification/pytest_output.txt b/verification/pytest_output.txt new file mode 100644 index 0000000000000000000000000000000000000000..1ead5fa5ed3d6d02f927450cbbe030699a00c50b --- /dev/null +++ b/verification/pytest_output.txt @@ -0,0 +1,2 @@ +............................................ [100%] +44 passed in 0.38s diff --git a/verification/pytest_results.xml b/verification/pytest_results.xml new file mode 100644 index 0000000000000000000000000000000000000000..398a9eaa359b12dee11ad6a70a0cd3fb41491225 --- /dev/null +++ b/verification/pytest_results.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/verification/render_log.txt b/verification/render_log.txt new file mode 100644 index 0000000000000000000000000000000000000000..38958cdde1476e34357aefccecc73cba3dd9e958 --- /dev/null +++ b/verification/render_log.txt @@ -0,0 +1 @@ +Rendered 39 page(s) to /mnt/data/_orynthra_final_render diff --git a/verification/reproduce_log.txt b/verification/reproduce_log.txt new file mode 100644 index 0000000000000000000000000000000000000000..d219b81f711071c42b6ad1cbf222b927aaa0fbdd --- /dev/null +++ b/verification/reproduce_log.txt @@ -0,0 +1,81 @@ +{ + "release": "ORYNTHRA-H6 v1.0.0", + "seed": 20261009, + "six_wing_subsets_checked": 64, + "six_wing_source_dimension": 36, + "maximum_proper_subset_rank": 6, + "six_label_simplex": { + "messages": 6, + "permutations_checked": 720, + "modes": 2, + "coherent_cutoff": 4, + "storage_cutoff": 2, + "coherent_mean_photons": 3.3333333333333335, + "storage_mean_photons": 1.3333333333333333, + "simplex_angle_degrees": 101.53695903281549, + "symbolic_gram_identity": true, + "symbolic_simplex_identity": true, + "max_gram_entry_error": 4.440892098500626e-16, + "max_gate_operator_error": 3.969323289567251e-16, + "max_number_commutator_operator_error": 3.034972788422345e-16, + "max_unitarity_operator_error": 7.331673484992509e-16, + "interpretation": "Exact algebraic identities plus floating-point checks; not hardware validation" + }, + "multiplicity_trap": { + "logical_irrep_dimensions": [ + 1, + 1, + 4, + 4 + ], + "sector_dimensions": [ + 1, + 2, + 3, + 4 + ], + "total_dimension_test_passes": true, + "largest_irrep_test_passes": true, + "full_packing_exists": false, + "maximum_matched_dimension": 6, + "predicted_normalized_group_defect": 0.8, + "measured_normalized_group_defect": 0.7999999999999994, + "permutations_checked": 120, + "number_commutator_error": 0.0, + "minimal_exact_cutoff": 4 + }, + "one_mode_commutator": { + "sizes_checked": [ + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16 + ], + "maximum_deviation_from_sqrt3": 0.0, + "equal_generator_operator_error_lower_bound": 0.4330127018922193 + }, + "S6_generator_gap": { + "generators": "6-cycle, inverse 6-cycle, transposition (0 1)", + "group_size": 720, + "normalized_laplacian_gap": 0.055958538784548595, + "largest_transition_eigenvalues": [ + 0.9999999999999993, + 0.9440414612154514, + 0.9440414612154476, + 0.9233562350360616 + ], + "below_threshold_generator_mean_defect_lower_bound": 0.09326423130758099, + "numeric_not_formal_certificate": true + }, + "status": "All assertions in reproduce.py completed; see separate pytest report" +} diff --git a/verification/results.json b/verification/results.json new file mode 100644 index 0000000000000000000000000000000000000000..d219b81f711071c42b6ad1cbf222b927aaa0fbdd --- /dev/null +++ b/verification/results.json @@ -0,0 +1,81 @@ +{ + "release": "ORYNTHRA-H6 v1.0.0", + "seed": 20261009, + "six_wing_subsets_checked": 64, + "six_wing_source_dimension": 36, + "maximum_proper_subset_rank": 6, + "six_label_simplex": { + "messages": 6, + "permutations_checked": 720, + "modes": 2, + "coherent_cutoff": 4, + "storage_cutoff": 2, + "coherent_mean_photons": 3.3333333333333335, + "storage_mean_photons": 1.3333333333333333, + "simplex_angle_degrees": 101.53695903281549, + "symbolic_gram_identity": true, + "symbolic_simplex_identity": true, + "max_gram_entry_error": 4.440892098500626e-16, + "max_gate_operator_error": 3.969323289567251e-16, + "max_number_commutator_operator_error": 3.034972788422345e-16, + "max_unitarity_operator_error": 7.331673484992509e-16, + "interpretation": "Exact algebraic identities plus floating-point checks; not hardware validation" + }, + "multiplicity_trap": { + "logical_irrep_dimensions": [ + 1, + 1, + 4, + 4 + ], + "sector_dimensions": [ + 1, + 2, + 3, + 4 + ], + "total_dimension_test_passes": true, + "largest_irrep_test_passes": true, + "full_packing_exists": false, + "maximum_matched_dimension": 6, + "predicted_normalized_group_defect": 0.8, + "measured_normalized_group_defect": 0.7999999999999994, + "permutations_checked": 120, + "number_commutator_error": 0.0, + "minimal_exact_cutoff": 4 + }, + "one_mode_commutator": { + "sizes_checked": [ + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16 + ], + "maximum_deviation_from_sqrt3": 0.0, + "equal_generator_operator_error_lower_bound": 0.4330127018922193 + }, + "S6_generator_gap": { + "generators": "6-cycle, inverse 6-cycle, transposition (0 1)", + "group_size": 720, + "normalized_laplacian_gap": 0.055958538784548595, + "largest_transition_eigenvalues": [ + 0.9999999999999993, + 0.9440414612154514, + 0.9440414612154476, + 0.9233562350360616 + ], + "below_threshold_generator_mean_defect_lower_bound": 0.09326423130758099, + "numeric_not_formal_certificate": true + }, + "status": "All assertions in reproduce.py completed; see separate pytest report" +}