Skip to content

lean: Remove Nat.cast from Fin, in preparation for a Lean upgrade - #303

Merged
GeorgeTsoukalas merged 1 commit into
trishullab:mainfrom
eric-wieser:no-fin-cast
Aug 29, 2025
Merged

lean: Remove Nat.cast from Fin, in preparation for a Lean upgrade#303
GeorgeTsoukalas merged 1 commit into
trishullab:mainfrom
eric-wieser:no-fin-cast

Conversation

@eric-wieser

Copy link
Copy Markdown
Contributor

The new behavior can be emulated with attribute [-instance] Fin.instCommRing Fin.instNatCast Fin.instAddMonoidWithOne.

While the old behavior can be kept with open scoped Fin.CommRing, the spelling without is usually clearer anyway.

The new behavior can be emulated with `attribute [-instance] Fin.instCommRing Fin.instNatCast Fin.instAddMonoidWithOne`.

While the old behavior can be kept with `open scoped Fin.CommRing`, the spelling without is usually clearer anyway.
@eric-wieser eric-wieser changed the title Remove Nat.cast from Fin, in preparation for a Lean upgrade lean: Remove Nat.cast from Fin, in preparation for a Lean upgrade Aug 28, 2025

@GeorgeTsoukalas GeorgeTsoukalas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good to me, thanks Eric!

@GeorgeTsoukalas
GeorgeTsoukalas merged commit e566d27 into trishullab:main Aug 29, 2025
1 check passed
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