runMEvil
This commit is contained in:
commit
2573d64897
6 changed files with 21 additions and 0 deletions
1
README.md
Normal file
1
README.md
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
# simple-counterexamples
|
||||||
0
SimpleCounterexamples.lean
Normal file
0
SimpleCounterexamples.lean
Normal file
8
SimpleCounterexamples/RunMEvil.lean
Normal file
8
SimpleCounterexamples/RunMEvil.lean
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
structure EmptyM (_ : Type u) : Type v
|
||||||
|
|
||||||
|
instance : Monad EmptyM where
|
||||||
|
pure _ := ⟨⟩
|
||||||
|
bind _ _ := ⟨⟩
|
||||||
|
|
||||||
|
theorem runMEvil (runM : ∀α m, [Monad m] → m α → α) : False :=
|
||||||
|
runM PEmpty EmptyM ⟨⟩ |>.elim
|
||||||
5
lake-manifest.json
Normal file
5
lake-manifest.json
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{"version": "1.1.0",
|
||||||
|
"packagesDir": ".lake/packages",
|
||||||
|
"packages": [],
|
||||||
|
"name": "«simple-counterexamples»",
|
||||||
|
"lakeDir": ".lake"}
|
||||||
6
lakefile.toml
Normal file
6
lakefile.toml
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
name = "simple-counterexamples"
|
||||||
|
version = "0.1.0"
|
||||||
|
defaultTargets = ["SimpleCounterexamples"]
|
||||||
|
|
||||||
|
[[lean_lib]]
|
||||||
|
name = "SimpleCounterexamples"
|
||||||
1
lean-toolchain
Normal file
1
lean-toolchain
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
leanprover/lean4:v4.16.0-rc2
|
||||||
Loading…
Reference in a new issue