Skip to content

chore: modulize tests (N/N)#34466

Draft
Komyyy wants to merge 44 commits intoleanprover-community:masterfrom
Komyyy:modulize-tests
Draft

chore: modulize tests (N/N)#34466
Komyyy wants to merge 44 commits intoleanprover-community:masterfrom
Komyyy:modulize-tests

Conversation

@Komyyy
Copy link
Copy Markdown
Contributor

@Komyyy Komyyy commented Jan 26, 2026

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 26, 2026

PR summary 92e168a21c

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ main

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

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

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


No changes to technical debt.

You can run this locally as

./scripts/reporting/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).

@mathlib-merge-conflicts mathlib-merge-conflicts bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Feb 3, 2026
@mathlib-merge-conflicts
Copy link
Copy Markdown

This pull request has conflicts, please merge master and resolve them.

@Komyyy Komyyy added blocked-by-core-release Not relevant for the current Lean release candidate, but will be needed for the next. and removed merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) labels Feb 8, 2026
@Komyyy Komyyy added CI Modifies the continuous integration setup or other automation blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) labels Feb 8, 2026
@Komyyy Komyyy changed the title perf: modulize tests perf: modulize tests (N/N) Feb 8, 2026
@mathlib-dependent-issues mathlib-dependent-issues bot removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Feb 13, 2026
@Komyyy Komyyy added the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Feb 14, 2026
@mathlib-dependent-issues mathlib-dependent-issues bot removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Feb 18, 2026
@Komyyy Komyyy added blocked-by-core-release Not relevant for the current Lean release candidate, but will be needed for the next. and removed blocked-by-core-release Not relevant for the current Lean release candidate, but will be needed for the next. labels Feb 20, 2026
@mathlib-merge-conflicts mathlib-merge-conflicts bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Feb 24, 2026
@mathlib-merge-conflicts
Copy link
Copy Markdown

This pull request has conflicts, please merge master and resolve them.

Komyyy added a commit to Komyyy/mathlib4 that referenced this pull request Mar 22, 2026
---

Privately imports are intentional.

I manually modulize each test so that the purpose of the tests is not lost by modulizing.

This PR is extracted from draft PR leanprover-community#34466.
These tests are for tactics, which can modulize by simply adding `module`.
@mathlib-dependent-issues mathlib-dependent-issues bot added blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) and removed blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) labels Mar 22, 2026
@mathlib-merge-conflicts mathlib-merge-conflicts bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Mar 27, 2026
@mathlib-merge-conflicts
Copy link
Copy Markdown

This pull request has conflicts, please merge master and resolve them.

@github-actions github-actions bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Apr 5, 2026
Komyyy added a commit to Komyyy/mathlib4 that referenced this pull request Apr 5, 2026
---

---

Privately imports are intentional.

I manually modulize each test so that the purpose of the tests is not lost by modulizing.

This PR is extracted from draft PR leanprover-community#34466.

* Adds `local`s for `notation`s
* Drops `private`s except `private axiom test_sorry : ∀ {α}, α`s, to prevent abuse when `test_sorry` accidentially enters a public section
* In `MathlibTest.Linarith.Basic`, `meta` for `testSorryTac` is unnecessary for building, but desirable for robustness.
@mathlib-dependent-issues mathlib-dependent-issues bot added the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Apr 5, 2026
@mathlib-dependent-issues mathlib-dependent-issues bot removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Apr 5, 2026
Komyyy added a commit to Komyyy/mathlib4 that referenced this pull request Apr 9, 2026
Found while modulizing tests in leanprover-community#34466.
This can be fixed straightforwardly by making internal lemmas public.
@mathlib-dependent-issues mathlib-dependent-issues bot added the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Apr 9, 2026
mathlib-bors bot pushed a commit that referenced this pull request Apr 9, 2026
`norm_num` used to generate proof terms containing private lemmas, leading to errors in downstream modules. Fix this by making the lemmas public; they are still namespaced (so unlikely to lead to confusion elsewhere).

Found while modulizing tests in #34466.

Co-authored-by: Komyyy <pol_tta@outlook.jp>
@mathlib-dependent-issues mathlib-dependent-issues bot removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Apr 9, 2026
xroblot pushed a commit to xroblot/mathlib4 that referenced this pull request Apr 10, 2026
…rover-community#37820)

`norm_num` used to generate proof terms containing private lemmas, leading to errors in downstream modules. Fix this by making the lemmas public; they are still namespaced (so unlikely to lead to confusion elsewhere).

Found while modulizing tests in leanprover-community#34466.

Co-authored-by: Komyyy <pol_tta@outlook.jp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Modifies the continuous integration setup or other automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant