2014-10-11 01:08:03 +00:00
|
|
|
import data.num
|
|
|
|
open num
|
|
|
|
|
2015-10-14 01:35:16 +00:00
|
|
|
definition foo1 a b c := a + b + (c:num)
|
2014-10-11 01:08:03 +00:00
|
|
|
|
|
|
|
definition foo2 (a : num) b c := a + b + c
|
|
|
|
|
|
|
|
definition foo3 a b (c : num) := a + b + c
|
|
|
|
|
|
|
|
definition foo4 (a b c : num) := a + b + c
|
|
|
|
|
|
|
|
definition foo5 (a b c) : num := a + b + c
|
|
|
|
|
|
|
|
definition foo6 {a b c} : num := a + b + c
|
|
|
|
|
|
|
|
definition foo7 a b c : num := a + b + c -- Error
|
|
|
|
|
|
|
|
definition foo8 (a b c : num) : num := a + b + c
|
|
|
|
|
|
|
|
definition foo9 (a : num) (b : num) (c : num) : num := a + b + c
|
|
|
|
|
|
|
|
definition foo10 (a : num) b (c : num) : num := a + b + c
|