Commit 425c494
committed
fix(Tactic/Recall): allow different universe variable names (leanprover-community#37145)
Fixes leanprover-community#37144
This PR fixes `recall` failing when the recalled declaration uses a different universe variable name (or `Type*`) compared to the original declaration.
The type-only branch of `recall` compared `info.type` directly against the elaborated type without first instantiating the original declaration's level parameters with fresh level metavariables. The value branch already did this correctly.
🤖 Prepared with Claude Code1 parent 51391b2 commit 425c494
2 files changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
92 | 95 | | |
93 | 96 | | |
94 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
0 commit comments