[Merged by Bors] - feat(Data/List/Chain): lemmas on Chain' and replicate#17106
Closed
[Merged by Bors] - feat(Data/List/Chain): lemmas on Chain' and replicate#17106
Chain' and replicate#17106Conversation
PR summary 7784cd0f31Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
2 tasks
b-mehta
reviewed
Sep 25, 2024
b-mehta
reviewed
Sep 26, 2024
Contributor
|
Not so sure I agree, we could also have n <= 1: it's feasible that other
lemmas relating chain and replicate exist. But this name is probably fine
for now
…On Wed, 2 Oct 2024, 19:58 Violeta Hernández, ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In Mathlib/Data/List/Chain.lean
<#17106 (comment)>
:
> @@ -419,6 +419,30 @@ lemma Chain'.iterate_eq_of_apply_eq {α : Type*} {f : α → α} {l : List α}
apply hl
omega
+theorem chain_replicate [IsRefl α r] (n : ℕ) (a : α) : Chain r a (replicate n a) :=
Reflexive relations are precisely the ones for which replicate is always
chain', so I'm not sure there's a need to disambiguate.
—
Reply to this email directly, view it on GitHub
<#17106 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHESIOV6FR53F3JNBZIV5PTZZQ66BAVCNFSM6AAAAABOY3BLOSVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDGNBTHA2TGNRZGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Collaborator
Author
|
You are right, there's other possible theorems of this sort. Another one would be simply I'll rename once I'm able to. |
Contributor
|
Actually your suggested lemma is probably a better thing to add anyway, instead of our current statement; it's just stronger! |
|
🚀 Pull request has been placed on the maintainer queue by b-mehta. |
Member
|
bors merge |
mathlib-bors bot
pushed a commit
that referenced
this pull request
Oct 7, 2024
Co-authored-by: Bhavik Mehta <[email protected]>
Contributor
|
Pull request successfully merged into master. Build succeeded: |
Chain' and replicateChain' and replicate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Co-authored-by: Bhavik Mehta [email protected]