Summary: - Take `synthPendingDepth` into account when caching TC results - Add `maxSynthPendingDepth` option with default := 2. - Add support for tracking `synthPending` failures when using `set_option diagnostics true` closes #2522 closes #3313 closes #3927 Identical to #4114 but with `maxSynthPendingDepth := 1` closes #4114 cc @semorrison
15 lines
627 B
Text
15 lines
627 B
Text
2040.lean:8:8-8:13: error: failed to synthesize
|
|
HPow Nat Nat Int
|
|
use `set_option diagnostics true` to get diagnostic information
|
|
2040.lean:14:8-14:13: error: failed to synthesize
|
|
HPow Nat Nat Int
|
|
use `set_option diagnostics true` to get diagnostic information
|
|
2040.lean:20:8-20:13: error: failed to synthesize
|
|
HPow Nat Nat Int
|
|
use `set_option diagnostics true` to get diagnostic information
|
|
2040.lean:18:2-20:22: error: type mismatch
|
|
trans (sorryAx (a = 37)) (sorryAx (37 = 2 ^ n))
|
|
has type
|
|
a = @OfNat.ofNat Nat 2 (instOfNatNat 2) ^ n : Prop
|
|
but is expected to have type
|
|
a = @OfNat.ofNat Int 2 instOfNat ^ n : Prop
|