2013-09-06 18:02:00 +00:00
|
|
|
|
Set: pp::colors
|
|
|
|
|
Set: pp::unicode
|
|
|
|
|
Error (line: 4, pos: 15) type mismatch at definition 'a', expected type
|
|
|
|
|
ℤ
|
|
|
|
|
Given type:
|
|
|
|
|
Bool
|
|
|
|
|
Assumed: vector
|
|
|
|
|
Assumed: const
|
2013-09-09 05:54:22 +00:00
|
|
|
|
let a := 10, v1 := const a ⊤, v2 := v1 in v2 : vector Bool 10
|
2013-09-06 18:02:00 +00:00
|
|
|
|
let a := 10, v1 : vector Bool a := const a ⊤, v2 : vector Bool a := v1 in v2
|
2013-09-09 05:54:22 +00:00
|
|
|
|
let a := 10, v1 : vector Bool a := const a ⊤, v2 : vector Bool a := v1 in v2 : vector Bool 10
|
2013-09-06 18:02:00 +00:00
|
|
|
|
Error (line: 31, pos: 26) type mismatch at definition 'v2', expected type
|
|
|
|
|
vector ℤ a
|
|
|
|
|
Given type:
|
|
|
|
|
vector Bool a
|
|
|
|
|
Assumed: foo
|
|
|
|
|
Coercion foo
|
2013-09-09 05:54:22 +00:00
|
|
|
|
let a := 10, v1 : vector Bool a := const a ⊤, v2 : vector ℤ a := v1 in v2 : vector ℤ 10
|
2013-09-06 18:02:00 +00:00
|
|
|
|
Set: lean::pp::coercion
|
|
|
|
|
let a := 10, v1 : vector Bool a := const a ⊤, v2 : vector ℤ a := foo v1 in v2
|