lean-array-list
CommunityMaster Lean 4 array/list proof patterns.
Authorkim-em
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides essential patterns and lemmas for proving properties related to Lean 4's ByteArray, Array, and List types, specifically focusing on indexing, length conversions, and data roundtrips.
Core Features & Use Cases
- Indexing Proofs: Simplifies proving equalities for element access (
data[pos]). - Length Conversions: Bridges
Array.sizeandList.lengthfor seamless proofs. - Data Roundtrips: Handles conversions between
List,Array, andByteArraywithNatandUInt8. - Use Case: When proving that a specific byte at an index in a
ByteArraymeets a certain condition, this Skill offers the lemmas to correctly access and reason about that byte.
Quick Start
Use the lean-array-list skill to prove that myArray[i]! is equal to myArray.getD i 0 when myArray contains Nat elements.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: lean-array-list Download link: https://github.com/kim-em/lean-zip/archive/main.zip#lean-array-list Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.