Skip to content

feat: Kronecker delta sums#975

Open
gloges wants to merge 7 commits intoleanprover-community:masterfrom
gloges:kronecker-delta-sums
Open

feat: Kronecker delta sums#975
gloges wants to merge 7 commits intoleanprover-community:masterfrom
gloges:kronecker-delta-sums

Conversation

@gloges
Copy link
Contributor

@gloges gloges commented Mar 5, 2026

  • Adds new lemmas for sums involving Kronecker deltas (of the form I've encountered - definitely room to generalize and expand the API).
  • Adds some ideas for future Kronecker delta lemmas

In making these changes a few commutator proofs broke in Commutation.lean and LaplaceRungeLenzVector.lean; I have fixed those which had a quick solution and replaced those which are more computation-heavy with sorries. I will simplify / golf these two files soon.

@gloges gloges marked this pull request as ready for review March 5, 2026 23:37

/-- The Kronecker delta function, `ite (i = j) 1 0`. -/
def kroneckerDelta [Ring R] (i j : Fin d) : R := if (i = j) then 1 else 0
def kroneckerDelta (i j : Fin d) : := if (i = j) then 1 else 0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this is a good idea, if anything we'd want to generalize this definition further and not narrow the uses. Can you explain why you want to revise the definition in this way?

Copy link
Contributor Author

@gloges gloges Mar 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No good reason - I've reverted to a general ring. Are the newly added simp lemmas the best way to handle coercion? (I have ℝ → ℂ separate because for some reason is not a subring of ...!)

@morrison-daniel morrison-daniel self-assigned this Mar 6, 2026
@morrison-daniel morrison-daniel added t-mathematics Mathematics awaiting-author A reviewer has asked the author a question or requested changes labels Mar 6, 2026
@gloges gloges requested a review from morrison-daniel March 6, 2026 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-author A reviewer has asked the author a question or requested changes t-mathematics Mathematics

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants