babylon.engine.dialectics.transformation

TransformationDialectic — Value → Price of Production (V3 Ch9-10).

The transformation problem: values produced in individual capitals diverge from the prices at which commodities actually exchange. The average rate of profit equalizes across sectors, so that equal capitals yield equal profits regardless of their organic composition.

price_of_production = cost_price × (1 + average_profit_rate)

This dialectic computes the economy-wide average profit rate from upstream production data and makes it available as an observation frame for CommodityDialectic (observation-relativity).

Classes

TransformationDialectic(**data)

Value → Price of Production transformation (V3 Ch9-10).

TransformationPole(**data)

Average profit rate computed from aggregate production data.

class babylon.engine.dialectics.transformation.TransformationDialectic(**data)[source]

Bases: Dialectic[TransformationPole, EmptyPole]

Value → Price of Production transformation (V3 Ch9-10).

This dialectic mediates between the V1 world of labor-values and the V3 world of production prices. It reads upstream production dialectics to compute the economy-wide average profit rate, then makes that rate available as an observation frame.

Weight semantics:

weight < 0 → values dominate prices (low equalization). weight > 0 → prices of production fully equalized.

observe() emits:
  • average_profit_rate: r̄ = Σs / Σ(c+v)

Parameters:
type_tag: str
step(inputs, world)[source]

Motion law T: recompute average profit rate from upstream.

Reads aggregate c, v, s from upstream production dialectics and computes r̄ = Σs / Σ(c+v).

Parameters:
  • inputs (TickInputs) – Upstream outputs with rate_of_exploitation and occ.

  • world (WorldView) – Read-only world context.

Return type:

TransformationDialectic

Returns:

New TransformationDialectic with updated profit rate.

observe()[source]

Project transformation state.

Return type:

dict[str, Any]

Returns:

Base observation extended with average_profit_rate.

model_config: ClassVar[ConfigDict] = {'frozen': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

id: UUID
pole_a: A
pole_b: B
weight: float
parent_id: UUID | None
tick_created: int
tick_updated: int
class babylon.engine.dialectics.transformation.TransformationPole(**data)[source]

Bases: BaseModel

Average profit rate computed from aggregate production data.

Parameters:

average_profit_rate (Annotated[float, Ge(ge=0)])

average_profit_rate

Economy-wide average rate of profit r̄. Computed as: total_surplus / total_cost_price across all sectors.

model_config: ClassVar[ConfigDict] = {'frozen': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

average_profit_rate: float