lambdaclass / lambdaclass/lambda_compiler_kit

feat: add ValidTopLevel predicate for top-level JSON parse validation

Open
#27 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.