Skip to content

Conversation

@MackieLoeffel
Copy link
Collaborator

@MackieLoeffel MackieLoeffel commented Jan 12, 2026

Builds on #109

Add a ProofModeM monad that automates the goal management of proof
mode tactics. This subsumes the previous Goals structure.

Additional this PR performs a cleanup of the tactic implementations:

  • Collect everything related to Hyps in Expr.lean
  • Make all proof mode theorems private
  • Deduplicate code in icases
  • Add error messages for failing typeclass searches
  • Tweak icases such that the code path does not depend on the result of TC synthesis
  • Define iintuitionistic and ispatial as special cases of icases
  • Add test cases for failures
  • Introduce a type for intropatterns
  • Force forall introduction to use a pure intro pattern, similar to cases
  • Add more precise error location for intro patterns

Add a ProofModeM monad that automates the goal management of proof
mode tactics. This subsumes the previous `Goals` structure.
- Collect everything related to Hyps in Expr.lean
- Make all proof mode theorems private
- Deduplicate code in icases
- Add error messages for failing typeclass searches
- Tweak icases such that the code path does not depend on the result of
TC synthesis
- Define iintuitionistic and ispatial as special cases of icases
- Add test cases for failures
- Introduce a type for intropatterns
- Force forall introduction to use a pure intro pattern, similar to
cases
- Add more precise error location for intro patterns
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.

2 participants