-
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (53 loc) · 1.97 KB
/
Copy pathcoq-proofs.yml
File metadata and controls
60 lines (53 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# SPDX-License-Identifier: MPL-2.0
# coq-proofs.yml — machine-checks the Coq formal-verification proofs.
#
# Guards the same root cause as lean-proofs.yml (see
# docs/proofs/verification/AUDIT.md): WokeLang.v had bit-rotted (a `decide
# equality` proof lost its recursive IH) because no CI ever ran the prover.
# Pinned to ubuntu-24.04 so apt's Coq stays 8.18.0 — the file is
# version-sensitive, so the toolchain must be stable.
name: coq-proofs
on:
push:
paths:
- 'docs/proofs/verification/WokeLang.v'
- 'docs/proofs/verification/WokeGrammarStructure.v'
- 'docs/proofs/verification/WokeGrammarParser.v'
- '.github/workflows/coq-proofs.yml'
pull_request:
paths:
- 'docs/proofs/verification/WokeLang.v'
- 'docs/proofs/verification/WokeGrammarStructure.v'
- 'docs/proofs/verification/WokeGrammarParser.v'
- '.github/workflows/coq-proofs.yml'
permissions:
contents: read
jobs:
coq-check:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install Coq (8.18.0 via ubuntu-24.04 apt)
run: |
set -euo pipefail
sudo apt-get update
sudo apt-get install -y coq
coqc --version
- name: Verify WokeLang.v (must exit 0, no admits/axioms beyond Coq.Reals)
run: |
set -euo pipefail
cd docs/proofs/verification
coqc WokeLang.v
echo "✅ WokeLang.v verified"
- name: Verify WokeGrammarStructure.v (no-left-recursion + classification; axiom-free)
run: |
set -euo pipefail
cd docs/proofs/verification
coqc WokeGrammarStructure.v
echo "✅ WokeGrammarStructure.v verified"
- name: Verify WokeGrammarParser.v (universal parser metatheory; axiom-free)
run: |
set -euo pipefail
cd docs/proofs/verification
coqc WokeGrammarParser.v
echo "✅ WokeGrammarParser.v verified"