You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(GCongr): handle @[reducible] HasSSubset.SSubset in hypothesis classification and tactic
When `HasSSubset.SSubset` is `@[reducible]` (from lean4#12368), `whnf` at
reducible transparency can destroy the relation structure of `⊂`, making
`getRel` unable to parse the result.
This fixes three locations:
1. **Attribute registration** (`makeGCongrLemma`): Try `getRel` on the raw
hypothesis type before `forallTelescopeReducing` whnfs it. This ensures
hypotheses like `h : s ⊂ t` are correctly classified as main subgoals.
2. **Tactic core** (`MVarId.gcongr`): Fall back to the raw goal type when
`getRel` fails on the whnf'd form.
3. **Tactic elab** (`gcongr`/`rel`): Same fallback pattern.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments