[Merged by Bors] - chore: deprime induction in AlgebraicTopology/CategoryTheory#25774
[Merged by Bors] - chore: deprime induction in AlgebraicTopology/CategoryTheory#25774Parcly-Taxel wants to merge 16 commits intoleanprover-community:masterfrom
induction in AlgebraicTopology/CategoryTheory#25774Conversation
Most replacements that are also in leanprover-community#23676 have been copied over, but some have been optimised further.
…thlib4 into deprime-algtop-cattheory
PR summary de2995686cImport changes for modified filesNo significant changes to the import graph Import changes for all files
Declarations diffNo declarations were harmed in the making of this PR! 🐙 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 No changes to technical debt.You can run this locally as
|
|
This pull request has conflicts, please merge |
|
This pull request has conflicts, please merge |
|
This pull request has conflicts, please merge |
…thlib4 into deprime-algtop-cattheory
|
This pull request has conflicts, please merge |
|
This pull request has conflicts, please merge |
| · specialize ih (by omega) | ||
| induction h using Nat.leRec with | ||
| | refl => simp | ||
| | @le_succ_of_le m h ih => |
There was a problem hiding this comment.
Where is leRec defined? Should we change the explicitness?
There was a problem hiding this comment.
leRec is defined in core:
@[elab_as_elim]
def leRec {n} {motive : (m : ℕ) → n ≤ m → Sort*}
(refl : motive n (Nat.le_refl _))
(le_succ_of_le : ∀ ⦃k⦄ (h : n ≤ k), motive k h → motive (k + 1) (le_succ_of_le h)) :
∀ {m} (h : n ≤ m), motive m h
| 0, H => Nat.eq_zero_of_le_zero H ▸ refl
| m + 1, H =>
(le_succ_iff.1 H).by_cases
(fun h : n ≤ m ↦ le_succ_of_le h <| leRec refl le_succ_of_le h)
(fun h : n = m + 1 ↦ h ▸ refl)I think the strict-implicit binder ⦃k⦄ should be changed to a plain explicit binder.
|
bors d+ |
|
✌️ Parcly-Taxel can now approve this pull request. To approve and merge a pull request, simply reply with |
|
bors merge |
) Most replacements that are also in #23676 have been copied over, but some have been optimised further. Co-authored-by: Parcly Taxel <reddeloostw@gmail.com>
|
Pull request successfully merged into master. Build succeeded: |
induction in AlgebraicTopology/CategoryTheoryinduction in AlgebraicTopology/CategoryTheory
…nprover-community#25774) Most replacements that are also in leanprover-community#23676 have been copied over, but some have been optimised further. Co-authored-by: Parcly Taxel <reddeloostw@gmail.com>
…nprover-community#25774) Most replacements that are also in leanprover-community#23676 have been copied over, but some have been optimised further. Co-authored-by: Parcly Taxel <reddeloostw@gmail.com>
…nprover-community#25774) Most replacements that are also in leanprover-community#23676 have been copied over, but some have been optimised further. Co-authored-by: Parcly Taxel <reddeloostw@gmail.com>
…nprover-community#25774) Most replacements that are also in leanprover-community#23676 have been copied over, but some have been optimised further. Co-authored-by: Parcly Taxel <reddeloostw@gmail.com>
Most replacements that are also in #23676 have been copied over, but some have been optimised further.