lean4-htt/tests/pkg/structure_docstrings/StructureDocstrings/C.lean
Kim Morrison c7652413db
feat: link docstrings for diamond inheritance (#11122)
This PR fixes a problem for structures with diamond inheritance: rather
than copying doc-strings (which are not available unless `.server.olean`
is loaded), we link to them. Adds tests.
2025-11-10 01:05:01 +00:00

15 lines
358 B
Text

module
import Lean.DocString
import Lean.Meta.Basic
public import StructureDocstrings.B
public section
/-- info: The power operation: `a ^ n = a * ··· * a`; `a ^ (-n) = a⁻¹ * ··· a⁻¹` (`n` times) -/
#guard_msgs in
open Lean in
run_meta do
let env ← getEnv
let some r ← Lean.findDocString? env `GroupWithZero.zpow | failure
logInfo r