Function applications `(f ...)` were not being elaborated correctly when `f` has implicit parameters occurring after auto_params. The new test exposes the problem. This bug was found when developing the red black tree module. This commit also fixes the following bugs: - Invoke type class resolution again after tactic execution at synthesize method. Reason: metavariables occurring in type class instances may have been synthesized by tactics. - mctx.assign optimization at invoke_tactic was incorrect when the metavariable was assigned by typing rules.
7 lines
122 B
Text
7 lines
122 B
Text
f ℕ has_lt.lt : Type
|
||
id (f ℕ has_lt.lt) : Type
|
||
mk 1 has_lt.lt : f ℕ has_lt.lt
|
||
f.to_val (mk 1 has_lt.lt) : ℕ
|
||
1
|
||
1
|
||
1
|