You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lean4game/server/testgame/TestGame/Levels/Induction/L10_Bernoulli.lean

47 lines
764 B
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import TestGame.Metadata
import Mathlib.Tactic.Ring
import Mathlib
import TestGame.ToBePorted
Game "TestGame"
World "Induction"
Level 5
Title "Bernoulli Ungleichung"
Introduction
"
TODO: Induktion (& induktion vs rcases)
"
example (x : ) (n : ) : 1 + n * x ≤ (x + 1) ^ n := by
induction' n with n hn
simp
rw [Nat.succ_mul]
rw [Nat.pow_succ]
sorry
example (n : ) : (∑ i : Fin (n + 1), ↑(2 * i - 1)) = n ^ 2 := by
induction' n with n hn
simp
Statement
"Zeige $\\sum_{i = 0}^n i = \\frac{n ⬝ (n + 1)}{2}$."
(n : ) : (∑ i : Fin (n + 1), ↑i) = n * (n + 1) / 2 := by
apply hh1
induction' n with n hn
simp
sorry
-- rw [Fin.sum_univ_castSucc]
-- simp [nat_succ]
-- rw [mul_add, hn]
-- ring
Tactics ring