Skip to content

Remove unused OptionT.run simp argument in three WP lemmas#7

Open
astefano wants to merge 1 commit into
verse-lab:masterfrom
astefano:fix/unused-optiont-run-simp
Open

Remove unused OptionT.run simp argument in three WP lemmas#7
astefano wants to merge 1 commit into
verse-lab:masterfrom
astefano:fix/unused-optiont-run-simp

Conversation

@astefano

@astefano astefano commented Jun 4, 2026

Copy link
Copy Markdown

linter.unusedSimpArgs (default-on, Lean core) flags OptionT.run as an unused simp only argument in tryCatch_OptionT_wp (L217), monadLift_OptionT_wp (L319), and orElse_OptionT_wp (L679) of Loom/WP/Lemmas.lean. The projection is already discharged by the surrounding lemmas (OptionT.mk etc.), so the argument never fires; removing it leaves the proofs unchanged. This PR does this.

Verified on the v4.29.0 toolchain (used by the quangvdao/loom2 fork and downstream VCVio): the three lemmas compile cleanly with the warning gone. The OptionT.run at L362 is used and left in place.

Closes #6.

`linter.unusedSimpArgs` flags `OptionT.run` as unused in `tryCatch_OptionT_wp`,
`monadLift_OptionT_wp`, and `orElse_OptionT_wp`: the projection is already
discharged by the surrounding lemmas, so the argument never fires. The
`OptionT.run` at L362 is used and left in place.

Closes verse-lab#6

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@astefano astefano marked this pull request as ready for review June 4, 2026 11:05
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.

Redundant OptionT.run simp argument in Loom/WP/Lemmas.lean

1 participant