Indexing and parameters for Algebra (and the like)
#3053
Replies: 4 comments 9 replies
-
|
I'm unfamiliar with |
Beta Was this translation helpful? Give feedback.
-
|
Re: 1 I'm in favour of 'bundling up', viz. making
NB under the first proviso, the Pro:
Con:
|
Beta Was this translation helpful? Give feedback.
-
|
Re: 2. I think we don't need Firstly, even to state 'equational' axioms, we need equality in scope... an operation Secondly, how often, really, do we consider definitional situations of the form ' ... sidebar: I think this is the case specifically for the As for actually putting
I'm pretty OK with writing record RawGroup where
RawMonoid
field _⁻¹ : Op₁ Aexcept that... maybe this is yet another instance of 'use composition, not inheritance', and the correct thing to do is indeed what we do now, namely record RawGroup where
field rawMonoid : RawMonoid
field _⁻¹ : Op₁ Aand manage superclass inheritance via explicit projection All that said (and yes: ... what are the arguments in favour of |
Beta Was this translation helpful? Give feedback.
-
|
Re: diamonds. We promised ourselves that we would archive @laMudri 's discussion on #898 / #985 so that it didn't get lost in closed issues/merged PRs... For now, a link from here will have to do! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
@jamesmckinna draws our attention to #2252 and other choices of bundling. Using our new vocabulary, the discussion amounts to:
IsXshould be indexed by a "bundled up" signature rather than an exploded one. The exploded version gets really tiresome once there are many pieces of data in the signature. The counter is transport hell when "bundling up" hides details.MonoidOnstyle. This would mean thatIsMonoidOnwould actually, given the style above, have two parameters: the carrier and the bundle of function symbols. One could then have aMonoidOnthat that shifts the bundle of function symbols into fields (and the axioms as a single field, as now) while keeping the carrier exposed.Previous discussions also touched on the issue of conservative extensions, i.e. admissible definitions that are available as soon as one has the right vocabulary in hand. But such conservative extensions have different forces acting on the design, and should be discussed elsewhere.
Beta Was this translation helpful? Give feedback.
All reactions