Skip to content

refactor: Clean up tactic implementations - #119

Merged
MackieLoeffel merged 1 commit into
masterfrom
msammler/cleanup_tactics
Jan 22, 2026
Merged

MackieLoeffel merged 1 commit into
masterfrom
msammler/cleanup_tactics

Conversation

@MackieLoeffel

Copy link
Copy Markdown
Collaborator

Builds on #114

  • 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 proof mode term support for icases
  • Significantly simplify iassumption

@lzy0505
lzy0505 self-requested a review January 20, 2026 13:52
@lzy0505

lzy0505 commented Jan 20, 2026

Copy link
Copy Markdown
Collaborator

Please let me know when the PR is ready. I will review it.

@MackieLoeffel
MackieLoeffel force-pushed the msammler/cleanup_tactics branch 2 times, most recently from 40051bb to 39e7ff2 Compare January 21, 2026 15:37
@MackieLoeffel

Copy link
Copy Markdown
Collaborator Author

@lzy0505 This is ready to review.

Comment thread src/Iris/ProofMode/Tactics/Pure.lean Outdated
Comment thread src/Iris/ProofMode/Tactics/Cases.lean
Comment thread src/Iris/Tests/Tactics.lean

@lzy0505 lzy0505 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR looks great! Ready for merging with minor comments.

- 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 proof mode term support for icases
- Significantly simplify iassumption
@MackieLoeffel
MackieLoeffel force-pushed the msammler/cleanup_tactics branch from 39e7ff2 to 6d486a0 Compare January 22, 2026 07:39
@markusdemedeiros markusdemedeiros changed the title Clean up tactic implementations refactor: Clean up tactic implementations Jan 22, 2026
@MackieLoeffel
MackieLoeffel merged commit b02fb83 into master Jan 22, 2026
1 check passed
@MackieLoeffel
MackieLoeffel deleted the msammler/cleanup_tactics branch January 22, 2026 13:40
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