lean4-htt/tests/server_interactive/completion2.lean
Garmelon a3cb39eac9
chore: migrate more tests to new test suite (#12809)
This PR migrates most remaining tests to the new test suite. It also
completes the migration of directories like `tests/lean/run`, meaning
that PRs trying to add tests to those old directories will now fail.
2026-03-06 16:52:01 +00:00

40 lines
842 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.
--^ completion
#print ""
open Foo in
theorem tst2 (h : a ≤ b) : a + 2 ≤ b + 2 :=
Bla.
--^ completion
#print ""
theorem tst3 (h : a ≤ b) : a + 2 ≤ b + 2 :=
let aux := Foo.Bla. -- we don't have the expected type here
--^ 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
--^ completion
aux