Skip to content

Commit f8c42e1

Browse files
committed
fix: backward.privateInPublic and theorems
1 parent da24da8 commit f8c42e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Lean/Elab/MutualDef.lean

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,9 @@ where
12221222
assert! view.kind.isTheorem
12231223
let env ← getEnv
12241224
let async ← env.addConstAsync declId.declName .thm
1225-
(exportedKind? := guard (!isPrivateName declId.declName) *> some .axiom)
1225+
(exportedKind? :=
1226+
guard (!isPrivateName declId.declName || (← ResolveName.backward.privateInPublic.getM)) *>
1227+
some .axiom)
12261228
setEnv async.mainEnv
12271229

12281230
-- TODO: parallelize header elaboration as well? Would have to refactor auto implicits catch,

0 commit comments

Comments
 (0)