Skip to content

Settings menu typed fields; the have-sketch lifter works on a real Lean - #9

Merged
Kdevos12 merged 4 commits into
mainfrom
claude/project-thread-h60gyw
Nov 24, 2026
Merged

Kdevos12 merged 4 commits into
mainfrom
claude/project-thread-h60gyw

Conversation

@Kdevos12

@Kdevos12 Kdevos12 commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

What changes

Settings menu: typed fields for every line's options

Before this, the settings menu showed lineOptions as a JSON box alone. So the new fleet options of the chain of Lean (bucketPrior, switchOnStall), and every other line option, had to be typed as JSON.

Now GET /api/parameters also returns lines: every line of the registry (LINES) that has options, each option typed by its default. The panel draws one fold per line:

  • a boolean is a switch;
  • a number is a number field;
  • a string is a text field;
  • a null, list or object default is a JSON field.

Setting a field writes {line: {option: value}}, and the JSON box stays under "Edit as JSON". Because the options are read from the registry, a line's new option appears in the menu with no interface code. The static bundle is rebuilt and its source stamp updated.

The have-sketch lifter (DP1) on a real Lean

Before this, the statements extract_goal printed did not read back on real goals. Fixes:

  • extract_goal now runs under printing options whose output Lean reads back (EXTRACT_BODY): pp.coercions.types, pp.numericTypes, pp.fieldNotation false, pp.proofs, pp.funBinderTypes and pp.piBinderTypes.
  • A planner answer whose PROOF region starts with by loses that by (tacticsOf, in askPlanner). This covers drafts and refinement rounds alike.
  • The simulated Lean now refuses such a region, as Lean does.

What ran

  • pnpm check: 3441 tests pass and 1 is skipped.
  • New tests:
    • the API lists the fleet's two options as switches with default off;
    • the helpers set and clear an option and drop an empty line;
    • the Chromium settings test sets the fleet's bucket prior, and the settings file carries lineOptions: { fleet: { bucketPrior: true } };
    • the probe holds every printing option;
    • tacticsOf strips a leading by;
    • a draft written with by is lifted. This test fails without the fix.
  • Real Lean 4.27.0, no model, $0, on run6's 9 planner drafts:
    • at e8deb16, 0 drafts gave a lifted file with no error;
    • at 8ed1c4c, 5 of 9;
    • at c036086, 8 of 9, each lifted into 7 to 12 lemmas, and every lifted file checks with 0 errors. The ninth draft has a Lean error of its own.
  • Not yet run: the lift inside a paid run (battery, hole sessions on the lifted lemmas).

Checklist

  • pnpm check passes.
  • The documentation is updated in the same commits (documentation/ui.md "Settings", documentation/scheduler.md "The extraction"), with CHANGELOG and ledger.
  • The README's research-flow diagram is updated if the flow changed (the flow did not change).
  • No claim's status changes except through Lean (validate, the certifier's kernel replay).
  • Everything is in English.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD

lineOptions was a JSON box alone, so the fleet's bucketPrior and
switchOnStall (chain of Lean) and every other line option had to be
typed as JSON. GET /api/parameters now lists the lines of the registry
that have options, each typed by its default, and the panel draws one
fold per line; setting a field writes {line: {option: value}}. Read from
LINES, so a new option needs no interface code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6bbd246e-ef9f-4fc7-8f7c-3669d8767684
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Kdevos12 and others added 3 commits November 24, 2026 12:56
… back

Run again with no model on run6's 9 drafts (real Lean 4.27), the fixed
lifter lifted 7, and none of the lifted files checked: with the default
printing options a coercion lost its target type and field notation
after a postfix notation was misread. The probe now runs extract_goal
with pp.coercions.types, pp.numericTypes, pp.proofs on and
pp.fieldNotation off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
…as its tactics

The second real-Lean check of run6's drafts lifted 5 of 9 with no error.
Two causes remained: an ∃ printed without its binder types (1999 A2,
"Function expected"), and a planner draft whose PROOF region began with
`by` although the prompt asks for none (2003 B3). EXTRACT_BODY adds
pp.funBinderTypes and pp.piBinderTypes; askPlanner strips a leading `by`
(tacticsOf) for drafts and refinement rounds alike. The simulated Lean
refuses a PROOF region that begins with `by`, as Lean does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6fEz5iDpWkPAMxFAudQKD
@Kdevos12 Kdevos12 changed the title Settings menu: typed fields for every line's options Settings menu typed fields; the have-sketch lifter works on a real Lean Nov 24, 2026
@Kdevos12
Kdevos12 merged commit b5aa04d into main Nov 24, 2026
2 checks passed
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