lambdaclass / lambdaclass/lambda_compiler_kit
feat: add ValidTopLevel predicate for top-level JSON parse validation
Nobody has claimed this yet.
- Dominant language
- Lean
- Stars
- 2
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Problem
The current spec predicates (ValidJson, ValidJsonArray, ValidJsonObject) operate at the structural level. There is no ValidTopLevel predicate that characterises what it means for a full top-level parse to succeed — i.e., consuming all tokens with no remainder.
Expected fix
Add a ValidTopLevel predicate and a corresponding iff theorem connecting it to parse/parseRaw returning .ok.
References
- Suggested by AI code review on PR #8
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the definitions of ValidJson, ValidJsonArray, ValidJsonObject, parse, and parseRaw. Define what ValidTopLevel must characterize for complete token consumption, then establish the requested iff theorem showing when parse or parseRaw returns .ok.
Written by the indexing model from the issue text.
Assessment
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100