-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/hhu-adam/Robo into main
- Loading branch information
Showing
20 changed files
with
529 additions
and
163 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import Game.Metadata | ||
|
||
World "Inequality" | ||
World "Luna" | ||
Level 1 | ||
|
||
Title "Kleinergleich" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ import Game.Metadata | |
|
||
open Nat | ||
|
||
World "Inequality" | ||
World "Luna" | ||
Level 2 | ||
|
||
Title "Kleinergleich" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import Game.Metadata | ||
|
||
|
||
World "Inequality" | ||
World "Luna" | ||
Level 3 | ||
|
||
Title "Linarith" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import Game.Metadata | ||
|
||
World "Inequality" | ||
World "Luna" | ||
Level 4 | ||
|
||
Title "Linarith" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import Game.Metadata | ||
|
||
World "Luna" | ||
Level 5 | ||
|
||
Title "Trichotomie" | ||
|
||
Introduction | ||
" | ||
" | ||
|
||
Statement {A : Prop} (x y : ℤ) (h₁ : x ≤ y → A) (h₂ : y < x → A) : A := by | ||
Hint (strict := true) " | ||
**Robo**: Ein sehr nützliches Resultat ist `lt_trichotomy {x} {y}`: | ||
${x} < {y}$ oder ${x} = {y}$ oder ${x} > {y}$ | ||
Typischerweise kann man dieses wie folgt verwenden: | ||
``` | ||
obtain h | h | h := lt_trichotomy x y | ||
``` | ||
" | ||
obtain h | h | h := lt_trichotomy x y | ||
· Hint "**Robo**: Beachte, dass du jetzt 3 Goals hast, eines pro Fall!" | ||
apply h₁ | ||
linarith | ||
· apply h₁ | ||
linarith | ||
· apply h₂ | ||
assumption | ||
|
||
Conclusion "" | ||
|
||
NewTheorem lt_trichotomy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import Game.Metadata | ||
|
||
|
||
World "Quantus" | ||
Level 5 | ||
|
||
Title "" | ||
|
||
Introduction | ||
" | ||
Ihr habt nun alle Fragen aus dem königlichen Päckchen beantwortet, und die Formalosophinnen | ||
applaudieren. Dann wollen Sie aber auch noch ein paar Fragen stellen, aber sie können sich | ||
nicht einigen, welche. | ||
Ihr hört abwechselnd die Rufe „Even“ und „Odd“ aus der Menge heraus. Deshalb zeigt dir Robo | ||
vorsichtshalber schon einmal die entsprechende Definition: | ||
``` | ||
def Even (n : ℕ) : Prop := ∃ r, n = r + r | ||
``` | ||
Bevor er zu `Odd` weitergehen kann, | ||
taucht von irgendwo aus der Menge folgendes Papier auf: | ||
" | ||
|
||
Statement : Even 42 := by | ||
Hint " | ||
**Robo**: Moment! Dafür brauchst du die Definition gar nicht! | ||
**Du**: Das ist ja irgendwie trivial… | ||
**Robo**: Erinnerst du dich? `decide` kann alle Aufgaben lösen, bei denen es einen | ||
einfachen Algorithmus gibt um die Wahrheit zu bestimmen. | ||
Aussagen zu konkreten Zahlen fallen meistens in diese Kategorie! | ||
" | ||
decide | ||
|
||
Conclusion | ||
" | ||
**Du**: Was kann denn `decide` noch alles? | ||
**Robo**: Konkret hat hier jemand einen ausführbaren | ||
Algorithmus angegeben, wie entschieden werden | ||
soll, ob `Even 42` wahr oder falsch ist. Wenn `decide` also so einen Algorithmus kennt, | ||
dann kann es die Aufgabe lösen. | ||
" | ||
|
||
OnlyTactic decide |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.