lean4-htt/tests/lean/run/11747.lean
Sebastian Ullrich f317e28d84
fix: realizeValue should default to the private scope (#11748)
This PR fixes an edge case where some tactics did not allow access to
private declarations inside private proofs under the module system

Fixes #11747
2025-12-21 01:22:19 +00:00

12 lines
282 B
Text

module
/-! `ext_iff.2` used to fail because `getFunInfo` was operating in the public scope. -/
public structure A where
private a : Nat
theorem ext_iff {x y : A} : x = y ↔ x.a = y.a := by
rw [A.mk.injEq]
theorem ext {x y : A} : x.a = y.a → x = y := by
exact ext_iff.2