Files
andrew 273ad72f0c Polish release docs and add CI checks
- Correct stale references and headline-path wording in READMEs and Lean docstrings
- Document build steps, comparator requirements, sweep scope, and coverage
- Unify Apache headers across Lean and C++ sources
- Add a bwrap-free axiom audit for the headline theorems
- Add a Gitea workflow running lake build, the axiom audit, C++ tests, and coverage
- Match LLVM coverage tool versions to the compiler and recreate stale build dirs
2026-11-17 21:29:16 -05:00

22 lines
719 B
Bash
Executable File

#!/usr/bin/env bash
# Verify that the headline theorems depend only on the permitted axioms.
# This is a bwrap-free complement to `lake comparator`: it catches `sorry`
# (`sorryAx`) and any newly introduced axiom.
set -euo pipefail
here="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$here/.."
output="$(lake env lean CheckAxioms.lean)"
printf '%s\n' "$output"
expected="[propext, Classical.choice, Quot.sound]"
matches="$(printf '%s\n' "$output" |
grep -c "depends on axioms: \[propext, Classical.choice, Quot.sound\]$" || true)"
if [[ "$matches" -ne 2 ]]; then
echo "expected both headline theorems to depend on exactly $expected" >&2
exit 1
fi
echo "axiom audit: both headlines use exactly $expected"