Skip to content

[Merged by Bors] - feat(to_additive): option to not translate operations on a type#19297

Closed
fpvandoorn wants to merge 11 commits intomasterfrom
to_additive_dont_translate
Closed

[Merged by Bors] - feat(to_additive): option to not translate operations on a type#19297
fpvandoorn wants to merge 11 commits intomasterfrom
to_additive_dont_translate

Conversation

@fpvandoorn
Copy link
Copy Markdown
Member

@fpvandoorn fpvandoorn commented Nov 20, 2024

  • Also some cleanup in the ToAdditive/Frontend file (please review the first 3 commits separately), only the second commit actually changes the functionality of to_additive. The main cleanups: move doc-strings to the syntax declarations, remove the module doc which was just duplicating the to_additive-doc, and let a few internal functions depend on Environment instead of multiple other arguments.
  • In [Merged by Bors] - feat: use to_additive for Monoid.End #19687 this is done for Monoid.End (in a separate PR, since that requires some library fixes).

Open in Gitpod

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 20, 2024

PR summary 09fccabb48

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ MonoidEnd
+ instance : Semigroup MonoidEnd
+ monoidEnd_lemma
- Pow_lemma
- foo
- mul_one'
-- mul_comm'

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.


Decrease in tech debt: (relative, absolute) = (1.00, 0.02)
Current number Change Type
61 -1 large files

Current commit 09fccabb48
Reference commit 92f63d5c19

You can run this locally as

./scripts/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@fpvandoorn fpvandoorn changed the title feat: option to not translate operations on a type feat(to_additive): option to not translate operations on a type Nov 20, 2024
@fpvandoorn fpvandoorn added the t-meta Tactics, attributes or user commands label Dec 9, 2024

end

/--
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I see you deleted a number of comments, like this one. Is all the information still documented somewhere?

So long as we're not losing documentation (or if what you do delete you think is not relevant anymore), then the PR looks good to me.

bors d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Dec 22, 2024

✌️ fpvandoorn can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@ghost ghost added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Dec 22, 2024
@fpvandoorn
Copy link
Copy Markdown
Member Author

The module doc was duplicating the tactic doc (see commit message)

bors merge

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Dec 22, 2024
mathlib-bors bot pushed a commit that referenced this pull request Dec 22, 2024
* Also some cleanup in the `ToAdditive/Frontend` file (please review the first 3 commits separately), only the second commit actually changes the functionality of `to_additive`. The main cleanups: move doc-strings to the syntax declarations, remove the module doc which was just duplicating the `to_additive`-doc, and let a few internal functions depend on `Environment` instead of multiple other arguments.
* In #19687 this is done for `Monoid.End` (in a separate PR, since that requires some library fixes).
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Dec 22, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat(to_additive): option to not translate operations on a type [Merged by Bors] - feat(to_additive): option to not translate operations on a type Dec 22, 2024
@mathlib-bors mathlib-bors bot closed this Dec 22, 2024
@mathlib-bors mathlib-bors bot deleted the to_additive_dont_translate branch December 22, 2024 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). ready-to-merge This PR has been sent to bors. t-meta Tactics, attributes or user commands

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants