From 5a470bfd739aba22e32b91587d5dfc031a7de3fc Mon Sep 17 00:00:00 2001 From: Dylan Roy <249851642+d6g8k5htny-coder@users.noreply.github.com> Date: Thu, 29 Oct 2026 16:22:24 -0500 Subject: [PATCH 1/2] Test source-scoped constant-law countermodel --- .../cbz-lifetime-pair-law-countermodel.yml | 45 +++++++++++++++++++ .../CounterexampleE4.lean | 45 +++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 .github/workflows/cbz-lifetime-pair-law-countermodel.yml create mode 100644 specifications/lean_statements_20261010/CounterexampleE4.lean diff --git a/.github/workflows/cbz-lifetime-pair-law-countermodel.yml b/.github/workflows/cbz-lifetime-pair-law-countermodel.yml new file mode 100644 index 000000000..ee8ed4312 --- /dev/null +++ b/.github/workflows/cbz-lifetime-pair-law-countermodel.yml @@ -0,0 +1,45 @@ +name: CBZ conditional pair-law countermodel +on: + push: + branches: ["cbz/lifetime-pair-law-countermodel-20261029"] +permissions: + contents: read +jobs: + scoped-countermodel: + runs-on: ubuntu-latest + timeout-minutes: 45 + env: + LEAN_NUM_THREADS: '2' + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 + with: + persist-credentials: false + - uses: leanprover/lean-action@24581d74d674803a25a81b10b059c5c0cdd344c6 + with: + lake-package-directory: specifications/lean_statements_20261010 + auto-config: 'false' + build: 'false' + test: 'false' + lint: 'false' + use-mathlib-cache: 'true' + use-github-cache: 'false' + - name: Build exact specification, compile candidate and recheck + shell: bash + run: | + set -euo pipefail + cd specifications/lean_statements_20261010 + git rev-parse HEAD + lake build Specifications.Lifetime + mkdir -p .lake/build/lib/lean + lake env lean -o .lake/build/lib/lean/CounterexampleE4.olean CounterexampleE4.lean 2>&1 | tee "$RUNNER_TEMP/cbz-countermodel-lean.log" + lake env leanchecker CounterexampleE4 2>&1 | tee "$RUNNER_TEMP/cbz-countermodel-kernel.log" + sha256sum CounterexampleE4.lean "$RUNNER_TEMP"/cbz-countermodel-*.log + - name: Retain outputs even on failure + if: always() + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 + with: + name: cbz-pair-law-countermodel-${{ github.run_id }}-${{ github.run_attempt }} + path: | + specifications/lean_statements_20261010/CounterexampleE4.lean + ${{ runner.temp }}/cbz-countermodel-*.log + if-no-files-found: error diff --git a/specifications/lean_statements_20261010/CounterexampleE4.lean b/specifications/lean_statements_20261010/CounterexampleE4.lean new file mode 100644 index 000000000..3b7712e41 --- /dev/null +++ b/specifications/lean_statements_20261010/CounterexampleE4.lean @@ -0,0 +1,45 @@ +import Specifications.Lifetime + +/-! +A source-scoped countermodel for the abstract pair-law interface. +The field, elder interface and frame are parameters; no existence of them is +claimed here. The constant law is permitted by the existing interface but is +not asserted to be the geometric elder probability of any Gaussian field. +-/ + +namespace CBZ.LifetimePairLawCountermodel +open UniversalLaw.Spec.Lifetime + +def oneLaw (L : ℝ) (G : GaussianFieldInterface 2 L) + (I : SuperlevelBarInterface 2 L) : PairLawInterface 2 L G I where + p := fun _ _ _ _ => 1 + p_nonneg := by intros; norm_num + p_le_one := by intros; norm_num + +theorem oneLaw_upper (L : ℝ) (G : GaussianFieldInterface 2 L) + (I : SuperlevelBarInterface 2 L) (bLo bHi kLo kHi : ℝ) : + ParentUniformSelectionA 2 L G I (oneLaw L G I) bLo bHi kLo kHi := by + intro _ _ _ _ _ + refine ⟨1, by norm_num, 0, ?_⟩ + intro r hr hrs b hb k hk R + simp [oneLaw] + +theorem oneLaw_refutes_twoSided (L : ℝ) (G : GaussianFieldInterface 2 L) + (I : SuperlevelBarInterface 2 L) (hL : 0 < L) + (R : OrthonormalBasis (Fin 2) ℝ (E 2)) : + ¬ PlanarTwoSidedRateE4 L G I (oneLaw L G I) 0 0 1 1 := by + intro hypothetical + have upper := oneLaw_upper L G I 0 0 1 1 + obtain ⟨c, hc, C, rStar, hrs, bound⟩ := + hypothetical upper hL (by norm_num) (by norm_num) (by norm_num) + have hr : 0 < rStar / 2 := by linarith + have hle : rStar / 2 ≤ rStar := by linarith + have hbound : c * (rStar / 2) ^ 3 ≤ 0 := by + simpa [oneLaw] using (bound (rStar / 2) hr hle 0 (by simp) 1 (by simp) R).1 + have hpositive : 0 < c * (rStar / 2) ^ 3 := mul_pos hc (pow_pos hr 3) + linarith + +#print axioms oneLaw_upper +#print axioms oneLaw_refutes_twoSided + +end CBZ.LifetimePairLawCountermodel From 9e89980bfa4f281e00550f481202033775f35485 Mon Sep 17 00:00:00 2001 From: Dylan Roy <249851642+d6g8k5htny-coder@users.noreply.github.com> Date: Thu, 29 Oct 2026 16:53:46 -0500 Subject: [PATCH 2/2] Qualify decoded historical log custody --- .gitattributes | 2 +- cbz/lifetime_pair_law/DECISIONS.md | 2 +- cbz/lifetime_pair_law/README.md | 5 +++-- cbz/lifetime_pair_law/evidence/observation.json | 3 ++- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.gitattributes b/.gitattributes index 501dc87d6..87cfbce9f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -9,5 +9,5 @@ imports/hardening_ebedb780/P02-LM-007/proof.md.export.txt -text imports/hardening_ebedb780/P02-LM-008/proof.md.export.txt -text imports/hardening_ebedb780/P15-B/P15-B_PALETTE_SEPARATED_LOCALIZATION.md -text -# Preserve the exact historical hosted output, including trailing whitespace. +# Preserve the retrieved decoded historical log text, including trailing whitespace. cbz/lifetime_pair_law/evidence/original-job.log whitespace=-blank-at-eol,-blank-at-eof diff --git a/cbz/lifetime_pair_law/DECISIONS.md b/cbz/lifetime_pair_law/DECISIONS.md index f748fa6e1..463d2f94e 100644 --- a/cbz/lifetime_pair_law/DECISIONS.md +++ b/cbz/lifetime_pair_law/DECISIONS.md @@ -1,7 +1,7 @@ # Pair-law integration decisions - 2026-10-29: Preserve the previously Lean-checked proof bytes, original hosted - job log and original workflow in a separate proof/evidence directory. The + decoded job-log text and original workflow in a separate proof/evidence directory. The statement-only packet's exact inventory rejects an added Lean file, so the scoped workflow creates a temporary copy for compilation and removes only that copy afterward. The existing statement package, mathematical bounds and diff --git a/cbz/lifetime_pair_law/README.md b/cbz/lifetime_pair_law/README.md index 655aac2cb..eaab733e5 100644 --- a/cbz/lifetime_pair_law/README.md +++ b/cbz/lifetime_pair_law/README.md @@ -22,8 +22,9 @@ Historical [run 40957238766](https://github.com/d6g8k5htny-coder/Math-/actions/r job `123740377857`, at exact commit `5a470bfd739aba22e32b91587d5dfc031a7de3fc` compiled the proof and completed `leanchecker`; both declarations printed only `propext`, -`Classical.choice` and `Quot.sound`. The original GitHub job log is -retained under `evidence/original-job.log`. GitHub artifact `12936365078` +`Classical.choice` and `Quot.sound`. The connector's decoded GitHub job log is retained under +`evidence/original-job.log`; byte identity of the original log download has not +independently been verified. GitHub artifact `12936365078` reports ZIP SHA-256 `d2cebfee006c1fdb924c49dec0d9a80c745579335953b989a3225eae5b9a166d`; its ZIP bytes have not independently been downloaded here. diff --git a/cbz/lifetime_pair_law/evidence/observation.json b/cbz/lifetime_pair_law/evidence/observation.json index 14731c483..3efffb8ad 100644 --- a/cbz/lifetime_pair_law/evidence/observation.json +++ b/cbz/lifetime_pair_law/evidence/observation.json @@ -18,6 +18,7 @@ "limitations": [ "The artifact ZIP was not independently downloaded or verified here.", "The new source location and current-base integration require a fresh execution.", - "The formal conclusions retain their explicit interfaces and do not construct the geometric law." + "The formal conclusions retain their explicit interfaces and do not construct the geometric law.", + "The retained job log is the connector-decoded text; the original downloaded log bytes were not independently verified." ] }