#!/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"