test(tests/lean/run): add missing test
This commit is contained in:
parent
375997fe65
commit
a4e72e5262
1 changed files with 17 additions and 0 deletions
17
tests/lean/run/subst_test2.lean
Normal file
17
tests/lean/run/subst_test2.lean
Normal file
|
@ -0,0 +1,17 @@
|
|||
import data.nat
|
||||
open nat
|
||||
|
||||
structure less_than (n : nat) := (val : nat) (lt : val < n)
|
||||
|
||||
namespace less_than
|
||||
open decidable
|
||||
|
||||
set_option pp.beta false
|
||||
|
||||
definition less_than.has_decidable_eq [instance] (n : nat) : ∀ (i j : less_than n), decidable (i = j)
|
||||
| (mk ival ilt) (mk jval jlt) :=
|
||||
match nat.has_decidable_eq ival jval with
|
||||
| inl veq := inl (by substvars)
|
||||
| inr vne := inr (by intro h; injection h; contradiction)
|
||||
end
|
||||
end less_than
|
Loading…
Reference in a new issue