/-
Copyright (c) 2024 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
module
public import Batteries.Data.List.Lemmas
public import Mathlib.Tactic.Common
import Mathlib.Tactic.Finiteness.Attr
set_option doc.verso true
set_option doc.verso.suggestions false
/-!
# Lemmas about `IsChain` and `ofFn`
This file provides lemmas involving both `List.IsChain` and `List.ofFn`.
-/
public section
open Nat
namespace List
lemma isChain_ofFn {α : Type*} {n : ℕ} {f : Fin n → α} {r : α → α → Prop} :
(ofFn f).IsChain r ↔ ∀ (i) (hi : i + 1 < n), r (f ⟨i, lt_of_succ_lt hi⟩) (f ⟨i + 1, hi⟩) := by
simp_rw [isChain_iff_getElem, List.getElem_ofFn, length_ofFn]
end List
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland