Skip to content

refactor: migrate to the new do elaborator - #2

Closed
kim-em wants to merge 2 commits into
agent/bump-v4.32.2from
agent/migrate-new-do-elaborator
Closed

refactor: migrate to the new do elaborator#2
kim-em wants to merge 2 commits into
agent/bump-v4.32.2from
agent/migrate-new-do-elaborator

Conversation

@kim-em

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

Copy link
Copy Markdown
Owner

Stacked on digama0#30.

Resolves digama0#31.

Summary

  • remove the four backward.do.legacy compatibility pins
  • migrate the verifier proofs to the new do elaborator
  • make the experimental shape lifts use explicit Option.bind terms with result type ascriptions

Verification

  • lake build
  • lake build Lean4Lean.Experimental
  • lake exe lean4lean Init.Core
  • lake exe lean4lean --fresh Init.System.IO

Coverage note

Removing the TypeChecker.lean pin changes elaborated terms in code paths whose existing .WF theorems still contain sorry (reduceRecursor, reduceProj, inferProj, tryEtaStructCore, and isDefEqUnitLike). The fresh Init.System.IO replay is therefore part of the safety check, rather than relying only on proof coverage.

Independent review

A fresh Claude Opus review found no correctness regression and confirmed that the explicit Option.bind rewrites preserve behavior. Follow-up changes narrowed both new simp attributes, replaced a broad Expr constructor case split with targeted Boolean elimination, made the experimental proof branches explicit, and cleaned stale join-point names.

@kim-em

kim-em commented Aug 4, 2026

Copy link
Copy Markdown
Owner Author

Superseded by the correctly placed upstream draft: digama0#33.

@kim-em kim-em closed this Aug 4, 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