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/T03__Bernoulli.lean

48 lines
826 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)
"
open BigOperators
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
#check Finset.sum_comm
Statement
"Zeige $\\sum_{i = 0}^n i = \\frac{n ⬝ (n + 1)}{2}$."
(n : ) : (∑ i : Fin (n + 1), ↑i) = n * (n + 1) / 2 := by
sorry
-- apply hh1
-- induction' n with n hn
-- simp
-- sorry
-- rw [Fin.sum_univ_castSucc]
-- simp [nat_succ]
-- rw [mul_add, hn]
-- ring
NewTactics ring