MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch15.A595Trade.Clearing

In One Mind, clause 3 of result 15.2: One price called out to everyone puts the units with the traders who value them most · all its clauses in Lean
theorem MindFormal.A595Trade.result_18_12_3_L596 {N K : ℕ} (hK : 0 < K) (hKN : K < N) (c b wealth : ℕ → ℝ) (price : ℝ) (pref : ℕ → Bool × ℝ → Bool × ℝ → Prop) (hc : ∀ i < N, 0 < c i) (hb : StrictMonoOn b (Set.Iio N)) (hw : ∀ i < N, 0 ≤ wealth i) (haff : ∀ i < N, price ≤ wealth i) (learned : ∀ i < N, LearnedOrder (c i) (b i) price (wealth i) (pref i)) :
(Clears b price N K ↔ b (N - K - 1) ≤ price ∧ price ≤ b (N - K)) ∧ (∀ h ⊆ Finset.range N, (∀ i < N, ∀ (z : Bool × ℝ), Budget price (wealth i) z → pref i z (ChosenBundle price (wealth i) (i ∈ h))) ↔ DemandCompatible b price h N) ∧ ∀ (initial : Finset ℕ), initial.card = K → missing (top N K) initial = (initial \ top N K).card ∧ (∃ (xs : List (ℕ × ℕ)), DirectRoute (top N K) initial xs ∧ xs.length = missing (top N K) initial) ∧ ∀ (xs : List (ℕ × ℕ)), UnitRoute initial xs (top N K) → missing (top N K) initial ≤ xs.length

18.12.3, L596. P: positive quasilinear whole-bundle scales, distinct ranked cutoffs, 0<K<N, affordable demand and a comparison relation on the entire asserted binary-holding/cash budget domain. H: the learned weak bundle order equals c(bh+money) on that full domain, including both choices. C: demand maximization is exactly cutoff-compatible assignment; clearing is exactly the closed interval between the two boundary cutoffs, with compatible indifferent endpoints and no outside clearing; the target is the top K; missing top holders equal excess lower holders and are the minimum number of physical unit reallocations, achieved by a direct route. This theorem is stronger than the nonnegative-cutoff instance; a finite taught menu alone supports only its tested comparisons, not these quantified full-budget premises.

In One Mind, clause 7 of result 15.3: Trades in pairs reach the textbook's holdings without every pair meeting · all its clauses in Lean
theorem MindFormal.A595Trade.result_18_32_7_L596 {N K : ℕ} (hK : 0 < K) (hKN : K < N) (c b wealth : ℕ → ℝ) (price : ℝ) (pref : ℕ → Bool × ℝ → Bool × ℝ → Prop) (hc : ∀ i < N, 0 < c i) (hb : StrictMonoOn b (Set.Iio N)) (hw : ∀ i < N, 0 ≤ wealth i) (haff : ∀ i < N, price ≤ wealth i) (learned : ∀ i < N, LearnedOrder (c i) (b i) price (wealth i) (pref i)) :
(Clears b price N K ↔ b (N - K - 1) ≤ price ∧ price ≤ b (N - K)) ∧ (∀ h ⊆ Finset.range N, (∀ i < N, ∀ (z : Bool × ℝ), Budget price (wealth i) z → pref i z (ChosenBundle price (wealth i) (i ∈ h))) ↔ DemandCompatible b price h N) ∧ ∀ (initial : Finset ℕ), initial.card = K → missing (top N K) initial = (initial \ top N K).card ∧ (∃ (xs : List (ℕ × ℕ)), DirectRoute (top N K) initial xs ∧ xs.length = missing (top N K) initial) ∧ ∀ (xs : List (ℕ × ℕ)), UnitRoute initial xs (top N K) → missing (top N K) initial ≤ xs.length

18.32.7, L596. P: positive quasilinear whole-bundle scales, distinct ranked cutoffs, 0<K<N, affordable demand and a comparison relation on the entire asserted binary-holding/cash budget domain. H: the learned weak bundle order equals c(bh+money) on that full domain, including both choices. C: demand maximization is exactly cutoff-compatible assignment; clearing is exactly the closed interval between the two boundary cutoffs, with compatible indifferent endpoints and no outside clearing; the target is the top K; missing top holders equal excess lower holders and are the minimum number of physical unit reallocations, achieved by a direct route. This theorem is stronger than the nonnegative-cutoff instance; a finite taught menu alone supports only its tested comparisons, not these quantified full-budget premises.