Skip to content

Commit d5f32c1

Browse files
fgdoraisleanprover-community-mathlib4-bot
andcommitted
chore: adaptations for batteries#1588 (leanprover-community#33681)
After [batteries#1588](leanprover-community/batteries#1588) is merged: - [x] Edit the lakefile to point to leanprover-community/batteries:main - [x] Run lake update batteries - [x] Merge leanprover-community/mathlib4:master - [ ] Wait for CI and merge Co-authored-by: leanprover-community-mathlib4-bot <leanprover-community-mathlib4-bot@users.noreply.github.com> Co-authored-by: F. G. Dorais <fgdorais@gmail.com>
1 parent 402b97b commit d5f32c1

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Mathlib/Data/Vector/Basic.lean

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,8 @@ into the provided starting value `b : β` and the recursed `scanl`
316316
This lemma is the `cons` version of `scanl_get`.
317317
-/
318318
@[simp]
319-
theorem scanl_cons (x : α) : scanl f b (x ::ᵥ v) = b ::ᵥ scanl f (f b x) v := rfl
319+
theorem scanl_cons (x : α) : scanl f b (x ::ᵥ v) = b ::ᵥ scanl f (f b x) v := by
320+
apply Vector.eq; simp [scanl]
320321

321322
/-- The underlying `List` of a `Vector` after a `scanl` is the `List.scanl`
322323
of the underlying `List` of the original `Vector`.

lake-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"type": "git",
6666
"subDir": null,
6767
"scope": "leanprover-community",
68-
"rev": "bc7b7f567dacc39ae904b6f12f6aa7f90e48e45f",
68+
"rev": "214d0a9a400bb5924a83663807389748b0aabe47",
6969
"name": "batteries",
7070
"manifestFile": "lake-manifest.json",
7171
"inputRev": "main",

0 commit comments

Comments
 (0)