You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/lean-squad.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ graph LR
26
26
A --> T5[Task 5: Proof Assistance]
27
27
A --> T6[Task 6: Correspondence Review]
28
28
A --> T7[Task 7: Proof Utility Critique]
29
-
A --> T8[Task 8: Aeneas Extraction]
29
+
A --> T8[Task 8: Correspondence Validation]
30
30
A --> T9[Task 9: CI Automation]
31
31
A --> T10[Task 10: Project Report]
32
32
A --> T11[Task 11: Conference Paper]
@@ -36,7 +36,7 @@ graph LR
36
36
37
37
A deterministic pre-step counts FV artifacts in the repository (Lean files, spec docs, open issues and PRs) and computes a **phase-weighted probability** for each task. Two tasks are drawn and communicated to the agent; the agent confirms them against its memory and executes them. Task Final (status update) always runs. All notes, targets, choices, and progress live in persistent **repo-memory** so each run builds on the last.
38
38
39
-
The weighting scheme adapts automatically: when no FV work exists Task 1 dominates; once research is done Task 2 rises; as informal specs accumulate Task 3 gains weight; and so on up to proofs.
39
+
The weighting scheme adapts automatically: when no FV work exists Task 1 dominates; once research is done Task 2 rises; as informal specs accumulate Task 3 gains weight; and so on up to proofs. Once implementation models exist, Task 8 becomes available and is weighted heavily when no runnable correspondence tests exist yet.
40
40
41
41
### Task 1: Research & Target Identification
42
42
@@ -80,17 +80,17 @@ Default weighting: critical when proofs exist but no critique doc.
80
80
81
81
Steps back to honestly assess whether the FV work is actually useful — are the proved properties meaningful, at the right level of abstraction, and likely to catch real bugs? Evaluates each theorem's level, bug-catching potential, coverage, and strength. Identifies the highest-value gaps and recommends what to prove next. Optionally reviews the conference paper (`paper.tex`) as a critical reviewer and includes actionable feedback. Produces or updates `formal-verification/CRITIQUE.md` as a PR.
Default weighting: available for Rust codebases once research is done.
85
+
Default weighting: available once implementation models exist; weighted highly when no runnable correspondence tests exist.
86
86
87
-
Uses the Charon + Aeneas toolchain to automatically generate Lean 4 code from Rust source, providing a mechanically-derived functional model. Works incrementally on one small module at a time. Reports toolchain bugs encountered. The most valuable use is writing bridging theorems between Aeneas-generated models and hand-written specs, closing the correspondence gap.
87
+
Validates that the Lean implementation model corresponds to the source code using one of two routes. Route A uses the Charon + Aeneas toolchain to automatically generate Lean 4 code from Rust source, producing a mechanically-derived model that can be bridged to the hand-written one. Route B writes and runs executable correspondence tests that exercise the source implementation and the Lean model on the same fixtures, which may require building a small standalone harness or copied test project under `formal-verification/tests/`. The task always prefers concrete, executed evidence over hand-wavy similarity claims.
88
88
89
89
### Task 9: CI Automation
90
90
91
91
Default weighting: critical when Lean files exist but no CI; regular check otherwise.
92
92
93
-
Sets up and maintains `.github/workflows/lean-ci.yml`(and optionally `aeneas-generate.yml`for Rust) to automatically verify Lean proofs on every PR and push. Audits CI health, checks for persistent failures, verifies cache effectiveness, and fixes broken workflows.
93
+
Sets up and maintains `.github/workflows/lean-ci.yml` and, when applicable, CI for Task 8 artifacts such as `aeneas-generate.yml` or runnable correspondence-test workflows. Audits CI health, checks for persistent failures, verifies cache effectiveness, and fixes broken workflows.
94
94
95
95
### Task 10: Project Report
96
96
@@ -116,6 +116,7 @@ Maintains a single `[Lean Squad] Formal Verification Status` issue as a continuo
116
116
| Target list |`formal-verification/TARGETS.md`| Prioritised targets with phase status |
0 commit comments