Skip to content

[Merged by Bors] - chore(Imo/Imo1964Q1): minor clean-up#19691

Closed
vihdzp wants to merge 2 commits intomasterfrom
vi.imo_clean
Closed

[Merged by Bors] - chore(Imo/Imo1964Q1): minor clean-up#19691
vihdzp wants to merge 2 commits intomasterfrom
vi.imo_clean

Conversation

@vihdzp
Copy link
Copy Markdown
Collaborator

@vihdzp vihdzp commented Dec 2, 2024

This PR does the following:

  • remove some trivial sectioning
  • explain the solution better
  • remove ProblemPredicate, which was only used once
  • replace ring by a short rw (to minimize imports)

Open in Gitpod

@vihdzp vihdzp added the IMO Math olympiad problems label Dec 2, 2024
@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 2, 2024

PR summary 1d8fd85c77

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

- ProblemPredicate

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.


No changes to technical debt.

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).

Copy link
Copy Markdown
Contributor

@grunweg grunweg left a comment

Choose a reason for hiding this comment

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

Generally looks good, thanks! I'd like one sentence to be changed (which is easy), and would like maintainer sign-off on a policy question (see inline comment).
maintainer delegate?

/-!
## The question
-/
_ = 2 ^ t := by rw [one_pow, one_mul]
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.

As I understand it, the archive's purpose is also about showcasing idiomatic Lean's abilities. Using ring seems in line with that; I'm sceptical about un-automating it in general. (There was a zulip thread about using automation in mathlib, a few months ago. I could try to dig it up.)
In this case (reducing imports significantly, for one line which becomes slightly longer), I'm fine with accepting this.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 2, 2024

🚀 Pull request has been placed on the maintainer queue by grunweg.

@github-actions github-actions bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Dec 2, 2024
Copy link
Copy Markdown
Member

@jcommelin jcommelin 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 the ready-to-merge This PR has been sent to bors. label Dec 3, 2024
mathlib-bors bot pushed a commit that referenced this pull request Dec 3, 2024
This PR does the following:
- remove some trivial sectioning
- explain the solution better
- remove `ProblemPredicate`, which was only used once
- replace `ring` by a short `rw` (to minimize imports)
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Dec 3, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore(Imo/Imo1964Q1): minor clean-up [Merged by Bors] - chore(Imo/Imo1964Q1): minor clean-up Dec 3, 2024
@mathlib-bors mathlib-bors bot closed this Dec 3, 2024
@mathlib-bors mathlib-bors bot deleted the vi.imo_clean branch December 3, 2024 11:31
mathlib-bors bot pushed a commit that referenced this pull request Dec 15, 2024
This reverts a change from #19691, which unnecessarily removed a tactic invocation in favour of writing out lemmas. The archive should be demonstrating good style, and unless there is a verbosity or speed issue, robust and well specified tactics should always be preferred over proofs that require knowing lemmas (even if, as in this case, those lemmas are easy to identify and use).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

IMO Math olympiad problems maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. ready-to-merge This PR has been sent to bors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants