Theorems · Theorem · combinatorics
Fin.cons_snoc_eq_snoc_cons
∀ {n : ℕ} {β : Sort u_2} (a : β) (q : Fin n → β) (b : β), Fin.cons a (Fin.snoc q b) = Fin.snoc (Fin.cons a q) bcons and snoc commute. We state this lemma in a non-dependent setting, as otherwise it
would involve a cast to convince Lean that the two types are equal, making it harder to use.
- Defined in
- Mathlib.Data.Fin.Tuple.Basic
- Cited by
- 3 results in Mathlib
- Foundations
- Depth 52 from the axioms · uses propext, Quot.sound
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites8
Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.
- Fin.consstatement and proof · cited by 190
- Fin.snocstatement and proof · cited by 113
- Fin.cons_succproof · cited by 54
- Fin.cons_zeroproof · cited by 53
- Fin.snoc_castSuccproof · cited by 38
- Fin.snoc_lastproof · cited by 37
- Fin.snoc_apply_zeroproof · cited by 2
- Fin.cons_lastproof · cited by 1
Cited by3
Results whose statement or proof uses this declaration.
- hasFTaylorSeriesUpToOn_succ_nat_iff_rightproof · cited by 2
- Matrix.Fin.snoc_vecConsproof · cited by 1
- HasFTaylorSeriesUpToOn.shift_of_succproof · cited by 1