babylon.models.entities.contradiction
Contradiction models for dialectical simulation.
Contradictions are structural tensions between opposing forces. This module implements a dynamic Maoist framework where principal and secondary contradictions operate at various zoom levels.
Classes
|
A structural contradiction at a specific scale. |
|
The 2x2 contradiction matrix at a given scale and moment. |
- class babylon.models.entities.contradiction.Contradiction(**data)[source]
Bases:
BaseModelA structural contradiction at a specific scale.
Instead of hardcoding the fractal, this uses a dynamic aspect mapping.
- Parameters:
id (str)
type (ContradictionType)
aspect_a (str)
aspect_b (str)
principal_aspect (Literal['a', 'b'])
identity (Annotated[float, Ge(ge=0.0), Le(le=1.0), AfterValidator(func=~babylon.utils.math.quantize)])
intensity (Annotated[float, Ge(ge=0.0), Le(le=1.0), AfterValidator(func=~babylon.utils.math.quantize)])
aspect_balance (float)
form_of_struggle (EdgeMode)
is_antagonistic (bool)
-
type:
ContradictionType
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class babylon.models.entities.contradiction.ContradictionFrame(**data)[source]
Bases:
BaseModelThe 2x2 contradiction matrix at a given scale and moment.
Models the principal and secondary contradictions for a specific scope.
- Parameters:
principal (Contradiction)
secondary (Contradiction)
-
principal:
Contradiction
-
secondary:
Contradiction
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].