Skip to content
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

feat: add alias tactic #184

Closed
wants to merge 7 commits into from
Closed

Conversation

fgdorais
Copy link
Collaborator

@fgdorais fgdorais commented Jul 10, 2023

Move from Mathlib. Added support for protected aliases.

@fgdorais fgdorais force-pushed the tac_alias branch 2 times, most recently from 3674d65 to de40d83 Compare July 11, 2023 00:28
@fgdorais fgdorais mentioned this pull request Jul 11, 2023
2 tasks

TODO: Move this declaration to a more central location.
-/
def appendNamespace (ns : Name) : Name → Name
Copy link
Member

Choose a reason for hiding this comment

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

Maybe this should be moved to a central location in Std? Other than that, LGTM

Copy link
Member

Choose a reason for hiding this comment

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

or in lean... I know this is reimplemented at least 3 times in lean core

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm happy to change this given a pointer to an implementation in core.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I couldn't find this exact thing in core but I did simplify the definition a bit.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There is now a PR in core: lean4#2341.

@fgdorais
Copy link
Collaborator Author

I added support for protected aliases and I added a Mathlib patch.

@fgdorais
Copy link
Collaborator Author

fgdorais commented Jul 25, 2023

@digama0 suggested a new syntax on Zulip. It looks like there is broad support, so I started working on it at #200. I'll close this PR when it's no longer needed.

@fgdorais fgdorais mentioned this pull request Jul 25, 2023
1 task
@fgdorais
Copy link
Collaborator Author

Obsoleted by #200

@fgdorais fgdorais closed this Jul 27, 2023
@fgdorais fgdorais deleted the tac_alias branch November 5, 2023 04:31
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.

None yet

3 participants