Theorems · Theorem · combinatorics
List.Vector.mapAccumr_redundant_pair
∀ {α : Type u_1} {β : Type u_2} {σ : Type u_5} {n : ℕ} {s : σ} {xs : List.Vector α n} (f : α → σ × σ → (σ × σ) × β),
(∀ (x : α) (s : σ), (f x (s, s)).1.1 = (f x (s, s)).1.2) →
(List.Vector.mapAccumr f xs (s, s)).2 =
(List.Vector.mapAccumr (fun x s => ((f x (s, s)).1.1, (f x (s, s)).2)) xs s).2If f takes a pair of states, but always returns the same value for both elements of the
pair, then we can simplify to just a single element of state.
- Defined in
- Mathlib.Data.Vector.MapLemmas
- Cited by
- 0 results in Mathlib
- Foundations
- Depth 21 from the axioms · uses propext, Quot.sound
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites3
Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.
- List.Vectorstatement and proof · cited by 270
- List.Vector.mapAccumrstatement · cited by 18
- List.Vector.mapAccumr_bisim_tailproof · cited by 2
Cited by0
Results whose statement or proof uses this declaration.
Nothing cites this yet.