Merge branch 'main' of github.com:hhu-adam/lean4game
commit
0eacf1339b
@ -0,0 +1,11 @@
|
||||
import Lean
|
||||
|
||||
-- show all available options
|
||||
instance : ToString Lean.OptionDecl where
|
||||
toString a := toString a.defValue ++ ", [" ++ toString a.group ++ "]: " ++ toString a.descr
|
||||
|
||||
def showOptions : IO Unit := do
|
||||
let a <- Lean.getOptionDeclsArray
|
||||
IO.println f! "{a}"
|
||||
|
||||
#eval showOptions
|
@ -1,20 +0,0 @@
|
||||
import TestGame.Metadata
|
||||
import Mathlib
|
||||
|
||||
Game "TestGame"
|
||||
World "Contradiction"
|
||||
Level 6
|
||||
|
||||
Title "Widerspruch"
|
||||
|
||||
Introduction
|
||||
"
|
||||
"
|
||||
|
||||
|
||||
Statement
|
||||
(A : Prop) : A := by
|
||||
pushNeg
|
||||
|
||||
|
||||
Tactics contradiction
|
@ -1,23 +0,0 @@
|
||||
import TestGame.Metadata
|
||||
import Std.Tactic.RCases
|
||||
import Mathlib.Tactic.Contrapose
|
||||
|
||||
Game "TestGame"
|
||||
World "Contradiction"
|
||||
Level 7
|
||||
|
||||
Title "Kontraposition"
|
||||
|
||||
Introduction
|
||||
"
|
||||
Im Gegensatz zum Widerspruch, wo
|
||||
"
|
||||
|
||||
Statement
|
||||
"Ein Widerspruch impliziert alles."
|
||||
(A B : Prop) (h : ¬ B → ¬ A) (hA : A) : B := by
|
||||
revert hA
|
||||
contrapose
|
||||
assumption
|
||||
|
||||
Tactics contradiction
|
Loading…
Reference in New Issue