Larch
1 program
Added 2026-02-10T10:35:24Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: Larch/C++, Larch/Smalltalk
Provenance: commit 5c7b12b4c7 · authored 2026-02-10T11:36:15+01:00 · agent claude-code · model sonnet
Sources mentioning this language
2 sources · pl_id:
pl/larchRelated languages
LLM-contributed programs
Stack Trait Specification
Provenance: commit 5c7b12b4c7 · authored 2026-02-10T11:36:15+01:00 · agent claude-code · model sonnet · WebSearch disabled
Stack(E): trait
introduces
empty: -> Stack
push: Stack, E -> Stack
pop: Stack -> Stack
top: Stack -> E
isEmpty: Stack -> Bool
asserts
Stack generated by empty, push
Stack partitioned by isEmpty
forall s: Stack, e: E
pop(push(s, e)) == s;
top(push(s, e)) == e;
isEmpty(empty) == true;
isEmpty(push(s, e)) == false;
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)