Skip to content

programs: fix Float specs referencing removed wp_call_of_terminates - #146

Merged
mfornet merged 1 commit into
mainfrom
claude/fix-float-spec-wp-call
Jul 14, 2026
Merged

programs: fix Float specs referencing removed wp_call_of_terminates#146
mfornet merged 1 commit into
mainfrom
claude/fix-float-spec-wp-call

Conversation

@mfornet

@mfornet mfornet commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

Problem

main is red — the Build & verify proofs CI job fails because Project.FloatTrunc.Spec, Project.FloatRound.Spec, and Project.FloatReinterpret.Spec call wp_call_of_terminates, which no longer exists:

error: Project/FloatTrunc/Spec.lean:166:8: Unknown identifier `wp_call_of_terminates`

Root cause

A merge-order collision between two already-merged PRs:

Both merged, leaving main referencing a deleted lemma. This blocks CI on every open PR (it's how I noticed — it surfaced on an unrelated docstring PR).

Fix

wp_call_of_terminates was defined as:

theorem wp_call_of_terminates … (hRun …) (hPost …) : … := wp_call_tw hRun hPost

— same signature and argument order as wp_call_tw, so this is a pure rename of all 22 call sites (2 in FloatTrunc, 6 in FloatRound, 14 in FloatReinterpret). No proof restructuring.

Verification

Built locally against the pinned v4.32.0 toolchain:

✔ Built Project.FloatTrunc.Spec
✔ Built Project.FloatRound.Spec
✔ Built Project.FloatReinterpret.Spec
Build completed successfully (3055 jobs).

🤖 Generated with Claude Code

`main` fails `Build & verify proofs`: the Float{Trunc,Round,Reinterpret}
specs call `wp_call_of_terminates`, which no longer exists.

PR #113 dropped that alias in favour of the byte-identical `wp_call_tw`
and repointed its call sites, but the Float Programs PR (#132) branched
beforehand and reintroduced the dead name, so the two merged into a
red main.

`wp_call_of_terminates` was defined as `wp_call_tw hRun hPost` with an
identical signature, so this is a pure rename of all 22 call sites
(2 + 6 + 14). Verified locally: all three `Project.Float*.Spec` targets
build.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Verifier report preview: https://talos-verifier-report-pr-146.vercel.app

(This URL is stable for this PR — it always points to the latest build of f6e92d0.)

@mfornet
mfornet merged commit 1c30ff2 into main Jul 14, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant