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/Function/L06_Piecewise.lean

28 lines
282 B
Plaintext

2 years ago
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