1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
/*
* SPDX-License-Identifier: MIT
* Copyright (c) 2023 - 2026. The DeepCausality Authors and Contributors. All Rights Reserved.
*/
//! Ready-made `Context` and `Contextoid` configurations.
//!
//! `Base*` fixes concrete Euclidean space, time and spacetime; `Uniform*` uses the `Kind` enums so
//! one type signature serves every space, time and spacetime variant.
use ;
/// The floating-point type this crate's ready-made aliases are built at.
pub type FloatType = f64;
/// The identifier of a `Context`.
///
/// Named here so a signature says which kind of identifier it takes, but the width is not this
/// crate's to choose: [`Identifiable::id`](deep_causality_core::Identifiable::id) returns
/// [`IdentificationValue`], and every context type implements it, so the two must agree. Widening
/// an identifier is a change to `deep_causality_core`, and this alias is written in terms of that
/// one so the coupling is visible rather than discovered.
pub type ContextId = IdentificationValue;
/// The identifier of a `Contextoid` within a `Context`.
///
/// Named for the role, with the width taken from [`IdentificationValue`] for the same reason as
/// [`ContextId`]: a contextoid's `id()` is its `Identifiable` impl, so it cannot differ.
pub type ContextoidId = IdentificationValue;
use crate::;
/// A type alias for a default, general-purpose `Context` configuration.
///
/// This `BaseContext` alias represents a `Context` instance specifically configured
/// with a standard set of generic parameters, making it suitable for common
/// causal modeling scenarios that operate within a Euclidean and numerical framework.
///
/// It provides a convenient and readable shorthand for defining a `Context`
/// that encapsulates:
///
/// - **`Data<NumericalValue>`**: For handling general numerical data. `NumberType`
/// is typically an alias for a floating-point or integer type, allowing for
/// flexible data representation within the context.
/// - **`EuclideanSpace`**: Defines the spatial context using a standard
/// Euclidean coordinate system. This implies that spatial relationships
/// within this context adhere to Euclidean geometry.
/// - **`EuclideanTime`**: Specifies the temporal context, utilizing a
/// Euclidean representation of time. This typically refers to a continuous,
/// linear progression of time.
/// - **`EuclideanSpacetime`**: Combines the Euclidean spatial and temporal
/// contexts into a unified spacetime representation, where both space and
/// time are treated with Euclidean properties.
///
/// This `BaseContext` is designed to be a sensible default for many applications,
/// offering a consistent and easily recognizable context structure for
/// general-purpose causal reasoning and data representation.
pub type BaseContext = ;
/// A type alias for a default, general-purpose `Contextoid` configuration.
///
/// This `BaseContextoid` alias represents a `Contextoid` instance—a single,
/// identity-bearing unit of context—configured with a standard set of generic
/// parameters. It is designed for common causal modeling scenarios that operate
/// within a Euclidean and numerical framework.
///
/// It provides a convenient and readable shorthand for defining a `Contextoid`
/// that encapsulates one of the following contextual roles:
///
/// - **`Data<NumericalValue>`**: For handling general numerical data (a `Datoid`). `NumberType`
/// is typically an alias for a floating-point or integer type.
/// - **`EuclideanSpace`**: Defines a spatial context using a standard
/// Euclidean coordinate system (a `Spaceoid`).
/// - **`EuclideanTime`**: Specifies a temporal context, utilizing a
/// Euclidean representation of time (a `Tempoid`).
/// - **`EuclideanSpacetime`**: Combines the Euclidean spatial and temporal
/// contexts into a unified spacetime representation (a `SpaceTempoid`).
///
///
/// This `BaseContextoid` is the standard choice for creating individual context nodes
/// that are compatible with other "base" types like `BaseContext` and `BaseCausalGraph`,
/// ensuring a consistent and easily understandable modeling environment.
pub type BaseContextoid = ;
/// A type alias for a default, general-purpose `Context` configuration that uses
/// abstract "kind" enums for its spatial, temporal, and symbolic contexts.
///
/// This `UniformContext` alias represents a `Context` instance configured with a
/// standard set of generic parameters, making it suitable for common causal
/// modeling scenarios where the specific underlying concrete types for space,
/// time, and symbols can vary but are represented by their respective "kind" enums.
///
/// It provides a convenient and readable shorthand for defining a `Context`
/// that encapsulates:
///
/// - **`Data<NumberType>`**: Used for its data component. `NumberType` is a
/// generic numeric type, typically an alias for a floating-point or integer,
/// allowing for flexible data representation within the context.
/// - **`SpaceKind`**: Defines the spatial context using an abstract `SpaceKind`
/// enum. This allows the context to operate with various spatial representations
/// (e.g., `EuclideanSpace`, `EcefSpace`, `NedSpace`, `GeoSpace`) without
/// changing the `Context`'s type signature, providing uniformity across different
/// spatial contexts.
/// - **`TimeKind`**: Specifies the temporal context using an abstract `TimeKind`
/// enum. This enables the context to handle different temporal representations
/// (e.g., `EuclideanTime`, `DiscreteTime`, `EntropicTime`, `LorentzianTime`)
/// flexibly, offering a uniform temporal interface.
/// - **`SpaceTimeKind`**: Combines the spatial and temporal contexts into a
/// unified spacetime representation using an abstract `SpaceTimeKind` enum,
/// allowing for various spacetime geometries (e.g., `EuclideanSpacetime`,
/// `LorentzianSpacetime`) in a uniform manner.
///
/// This `UniformContext` is designed to be a sensible default for many applications
/// requiring a flexible yet consistent context structure that can adapt to different
/// underlying spatial, temporal, and symbolic representations through their
/// respective `Kind` enums. It promotes code reusability and simplifies type
/// declarations when the exact concrete type of a context component is not
/// fixed but rather belongs to a set of predefined "kinds".
pub type UniformContext =
;
/// A type alias for a default, general-purpose `Contextoid` configuration that uses
/// abstract "kind" enums for its spatial, temporal, and symbolic contexts.
///
/// This `UniformContextoid` alias represents a `Contextoid` instance configured with a
/// standard set of generic parameters, making it suitable for common causal
/// modeling scenarios where the specific underlying concrete types for space,
/// time, and symbols can vary but are represented by their respective "kind" enums.
///
/// It provides a convenient and readable shorthand for defining a `Contextoid`
/// that encapsulates:
///
/// - **`Data<NumberType>`**: Used for its data component. `NumberType` is a
/// generic numeric type, typically an alias for a floating-point or integer,
/// allowing for flexible data representation within the contextoid.
/// - **`SpaceKind`**: Defines the spatial context using an abstract `SpaceKind`
/// enum. This allows the contextoid to operate with various spatial representations
/// (e.g., `EuclideanSpace`, `EcefSpace`, `NedSpace`, `GeoSpace`) without
/// changing the `Contextoid`'s type signature, providing uniformity across different
/// spatial contexts.
/// - **`TimeKind`**: Specifies the temporal context using an abstract `TimeKind`
/// enum. This enables the contextoid to handle different temporal representations
/// (e.g., `EuclideanTime`, `DiscreteTime`, `EntropicTime`, `LorentzianTime`)
/// flexibly, offering a uniform temporal interface.
/// - **`SpaceTimeKind`**: Combines the spatial and temporal contexts into a
/// unified spacetime representation using an abstract `SpaceTimeKind` enum,
/// allowing for various spacetime geometries (e.g., `EuclideanSpacetime`,
/// `LorentzianSpacetime`) in a uniform manner.
///
/// This `UniformContextoid` is designed to be a sensible default for many applications
/// requiring a flexible yet consistent contextoid structure that can adapt to different
/// underlying spatial, temporal, and symbolic representations through their
/// respective `Kind` enums. It promotes code reusability and simplifies type
/// declarations when the exact concrete type of a context component is not
/// fixed but rather belongs to a set of predefined "kinds".
pub type UniformContextoid = ;
/// The shape a store that holds references accepts: the three `Kind` enums, for which the
/// projection is total, and a data node that holds where its value lives rather than the value.
pub type SubstrateContext = ;
/// The contextoid of a [`SubstrateContext`].
pub type SubstrateContextoid = ;