Commit 2025-09-17 05:19 81dcdf5c
View on Github →feat(Data/Seq): coinductive predicates for sequences (#28874)
- Prove
eq_of_bisim'
andeq_of_bisim_strong
coinductive principles for equality. - Develop API for a predicate
∀ x ∈ s, p x
wheres : Seq α
, including coinductive principleall_coind
. - Introduce the
Pairwise
predicate along with API and coinductive principlesPairwise.coind
andPairwise.coind_trans
. - Introduce
ENat
-valued length of a sequence,length'
, along with minimal API. - Move theorems about
length
fromDefs.lean
toBasic.lean
. - Prove a coinductive principle for a predicate
a.length' ≤ b.length'
.
All of these "coinductive principles" are stated in the form as similar as possible to inductive principles.