Skip to content

chore: remove FinFun, a duplicate of Mathlib's Finsupp - #814

Open
SamuelSchlesinger wants to merge 1 commit into
leanprover:mainfrom
SamuelSchlesinger:samschlesinger/remove-finfun
Open

chore: remove FinFun, a duplicate of Mathlib's Finsupp#814
SamuelSchlesinger wants to merge 1 commit into
leanprover:mainfrom
SamuelSchlesinger:samschlesinger/remove-finfun

Conversation

@SamuelSchlesinger

Copy link
Copy Markdown
Collaborator

FinFun mirrors Finsupp field for field, including the update lemma cluster (update_apply/self/comm/idem) and the ->0 notation, and has no consumers anywhere in the library. Remove it together with DecidableEqZero, whose only user it was, and the corresponding grind-lint exceptions.

I believe at some point there was a justification to duplicate based on computability, but given there are no consumers lets just drop it now.

FinFun mirrors Finsupp field for field, including the update lemma cluster
(update_apply/self/comm/idem) and the ->0 notation, and has no consumers
anywhere in the library. Remove it together with DecidableEqZero, whose only
user it was, and the corresponding grind-lint exceptions.
@chenson2018

Copy link
Copy Markdown
Collaborator

cc @fmontesi. I'd planned to remove this after the Finsupp refactor in Mathlib lands regardless (which will add computability). Do you still need this version downstream in the meantime?

@SamuelSchlesinger
SamuelSchlesinger force-pushed the samschlesinger/remove-finfun branch from 6d01cbb to 044d6c5 Compare August 17, 2026 23:33
@fmontesi

Copy link
Copy Markdown
Collaborator

Yes, we use it heavily, so I'd like to keep this for now, but I'd prefer a computable version of Finsupp, too. Using the same notation was done with the intention of facilitating a future transition. Can you point me to the mathlib work? There's a lot of stuff in Finsupp that I'd like to use.

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.

3 participants