add(check): deterministic sample terms and a bounded computed agreement check against red1 (tests)
This commit is contained in:
7 files changed
+1153
-267
No files matched your search
+1
-1
@@ -35,7 +35,7 @@ done < <(find theory -name '*.v' -print0 2>/dev/null)
|
||||
echo "== Print Assumptions =="
|
||||
WORK="$(mktemp -d ./.audit-work.XXXXXX)"
|
||||
cp theory/*.v "$WORK"/
|
||||
for f in ExecReducer Binding Reduction Metatheory Subsystem Substitution Parallel Tests; do
|
||||
for f in ExecReducer Binding Reduction Metatheory Subsystem Substitution Parallel Tests Random; do
|
||||
echo "-- $f"
|
||||
out="$(rocq compile -Q "$WORK" LambdaSub "$WORK/$f.v" 2>&1 || true)"
|
||||
echo "$out"
|
||||
|
||||
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
cd "$ROOT"
|
||||
|
||||
if ! command -v rocq >/dev/null 2>&1; then
|
||||
if command -v opam >/dev/null 2>&1; then
|
||||
eval "$(opam env --switch=rocq-system --set-switch 2>/dev/null || true)"
|
||||
fi
|
||||
fi
|
||||
|
||||
if ! command -v rocq >/dev/null 2>&1; then
|
||||
echo "rocq not on PATH; run: eval \$(opam env --switch=rocq-system --set-switch)" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
dune build
|
||||
./scripts/audit.sh
|
||||
echo "SAMPLE CHECK OK: 16 generated terms checked against red1 by theory/Random.v"
|
||||
Reference in new issue
Block a user