lean4-htt/tests/lean/run/issue8490.lean
Wojciech Rozowski 07c398e441 chore: rename keywords for (co)inductive predicates and the names of their associated (co)induction principles
chore: rename `fixpoint_induct` to `induct` and `coinduct` for (co)inductive predicates
2025-06-23 20:40:08 +02:00

18 lines
434 B
Text

inductive Aexp where
| val : Int → Aexp
| plus : Aexp → Aexp → Aexp
@[simp]
def asimp_const : Aexp -> Aexp
| .val x => .val x
| .plus x y => .plus x y
@[simp]
def optimal' (a : Aexp) : Prop :=
optimal' a ∧ True
inductive_fixpoint
/-- info: Try this: simp_all only [asimp_const, reduceCtorEq] -/
#guard_msgs in
example (x y : Aexp) (k : Int) (h : asimp_const (.val k) = x.plus y) : optimal' x := by
simp_all?