lean4-htt/tests/lean/run/eqnsAtSimp.lean
Scott Morrison 3f548edcd7
chore: upstream (most of) Std.Data.Nat.Lemmas (#3391)
When updating Std, be careful that not every lemma has been upstreamed,
so we need to be careful to only delete things that have already been
declared.
2024-02-19 03:47:49 +00:00

18 lines
373 B
Text

mutual
def isEven : Nat → Bool
| 0 => true
| n+1 => isOdd n
decreasing_by
sorry
def isOdd : Nat → Bool
| 0 => false
| n+1 => isEven n
decreasing_by
sorry
end
theorem isEven_double (x : Nat) : isEven (2 * x) = true := by
induction x with
| zero => simp [isEven]
| succ x ih => simp [Nat.mul_succ, Nat.add_succ, isEven, isOdd, ih]