lean4-htt/tests/lean/2040.lean.expected.out
Leonardo de Moura de5e039c83
fix: type class issues with maxSynthPendingDepth := 1 (#4119)
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
2024-05-14 03:03:32 +00:00

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