Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ research/coordinated-frames-and-entrance-banks/** -text -whitespace
# Frozen PR210 package and round-nine evidence retain their audited bytes.
research/five-stage-source527-banks/** -text -whitespace
research/community-round9-audit/** -text -whitespace
# E8 complex unit with far piece relocation (e8st): MANIFEST.sha256 and the git-blob pins fix exact bytes (Sussman gx.py keeps its original whitespace).
research/e8-complex-far-retiming/** -text -whitespace
37 changes: 37 additions & 0 deletions .github/workflows/e8-complex-far-retiming.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: e8-complex-far-retiming

on:
pull_request:
paths:
- 'research/e8-complex-far-retiming/**'
- '.github/workflows/e8-complex-far-retiming.yml'
push:
paths:
- 'research/e8-complex-far-retiming/**'
- '.github/workflows/e8-complex-far-retiming.yml'
workflow_dispatch:

permissions:
contents: read

jobs:
verify:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
python-version: ['3.12', '3.14']
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7
with:
python-version: ${{ matrix.python-version }}
- name: Quick verification (manifest, pins, Sussman's checkers, operator identity, layout, kappa)
run: bash research/e8-complex-far-retiming/verify.sh --quick "$RUNNER_TEMP/e8st-quick"
- name: Full verification (adds the regeneration of the certificate from Sussman's original)
run: bash research/e8-complex-far-retiming/verify.sh "$RUNNER_TEMP/e8st-full"
- name: Require an unchanged tree
run: git diff --exit-code
2 changes: 1 addition & 1 deletion certificates/joint-dual-kappa.json
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@
"scripts/experiments/pin_joint_dual_sources.py": "4d31cc0e38b7902709ca5f8f714cba109760d2592346dd7f8dc0b900a2d9fe00",
"scripts/experiments/verify_joint_dual.py": "7a31bba1e9c0ded32ae285df2ca9bc91ef20c330f6789fdba361876f3c7a1985"
},
"source_manifest_sha256": "4f3c15b82a2d97335d4fe95fb8bcb96bd2a921087da289d9da16c68213a17f17",
"source_manifest_sha256": "698fe862a620e5b80b85fbc6034c9456fa0fa9aea638dbbbcb3f9edd24c0415e",
"sources": [
{
"files": {
Expand Down
2 changes: 1 addition & 1 deletion certificates/joint-dual-validation.json
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@
}
},
"bit_saving": "2382370177/50000000000000",
"certificate_sha256": "9801147b1502cf1e43d5fa39aa37f5291f03b48c30c4dd4f272e0877894a1c24",
"certificate_sha256": "6f684fa7f747073a132e8d0b5652cf12a8afa389f2a16ff6ade8e080d786dd22",
"kappa": "4764513337/100000000000000",
"margins": 7,
"producer_words_regenerated_and_matched": true,
Expand Down
201 changes: 201 additions & 0 deletions research/e8-complex-far-retiming/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
27 changes: 27 additions & 0 deletions research/e8-complex-far-retiming/MANIFEST.sha256
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 LICENSE
b4d2d9f6ed3419a56e76cc36bcab5059993c4853532401b56e4e77a8455d0f93 NOTICE.md
7caa44d8318c0f94ffb86b8be454eb55e0e38544e84611b5622e243d925cea76 PROOF.md
a36178b70a075b3fcc07b274ae9ffc2fddfbf2588984c6e154471f2a5a912b3f README.md
97b461509656798d30b2610b4755ce825b1f84ae8772b9b4efd5c84d7404385b code/cxcheck.py
316cbf7d7c777e1fbe8a5d5fb249f0970b591330f4c2769c6827965a0e9c1adf code/cxfar.py
7b2afb0be9591c72d31d7fbcce4e2d45bbe09daf7caa21123bca050b92cd2882 code/cxfinal.py
8fc2a43e70fa8c1ce3f3025c9568b562accc5cf25b2ed53d7c0a1cbf954a0599 code/cxkernel.py
2655e1e9ec94fb39512329ec86d261959ccd7c635c7535238f254a82861c2db1 code/cxop.py
1c78b3025203c802c3aab9cc4113c48a7357d582f5bc75c47bde7953787f2e82 code/cxpiece.py
e7e06595c12fbafb707a6846719c54b85e0c2bb105927e7e7ee20f028a37438b code/cxretime.py
9f6c0718f371120b015733983b3c91285a3825d306b557f0b9013059c6c88b0e code/cxsplit.py
1cb286196c1530d06f50f0997febc5993b388f33464e295611b920ba30a24eeb code/e8core.py
aee70c242a2f1d225528fabe2002e1564d1dc884797c07d28a831c7878ee9098 code/engines/base_two_moment.py
81cbc864e106418fc7854322746f72180cb8110ff39f74450a3b8d55a82c1482 code/engines/moment.py
c1ebb52163a7219504c728a5c2b098bf1e50bf20148a2879c5a74c3cadc7c03c code/engines/outer.py
bd2c7d5bf546babf4700de802f9f49b45e8da0b3e75edcb4a5dfed914d186c6e code/kappa.py
e650d16538db8d80495fda5109cdfa0775e1d5f3b56b0aa39e5c1efc660877e7 code/layout_bk.py
c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 complex/LICENSE-wht-power-saving-lean
557c9ad4660eebd14a00583736c4d12d2c45f3fc9bc148845f9f3efec72c9434 complex/NOTICE-wht-power-saving-lean
4b92f00fc7454b9b15e6d71a3b05062792eacca0a0ca4efee46f87827d57c8aa complex/gcert1-e8-r783.json.gz
6f3dc8bb639933227a8dae181ec4a542e85c7276be9c9e330f49518e7b630b95 complex/gx/gx.py
eb972c06fe8c322db2d9a8d9a7d05596e8f40c4ca8e5f42eb6df3c7361b5d517 complex/gx/gxcore.py
1fb726ea3818fe0837cceb0dd22a71a0814f064e5e781628104610d6468e0e55 data/bit/bitE8-r865.json.gz
f2664ee7bcdfb55893abe9f1be8ee6a394a602e8262e611de2a0328bbd508aa7 data/gcert1-e8-r783-far.json.gz
0643931a5c713c5861e462ba8397acbaf5d5fd366e0a0d1506fd06b8aa6e324c lean/LEAN-B2-E8FR.txt
42811ea3cb74d0132699e6ba6b2ada81527d69f8e654d6a94fbccf6d9c0b2cd8 verify.sh
21 changes: 21 additions & 0 deletions research/e8-complex-far-retiming/NOTICE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Notice

Apache-2.0 (`LICENSE`). Prepared by Chafik Boukhalfa (chafreaky) with substantial Anthropic Claude assistance.

- `complex/gcert1-e8-r783.json.gz`, `complex/gx/gx.py`, `complex/gx/gxcore.py`: Jacob Sussman,
jacobalansussman/wht-power-saving-lean at `9c94857`, Apache-2.0. The bytes are identical (by git blob id) to the copies vendored in
DaysSky's #363/#375 and aliromman's #365. The upstream LICENSE and NOTICE are kept as `complex/LICENSE-wht-power-saving-lean`
and `complex/NOTICE-wht-power-saving-lean`.
- `data/gcert1-e8-r783-far.json.gz`: this package's certificate, derived from Sussman's by `code/cxfar.py` and `code/cxfinal.py`.
It keeps his format, and its `derived_from` field records the derivation.
- `data/bit/bitE8-r865.json.gz`: utcorvusvolat-dotcom's (Dylan Crow) #370 E8 bit word, byte-identical to #370's and #373's
`data/bit` (Apache-2.0).
- `code/engines/moment.py`, `base_two_moment.py`, `outer.py`: PR #315's engines (DreamingOfClouds; eumemic; the #144/#23
lineage), as vendored in our #329/#359 packages.
- `code/layout_bk.py`: our reimplementation of DaysSky's B_K rule (#363), on Sussman's B₂ and stage geometry. #363's `bridged.py` was read as data
and not run.
- `code/e8core.py`, `cxcheck.py`, `cxop.py`, `kappa.py`, `cxretime.py`, `cxsplit.py`, `cxpiece.py`, `cxfar.py`, `cxfinal.py`,
`cxkernel.py`: our own code. The retiming and reorder mechanisms follow our #329/#359 stage lineage (#287/#291/#299/#306), and
aliromman's #365 is generalised (read as data, not run). `cxkernel.py` also holds the exterior-gauge kernel census, which is
unprofitable on this unit, together with the helpers it shares with the search (`rehist`, `price`).
- PR #375's halving-degree-two guard (DaysSky) is cited, not vendored.
Loading
Loading