Skip to content

Commit af0dd4b

Browse files
docs(wager): Stage 8, 3 corrections from the review of #101 (#102)
## Summary A follow-up of #101, which is merged. It has the 3 corrections that the automated review of #101 asked for. Each is a comment or a record. No statement and no proof changes. ## Changes - `Wager/Poly/Statements.agda`: the comment of `T8-Closed` said that T0 to T6 apply to each closed instance. That was too strong. The comment now follows DC-8.3: a theorem about each typed target term applies under its own hypotheses; T3, T5 and T6 are about the translation of a source program; T2 and T4 are about types. The type of the statement did not change. - `Wager/Poly/Proofs.agda`: the header names each proof of the module. - `Wager/TOOLCHAIN.adoc`: the last row of the gate watch of Stage 8 records the run with 91 files only, and points to the row of the side item for the run with 96 files. Not in this pull request: the failed check "Deposit findings for gitbot-fleet" on #101. It is CI work, and this session does proof work only. ## RSR Quality Checklist ### Required - [x] Tests pass: `scripts/check-proofs.sh agda` passes with 96 modules, and `scripts/check-proof-status.sh` passes. `just test` and `just quality` were not run. - [ ] Code is formatted: not run. - [ ] Linter is clean: not run. - [x] No banned language patterns in the changed files - [x] No banned functions - [x] SPDX license headers present on the changed source files - [x] No secrets, credentials, or `.env` files included ## Testing - `scripts/check-proofs.sh agda`: PASS, 96 gated modules. - `scripts/check-proof-status.sh`: PASS. --- _Generated by [Claude Code](https://claude.ai/code/session_0136P7ZkUXubpMrTvbNd6qRK)_ Co-authored-by: Claude <noreply@anthropic.com>
1 parent 20fb620 commit af0dd4b

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

‎verification/proofs/agda/Wager/Poly/Proofs.agda‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
-- SPDX-License-Identifier: MPL-2.0
55
-- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
66
--
7-
-- Stage 8. Proofs of T8-Conv, T8-Inst and T8-Closed.
7+
-- Stage 8. Proofs of T8-Conv, T8-Inst, T8-Closed, T8-Closed-Instance,
8+
-- T8-Instance-Progress and T8-Instance-Preservation. The lemmas `sub-⇑`
9+
-- and `⇑-closed` are also used by `Wager.Poly.CoercionProofs`.
810
open import Wager.L1.Signature
911
open import Wager.Grade.Algebra
1012
import Wager.L2.Signature

‎verification/proofs/agda/Wager/Poly/Statements.agda‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,11 @@ T8-Inst = ∀ {Δ Δ' n} (σ : TySub Δ' Δ) {γ : Usage n} {Γ : Cxᵖ Δ n}
3434
γ ▸ (λ i → sub σ (Γ i)) ⊢ᵖ inst σ t ∶ sub σ A
3535

3636
-- T8-Closed. A typed term with no type variable is a typed term of the
37-
-- target calculus of stages 1 to 5. So T0 to T6 apply to each closed
38-
-- instance of an open term.
37+
-- target calculus of stages 1 to 5. A theorem about each typed target
38+
-- term, such as T0, thus applies to each closed instance of an open
39+
-- term, under its own hypotheses. T3, T5 and T6 are about the
40+
-- translation of a source program, and T2 and T4 are about types
41+
-- (DESIGN-CHOICES.adoc, DC-8.3). The statement below did not change.
3942
T8-Closed : Type
4043
T8-Closed = ∀ {n} {γ : Usage n} {Γ : Cxᵖ [] n} {t : Tmᵖ [] n} {A : Ty [] ★} →
4144
γ ▸ Γ ⊢ᵖ t ∶ A → γ ▸ Γ ⊢ ⌊ t ⌋ ∶ A

‎verification/proofs/agda/Wager/TOOLCHAIN.adoc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ Each row is one change, alone. After each change the 2 commands `agda --safe Wag
483483

484484
| All changes removed
485485
| None
486-
| PASS. The gate passed with 91 files before the watch. After the watch it ran with the 5 files of the side item: PASS, 96 files.
486+
| PASS, 91 files. This run was before the watch. The run after the watch had the 5 files of the side item also: see the last row of the next table.
487487
|===
488488

489489
The second and the third test show that the proof of `T8-Closed` depends on the map `⌊_⌋` and on the text of a rule.

0 commit comments

Comments
 (0)