Skip to content

[Merged by Bors] - feat(*/Fin/*): add 2 lemmas#21229

Closed
urkud wants to merge 1 commit intomasterfrom
YK-fin-lemmas-neZero
Closed

[Merged by Bors] - feat(*/Fin/*): add 2 lemmas#21229
urkud wants to merge 1 commit intomasterfrom
YK-fin-lemmas-neZero

Conversation

@urkud
Copy link
Copy Markdown
Member

@urkud urkud commented Jan 29, 2025

This is a version of #21112 that doesn't use inline NeZero instances, thus doesn't break simp normal forms all over the place.


Open in Gitpod

@urkud urkud added the t-data Data (lists, quotients, numbers, etc) label Jan 29, 2025
@github-actions
Copy link
Copy Markdown

PR summary ea27533810

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ cast_top
+ mk_zero'

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

@urkud urkud mentioned this pull request Jan 29, 2025
3 tasks
@urkud urkud requested a review from kim-em January 29, 2025 17:09
Copy link
Copy Markdown
Contributor

@Ruben-VandeVelde Ruben-VandeVelde left a comment

Choose a reason for hiding this comment

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

maintainer merge

@github-actions
Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by Ruben-VandeVelde.

@github-actions github-actions bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Jan 29, 2025
eq_comm.trans zero_eq_top

@[simp]
theorem cast_top {m n : ℕ} [NeZero m] [NeZero n] (h : m = n) : (⊤ : Fin m).cast h = ⊤ := by
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.

Funky that you need both NeZero assumptions, even with the m = n: I see where it comes from, but still find it amusing!

Thanks!

bors merge

@ghost ghost added ready-to-merge This PR has been sent to bors. and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Jan 29, 2025
mathlib-bors bot pushed a commit that referenced this pull request Jan 29, 2025
This is a version of #21112 that doesn't use inline `NeZero` instances, thus doesn't break `simp` normal forms all over the place.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jan 29, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat(*/Fin/*): add 2 lemmas [Merged by Bors] - feat(*/Fin/*): add 2 lemmas Jan 29, 2025
@mathlib-bors mathlib-bors bot closed this Jan 29, 2025
@mathlib-bors mathlib-bors bot deleted the YK-fin-lemmas-neZero branch January 29, 2025 23:20
jt496 pushed a commit that referenced this pull request Feb 3, 2025
This is a version of #21112 that doesn't use inline `NeZero` instances, thus doesn't break `simp` normal forms all over the place.
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-data Data (lists, quotients, numbers, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants