Dedekind 0.0.0
A structuralist C++23 Module Library
Loading...
Searching...
No Matches
dedekind::algebra::HasGroupOperatorsAdd Concept Referenceexport

Pure syntactic shape: T closes strictly under the additive-group operator surface +, binary -, unary -. More...

Concept definition

template<typename T>
Pure syntactic shape: T closes strictly under the additive-group operator surface +,...
Definition group.cppm:56
Unary closure variant: Op{}(s) returns S for any S-typed operand. Cardinality has no IsClosedUnderUna...
Definition total.cppm:225
(S, Op) is closed under a binary operation: Op{}(s_1, s_2) returns a value of type S for any S-typed ...
Definition total.cppm:212

Detailed Description

Pure syntactic shape: T closes strictly under the additive-group operator surface +, binary -, unary -.

Sibling of HasRingOperators (in :ring) restricted to the additive-group surface — the operators a callsite needs to spell group-theoretic translations of a + b, a - b, -a. Strict closure: each result is exactly T, not just convertible to T. Carriers that fail strict closure under literal + (e.g.\ bool, unsigned char, unsigned short — integer promotion to int) correctly refuse, matching the math-textbook stance the project adopts (#393).

Introduced under #394 as the additive-group companion of HasRingOperators / HasFieldOperators. A conjunction of category::IsClosedUnder, one operator each, so the shape subsumes every per-operator closure it names.