Zulip Chat Archive
Stream: lean4
Topic: Open private and dot notation
Jakob von Raumer (Oct 17 2025 at 18:14):
Is there any good way around dot notation seemingly not being compatible with Batteries' open private?
import Batteries.Tactic.OpenPrivate
open Lean
open private Lean.ImportState.moduleNames from Lean.Environment
variable (s : ImportState)
#check s.moduleNames -- Error: Field `moduleNames` from structure `Lean.ImportState` is private
#check Lean.ImportState.moduleNames s -- works fine
Last updated: Dec 20 2025 at 21:32 UTC