Skip to content

Commit 0526ca0

Browse files
fix(proofs): run Agda with --without-K --cubical-compatible (#226)
## Findings Both findings still applied at HEAD. The Logtalk removal on its own branch was not touched. **`agda-not-strict` (PROOF-POLICY §2.1).** The finding said it was undetermined whether the `just proof-check-agda` recipes exist. They do. Both `affinescript-ecosystem/rattlescript/Justfile` and `affinescript-ecosystem/affinescript-vite/Justfile` define `proof-check-agda`, and both ran plain `agda --safe "$f"`. Both now run `agda --safe --without-K --cubical-compatible "$f"`. Both template `Properties.agda` files got `{-# OPTIONS --safe --without-K --cubical-compatible #-}` above the `module` line, and the SPDX header is untouched. I kept the modules rather than removing them, because the recipes now gate them. **`percentage-census` (§8.4).** `rattlescript/PROOF-STATUS.adoc` and `affinescript-vite/.machine_readable/compliance/PROOF-STATUS.adoc` line 18: "0% proven" is now "0 of 7 obligations proven". 7 is the Total row of each doc's own table. ## Verification - `agda --safe --without-K --cubical-compatible -i . -i <agda-stdlib v2.3 src> Properties.agda` with Agda 2.8.0.2: rattlescript **exit 0**, affinescript-vite **exit 0**. The standard library was a local agda-stdlib v2.3 checkout passed with `-i`, not a version pinned by the repo. Generated `.agdai` files were deleted, and none are tracked. - `asciidoctor --failure-level=WARN` on both PROOF-STATUS files: exit 0 each. - I did not run `just proof-check-agda`. ## Skipped / noticed, not changed - The recipe's loop is `for f in "$(find ...)"` in affinescript-vite (quoted, so it treats all files as one argument). It also exits 0 with "SKIP" when agda is absent. Both are outside the finding. - No CI workflow runs the Agda gate. I did not add one, because that would mean editing workflows and pinned `uses:` lines. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_0165rGu3tsKmJtevmrdMVyfJ Co-authored-by: Claude <noreply@anthropic.com>
1 parent 7eca0c2 commit 0526ca0

6 files changed

Lines changed: 8 additions & 4 deletions

File tree

‎affinescript-ecosystem/affinescript-vite/.machine_readable/compliance/PROOF-STATUS.adoc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
|*Total* |*7* |*0* |*0* |*0* |*7*
1616
|===
1717

18-
*Overall*: 0% proven
18+
*Overall*: 0 of 7 obligations proven
1919

2020
=== Proofs Done
2121

‎affinescript-ecosystem/affinescript-vite/Justfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,7 @@ proof-check-agda:
14031403
ERRORS=0
14041404
for f in "$(find verification/proofs/agda -name '*.agda' 2>/dev/null)"; do
14051405
echo -n " Checking "$f" ... "
1406-
if agda --safe "$f" 2>/dev/null; then
1406+
if agda --safe --without-K --cubical-compatible "$f" 2>/dev/null; then
14071407
echo "OK"
14081408
else
14091409
echo "FAIL"

‎affinescript-ecosystem/affinescript-vite/verification/proofs/agda/Properties.agda‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
-- Replace with your project's domain-specific proofs.
66
-- All proofs must be total (no postulate, no {-# TERMINATING #-}).
77

8+
{-# OPTIONS --safe --without-K --cubical-compatible #-}
9+
810
module Properties where
911

1012
open import Data.Nat using (ℕ; zero; suc; _+_; _≤_; z≤n; s≤s; _<_)

‎affinescript-ecosystem/rattlescript/Justfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1410,7 +1410,7 @@ proof-check-agda:
14101410
ERRORS=0
14111411
for f in $(find verification/proofs/agda -name '*.agda' 2>/dev/null); do
14121412
echo -n " Checking $f ... "
1413-
if agda --safe "$f" 2>/dev/null; then
1413+
if agda --safe --without-K --cubical-compatible "$f" 2>/dev/null; then
14141414
echo "OK"
14151415
else
14161416
echo "FAIL"

‎affinescript-ecosystem/rattlescript/PROOF-STATUS.adoc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
|*Total* |*7* |*0* |*0* |*0* |*7*
1616
|===
1717

18-
*Overall*: 0% proven
18+
*Overall*: 0 of 7 obligations proven
1919

2020
=== Proofs Done
2121

‎affinescript-ecosystem/rattlescript/verification/proofs/agda/Properties.agda‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
-- Replace with your project's domain-specific proofs.
66
-- All proofs must be total (no postulate, no {-# TERMINATING #-}).
77

8+
{-# OPTIONS --safe --without-K --cubical-compatible #-}
9+
810
module Properties where
911

1012
open import Data.Nat using (ℕ; zero; suc; _+_; _≤_; z≤n; s≤s; _<_)

0 commit comments

Comments
 (0)