Skip to content

fix: eliminate all build warnings#9

Merged
Oppen merged 1 commit into
fix/lake-test-driverfrom
fix/clean-warnings
Jun 10, 2026
Merged

fix: eliminate all build warnings#9
Oppen merged 1 commit into
fix/lake-test-driverfrom
fix/clean-warnings

Conversation

@Oppen

@Oppen Oppen commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • LambdaSat/CompletenessSpec.lean: adds omit [...] in modifiers before 10 theorems that don't need all section variables (NodeOps, BEq, Hashable, LawfulBEq, LawfulHashable), eliminating 7 → 0 unusedSectionVars warnings
  • Tests/IntegrationTests.lean: removes stale simp arguments (NodeOps.children, NodeOps.replaceChildren, NodeOps.mapChildren, hlen) from replaceChildren_children and replaceChildren_sameShape instance proofs, eliminating ~20 unusedSimpArgs warnings

After this PR: lake build produces zero warnings and zero errors.

Test plan

  • lake build — zero warnings, zero errors
  • lake exe integration-tests — 33/33 tests passed

CompletenessSpec.lean: add `omit [...] in` modifiers before the 10
private/public theorems that don't use all section variables
(NodeOps, BEq, Hashable, LawfulBEq, LawfulHashable).

Tests/IntegrationTests.lean: remove stale simp arguments
(NodeOps.children, NodeOps.replaceChildren, NodeOps.mapChildren, hlen)
from replaceChildren_children and replaceChildren_sameShape instance proofs.
@Oppen Oppen merged commit b526512 into fix/lake-test-driver Jun 10, 2026
@Oppen Oppen deleted the fix/clean-warnings branch June 10, 2026 18:44
Oppen added a commit that referenced this pull request Jun 10, 2026
* fix: add integration-tests exe and testDriver to lakefile

lake test previously errored with "no test driver configured".
Adds a [[lean_exe]] target for Tests.IntegrationTests and wires it
as the testDriver so `lake test` runs the 33-test suite.

* fix: eliminate all unusedSectionVars and unusedSimpArgs warnings (#9)

CompletenessSpec.lean: add `omit [...] in` modifiers before the 10
private/public theorems that don't use all section variables
(NodeOps, BEq, Hashable, LawfulBEq, LawfulHashable).

Tests/IntegrationTests.lean: remove stale simp arguments
(NodeOps.children, NodeOps.replaceChildren, NodeOps.mapChildren, hlen)
from replaceChildren_children and replaceChildren_sameShape instance proofs.
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