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.
|
|
|
|
import TestGame.Metadata
|
|
|
|
|
import Mathlib
|
|
|
|
|
|
|
|
|
|
Game "TestGame"
|
|
|
|
|
World "Function"
|
|
|
|
|
Level 4
|
|
|
|
|
|
|
|
|
|
Title ""
|
|
|
|
|
|
|
|
|
|
Introduction
|
|
|
|
|
"
|
|
|
|
|
"
|
|
|
|
|
|
|
|
|
|
open Set
|
|
|
|
|
|
|
|
|
|
def f2 : ℕ → ℕ := fun n ↦ if Even n then n^2 else n+1
|
|
|
|
|
|
|
|
|
|
#eval (f2 + f2) 2
|
|
|
|
|
|
|
|
|
|
#check range f2
|
|
|
|
|
|
|
|
|
|
Statement
|
|
|
|
|
""
|
|
|
|
|
: True := by
|
|
|
|
|
trivial
|
|
|
|
|
|
|
|
|
|
#check Set.piecewise
|