Skip to content

Commit ae1b681

Browse files
hyperpolymathJonathan D.A. Jewellcoderabbitai[bot]
authored
t1-exception-2026-10-12 (#188)
See the commit messages, PROOF-STATUS and decision records on the branch. CI workflow changes are parked under docs/ci-pending pending the Workflows token permission. All review-app findings to be addressed before merge. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Clarified that Agda is the proof kernel and Idris2 provides the ABI/FFI layer, while Z3 performs bounded checks. Coq, Lean 4, Isabelle/HOL, and Mizar developments are archived; the 61 axioms are associated with those archived developments. * Recorded the policy exception and T7’s ruling: D204’s interface is a proof-level contract, with an Agda implementation and an Idris2 runtime mirror. The decision may be reopened if a law cannot be stated under the required Agda settings. * **Tests** * Added checks for policy records, referenced proof modules, archive locations, and the documented Idris2 escape-hatch count. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Jonathan D.A. Jewell <jonathan@hyperpolymath.dev> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 4d5ecbd commit ae1b681

4 files changed

Lines changed: 162 additions & 0 deletions

File tree

‎README.adoc‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,12 @@ Mirrored
180180

181181
== *Axioms are unproven assumptions, not theorems.* The Coq CNO development rests on 61 axioms (e.g., quantum-gate unitarity, complex-analysis identities, Shannon-entropy non-negativity, filesystem inverse laws). "`Machine-checked`" means checked _relative to those axioms_—not an axiom-free proof. The OND pillar (OND-1..5) is axiom-free. Discharging the CNO axioms is the next major obligation.
182182

183+
[NOTE]
184+
====
185+
2026-10-12: the Coq, Lean 4, Isabelle/HOL and Mizar developments are archived under `archive/` (owner ruling 2026-10-10); the 61 axioms are theirs. The active stack is Idris2 (ABI) + Agda (`proofs/agda/`: CNO, OND, EchoBridgeCNO), zero axioms, with Z3 for bounded checks. See link:docs/EXCEPTION-T1-2026-10-12.adoc[] for the LANGUAGE-POLICY exception and link:docs/DECISION-T7-2026-10-12.adoc[] for the T7 ruling.
186+
====
187+
188+
183189
== [CAUTION]
184190

185191
== *Z3, Isabelle, and Mizar are generated but not yet run.* The artefacts exist in-tree but are not part of the CI gate. Only Coq, Lean 4, and Agda are machine-checked in CI.

‎docs/DECISION-T7-2026-10-12.adoc‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
= T7 (ruled) — D204's Coq `Module Type` for the valence-shell interface, after the archive ruling
2+
:revdate: 2026-10-12
3+
4+
*Conflict.* D204 specifies the valence-shell interface as a Coq `Module
5+
Type`; the 2026-10-10 ruling archived Coq.
6+
7+
*Resolution (RULED by the owner, 2026-10-12).* The interface is a
8+
*proof-level* contract, so it belongs with the kernel: an Agda `record`
9+
under `proofs/agda/` (the same shape `ResourceAlgebra` uses — fields for
10+
the operations, fields for the laws). Where the interface crosses into
11+
runtime, the Idris2 ABI carries a *mirror* record with the laws omitted
12+
and a named correspondence obligation, exactly as resource-algebra's M-2
13+
treats Lean. D204 is amended, not withdrawn: its content survives, its
14+
prover does not.
15+
16+
*Why not Idris2 for the interface itself.* Laws as fields need a kernel
17+
with `--safe`; Idris2's escape hatches are in live use in this repo's ABI
18+
(10 `believe_me`). The ruling draws the line there on purpose.
19+
20+
*Falsifier.* If some law in D204 cannot be stated under `--without-K`
21+
(the ruling's standing falsifier), T7 reopens with evidence.

‎docs/EXCEPTION-T1-2026-10-12.adoc‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// SPDX-License-Identifier: CC-BY-SA-4.0
2+
// For absolute-zero: resolves ULTRAPLAN-OPEN-ISSUES T1 (proof-assistant policy).
3+
= Exception record — LANGUAGE-POLICY v1.6.0 §formal verification
4+
:revdate: 2026-10-12
5+
6+
*Policy text:* "Idris2 is the only formal-verification language."
7+
8+
*Exception:* Agda (`--safe --without-K`) is the family proof kernel per
9+
nextgen-typing D-2026-10-12; Idris2 remains the ABI/FFI layer (src/abi,
10+
`absolute-zero-abi.ipkg`). Z3 is a bounded-check solver, not a prover.
11+
12+
*Scope:* `proofs/agda/` (CNO.agda, OND.agda, EchoBridgeCNO.agda,
13+
EchoBridgeScaffold.agda). Coq, Lean 4, Isabelle/HOL and Mizar stay under
14+
`archive/proofs/` (owner ruling 2026-10-10).
15+
16+
*Open consequence:* T7 — D204's Coq `Module Type` for valence-shell cannot
17+
be written under this ruling. Owner to choose: Agda record interface,
18+
Idris2 interface, or withdraw D204.
19+
20+
*Housekeeping tied to this record:* README.adoc still advertises
21+
multi-prover verification and "61 axioms" (which live only in
22+
`archive/`); TIERS.adoc still names Coq and Isabelle. Both to be brought
23+
into line with the artefact (three-layer rule).

‎tests/check-policy-records.sh‎

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
#!/usr/bin/env bash
2+
# SPDX-License-Identifier: MPL-2.0
3+
# Acceptance checks for the documentation added by PR #188. No prover runs.
4+
# Usage: bash tests/check-policy-records.sh (bash/awk only; finishes in seconds).
5+
# These check references and factual claims, not prose or proof correctness.
6+
set -euo pipefail
7+
repo_root="$(cd "$(dirname "$0")/.." && pwd)"
8+
cd "$repo_root"
9+
export LC_ALL=C
10+
failures=0
11+
cases=0
12+
13+
expect() {
14+
local label=$1
15+
shift
16+
cases=$((cases + 1))
17+
if "$@"; then
18+
printf 'PASS: %s\n' "$label"
19+
else
20+
printf 'FAIL: %s\n' "$label" >&2
21+
failures=$((failures + 1))
22+
fi
23+
}
24+
25+
exception=docs/EXCEPTION-T1-2026-10-12.adoc
26+
decision=docs/DECISION-T7-2026-10-12.adoc
27+
for document in README.adoc "$exception" "$decision"; do
28+
# Missing input must fail before extraction, never yield an empty passing loop.
29+
if [[ ! -s "$document" ]]; then
30+
printf 'FAIL: missing or empty document: %s\n' "$document" >&2
31+
exit 1
32+
fi
33+
done
34+
35+
# Resolve the actual link in the new README note, relative to the README.
36+
mapfile -t links < <(awk '
37+
{
38+
while (match($0, /link:[^[:space:][]*EXCEPTION-T1[^[:space:][]*\[/)) {
39+
print substr($0, RSTART + 5, RLENGTH - 6)
40+
$0 = substr($0, RSTART + RLENGTH)
41+
}
42+
}
43+
' README.adoc)
44+
expect 'README has one T1 exception link' test "${#links[@]}" -eq 1
45+
for target in "${links[@]}"; do
46+
expect "README exception link resolves: $target" test -s "$target"
47+
done
48+
49+
# Extract the named modules rather than duplicating the exception's inventory.
50+
mapfile -t modules < <(awk '
51+
{
52+
while (match($0, /[[:alnum:]_]+[.]agda/)) {
53+
print substr($0, RSTART, RLENGTH)
54+
$0 = substr($0, RSTART + RLENGTH)
55+
}
56+
}
57+
' "$exception")
58+
expect 'T1 names at least one proof module' test "${#modules[@]}" -gt 0
59+
for module in "${modules[@]}"; do
60+
expect "T1 module exists: $module" test -s "proofs/agda/$module"
61+
for flag in --safe --without-K; do
62+
expect "$module declares the T1 safety condition $flag" awk -v flag="$flag" '
63+
/^[[:space:]]*\{-# OPTIONS / {
64+
for (i = 3; i <= NF; i++) if ($i == flag) found = 1
65+
}
66+
END { exit !found }
67+
' "proofs/agda/$module"
68+
done
69+
done
70+
71+
# The archive claim must not silently point readers back to an active tree.
72+
for prover in coq lean4 isabelle mizar; do
73+
expect "archived $prover tree exists" test -d "archive/proofs/$prover"
74+
expect "$prover has no active proof tree" test ! -e "proofs/$prover"
75+
done
76+
expect 'T7 proof-contract destination exists' test -d proofs/agda
77+
expect 'T1 ABI package exists' test -s absolute-zero-abi.ipkg
78+
expect 'T1 ABI directory matches the package source directory' awk '
79+
/^[[:space:]]*sourcedir[[:space:]]*=[[:space:]]*"src\/abi"[[:space:]]*$/ { found = 1 }
80+
END { exit !found }
81+
' absolute-zero-abi.ipkg
82+
expect 'T1 ABI source directory exists' test -d src/abi
83+
84+
# Negative/regression case: documentation and line comments are not live
85+
# escape hatches. Follow scripts/check-proof-patterns.sh counting semantics;
86+
# count occurrences (including multiple on one line), not matching lines.
87+
documented_count=$(awk '
88+
match($0, /[0-9]+[[:space:]]+`believe_me`/) {
89+
print substr($0, RSTART, RLENGTH) + 0
90+
}
91+
' "$decision")
92+
shopt -s globstar nullglob
93+
abi_sources=(src/abi/**/*.idr)
94+
expect 'ABI census has source inputs' test "${#abi_sources[@]}" -gt 0
95+
if ((${#abi_sources[@]} > 0)); then
96+
live_count=$(awk '
97+
/^[[:space:]]*\|\|\|/ { next }
98+
{
99+
sub(/--.*/, "")
100+
while (match($0, /believe_me/)) {
101+
count++
102+
$0 = substr($0, RSTART + RLENGTH)
103+
}
104+
}
105+
END { print count + 0 }
106+
' "${abi_sources[@]}")
107+
expect "T7 live believe_me count: documented=$documented_count, actual=$live_count" \
108+
test "$documented_count" = "$live_count"
109+
fi
110+
111+
printf 'POLICY-RECORDS: %s checks, %s failures\n' "$cases" "$failures"
112+
test "$failures" -eq 0

0 commit comments

Comments
 (0)