Documentation

Foundation.Vorspiel.Fin.Basic

theorem eq_finZeroElim {α : Sort u} (x : Fin 0α) :
@[simp]
theorem Nat.sub_one_lt' {n : } [NeZero n] :
n - 1 < n
theorem Fin.isEmpty_embedding_lt {n m : } (hn : n > m) :
@[simp]
theorem Fin.lt_last {n : } :
n < (last (n + 1))
theorem Fin.lt_sub_one_of_pos {n : } {a : Fin n} (hn : 0 < n) :
a n - 1,
def Fin.last' {n : } [NeZero n] :
Fin n

The last element of Fin n when n is NeZero.

Equations
Instances For
    @[simp]
    theorem Fin.lt_last' {n : } {i : Fin n} [NeZero n] :
    theorem Fin.pos_of_coe_ne_zero {n : } {i : Fin (n + 1)} (h : i 0) :
    0 < i
    @[simp]
    theorem Fin.one_pos'' {n : } :
    0 < 1
    @[simp]
    theorem Fin.two_pos {n : } :
    0 < 2
    @[simp]
    theorem Fin.three_pos {n : } :
    0 < 3
    @[simp]
    theorem Fin.four_pos {n : } :
    0 < 4
    @[simp]
    theorem Fin.five_pos {n : } :
    0 < 5
    theorem Fin.forall_fin_iff_zero_and_forall_succ {k : } {P : Fin (k + 1)Prop} :
    (∀ (i : Fin (k + 1)), P i) P 0 ∀ (i : Fin k), P i.succ
    theorem Fin.exists_fin_iff_zero_or_exists_succ {k : } {P : Fin (k + 1)Prop} :
    (∃ (i : Fin (k + 1)), P i) P 0 ∃ (i : Fin k), P i.succ
    @[inline]
    def Fin.addCast {n : } (m : ) :
    Fin nFin (m + n)
    Equations
    Instances For
      @[simp]
      theorem Fin.addCast_val {n m : } (i : Fin n) :
      (addCast m i) = i
      @[simp]
      theorem Fin.Fin1.eq_one {n : Fin 1} :
      n = 0
      @[simp]
      theorem Fin.Fin1.not_lt_zero {n : Fin 1} :
      ¬0 < n