Skip to content

Remove duplicated factorial function #1183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 8, 2025
Merged

Conversation

anshwad10
Copy link
Contributor

_! is defined in Cubical.Data.Nat.Properties, factorial is defined in Cubical.Data.Fin.LehmerCode, and they both have identical definitions.

`_!` is defined in `Cubical.Data.Nat.Properties`, `factorial` is defined in `Cubical.Data.Fin.LehmerCode`, and they both have identical definitions.
@felixwellen
Copy link
Collaborator

Good catch! A further improvement should be to move factorial to the definition of _!, so it can be used as an alternative and the definition is easier to find.

@felixwellen felixwellen merged commit c16edad into agda:master Feb 8, 2025
1 check passed
@anshwad10
Copy link
Contributor Author

Wouldn't that break code that import Cubical.Data.Fin.LehmerCode but not Data.Nat.Properties and uses factorial? or is the change minor enough that backwards compatibility doesnt matter as much?

@felixwellen
Copy link
Collaborator

As long as the library still checks, it is okay. (Haven't looked if anything in the library imports lehmercode)

@anshwad10
Copy link
Contributor Author

Good catch! A further improvement should be to move factorial to the definition of _!, so it can be used as an alternative and the definition is easier to find.

Do I do this in another PR or add a commit to this one?

@felixwellen
Copy link
Collaborator

Do it in a new PR

@anshwad10 anshwad10 deleted the patch-3 branch February 9, 2025 12:27
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