Chymyst/curryhoward
Automatic code generation for Scala functions and expressions via the Curry-Howard isomorphism
Uses compile-time macros to derive function implementations by translating Scala type signatures into intuitionistic propositional logic formulas, then exhaustively searching for lambda-calculus terms that satisfy the proof via the LJT sequent calculus. Supports function types, tuples, sealed traits, and case classes; when multiple valid implementations exist, applies heuristics based on "information loss" to select the most likely correct solution. Integrates directly into Scala code as the `implement` and `ofType` macros, enabling zero-boilerplate generation of Reader monad operations, function composition, and other polymorphic utilities at compile time.
262 stars. No commits in the last 6 months.
Stars
262
Forks
18
Language
Scala
License
Apache-2.0
Category
Last pushed
May 25, 2025
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/Chymyst/curryhoward"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
marcosschroh/dataclasses-avroschema
Generate avro schemas from python dataclasses, Pydantic models and Faust Records. Code...
twitter/scrooge
A Thrift parser/generator
sbt-dao-generator/sbt-dao-generator
code generator sbt plugin from database schema
olafurpg/scala-db-codegen
Scala code/boilerplate generator from a db schema
GW2ToolBelt/api-generator
A library for creating programs that interface with data exposed by the official Guild Wars 2 API.