Skip to content

feat: add alias tactic#184

Closed
fgdorais wants to merge 7 commits intoleanprover-community:mainfrom
fgdorais:tac_alias
Closed

feat: add alias tactic#184
fgdorais wants to merge 7 commits intoleanprover-community:mainfrom
fgdorais:tac_alias

Conversation

@fgdorais
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Collaborator Author

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

@fgdorais
Copy link
Copy Markdown
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
Copy Markdown
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.

3 participants