Skip to content

[Merged by Bors] - feat: improve the way to_additive deals with attributes#1314

Closed
fpvandoorn wants to merge 31 commits intomasterfrom
to_additive_attrs
Closed

[Merged by Bors] - feat: improve the way to_additive deals with attributes#1314
fpvandoorn wants to merge 31 commits intomasterfrom
to_additive_attrs

Conversation

@fpvandoorn
Copy link
Copy Markdown
Member

@fpvandoorn fpvandoorn commented Jan 3, 2023


@kim-em kim-em added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jan 3, 2023
@fpvandoorn fpvandoorn added the awaiting-author A reviewer has asked the author a question or requested changes. label Jan 3, 2023
@hrmacbeth hrmacbeth added the t-meta Tactics, attributes or user commands label Jan 3, 2023
@kim-em kim-em removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jan 4, 2023
@kim-em kim-em added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jan 4, 2023
@kim-em kim-em removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jan 5, 2023
@fpvandoorn fpvandoorn added awaiting-review and removed awaiting-author A reviewer has asked the author a question or requested changes. labels Jan 5, 2023
@kim-em
Copy link
Copy Markdown
Contributor

kim-em commented Jan 5, 2023

@fpvandoorn, if you don't mind making the same change to reassoc, that sounds good to me.

@jcommelin jcommelin requested review from digama0 and kim-em January 6, 2023 13:37
@kim-em kim-em added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jan 6, 2023
@kim-em kim-em added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jan 7, 2023
@kim-em kim-em removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jan 7, 2023
@digama0
Copy link
Copy Markdown
Member

digama0 commented Jan 9, 2023

bors merge

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Jan 9, 2023
bors bot pushed a commit that referenced this pull request Jan 9, 2023
* The new syntax for any attributes that need to be copied by `to_additive` is `@[to_additive (attrs := simp, ext, simps)]`
* Adds the auxiliary declarations generated by the `simp` and `simps` attributes to the `to_additive`-dictionary.
* Future issue: Does not yet translate auxiliary declarations for other attributes (including custom `simp`-attributes). In particular it's possible that `norm_cast` might generate some auxiliary declarations.
* Fixes #950
* Fixes #953
* Fixes #1149
* This moves the interaction between `to_additive` and `simps` from the `Simps` file to the `toAdditive` file for uniformity.
* Make the same changes to `@[reassoc]`



Co-authored-by: Johan Commelin <johan@commelin.net>
Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
@bors
Copy link
Copy Markdown

bors bot commented Jan 9, 2023

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat: improve the way to_additive deals with attributes [Merged by Bors] - feat: improve the way to_additive deals with attributes Jan 9, 2023
@bors bors bot closed this Jan 9, 2023
@bors bors bot deleted the to_additive_attrs branch January 9, 2023 17:52
bors bot pushed a commit that referenced this pull request Jan 9, 2023
Port of algebra.punit_instances

- [x] depends on: #1330
- [x] depends on: #1314

Co-authored-by: Arien Malec <arien.malec@gmail.com>
Co-authored-by: Heather Macbeth <25316162+hrmacbeth@users.noreply.github.com>
Ruben-VandeVelde pushed a commit that referenced this pull request Jan 9, 2023
Port of algebra.punit_instances

- [x] depends on: #1330
- [x] depends on: #1314

Co-authored-by: Arien Malec <arien.malec@gmail.com>
Co-authored-by: Heather Macbeth <25316162+hrmacbeth@users.noreply.github.com>
jcommelin added a commit that referenced this pull request Jan 23, 2023
* The new syntax for any attributes that need to be copied by `to_additive` is `@[to_additive (attrs := simp, ext, simps)]`
* Adds the auxiliary declarations generated by the `simp` and `simps` attributes to the `to_additive`-dictionary.
* Future issue: Does not yet translate auxiliary declarations for other attributes (including custom `simp`-attributes). In particular it's possible that `norm_cast` might generate some auxiliary declarations.
* Fixes #950
* Fixes #953
* Fixes #1149
* This moves the interaction between `to_additive` and `simps` from the `Simps` file to the `toAdditive` file for uniformity.
* Make the same changes to `@[reassoc]`



Co-authored-by: Johan Commelin <johan@commelin.net>
Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
jcommelin pushed a commit that referenced this pull request Jan 23, 2023
Port of algebra.punit_instances

- [x] depends on: #1330
- [x] depends on: #1314

Co-authored-by: Arien Malec <arien.malec@gmail.com>
Co-authored-by: Heather Macbeth <25316162+hrmacbeth@users.noreply.github.com>
bors bot pushed a commit that referenced this pull request Jan 31, 2023
This should not matter anymore after #1314 

* I tried removing it from `to_additive`, but that fails, presumably because `to_additive` has to be able to add other attributes, like `simp`.
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. t-meta Tactics, attributes or user commands

Projects

None yet

5 participants