lean4-htt/tests/elab_fail/indimpltarget.lean
Garmelon 08eb78a5b2
chore: switch to new test/bench suite (#12590)
This PR sets up the new integrated test/bench suite. It then migrates
all benchmarks and some related tests to the new suite. There's also
some documentation and some linting.

For now, a lot of the old tests are left alone so this PR doesn't become
even larger than it already is. Eventually, all tests should be migrated
to the new suite though so there isn't a confusing mix of two systems.
2026-02-25 13:51:53 +00:00

43 lines
1.2 KiB
Text
Raw Permalink 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.

namespace Ex1
theorem elim_with_implicit_target (motive : Nat → Nat → Prop) (case1 : ∀ m n, motive m n) (n : Nat) {m : Nat} : motive m n := case1 _ _
example (n m : Nat) : n ≤ m := by
induction n using elim_with_implicit_target
case case1 => sorry
end Ex1
namespace Ex2
theorem elim_with_implicit_target (motive : Nat → Nat → Prop) (case1 : ∀ m n, motive m n) {n : Nat} (m : Nat) : motive m n := case1 _ _
example (n m : Nat) : n ≤ m := by
induction m using elim_with_implicit_target
case case1 => sorry
end Ex2
namespace Ex3
-- this one should work
theorem elim_with_implicit_target (motive : (n : Nat) → Fin n → Prop) (case1 : ∀ m n, motive m n) {n : Nat} (m : Fin n) : motive n m := case1 _ _
example (n : Nat) (m : Fin n) : n ≤ m := by
induction m using elim_with_implicit_target
case case1 => sorry
end Ex3
namespace Ex4
-- anonymous implicit target
theorem elim_with_implicit_target (motive : Bool → Nat → Prop)
(case1 : ∀ m k, motive m k) {_ : Bool} (m : Nat) : motive Bool m := case1 _ _
example (n m : Nat) : n ≤ m := by
induction m using elim_with_implicit_target
case case1 => sorry
end Ex4