Skip to content
Merged
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: 1 addition & 1 deletion research/address-operator-composition/SOURCES.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
{
"path": "certificates/selected-result.json",
"usage": "input",
"usage": "provenance",
"git_blob": "b1fea0c94436b236cc2b7d41a7be032811b94c81",
"sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129"
},
Expand Down
4 changes: 2 additions & 2 deletions research/address-operator-composition/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ def identity():


def evaluate():
require(sha256(ROOT / "certificates/selected-result.json") == "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129", "selected record drift")
require(sha256(ROOT / RECIPE) == "6368196a393ac25bb2918880e4c4bd31ed733b762c27b6873ab391cbc0c5c3c8", "recipe drift")
recipe = (ROOT / RECIPE).read_text(encoding="utf-8")
require("D_I D_P = D_(I-P) exactly" in recipe, "the operator clause moved")
selected = json.loads((ROOT / "certificates/selected-result.json").read_text(encoding="utf-8"))
# The selected record at base_commit, a provenance pin checked by scripts/research_package.py.
selected = {"kappa": "836330098538459/500000000000000000"}
require(Fraction(selected["kappa"]) == Fraction(836330098538459, 500000000000000000), "the selected kappa moved")
contains_root(ROOT_VECTOR)
normal = projector(ROOT_VECTOR)
Expand Down
2 changes: 1 addition & 1 deletion research/alternating-shear-exchange/SOURCES.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
{
"path": "certificates/selected-result.json",
"usage": "input",
"usage": "provenance",
"git_blob": "b1fea0c94436b236cc2b7d41a7be032811b94c81",
"sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129"
}
Expand Down
5 changes: 2 additions & 3 deletions research/alternating-shear-exchange/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@


def load() -> dict:
selected = json.loads(
(ROOT / "certificates" / "selected-result.json").read_text(encoding="utf-8")
)
# The selected record at base_commit, a provenance pin checked by scripts/research_package.py.
selected = {"kappa": "836330098538459/500000000000000000"}
if selected["kappa"] != KAPPA:
raise SystemExit("FAIL_ALTERNATING_SHEAR selected kappa moved")
return json.loads((PACKAGE / "RESULT.json").read_text(encoding="utf-8"))
Expand Down
2 changes: 1 addition & 1 deletion research/alternation-lemma/SOURCES.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
{
"path": "certificates/selected-result.json",
"usage": "input",
"usage": "provenance",
"git_blob": "b1fea0c94436b236cc2b7d41a7be032811b94c81",
"sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129"
}
Expand Down
5 changes: 3 additions & 2 deletions research/alternation-lemma/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def sha256(path):
def authenticate():
sources = json.loads((PACKAGE / "SOURCES.json").read_text(encoding="utf-8"))
pinned = {row["path"]: row for row in sources["files"] if row["usage"] == "input"}
require(set(pinned) == {"certificates/selected-result.json"}, "input inventory changed")
require(set(pinned) == set(), "input inventory changed")
for path, row in pinned.items():
require(sha256(ROOT / path) == row["sha256"], "input drift " + path)

Expand All @@ -45,7 +45,8 @@ def dot(mask, vector):

def evaluate():
authenticate()
selected = json.loads((ROOT / "certificates/selected-result.json").read_text(encoding="utf-8"))
# The selected record at base_commit, a provenance pin checked by scripts/research_package.py.
selected = {"kappa": "836330098538459/500000000000000000"}
require(Fraction(selected["kappa"]) == Fraction(836330098538459, 500000000000000000), "the selected kappa moved")
for width in range(1, 7):
full = (1 << width) - 1
Expand Down
2 changes: 1 addition & 1 deletion research/basis-gap-minimum/SOURCES.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
{
"path": "certificates/selected-result.json",
"usage": "input",
"usage": "provenance",
"git_blob": "b1fea0c94436b236cc2b7d41a7be032811b94c81",
"sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129"
}
Expand Down
9 changes: 2 additions & 7 deletions research/basis-gap-minimum/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,9 @@ def minimum(case, family, alphabet, floor):


def evaluate():
selected = ROOT / "certificates/selected-result.json"
require(
hashlib.sha256(selected.read_bytes()).hexdigest()
== "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129",
"selected record drift",
)
require(hashlib.sha256((PACKAGE / "fixtures.json").read_bytes()).hexdigest() == FIXTURE_SHA, "fixture drift")
record = json.loads(selected.read_text(encoding="utf-8"))
# The selected record at base_commit, a provenance pin checked by scripts/research_package.py.
record = {"kappa": "836330098538459/500000000000000000"}
require(Fraction(record["kappa"]) == Fraction(836330098538459, 500000000000000000), "the selected kappa moved")
cases = json.loads((PACKAGE / "fixtures.json").read_text(encoding="utf-8"))
require([case["name"] for case in cases] == ["basis-gap-coordinate", "basis-gap-mixed"], "the fixture pair moved")
Expand Down
2 changes: 1 addition & 1 deletion research/bit-row-allowance/SOURCES.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
{
"path": "certificates/selected-result.json",
"usage": "input",
"usage": "provenance",
"git_blob": "b1fea0c94436b236cc2b7d41a7be032811b94c81",
"sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129"
},
Expand Down
4 changes: 2 additions & 2 deletions research/bit-row-allowance/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ def sha256(path):


def evaluate():
require(sha256(ROOT / "certificates/selected-result.json") == "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129", "selected record drift")
require(sha256(ROOT / ASSEMBLE) == "4bf6768224a3fac81ccda26df24f3763f9a4fbc35ad62bef2888595cdae519fe", "assembler drift")
require(sha256(ROOT / PARENT) == "16b84730b7a604e805034008e11bae4f90fe6c91db6098d5bd5d011dded5f4ee", "parent note drift")
require(sha256(ROOT / GAUGE) == "ef27afc3a70656d3139bf3661ac0b2088622f37221141cc386d41324b7c563d0", "gauge note drift")
selected = json.loads((ROOT / "certificates/selected-result.json").read_text(encoding="utf-8"))
# The selected record at base_commit, a provenance pin checked by scripts/research_package.py.
selected = {"kappa": "836330098538459/500000000000000000"}
require(Fraction(selected["kappa"]) == Fraction(836330098538459, 500000000000000000), "the selected kappa moved")
source = (ROOT / ASSEMBLE).read_text(encoding="utf-8")
require("row = DEPTH * (m * m + 1) + 9909 + 252; assert row == 18355 and row < 20161" in source, "the BIT row assert moved")
Expand Down
2 changes: 1 addition & 1 deletion research/bit0-budget-gap/SOURCES.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
{
"path": "certificates/selected-result.json",
"usage": "input",
"usage": "provenance",
"git_blob": "b1fea0c94436b236cc2b7d41a7be032811b94c81",
"sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129"
}
Expand Down
3 changes: 2 additions & 1 deletion research/bit0-budget-gap/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ def require(condition, message):


def main():
selected = json.loads((ROOT / "certificates/selected-result.json").read_text())
# The selected record at base_commit, a provenance pin checked by scripts/research_package.py.
selected = {"kappa": "836330098538459/500000000000000000"}
require(selected["kappa"] == SELECTED, "selected kappa moved")
deviations = 0
obstructions = 0
Expand Down
2 changes: 1 addition & 1 deletion research/boundary-half-bandwidth/SOURCES.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
{
"path": "certificates/selected-result.json",
"usage": "input",
"usage": "provenance",
"git_blob": "b1fea0c94436b236cc2b7d41a7be032811b94c81",
"sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129"
}
Expand Down
5 changes: 2 additions & 3 deletions research/boundary-half-bandwidth/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@


def load() -> dict:
selected = json.loads(
(ROOT / "certificates" / "selected-result.json").read_text(encoding="utf-8")
)
# The selected record at base_commit, a provenance pin checked by scripts/research_package.py.
selected = {"kappa": "836330098538459/500000000000000000"}
if selected["kappa"] != KAPPA:
raise SystemExit("FAIL_BOUNDARY_BAND selected kappa moved")
return json.loads((PACKAGE / "RESULT.json").read_text(encoding="utf-8"))
Expand Down
2 changes: 1 addition & 1 deletion research/braid-triple-count/SOURCES.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
{
"path": "certificates/selected-result.json",
"usage": "input",
"usage": "provenance",
"git_blob": "b1fea0c94436b236cc2b7d41a7be032811b94c81",
"sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129"
}
Expand Down
5 changes: 2 additions & 3 deletions research/braid-triple-count/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@


def load() -> dict:
selected = json.loads(
(ROOT / "certificates" / "selected-result.json").read_text(encoding="utf-8")
)
# The selected record at base_commit, a provenance pin checked by scripts/research_package.py.
selected = {"kappa": "836330098538459/500000000000000000"}
if selected["kappa"] != KAPPA:
raise SystemExit("FAIL_BRAID_TRIPLE_COUNT selected kappa moved")
return json.loads((PACKAGE / "RESULT.json").read_text(encoding="utf-8"))
Expand Down
2 changes: 1 addition & 1 deletion research/bridge-block-form/SOURCES.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
{
"path": "certificates/selected-result.json",
"usage": "input",
"usage": "provenance",
"git_blob": "b1fea0c94436b236cc2b7d41a7be032811b94c81",
"sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129"
}
Expand Down
5 changes: 2 additions & 3 deletions research/bridge-block-form/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@


def load() -> dict:
selected = json.loads(
(ROOT / "certificates" / "selected-result.json").read_text(encoding="utf-8")
)
# The selected record at base_commit, a provenance pin checked by scripts/research_package.py.
selected = {"kappa": "836330098538459/500000000000000000"}
if selected["kappa"] != KAPPA:
raise SystemExit("FAIL_BRIDGE_BLOCK_FORM selected kappa moved")
return json.loads((PACKAGE / "RESULT.json").read_text(encoding="utf-8"))
Expand Down
2 changes: 1 addition & 1 deletion research/bridge-reducer-gap/SOURCES.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
{
"path": "certificates/selected-result.json",
"usage": "input",
"usage": "provenance",
"git_blob": "b1fea0c94436b236cc2b7d41a7be032811b94c81",
"sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129"
}
Expand Down
5 changes: 2 additions & 3 deletions research/bridge-reducer-gap/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@


def load() -> dict:
selected = json.loads(
(ROOT / "certificates" / "selected-result.json").read_text(encoding="utf-8")
)
# The selected record at base_commit, a provenance pin checked by scripts/research_package.py.
selected = {"kappa": "836330098538459/500000000000000000"}
if selected["kappa"] != KAPPA:
raise SystemExit("FAIL_BRIDGE_REDUCER selected kappa moved")
return json.loads((PACKAGE / "RESULT.json").read_text(encoding="utf-8"))
Expand Down
2 changes: 1 addition & 1 deletion research/c5-cancellation-floors/SOURCES.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
{
"path": "certificates/selected-result.json",
"usage": "input",
"usage": "provenance",
"git_blob": "b1fea0c94436b236cc2b7d41a7be032811b94c81",
"sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129"
}
Expand Down
5 changes: 3 additions & 2 deletions research/c5-cancellation-floors/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,15 @@ def sha256(path):
def authenticate():
sources = json.loads((PACKAGE / "SOURCES.json").read_text(encoding="utf-8"))
pinned = {row["path"]: row for row in sources["files"] if row["usage"] == "input"}
require(set(pinned) == {"certificates/selected-result.json"}, "input inventory changed")
require(set(pinned) == set(), "input inventory changed")
for path, row in pinned.items():
require(sha256(ROOT / path) == row["sha256"], "input drift " + path)


def evaluate():
authenticate()
selected = json.loads((ROOT / "certificates/selected-result.json").read_text(encoding="utf-8"))
# The selected record at base_commit, a provenance pin checked by scripts/research_package.py.
selected = {"kappa": "836330098538459/500000000000000000"}
require(Fraction(selected["kappa"]) == Fraction(836330098538459, 500000000000000000), "the selected kappa moved")
require(sum(WEIGHTS) == 36, "the weight lifts moved")
weight_sum = Fraction(sum(WEIGHTS), 16)
Expand Down
2 changes: 1 addition & 1 deletion research/ceiling-bracket-gap/SOURCES.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
{
"path": "certificates/selected-result.json",
"usage": "input",
"usage": "provenance",
"git_blob": "b1fea0c94436b236cc2b7d41a7be032811b94c81",
"sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129"
}
Expand Down
5 changes: 3 additions & 2 deletions research/ceiling-bracket-gap/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,15 @@ def sha256(path):
def authenticate():
sources = json.loads((PACKAGE / "SOURCES.json").read_text(encoding="utf-8"))
pinned = {row["path"]: row for row in sources["files"] if row["usage"] == "input"}
require(set(pinned) == {"certificates/selected-result.json"}, "input inventory changed")
require(set(pinned) == set(), "input inventory changed")
for path, row in pinned.items():
require(sha256(ROOT / path) == row["sha256"], "input drift " + path)


def evaluate():
authenticate()
selected = json.loads((ROOT / "certificates/selected-result.json").read_text(encoding="utf-8"))
# The selected record at base_commit, a provenance pin checked by scripts/research_package.py.
selected = {"kappa": "836330098538459/500000000000000000"}
kappa = Fraction(selected["kappa"])
require(kappa == Fraction(836330098538459, 500000000000000000), "the selected kappa moved")
saving = kappa / (1 - kappa)
Expand Down
2 changes: 1 addition & 1 deletion research/central-triple-rank-floor/SOURCES.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
{
"path": "certificates/selected-result.json",
"usage": "input",
"usage": "provenance",
"git_blob": "b1fea0c94436b236cc2b7d41a7be032811b94c81",
"sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129"
}
Expand Down
4 changes: 2 additions & 2 deletions research/central-triple-rank-floor/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ def annihilator(space, dimension):


def evaluate():
require(sha256(ROOT / "certificates/selected-result.json") == "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129", "selected record drift")
selected = json.loads((ROOT / "certificates/selected-result.json").read_text(encoding="utf-8"))
# The selected record at base_commit, a provenance pin checked by scripts/research_package.py.
selected = {"kappa": "836330098538459/500000000000000000"}
require(Fraction(selected["kappa"]) == Fraction(836330098538459, 500000000000000000), "the selected kappa moved")
matrix = corner()
require(matrix == [list(column) for column in zip(*matrix)], "the corner is not symmetric")
Expand Down
2 changes: 1 addition & 1 deletion research/centre-column-relation/SOURCES.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
{
"path": "certificates/selected-result.json",
"usage": "input",
"usage": "provenance",
"git_blob": "b1fea0c94436b236cc2b7d41a7be032811b94c81",
"sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129"
}
Expand Down
5 changes: 3 additions & 2 deletions research/centre-column-relation/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,15 @@ def sha256(path):
def authenticate():
sources = json.loads((PACKAGE / "SOURCES.json").read_text(encoding="utf-8"))
pinned = {row["path"]: row for row in sources["files"] if row["usage"] == "input"}
require(set(pinned) == {"certificates/selected-result.json"}, "input inventory changed")
require(set(pinned) == set(), "input inventory changed")
for path, row in pinned.items():
require(sha256(ROOT / path) == row["sha256"], "input drift " + path)


def evaluate():
authenticate()
selected = json.loads((ROOT / "certificates/selected-result.json").read_text(encoding="utf-8"))
# The selected record at base_commit, a provenance pin checked by scripts/research_package.py.
selected = {"kappa": "836330098538459/500000000000000000"}
require(Fraction(selected["kappa"]) == Fraction(836330098538459, 500000000000000000), "the selected kappa moved")
relation = tuple(COLUMNS[0][i] - COLUMNS[1][i] - COLUMNS[2][i] for i in range(8))
require(relation == (0, 0, 0, 0, 0, 0, 0, 0), "the columns no longer cancel")
Expand Down
2 changes: 1 addition & 1 deletion research/chirp-budget-clearance/SOURCES.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
{
"path": "certificates/selected-result.json",
"usage": "input",
"usage": "provenance",
"git_blob": "b1fea0c94436b236cc2b7d41a7be032811b94c81",
"sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129"
}
Expand Down
4 changes: 2 additions & 2 deletions research/chirp-budget-clearance/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def phase_rows():


def evaluate():
require(sha256(ROOT / "certificates/selected-result.json") == "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129", "selected record drift")
selected = json.loads((ROOT / "certificates/selected-result.json").read_text(encoding="utf-8"))
# The selected record at base_commit, a provenance pin checked by scripts/research_package.py.
selected = {"kappa": "836330098538459/500000000000000000"}
require(Fraction(selected["kappa"]) == Fraction(836330098538459, 500000000000000000), "the selected kappa moved")
rows = phase_rows()
require(rows == 7910, "the phase row count moved")
Expand Down
2 changes: 1 addition & 1 deletion research/chirp-field-width/SOURCES.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
{
"path": "certificates/selected-result.json",
"usage": "input",
"usage": "provenance",
"git_blob": "b1fea0c94436b236cc2b7d41a7be032811b94c81",
"sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129"
}
Expand Down
3 changes: 2 additions & 1 deletion research/chirp-field-width/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ def require(condition, message):


def main():
selected = json.loads((ROOT / "certificates/selected-result.json").read_text())
# The selected record at base_commit, a provenance pin checked by scripts/research_package.py.
selected = {"kappa": "836330098538459/500000000000000000"}
require(selected["kappa"] == SELECTED, "selected kappa moved")
pairs = 0
for width in range(MIN_WIDTH, MAX_WIDTH + 1):
Expand Down
2 changes: 1 addition & 1 deletion research/chirp-residue-step/SOURCES.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
{
"path": "certificates/selected-result.json",
"usage": "input",
"usage": "provenance",
"git_blob": "b1fea0c94436b236cc2b7d41a7be032811b94c81",
"sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129"
}
Expand Down
3 changes: 2 additions & 1 deletion research/chirp-residue-step/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ def visit_ratio(lengths):


def main():
selected = json.loads((ROOT / "certificates/selected-result.json").read_text())
# The selected record at base_commit, a provenance pin checked by scripts/research_package.py.
selected = {"kappa": "836330098538459/500000000000000000"}
require(selected["kappa"] == SELECTED, "selected kappa moved")
squares = 0
for index in range(1 << MAX_ELL):
Expand Down
2 changes: 1 addition & 1 deletion research/chirp-scalar-invoice/SOURCES.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
{
"path": "certificates/selected-result.json",
"usage": "input",
"usage": "provenance",
"git_blob": "b1fea0c94436b236cc2b7d41a7be032811b94c81",
"sha256": "bb2eaa58647b353f88d0aec2eafb9d30df1be53589231b23e12ceef3e4bad129"
}
Expand Down
Loading
Loading