Skip to content

feat(List/OffDiag): new file#12632

Closed
urkud wants to merge 19 commits intomasterfrom
YK-offDiag
Closed

feat(List/OffDiag): new file#12632
urkud wants to merge 19 commits intomasterfrom
YK-offDiag

Conversation

@urkud
Copy link
Copy Markdown
Member

@urkud urkud commented May 3, 2024


Open in Gitpod

@urkud urkud added the awaiting-author A reviewer has asked the author a question or requested changes. label May 3, 2024
@ghost ghost added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label May 6, 2024
@eric-wieser
Copy link
Copy Markdown
Member

eric-wieser commented May 6, 2024

Just noting I tried this long ago in leanprover-community/mathlib3#17769, but probably this can replace it

@urkud
Copy link
Copy Markdown
Member Author

urkud commented May 7, 2024

@eric-wieser What's the order of elements in your definition? Which def do you prefer?

@ghost ghost removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label May 8, 2024
@grunweg grunweg added the t-data Data (lists, quotients, numbers, etc) label Aug 15, 2024
@ghost ghost added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Aug 19, 2024
@github-actions
Copy link
Copy Markdown

github-actions bot commented Sep 13, 2024

PR summary 1631dc1575

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.Data.List.Perm.Basic 335 310 -25 (-7.46%)
Mathlib.Data.List.InsertIdx 329 306 -23 (-6.99%)
Mathlib.Data.List.Nodup 330 307 -23 (-6.97%)
Mathlib.Data.List.NatAntidiagonal 331 308 -23 (-6.95%)
Mathlib.Data.List.Perm.Lattice 333 310 -23 (-6.91%)
Mathlib.Algebra.BigOperators.Group.List.Basic 356 354 -2 (-0.56%)
Import changes for all files
Files Import difference
Mathlib.Data.List.Perm.Basic -25
9 files Mathlib.Data.List.AList Mathlib.Data.List.Dedup Mathlib.Data.List.Duplicate Mathlib.Data.List.InsertIdx Mathlib.Data.List.InsertNth Mathlib.Data.List.NatAntidiagonal Mathlib.Data.List.Nodup Mathlib.Data.List.Perm.Lattice Mathlib.Data.List.Sigma
-23
3 files Mathlib.Algebra.BigOperators.Group.List.Basic Mathlib.Algebra.FreeMonoid.Basic Mathlib.Algebra.FreeMonoid.Count
-2
Mathlib.Data.List.OffDiag (new file) 316

Declarations diff

+ Nodup.mem_offDiag
+ Nodup.of_offDiag
+ Nodup.offDiag
+ Perm.offDiag
+ Sublist.flatMap_right
+ count_offDiag_eq_mul_sub_bif
+ length_offDiag
+ length_offDiag'
+ map_fst_zipIdx
+ map_fun_fst_zipIdx
+ mem_offDiag_iff_getElem
+ nodup_offDiag
+ offDiag
+ offDiag_cons_perm
+ offDiag_nil
+ offDiag_singleton

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

@leanprover-community-bot-assistant leanprover-community-bot-assistant removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Sep 13, 2024
@leanprover-community-bot-assistant leanprover-community-bot-assistant added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Sep 14, 2024
@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 Nov 10, 2025
@mathlib4-merge-conflict-bot mathlib4-merge-conflict-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 Nov 19, 2025
@mathlib4-merge-conflict-bot
Copy link
Copy Markdown
Collaborator

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

@urkud urkud closed this Jan 10, 2026
@urkud urkud deleted the YK-offDiag branch January 10, 2026 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-author A reviewer has asked the author a question or requested changes. merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) t-data Data (lists, quotients, numbers, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants