feat: allow setting reducibilityCoreExt in async contexts (#11301)

This PR allows setting reducibilityCoreExt in async contexts (e.g. when
using `mkSparseCasesOn` in a realizable definition)
This commit is contained in:
Joachim Breitner 2025-11-21 10:23:14 +01:00 committed by GitHub
parent 01335863e6
commit dedf7a8f44
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -36,6 +36,12 @@ builtin_initialize reducibilityCoreExt : PersistentEnvExtension (Name × Reducib
statsFn := fun s => "reducibility attribute core extension" ++ Format.line ++ "number of local entries: " ++ format s.size
-- attribute is set by `addPreDefinitions`
asyncMode := .async .asyncEnv
replay? := some <| fun _oldState newState newItems otherState =>
newItems.foldl (init := otherState) fun otherState k =>
if let some v := newState.find? k then
otherState.insert k v
else
otherState
}
builtin_initialize reducibilityExtraExt : SimpleScopedEnvExtension (Name × ReducibilityStatus) (SMap Name ReducibilityStatus) ←