Skip to content

fix(cli): extract goal type from file for tactic-search --file#15

Merged
markm39 merged 1 commit into
masterfrom
fix/tactic-search-file-goal-extraction
Mar 30, 2026
Merged

fix(cli): extract goal type from file for tactic-search --file#15
markm39 merged 1 commit into
masterfrom
fix/tactic-search-file-goal-extraction

Conversation

@markm39
Copy link
Copy Markdown
Collaborator

@markm39 markm39 commented Mar 30, 2026

Fixes goal extraction for the --file path. Tested: solves n+0=n with simp via Codex.

The Lean compiler doesn't report 'unsolved goals' for sorry (it's a
warning, not an error), so run_lean_verify_raw returns no goal info.
Added extract_type_expr_from_content() to parse the theorem signature
directly from the .lean file and build a forall expression.

Also fixed theorem name being included in the forall (skip keyword + name
before extracting params).
@markm39 markm39 merged commit d23bc3c into master Mar 30, 2026
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