lean4-htt/tests/pkg/structure_docstrings/StructureDocstrings/A.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

9 lines
258 B
Text

module
public section
class Monoid (M : Type) extends Mul M where
class DivInvMonoid (G : Type) extends Mul G where
/-- The power operation: `a ^ n = a * ··· * a`; `a ^ (-n) = a⁻¹ * ··· a⁻¹` (`n` times) -/
protected zpow : Int → G → G