Skip to content

Commit

Permalink
chore: remove enum command
Browse files Browse the repository at this point in the history
Now, `inductive` is also efficient for big enumeration types
  • Loading branch information
leodemoura committed Sep 6, 2021
1 parent 1ce2ff3 commit 70f2200
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 42 deletions.
1 change: 0 additions & 1 deletion src/Init.lean
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ import Init.NotationExtra
import Init.SimpLemmas
import Init.Hints
import Init.Conv
import Init.Enum
35 changes: 0 additions & 35 deletions src/Init/Enum.lean

This file was deleted.

8 changes: 2 additions & 6 deletions tests/lean/run/654.lean
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
enum Foo where
inductive Foo where
| a | b | c

def f : Foo → Nat
| Foo.a => 10
| Foo.b => 20
| Foo.c => 35

#eval Foo.b

enum CXCursorKind where
inductive CXCursorKind where
| CXCursor_UnexposedDecl
| CXCursor_StructDecl
| CXCursor_UnionDecl
Expand Down Expand Up @@ -285,5 +283,3 @@ open CXCursorKind

example (h : CXCursor_CUDAGlobalAttr = CXCursor_CUDAHostAttr) : False := by
contradiction

#eval CXCursor_CUDAConstantAttr

0 comments on commit 70f2200

Please sign in to comment.