Skip to content

Remove @[simp] from theorems flagged by simpVarHead linter - #130

Merged
grunweg merged 1 commit into
masterfrom
fix-simpVarHead-linter
Nov 24, 2025
Merged

Remove @[simp] from theorems flagged by simpVarHead linter#130
grunweg merged 1 commit into
masterfrom
fix-simpVarHead-linter

Conversation

@kim-em

@kim-em kim-em commented Nov 24, 2025

Copy link
Copy Markdown
Contributor

This PR removes the @[simp] attribute from three lemmas that were flagged by the simpVarHead linter:

  • OpenSmoothEmbedding.coe_mk (in Global.SmoothEmbedding)
  • Loop.coe_mk (in Loops.Basic)
  • EquivariantMap.coe_mk (in ToMathlib/Equivariant)

The simpVarHead linter flags simp lemmas where the left-hand side has a variable as the head symbol. These lemmas are problematic as simp lemmas because the head symbol is a variable (the function being coerced), which makes them unsuitable for automated simplification.

🤖 Generated with Claude Code

@grunweg
grunweg force-pushed the fix-simpVarHead-linter branch from 6b5b607 to 42d76ad Compare November 24, 2025 08:50
The simpVarHead linter flags simp lemmas where the left-hand side has a
variable as the head symbol. This removes the @[simp] attribute from three
such theorems:

- OpenSmoothEmbedding.coe_mk (SphereEversion/Global/SmoothEmbedding.lean:47)
- Loop.coe_mk (SphereEversion/Loops/Basic.lean:46)
- EquivariantMap.coe_mk (SphereEversion/ToMathlib/Equivariant.lean:43)

These lemmas have variables as head symbols in their left-hand sides,
which makes them unsuitable as simp lemmas.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@grunweg
grunweg force-pushed the fix-simpVarHead-linter branch from 90d9f66 to 1f3d461 Compare November 24, 2025 09:11
@grunweg

grunweg commented Nov 24, 2025

Copy link
Copy Markdown
Collaborator

Thanks for the fixes! I verified locally that all three attributes caused linter errors before and are now fixed.

@grunweg
grunweg merged commit 132e0af into master Nov 24, 2025
1 check passed
@grunweg
grunweg deleted the fix-simpVarHead-linter branch November 24, 2025 09:13
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.

2 participants