Take operations on tuples #
We define the take operation on n-tuples, which restricts a tuple to its first m elements.
@[simp]
theorem
Fin.take_addCases_left
{n n' : β}
{motive : Fin (n + n') β Sort u_2}
(m : β)
(h : m β€ n)
(u : (i : Fin n) β motive (castAdd n' i))
(v : (i : Fin n') β motive (natAdd n i))
:
Taking the first m β€ n elements of an addCases u v, where u is an n-tuple, is the same
as taking the first m elements of u.
theorem
Fin.take_append_left
{n n' : β}
{Ξ± : Sort u_2}
(m : β)
(h : m β€ n)
(u : Fin n β Ξ±)
(v : Fin n' β Ξ±)
:
Version of take_addCases_left that specializes addCases to append.
theorem
Fin.take_addCases_right
{n n' : β}
{motive : Fin (n + n') β Sort u_2}
(m : β)
(h : m β€ n')
(u : (i : Fin n) β motive (castAdd n' i))
(v : (i : Fin n') β motive (natAdd n i))
:
Taking the first n + m elements of an addCases u v, where v is a n'-tuple and m β€ n',
is the same as appending u with the first m elements of v.