Skip to content

fix: make theorem workspace generation robust to source context - #509

Open
kim-em wants to merge 2 commits into
leanprover:mainfrom
kim-em:codex/robust-statement-extraction
Open

fix: make theorem workspace generation robust to source context#509
kim-em wants to merge 2 commits into
leanprover:mainfrom
kim-em:codex/robust-statement-extraction

Conversation

@kim-em

@kim-em kim-em commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Fixes generator failures exposed by #499.

  • accept direct := sorry theorem bodies and trivia-separated := by bodies
  • ignore body-like text in comments and strings
  • preserve scoped syntax/notation and precise inter-declaration context for trusted helpers
  • pass explicit outer variable parameters through the generated Solution delegation
  • add focused regression coverage

Validation:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant