test: reflective inductive predicate
This commit is contained in:
parent
a04f3a5d9f
commit
af391fe812
1 changed files with 12 additions and 0 deletions
12
tests/lean/run/reflectiveIndPred.lean
Normal file
12
tests/lean/run/reflectiveIndPred.lean
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
inductive Expr where
|
||||
| val : Nat → Expr
|
||||
| add : Expr → Expr → Expr
|
||||
| fn : (Nat → Expr) → Expr
|
||||
|
||||
inductive Pos : Expr → Prop
|
||||
| base : (n : Nat) → Pos (Expr.val n.succ)
|
||||
| add : Pos e₁ → Pos e₂ → Pos (Expr.add e₁ e₂)
|
||||
| fn : ((n : Nat) → Pos (f n)) → Pos (Expr.fn f)
|
||||
|
||||
#print PosProofBelow
|
||||
#print Pos.brecOn
|
||||
Loading…
Add table
Reference in a new issue