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
12 lines
282 B
Text
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
|