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
    theorem Fin.funext_two {k : ℕ} {α : Type u_1} {f g : Fin (k + 2) → α} (h0 : f 0 = g 0) (h1 : f (succ 0) = g (succ 0)) (hs : ∀ (i : Fin k), f i.succ.succ = g i.succ.succ) :
    f = g
    @[inline]
    def Fin.addCast {n : ℕ} (m : ℕ) :
    Fin n → Fin (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