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/Negation/L09_PushNeg.lean

37 lines
801 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.PushNeg
import Mathlib
import TestGame.ToBePorted
Game "TestGame"
World "Contradiction"
Level 9
Title "PushNeg"
Introduction
"
Zum Schluss, immer wenn man irgendwo eine Verneinung `¬∃` oder `¬∀` sieht (`\\not`), kann man
mit `push_neg` das `¬` durch den Quantor hindurchschieben.
"
Statement
"Es existiert keine natürliche Zahl, die grösser als alle anderen.":
¬ ∃ (n : ), ∀ (k : ) , odd (n + k) := by
push_neg
intro n
use 3*n + 6
rw [not_odd]
unfold even
use 2*n + 3
ring
Message (n : ) : (Exists fun k ↦ ¬odd (n + k)) =>
"An dieser Stelle musst du nun ein `k` angeben, sodass `n + k` gerade ist... Benutz `use ...`
mit der richtigen Zahl."
Conclusion ""
Tactics push_neg intro use rw unfold ring