Add tests.sh

This commit is contained in:
augustin64 2024-05-20 09:57:28 +02:00
parent 075aa267a7
commit 2c01cab197
21 changed files with 27 additions and 0 deletions

21
tests.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
make
echo "=== Alpha-équivalence ==="
for file in tests/alpha_equiv/*; do
echo "-- $file"
./pieuvre -alpha $file >/dev/null
done
echo "=== Bêta-réduction ==="
for file in tests/lam/*; do
echo "-- $file"
./pieuvre -reduce $file >/dev/null
done
echo "=== Preuves ==="
for file in tests/8pus/*; do
echo "-- $file"
./pieuvre $file >/dev/null
done

6
tests/8pus/apply.8pus Normal file
View File

@ -0,0 +1,6 @@
Goal (A -> B -> C) -> A -> B -> C.
intros.
apply H0.
exact H2.
exact H1.
Qed.