lean4-htt/tests/lean/interactive/completion2.lean
Leonardo de Moura 383e32937e test: completion
2021-04-05 12:01:58 -07:00

40 lines
894 B
Text

namespace Foo
namespace Bla
theorem ex1 {a b : Nat} (h : a ≤ b) : a + a ≤ b + b :=
sorry
theorem ex2 {a b : Nat} (h : a ≤ b) : a + 2 ≤ b + 2 :=
sorry
theorem ex3 {a b c d : Nat} (h : a ≤ b) (h : c ≤ d) : a + c ≤ b + d :=
sorry
theorem ax1 {a b : Nat} (h : a ≤ b) : a - a ≤ b - b :=
sorry
end Bla
end Foo
theorem tst1 (h : a ≤ b) : a + 2 ≤ b + 2 :=
Foo.Bla.
--^ textDocument/completion
#print ""
open Foo in
theorem tst2 (h : a ≤ b) : a + 2 ≤ b + 2 :=
Bla.
--^ textDocument/completion
#print ""
theorem tst3 (h : a ≤ b) : a + 2 ≤ b + 2 :=
let aux := Foo.Bla. -- we don't have the expected type here
--^ textDocument/completion
aux
#print ""
theorem tst4 (h : a ≤ b) : a + 2 ≤ b + 2 :=
let aux := Foo.Bla.e -- we don't have the expected type here
--^ textDocument/completion
aux