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_strongcoinductive principles for equality. - Develop API for a predicate
∀ x ∈ s, p xwheres : Seq α, including coinductive principleall_coind. - Introduce the
Pairwisepredicate along with API and coinductive principlesPairwise.coindandPairwise.coind_trans. - Introduce
ENat-valued length of a sequence,length', along with minimal API. - Move theorems about
lengthfromDefs.leantoBasic.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.