lean2/tests/lean/overload2.lean.expected.out
Leonardo de Moura dbefc91151 fix(kernel/metavar): add normalize assignment justification
We need that when we normalize the assignment in a metavariable environment.
That is, we replace metavariable in a substitution with other assignments.

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-10-27 11:02:34 -07:00

121 lines
5.5 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Set: pp::colors
Set: pp::unicode
Failed to solve
⊢ (?M3::0 ≈ Nat::add) ⊕ (?M3::0 ≈ Int::add) ⊕ (?M3::0 ≈ Real::add)
(line: 1: pos: 10) Overloading at
(Real::add | Int::add | Nat::add) 1
Failed to solve
⊢ Bool ≺
Substitution
⊢ Bool ≺ ?M3::8
(line: 1: pos: 10) Type of argument 2 must be convertible to the expected type in the application of
?M3::0
with arguments:
?M3::1 1
Assignment
≈ ?M3::8
Destruct/Decompose
≈ Π x : ?M3::8, ?M3::9 x
Substitution
⊢ (?M3::7[inst:0 (?M3::1 1)]) (?M3::1 1) ≈ Π x : ?M3::8, ?M3::9 x
(line: 1: pos: 10) Function expected at
?M3::0 (?M3::1 1)
Assignment
_ : ⊢ λ x : , ≈ ?M3::7
Destruct/Decompose
_ : ≈ ?M3::7 _
Destruct/Decompose
≈ Π x : ?M3::6, ?M3::7 x
Substitution
⊢ ?M3::2 ≈ Π x : ?M3::6, ?M3::7 x
(line: 1: pos: 10) Function expected at
?M3::0 (?M3::1 1)
Assignment
≺ ?M3::2
Propagate type, ?M3::0 : ?M3::2
Assignment
⊢ ?M3::0 ≈ Nat::add
Assumption 0
Failed to solve
⊢ Bool ≺
Substitution
⊢ Bool ≺ ?M3::8
(line: 1: pos: 10) Type of argument 2 must be convertible to the expected type in the application of
?M3::0
with arguments:
?M3::1 1
Assignment
≈ ?M3::8
Destruct/Decompose
≈ Π x : ?M3::8, ?M3::9 x
Substitution
⊢ (?M3::7[inst:0 (?M3::1 1)]) (?M3::1 1) ≈ Π x : ?M3::8, ?M3::9 x
(line: 1: pos: 10) Function expected at
?M3::0 (?M3::1 1)
Assignment
_ : ⊢ λ x : , ≈ ?M3::7
Destruct/Decompose
_ : ≈ ?M3::7 _
Destruct/Decompose
≈ Π x : ?M3::6, ?M3::7 x
Substitution
⊢ ?M3::2 ≈ Π x : ?M3::6, ?M3::7 x
(line: 1: pos: 10) Function expected at
?M3::0 (?M3::1 1)
Assignment
≺ ?M3::2
Propagate type, ?M3::0 : ?M3::2
Assignment
⊢ ?M3::0 ≈ Int::add
Assumption 2
Failed to solve
⊢ Bool ≺
Substitution
⊢ Bool ≺ ?M3::8
(line: 1: pos: 10) Type of argument 2 must be convertible to the expected type in the application of
?M3::0
with arguments:
?M3::1 1
Assignment
≈ ?M3::8
Destruct/Decompose
≈ Π x : ?M3::8, ?M3::9 x
Substitution
⊢ (?M3::7[inst:0 (?M3::1 1)]) (?M3::1 1) ≈ Π x : ?M3::8, ?M3::9 x
(line: 1: pos: 10) Function expected at
?M3::0 (?M3::1 1)
Assignment
_ : ⊢ λ x : , ≈ ?M3::7
Destruct/Decompose
_ : ≈ ?M3::7 _
Destruct/Decompose
≈ Π x : ?M3::6, ?M3::7 x
Substitution
⊢ ?M3::2 ≈ Π x : ?M3::6, ?M3::7 x
(line: 1: pos: 10) Function expected at
?M3::0 (?M3::1 1)
Assignment
≺ ?M3::2
Propagate type, ?M3::0 : ?M3::2
Assignment
⊢ ?M3::0 ≈ Real::add
Assumption 5
Assumed: R
Assumed: T
Assumed: r2t
Coercion r2t
Assumed: t2r
Coercion t2r
Assumed: f
Assumed: a
Assumed: b
Set: lean::pp::coercion
Set: lean::pp::notation
f a b
f (r2t b) (t2r a)
Assumed: g
f a b
f (r2t b) (t2r a)