Documentation

LeanPool.Rupert.FinCases

LeanPool.Rupert.FinCases #

Imported Lean Pool material for LeanPool.Rupert.FinCases.

theorem all_fin_8_vec {α : Type} {a b c d e f g h : α} (p : αProp) :
p ap bp cp dp ep fp gp h∀ (ii : Fin 8), p (![a, b, c, d, e, f, g, h] ii)

Lemma for helping with goals such as

  ∀ i : Fin 8, 0 ≤ ![1.4, 3, 5, 2, 0, 1, 1, 0.2]

Usually one would do something like intro i; fin_cases i <;> norm_num here. However, fin_cases consumes a considerable number of heartbeats, which can become problematic if this is done many times in a larger proof.

With this lemma, once can instead do

apply all_fin_8_vec <;> norm_num