MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch16.MarketEncounters

The segment's existing censor at a nonnegative time is exactly the closed record used by market replay, including an act at the cut.

Closing a closed record at the same time retains precisely its slots.

No act remains after a record closed at the phase end.

theorem MindFormal.MarketReplay.partyEnd_closed {C : Type u_1} (r t : NNReal) (old : Option (NNReal × C)) (h : FiniteActionHistory C) (he : partyEnd r old h ≤ t) :
partyEnd r old (closedHistory (↑t) h) = partyEnd r old h

Closing at or after a party's capped end does not change that end.

theorem MindFormal.MarketReplay.phaseEnd_closed {A : Type u_1} {Price : Type u_2} {N : A → ℕ} (deadline t : NNReal) (p : Phase A N Price) (h : (a : A) → FiniteActionHistory (Fin (N a))) (he : phaseEnd deadline p h ≤ t) :
(phaseEnd deadline p fun (a : A) => closedHistory (↑t) (h a)) = phaseEnd deadline p h

Closing at or after a phase's end preserves that exact end.

theorem MindFormal.MarketReplay.firstAccepts_collect_zero {A : Type u_1} {N : A → ℕ} (a : A) (accept : Fin (N a) → Bool) (h : FiniteActionHistory (Fin (N a))) :

A first act collected from a fresh phase retains exactly the original record's taught acceptance label, including absence.

theorem MindFormal.MarketReplay.settle_observe_fresh {A : Type u_1} {Price : Type u_2} {N : A → ℕ} [DecidableEq A] (price : Price → ℝ) (accept : (a : A) → Fin (N a) → Bool) (offer : Bilateral.Offer A Price) (ledger : Bilateral.Ledger A) (t : NNReal) (h : (a : A) → FiniteActionHistory (Fin (N a))) :
settle price accept ledger (observe (fresh (Sum.inl offer)) t h) = Bilateral.settle price offer ledger accept h

From a fresh offered phase, settlement on the collected slots is the existing bilateral ledger read on the whole closed native record.

theorem MindFormal.MarketReplay.replay_at_phaseEnd {A : Type u_1} {Price : Type u_2} {N : A → ℕ} [Fintype A] [DecidableEq A] {Ω : Type u_3} [MeasurableSpace Ω] {n : A → ℕ} {T : A → Type u_4} {Λ : A → Type u_5} [(a : A) → Fintype (T a)] [(a : A) → Fintype (Λ a)] {J : Type u_6} [Fintype J] {I : (a : A) → EquationInstance (N a) (n a) (T a) (Λ a) J} {G : EquationGround Ω J} (stream : HomogeneousGroupWorld I G) (deadline minimum : NNReal) (hd : 0 < deadline) (hm : 0 < minimum) (price : Price → ℝ) (accept : (a : A) → Fin (N a) → Bool) (jump : stream.world.Memory → Bilateral.Ledger A → Phase A N Price → stream.world.Memory × Bilateral.Ledger A × Plan A Price) (hj : ∀ (s : stream.world.Memory) (l : Bilateral.Ledger A) (p : Phase A N Price), PlanValid deadline minimum (jump s l p).2.2) (m : Memory stream.world.Memory A N Price) (hv : PhaseValid deadline minimum m.2.2) (w : J ⊕ stream.world.Private → C(NNReal, ℝ)) (h : (a : A) → FiniteActionHistory (Fin (N a))) (hh : ∀ (a : A), ChronologicalHistory (h a)) :
(replay stream deadline minimum price accept jump m w (phaseEnd deadline m.2.2 h) fun (a : A) => closedHistory (↑(phaseEnd deadline m.2.2 h)) (h a)) = nextMemory stream deadline price accept jump m w h

At the exact phase end, the closed-record market advance settles, applies the primitive jump once, and returns its fresh phase. The rebased record is empty and shifted sources start at zero, so the zero law applies.