Zulip Chat Archive

Stream: lean4

Topic: internal exception #3


Aaron Liu (Oct 27 2025 at 22:32):

randomly stumbled into a strange error after copy-pasting a thing wrong

theorem TrivialCohomology.res : NeZero 1 where where
  out := none

Jovan Gerbscheid (Oct 27 2025 at 23:25):

The list of internal exceptions is

[interrupt,
 postpone,
 unsupportedSyntax,
 abortCommandElab,
 abortTermElab,
 abortTactic,
 autoBoundImplicit,
 isDefEqStuck,
 backtrackFormatter,
 analyzeFailure,
 delabFailure,
 congrHypothesisFailed,
 discrGeneralizationFailure,
 Lean.Meta.LibrarySearch.abortSpeculation,
 checkAssignment,
 outOfScope,
 Aesop.safeExpansionFailedException]

So I presume this isabortCommandElab

Aaron Liu (Oct 27 2025 at 23:29):

how'd it escape the internals

Aaron Liu (Oct 27 2025 at 23:29):

and where can I find this internal exception list

Jovan Gerbscheid (Oct 27 2025 at 23:30):

import Mathlib


open Lean
run_meta do
  let exs  internalExceptionsRef.get
  logInfo m!"{exs}"

Last updated: Dec 20 2025 at 21:32 UTC