leanprover-community / mathlib

  • Home
  • Zulip archive
  • API documentation
  • Lean web editor
  • Links

Zulip Chat Archive

Stream: mathlib4

Topic: Structure inheritance


Yaël Dillies (Dec 12 2022 at 15:07):

What's the Lean 4 syntax to inherit fields from two existing ones? I tried

{ ‹LinearOrderedCommGroup α›,
  ..OrderedCommGroup.to_OrderedCancelCommMonoid }

in mathlib4#913, with little success.

Floris van Doorn (Dec 12 2022 at 15:10):

I believe it's {foo1, foo2 with }


Last updated: May 02 2025 at 03:31 UTC

Theme Simple by wildflame © 2016 Powered by jekyll