Skip to content

Commit 6dd3af9

Browse files
committed
go back to theorems only for now
1 parent 4ca1c1f commit 6dd3af9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Lean/Elab/PreDefinition/Main.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def addPreDefinitions (preDefs : Array PreDefinition) (postponeCheck := false) :
169169
let preDefs ← preDefs.mapM ensureNoUnassignedMVarsAtPreDef
170170
let preDefs ← betaReduceLetRecApps preDefs
171171
let cliques := partitionPreDefs preDefs
172-
let postponeCheck := postponeCheck && cliques.size == 1
172+
let postponeCheck := postponeCheck && cliques.size == 1 && preDefs[0]!.kind == .theorem
173173
for preDefs in cliques do
174174
trace[Elab.definition.scc] "{preDefs.map (·.declName)}"
175175
if preDefs.size == 1 && isNonRecursive preDefs[0]! then

0 commit comments

Comments
 (0)