From 9aa9f47db1efe8cd551261e3424ad9c7b03b382a Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 17 Nov 2026 22:16:47 +0000 Subject: [PATCH] fix(proofs): run Agda with --without-K --cubical-compatible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PROOF-POLICY §2.1: Agda theory proofs run under --safe --without-K --cubical-compatible. Change the DihedralQuandle pragma and the krl-verification workflow invocation to match. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_0165rGu3tsKmJtevmrdMVyfJ --- .github/workflows/krl-verification.yml | 8 ++++---- verification/proofs/agda/DihedralQuandle.agda | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/krl-verification.yml b/.github/workflows/krl-verification.yml index f2e8f06..91ded86 100644 --- a/.github/workflows/krl-verification.yml +++ b/.github/workflows/krl-verification.yml @@ -155,20 +155,20 @@ jobs: # runner user that invokes `agda`. sudo chmod -R a+rwX /usr/share/agda-stdlib - - name: Check Agda proofs under --safe + - name: Check Agda proofs under --safe --without-K --cubical-compatible run: | set -e shopt -s nullglob found=0 for f in $(find verification/proofs/agda -name '*.agda' 2>/dev/null); do - echo "── agda --safe $f" + echo "── agda --safe --without-K --cubical-compatible $f" # Run from the file's own directory so the top-level module name # (e.g. `DihedralQuandle`) matches the file name as Agda requires. - ( cd "$(dirname "$f")" && LC_ALL=C.UTF-8 agda --safe "$(basename "$f")" ) + ( cd "$(dirname "$f")" && LC_ALL=C.UTF-8 agda --safe --without-K --cubical-compatible "$(basename "$f")" ) found=1 done if [ "$found" = "0" ]; then echo "No Agda proofs found"; exit 1; fi - echo "PASS: all Agda proofs check under --safe" + echo "PASS: all Agda proofs check under --safe --without-K --cubical-compatible" tlaplus-model-check: name: TLA+ model check (TLC) diff --git a/verification/proofs/agda/DihedralQuandle.agda b/verification/proofs/agda/DihedralQuandle.agda index 870e15f..43de5c3 100644 --- a/verification/proofs/agda/DihedralQuandle.agda +++ b/verification/proofs/agda/DihedralQuandle.agda @@ -1,9 +1,9 @@ -{-# OPTIONS --safe #-} +{-# OPTIONS --safe --without-K --cubical-compatible #-} -- SPDX-License-Identifier: MPL-2.0 -- Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) -- -- =========================================================================== --- Dihedral (Takasaki) quandle axioms — machine-checked under `agda --safe` +-- Dihedral (Takasaki) quandle axioms — machine-checked under `agda --safe --without-K --cubical-compatible` -- =========================================================================== -- -- Discharges the algebraic core of obligation M1 ("Quandle axioms preserved")