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/Naturals/L01_Ring.lean

32 lines
768 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
--set_option tactic.hygienic false
Game "TestGame"
World "Nat"
Level 1
Title "Natürliche Zahlen"
Introduction
"
Wir sind den narürlichen Zahlen `` (`\\N`) schon begegnet. Dabei haben wir
gesehen, dass explizite Gleichungen wie `2 + 3 * 5 = 17` implementationsbedingt
bereits mit `rfl` bewiesen werden können.
Algemeinere Gleichungen mit Variablen kann man mit der Taktik `ring` lösen.
"
Statement (x y : ) : (x + y) ^ 2 = x ^ 2 + 2 * x * y + y ^ 2 := by
ring
Conclusion
"
Die Taktik heisst übrigens `ring` weil sie dafür entwickelt wurde, Gleichungen in einem abstrakten
Ring zu lösen, funktioniert aber auch auf ``, auch wenn dieses kein Ring ist
(erst `` ist ein Ring).
"
Tactics ring