chore: backward.privateInPublic should not break irrelevance of proofs for rebuilds (#11097)
This commit is contained in:
parent
ea2b745e57
commit
ae86c18ac1
1 changed files with 3 additions and 0 deletions
|
|
@ -1322,6 +1322,9 @@ where
|
|||
if !(← isProp header.type) then
|
||||
return false
|
||||
return true))) do
|
||||
-- Never export private decls from theorem bodies to make sure they stay irrelevant for rebuilds
|
||||
withOptions (fun opts =>
|
||||
if headers.any (·.kind.isTheorem) then ResolveName.backward.privateInPublic.set opts false else opts) do
|
||||
let headers := headers.map fun header =>
|
||||
{ header with modifiers.attrs := header.modifiers.attrs.filter (!·.name ∈ [`expose, `no_expose]) }
|
||||
let values ← try
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue