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.
15 lines
358 B
Text
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
|