babylon.formulas.trpf

Tendency of the Rate of Profit to Fall (TRPF) formulas.

Marx’s TRPF from Capital Volume 3 describes capitalism’s central contradiction: as organic composition of capital (c/v) rises, the rate of profit falls.

Epoch 1 Implementation:

TRPF Surrogate - time-based decay of extraction efficiency. Models effect without full OCC tracking.

Epoch 2 Implementation (Planned):

Full OCC tracking with constant_capital/variable_capital on entities. See ai/epoch2-trpf.yaml for specification.

See also

/reference/trpf for full theoretical background ai/theory.md for Marx’s original formulation

Functions

calculate_rent_pool_decay(current_pool, ...)

Apply TRPF rent pool decay (background evaporation).

calculate_trpf_multiplier(tick, trpf_coefficient)

Calculate TRPF efficiency multiplier (Epoch 1 Surrogate).

babylon.formulas.trpf.calculate_trpf_multiplier(tick, trpf_coefficient, floor=0.1)[source]

Calculate TRPF efficiency multiplier (Epoch 1 Surrogate).

Models Marx’s Tendency of the Rate of Profit to Fall as a time-dependent decay of extraction efficiency. This is a surrogate for proper organic composition tracking.

The multiplier declines linearly from 1.0 at tick 0, representing how rising organic composition of capital reduces profit rates over time under capitalist accumulation.

Parameters:
  • tick (int) – Current simulation tick (0-indexed)

  • trpf_coefficient (float) – Decay rate per tick (default 0.0005)

  • floor (float) – Minimum multiplier (default 0.1 = 10% efficiency floor)

Return type:

float

Returns:

Multiplier in range [floor, 1.0]

Example

>>> calculate_trpf_multiplier(0, 0.0005)
1.0
>>> calculate_trpf_multiplier(1000, 0.0005)
0.5
>>> calculate_trpf_multiplier(2000, 0.0005)
0.1

Note

At default coefficient 0.0005: - tick 0: 100% efficiency - tick 520 (10 years): 74% efficiency - tick 1040 (20 years): 48% efficiency - tick 1800+: floors at 10% efficiency

Full OCC-based TRPF calculation planned for Epoch 2. See ai/epoch2-trpf.yaml for specification.

Theoretical Basis:

Marx, Capital Vol. 3, Chapters 13-15: Rate of Profit p’ = s / (c + v) As OCC (c/v) rises, p’ falls even with constant exploitation rate (s/v).

babylon.formulas.trpf.calculate_rent_pool_decay(current_pool, decay_rate)[source]

Apply TRPF rent pool decay (background evaporation).

Models the tendency of accumulated surplus to erode over time, representing the contradiction between the tendency to accumulate and the tendency of profit rates to fall.

Parameters:
  • current_pool (float) – Current imperial rent pool value

  • decay_rate (float) – Per-tick decay rate (default 0.002 = 0.2%)

Return type:

float

Returns:

Decayed pool value (always >= 0)

Example

>>> calculate_rent_pool_decay(100.0, 0.002)
99.8
>>> calculate_rent_pool_decay(100.0, 0.0)
100.0

Note

At default decay 0.002: - After 52 ticks (1 year): ~90% remaining - After 520 ticks (10 years): ~35% remaining - After 1040 ticks (20 years): ~12% remaining