Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Lean4Lean/Environment/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ def get (env : Environment) (n : Name) : Except KernelException ConstantInfo :=
| some ci => pure ci
| none => throw <| .unknownConstant env n

/--
Throws an exception if the given list of universe level parameter names
contains any duplicates.
-/
def checkDuplicatedUnivParams : List Name → Except KernelException Unit
| [] => pure ()
| p :: ls => do
Expand Down
Loading