Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
76f8703
research(rh): pin proof anchors, proxy gym tasks and CI
patrickdugan Nov 21, 2026
967612f
test(rh): add CPU source audit and kernel-scored Lean reconstruction …
patrickdugan Nov 21, 2026
02b2eb8
feat(rh): bounded Lean proof-expression dependency scanner and tests
patrickdugan Nov 21, 2026
d89692e
research(rh): source-traced +7 epsilon budget, two proof tasks, and C…
patrickdugan Nov 21, 2026
c7e1504
fix(rh): serialize Lean truncation proof as Boolean
patrickdugan Nov 21, 2026
e124e1e
feat(rh): strict pinned-source call graph and CoreAtH contract auditor
patrickdugan Nov 21, 2026
c4fb9cc
ci(rh): execute pinned upstream source audit with sparse read-only ch…
patrickdugan Nov 21, 2026
d3972cf
fix(rh): read top-level core_gm theorem through EOF
patrickdugan Nov 21, 2026
9100ae9
research(rh): trace theta/covolume/Galois junction in pinned upstream…
patrickdugan Nov 21, 2026
2d9ead5
test(rh): add source-faithful literature interface and witness-transp…
patrickdugan Nov 21, 2026
19c5588
fix(rh): destruct existential witness in Prop rather than projecting …
patrickdugan Nov 21, 2026
84feb12
fix(rh): model ChainTied witness as existential Prop instead of illeg…
patrickdugan Nov 21, 2026
fd4f6f7
research(rh): full pinned-source import closure and scoped CI audit
patrickdugan Nov 21, 2026
0f0554a
feat(rh): restore only pinned compiled analytic modules and inspect r…
patrickdugan Nov 21, 2026
8939b7f
fix(rh): resolve namespaced analytic Landau theorem in compiled cache…
patrickdugan Nov 21, 2026
7f73dab
research(rh): record hash-pinned actual compiled proof dependencies f…
patrickdugan Nov 21, 2026
fcb2173
feat(rh): compiled proof-term drilldown for character balance and siz…
patrickdugan Nov 21, 2026
838dda2
test(rh): add character averaging and size-window Lean reconstruction…
patrickdugan Nov 21, 2026
900a3f6
fix(rh): correct averaging proof and counted error-budget proxy
patrickdugan Nov 21, 2026
f6afe06
research(rh): locate source declarations behind compiled GrowthSizeBo…
patrickdugan Nov 21, 2026
633d45b
fix(rh): normalize counted error-factor multiplication explicitly in …
patrickdugan Nov 21, 2026
3d3d63d
research(rh): formalize size-window feasibility and review published …
patrickdugan Nov 21, 2026
9ab0e74
fix(rh): finish finite-error Lean proof and record verified SZ lemma …
patrickdugan Nov 21, 2026
30a6ffb
research(rh): exact dyadic SizeWindows scalar witnesses and falsifica…
patrickdugan Nov 21, 2026
fad1495
ci(rh): run exact dyadic scalar witnesses and pinned predicate source…
patrickdugan Nov 21, 2026
91296d2
test(rh): formalize b and theta constraints from SmallCosts
patrickdugan Nov 21, 2026
7b03fff
research(rh): pin complete source-level family witness transition gates
patrickdugan Nov 21, 2026
d7d2b68
fix(rh): give Lean explicit intermediate inequality in SmallCosts proof
patrickdugan Nov 21, 2026
1c5557b
research(rh): certify SizesAt and PlacesAt exact small-epsilon scalar…
patrickdugan Nov 21, 2026
5ccbe66
research(rh): test joint LargeX and SmallCosts scalar feasibility at …
patrickdugan Nov 21, 2026
9aba52d
docs(rh): pin verified joint scalar feasibility receipt and caveats
patrickdugan Nov 21, 2026
b9056a7
docs(rh): designate MathCan as proof-math home; keep EvalMath as benc…
patrickdugan Nov 21, 2026
b784d90
fix(rh): replace backtracking module regexp with linear validation
patrickdugan Nov 21, 2026
f4955b8
test(rh): cover adversarial and invalid Lean module paths
patrickdugan Nov 21, 2026
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
70 changes: 70 additions & 0 deletions .github/workflows/rh-chcore-proofrefs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: RH ChCore deep compiled-reference probe

on:
push:
paths:
- 'src/spiral_ln/rh_deep_analytic.py'
- 'tests/test_rh_deep_analytic.py'
- '.github/workflows/rh-chcore-proofrefs.yml'
pull_request:
paths:
- 'src/spiral_ln/rh_deep_analytic.py'
- 'tests/test_rh_deep_analytic.py'
- '.github/workflows/rh-chcore-proofrefs.yml'
workflow_dispatch:

permissions:
contents: read

jobs:
compiled-chcore:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
with:
path: evalmath
persist-credentials: false
- uses: actions/checkout@v4
with:
repository: leanprover-community/riemann-hypothesis
ref: f150e02623b1e2bbe1f1da8eab5ffee5e930a6a3
path: upstream
persist-credentials: false
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install gym and test ChCore parser contracts
working-directory: evalmath
run: |
python -m pip install -e '.[test]'
python -m pytest -q tests/test_rh_deep_analytic.py
- name: Install Lean from the pinned upstream toolchain
run: |
curl -sSfL https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -o "$RUNNER_TEMP/elan-init.sh"
bash "$RUNNER_TEMP/elan-init.sh" -y --default-toolchain none
echo "$HOME/.elan/bin" >> "$GITHUB_PATH"
- name: Restore official Mathlib cache
working-directory: upstream
env:
MATHLIB_CACHE_GET_URL: https://cache.mathlib.org/mathlib4
run: |
lake exe mathlib/cache get
df -h .
- name: Probe original CharacterBalanceMoves.core and proposition_size_bound
working-directory: evalmath
run: |
mkdir -p rh-chcore-proofrefs
python -m spiral_ln.rh_deep_analytic \
--source-root ../upstream \
--targets balance_core size_bound \
--max-modules 200 --max-depth 1 --max-nodes 120 \
--output rh-chcore-proofrefs/proofref_graph.json \
--summary rh-chcore-proofrefs/summary.json
- name: Upload source-pinned compiled proof-reference receipts
if: always()
uses: actions/upload-artifact@v4
with:
name: rh-chcore-compiled-ref-graph
path: evalmath/rh-chcore-proofrefs/
if-no-files-found: ignore
75 changes: 75 additions & 0 deletions .github/workflows/rh-compiled-slice.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: RH selective compiled proof-expression probe

on:
push:
paths:
- 'src/spiral_ln/rh_selective_olean.py'
- 'src/spiral_ln/rh_dependency.py'
- 'src/spiral_ln/rh_full_closure.py'
- 'tests/test_rh_selective_olean.py'
- 'gyms/RHProofDistillation/anchors.json'
- '.github/workflows/rh-compiled-slice.yml'
pull_request:
paths:
- 'src/spiral_ln/rh_selective_olean.py'
- 'src/spiral_ln/rh_dependency.py'
- 'src/spiral_ln/rh_full_closure.py'
- 'tests/test_rh_selective_olean.py'
- 'gyms/RHProofDistillation/anchors.json'
- '.github/workflows/rh-compiled-slice.yml'
workflow_dispatch:

permissions:
contents: read

jobs:
compiled-analytic-slice:
runs-on: ubuntu-latest
timeout-minutes: 80
steps:
- uses: actions/checkout@v4
with:
path: evalmath
persist-credentials: false
- uses: actions/checkout@v4
with:
repository: leanprover-community/riemann-hypothesis
ref: f150e02623b1e2bbe1f1da8eab5ffee5e930a6a3
path: upstream
persist-credentials: false
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install audit Python code
working-directory: evalmath
run: |
python -m pip install -e '.[test]'
python -m pytest -q tests/test_rh_selective_olean.py
- name: Install Lean version from upstream's original toolchain
run: |
curl -sSfL https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -o "$RUNNER_TEMP/elan-init.sh"
bash "$RUNNER_TEMP/elan-init.sh" -y --default-toolchain none
echo "$HOME/.elan/bin" >> "$GITHUB_PATH"
- name: Fetch official Mathlib cache without building the RH proof
working-directory: upstream
env:
MATHLIB_CACHE_GET_URL: https://cache.mathlib.org/mathlib4
run: |
lake exe mathlib/cache get
df -h .
- name: Restore only the 30- and 115-module upstream analytic slices
working-directory: evalmath
run: |
mkdir -p rh-compiled-slice
python -m spiral_ln.rh_selective_olean \
--source-root ../upstream \
--anchors analytic_window weighted_bound \
--max-modules 200 --max-depth 2 --max-nodes 120 \
--output rh-compiled-slice/analytic-proof-refs.json
- name: Upload full compiled expression references
if: always()
uses: actions/upload-artifact@v4
with:
name: rh-compiled-analytic-proof-refs
path: evalmath/rh-compiled-slice/
if-no-files-found: ignore
62 changes: 62 additions & 0 deletions .github/workflows/rh-full-closure.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: RH full pinned import closure

on:
push:
paths:
- 'src/spiral_ln/rh_full_closure.py'
- 'tests/test_rh_full_closure.py'
- 'gyms/RHProofDistillation/anchors.json'
- '.github/workflows/rh-full-closure.yml'
pull_request:
paths:
- 'src/spiral_ln/rh_full_closure.py'
- 'tests/test_rh_full_closure.py'
- 'gyms/RHProofDistillation/anchors.json'
- '.github/workflows/rh-full-closure.yml'
workflow_dispatch:

permissions:
contents: read

jobs:
complete-source:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
with:
path: evalmath
persist-credentials: false
- uses: actions/checkout@v4
with:
repository: leanprover-community/riemann-hypothesis
ref: f150e02623b1e2bbe1f1da8eab5ffee5e930a6a3
path: upstream
persist-credentials: false
sparse-checkout: |
src
sparse-checkout-cone-mode: true
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install EvalMath and run closure unit tests
working-directory: evalmath
run: |
python -m pip install -e '.[test]'
python -m pytest -q tests/test_rh_full_closure.py
- name: Count full pinned import dependencies for four anchors and Main
working-directory: evalmath
run: |
mkdir -p rh-full-closure
python -m spiral_ln.rh_full_closure \
--source-root ../upstream \
--roots weighted_bound all_characters theta_galois analytic_window \
--include-main \
--output rh-full-closure/closures.json
- name: Upload complete-source import graph receipt
if: always()
uses: actions/upload-artifact@v4
with:
name: rh-full-import-closure
path: evalmath/rh-full-closure/
if-no-files-found: ignore
65 changes: 65 additions & 0 deletions .github/workflows/rh-locate-size-bound.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: RH locate published size-bound declarations

on:
pull_request:
paths:
- '.github/workflows/rh-locate-size-bound.yml'
workflow_dispatch:

permissions:
contents: read

jobs:
source-symbols:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
with:
repository: leanprover-community/riemann-hypothesis
ref: f150e02623b1e2bbe1f1da8eab5ffee5e930a6a3
path: upstream
persist-credentials: false
sparse-checkout-cone-mode: false
sparse-checkout: |
src/Formalism/
- name: Locate exact theorem and proposition declarations
run: |
python3 - <<'PY'
import hashlib, json, re, subprocess
from pathlib import Path

root = Path("upstream")
pin = "f150e02623b1e2bbe1f1da8eab5ffee5e930a6a3"
head = subprocess.check_output(["git", "-C", str(root), "rev-parse", "HEAD"], text=True).strip()
assert head == pin, (head, pin)
pattern = re.compile(
r"^\s*(?:private\s+|noncomputable\s+|protected\s+)*"
r"(?:theorem|lemma|def|structure|class|abbrev)\s+([\w.₁₂₃₄₅]+)", re.UNICODE)
targets = ("proposition_size_bound", "GrowthSizeBound")
out, matching_files = [], []
for path in sorted((root / "src/Formalism").rglob("*.lean")):
raw = path.read_bytes()
if not any(t.encode() in raw for t in targets):
continue
matching_files.append(path.relative_to(root).as_posix())
blob = hashlib.sha1(b"blob " + str(len(raw)).encode() + b"\0" + raw).hexdigest()
for lineno, line in enumerate(raw.decode("utf-8").splitlines(), 1):
m = pattern.match(line)
if m and any(m.group(1).endswith(t) for t in targets):
out.append({"symbol": m.group(1), "path": path.relative_to(root).as_posix(),
"line": lineno, "git_blob": blob})
if not out:
raise SystemExit("No size-bound declarations found in Formalism")
receipt = {"source_commit": head, "scan": "source_declaration_lines_only",
"proof_term_data": False, "files_with_mentions": len(matching_files),
"declarations": out}
Path("source-symbols.json").write_text(json.dumps(receipt, indent=2, sort_keys=True) + "\n")
print(json.dumps(receipt, sort_keys=True))
PY
- uses: actions/upload-artifact@v4
if: always()
with:
name: rh-size-bound-source-symbols
path: source-symbols.json
if-no-files-found: ignore
82 changes: 82 additions & 0 deletions .github/workflows/rh-pinned-source.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: RH pinned upstream source audit

on:
push:
paths:
- 'src/spiral_ln/rh_source_audit.py'
- 'src/spiral_ln/rh_dependency.py'
- 'gyms/RHProofDistillation/anchors.json'
- 'gyms/RHProofDistillation/core_gm_sources.json'
- 'tests/test_rh_source_audit.py'
- '.github/workflows/rh-pinned-source.yml'
pull_request:
paths:
- 'src/spiral_ln/rh_source_audit.py'
- 'src/spiral_ln/rh_dependency.py'
- 'gyms/RHProofDistillation/anchors.json'
- 'gyms/RHProofDistillation/core_gm_sources.json'
- 'tests/test_rh_source_audit.py'
- '.github/workflows/rh-pinned-source.yml'
workflow_dispatch:

permissions:
contents: read

jobs:
pinned-source:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
with:
path: evalmath
persist-credentials: false
- uses: actions/checkout@v4
with:
repository: leanprover-community/riemann-hypothesis
ref: f150e02623b1e2bbe1f1da8eab5ffee5e930a6a3
path: upstream
persist-credentials: false
sparse-checkout-cone-mode: false
sparse-checkout: |
src/Main.lean
src/Statements.lean
src/Development/AutomorphicArithmetic/CharacterBoxes/MainConclusion.lean
src/Development/AutomorphicArithmetic/Foundations/GaloisRepresentations/IntegralStructures/RowSrc.lean
src/Development/AutomorphicArithmetic/AutomorphicVarieties/ModularityArgument/ThresholdArguments/DenseThresholdCases/VwinOfRow.lean
src/Development/AutomorphicArithmetic/ThetaCorrespondence/ThetaPairLifts/ThirdPlaceSeries/EveryCharacterOfLiteratureOfVWin.lean
src/Formalism/SharpRestriction/GlobalSchurBounds/TieGlobal.lean
src/Development/AutomorphicArithmetic/PrimitiveCosets/
src/Development/AutomorphicArithmetic/DedekindLFunctions/LandauTheorems/
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install audit-only Python package
working-directory: evalmath
run: python -m pip install -e '.[test]'
- name: Unit tests
working-directory: evalmath
run: python -m pytest -q tests/test_rh_source_audit.py
- name: Extract pinned source callsite and boundary graph
working-directory: evalmath
run: |
mkdir -p rh-source
python -m spiral_ln.rh_source_audit \
--source-root ../upstream \
--output rh-source/core-gm-pinned-source.json
- name: Emit proof-term probe script for large runner
working-directory: evalmath
run: |
python -m spiral_ln.rh_dependency upstream \
--source-root ../upstream \
--anchors weighted_bound \
--max-depth 2 --max-nodes 120 \
--emit-script rh-source/core-gm-proof-term-probe.lean \
--output rh-source/proof-probe-staging.json
- name: Upload pinned-source receipts
if: always()
uses: actions/upload-artifact@v4
with:
name: rh-pinned-source-receipts
path: evalmath/rh-source/
if-no-files-found: ignore
Loading
Loading