Skip to content

[Merged by Bors] - feat: Function.End.one_def and mul_def#6802

Closed
ChrisHughes24 wants to merge 2 commits intomasterfrom
ChrisHughes24-patch-1
Closed

[Merged by Bors] - feat: Function.End.one_def and mul_def#6802
ChrisHughes24 wants to merge 2 commits intomasterfrom
ChrisHughes24-patch-1

Conversation

@ChrisHughes24
Copy link
Copy Markdown
Member


Open in Gitpod

rfl
#align function.End.smul_def Function.End.smul_def

theorem Function.End.mul_def (f g : Function.End α) : (f * g) = f ∘ g :=
Copy link
Copy Markdown
Member

@eric-wieser eric-wieser Aug 26, 2023

Choose a reason for hiding this comment

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

This feels like defeq abuse to me; I'd be happier with something like

Suggested change
theorem Function.End.mul_def (f g : Function.End α) : (f * g) = f ∘ g :=
theorem Function.End.mul_def (f g : Function.End α) : (toEnd f * toEnd g) = toEnd (f ∘ g) :=

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.

I'd be happy with a TODO comment instead, as long as these aren't simp lemmas

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'm not sure exactly what is TODO. There are a few ways toEnd could be done, we could completely forbid using End as a function without using a FunLike instance, or be less strict.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I added some comments

Copy link
Copy Markdown
Member

@eric-wieser eric-wieser left a comment

Choose a reason for hiding this comment

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

Thanks!

bors merge

@ghost ghost added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Aug 27, 2023
bors bot pushed a commit that referenced this pull request Aug 27, 2023
Co-authored-by: Chris Hughes <chrishughes24@gmail.com>
@bors
Copy link
Copy Markdown

bors bot commented Aug 27, 2023

Pull request successfully merged into master.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title feat: Function.End.one_def and mul_def [Merged by Bors] - feat: Function.End.one_def and mul_def Aug 27, 2023
@bors bors bot closed this Aug 27, 2023
@bors bors bot deleted the ChrisHughes24-patch-1 branch August 27, 2023 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has been sent to bors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants