Commit 5e6774c
wip: partial fixes for Parser.lean type errors
Changes across multiple files to address Lean 4 type system issues:
AST.lean:
- Add ToString instance for NormalForm (1NF, 2NF, 3NF, BCNF, 4NF)
IR.lean:
- Add ToString instance for ValidationLevel
- Add DecompositionStrategy type for normalization
- Simplify IR.Select to use Unit instead of polymorphic type
- Rename 'from' field to 'from_' (Lean keyword conflict)
- Fix CBOR serialization calls (use Serialization.encodeCBOR)
- Fix serializeProof to use CBOR simple value 21 for true
Parser.lean:
- Comment out parseToIR function (type inference failures)
- Replace with axiom stub for now
- Comment out example functions (unknown identifier 'Statement' errors)
Status: Parser module still has 15+ type errors that need deeper fixes.
The core parser combinators have type mismatches with Lean 4 expectations.
Lexer, TypeInference, and core IR modules continue to work correctly.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent d2d405c commit 5e6774c
3 files changed
+138
-129
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
102 | 111 | | |
103 | 112 | | |
104 | 113 | | |
| |||
0 commit comments