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

36 lines
669 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 Mathlib.Algebra.BigOperators.Basic
import Mathlib
import TestGame.Metadata
set_option tactic.hygienic false
Game "TestGame"
World "Induction"
Level 2
Title "endliche Summe"
Introduction
"
n^3 + 2n ist durch 3 teilbar für alle ganzen Zahlen n
"
Statement
"n^3 + 2n ist durch 3 teilbar für alle ganzen Zahlen n"
(n : ) : 3 n^3 + 2*n := by
induction n
induction a
norm_cast
change 3 (Nat.succ n : ) ^ 3 + 2 * (Nat.succ n : )
rw [Int.ofNat_succ]
sorry
sorry
-- example (n : ) : (n - 1) * (n + 1) = (n ^ 2 - 1) := by
-- induction' n with n hn
-- ring
-- rw [Nat.succ_eq_one_add]
-- rw []
NewTactics rw simp ring