What problem does it solve?
This Skill unit helps users with Lean 4 proofs involving operations on byte collections, arrays, and lists, simplifying indexing, length conversions, and more.
Core Features & Use Cases
- Proof Patterns: Provides detailed guidance on proving various properties like indexing, length conversions, and list array roundtrip operations.
- Indexing: Explains how to use
getElem?_pos/getElem!_pos for array lookups and the getElem!_def/getElem?_eq_some_iff for panic-indexed array proofs.
- Length Conversions: Shows how to bridge
Array.length_toList, List.size_toArray, and other length conversions.
- Use Case: When you're trying to prove that a function defined on
ByteArray, Array, or List maintains its structure under certain transformations, this Skill unit offers a roadmap.
Quick Start
Activate the skill by referencing it in your Lean 4 proof environment and use the provided instructions for specific proof patterns and lemmas.