def
MindFormal.A641Practice.queryOtherPool
{C : Type u_1}
{T : Type u_2}
{Λ : Type u_3}
{n : ℕ}
[Fintype C]
(d : MindDriftData C n T Λ)
(u q : C → ℝ)
(s : MindState C n T Λ)
(factors : Finset C)
(outcome : C)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
structure
MindFormal.A641Practice.CompleteQueryFrame
{C : Type u_1}
{T : Type u_2}
{Λ : Type u_3}
{n : ℕ}
[Fintype C]
(d : MindDriftData C n T Λ)
(u q : C → ℝ)
(s : MindState C n T Λ)
(factors : Finset C)
(outcome : C)
(z w X : ℝ)
:
The exact held-query balance conditions, applied to complete inputs. The non-factor part of the outcome's entire raw row is zero. Equal nonnegative links and cue activities are held comparison data. The outcome's own transformed input is included in the full denominator.
- nonempty : factors.Nonempty
- distinct : outcome ∉ factors
- links (j : C) : j ∈ factors → mindRelation s outcome j = w
- cues (j : C) : j ∈ factors → mindActivity s j = X
- transformed (j : C) : j ∈ factors → assembledInputs d u q s j = z
- other_raw : rawInput (fun (j : C) => d.drive (u j) (q j) (mindValue s j)) (fun (j : C) => d.residue (mindTrace s j)) (mindRelation s) (mindActivity s) outcome - ∑ j ∈ factors, mindRelation s outcome j * mindActivity s j = 0
Instances For
structure
MindFormal.A641Practice.CompleteQueryBalance
{C : Type u_1}
{T : Type u_2}
{Λ : Type u_3}
{n : ℕ}
[Fintype C]
(d : MindDriftData C n T Λ)
(u q : C → ℝ)
(s : MindState C n T Λ)
(factors : Finset C)
(outcome : C)
(z w X : ℝ)
extends MindFormal.A641Practice.CompleteQueryFrame d u q s factors outcome z w X :
- distinct : outcome ∉ factors
- other_raw : rawInput (fun (j : C) => d.drive (u j) (q j) (mindValue s j)) (fun (j : C) => d.residue (mindTrace s j)) (mindRelation s) (mindActivity s) outcome - ∑ j ∈ factors, mindRelation s outcome j * mindActivity s j = 0
- balance (j : C) : j ∈ factors → mindActivity s j = normalizedTarget d.activity.σ d.activity.g (assembledInputs d u q s) j
Instances For
theorem
MindFormal.A641Practice.CompleteQueryFrame.count_positive
{C : Type u_1}
{T : Type u_2}
{Λ : Type u_3}
{n : ℕ}
[Fintype C]
{d : MindDriftData C n T Λ}
{u q : C → ℝ}
{s : MindState C n T Λ}
{factors : Finset C}
{outcome : C}
{z w X : ℝ}
(F : CompleteQueryFrame d u q s factors outcome z w X)
:
theorem
MindFormal.A641Practice.CompleteQueryFrame.other_pool_positive
{C : Type u_1}
{T : Type u_2}
{Λ : Type u_3}
{n : ℕ}
[Fintype C]
{d : MindDriftData C n T Λ}
{u q : C → ℝ}
{s : MindState C n T Λ}
{factors : Finset C}
{outcome : C}
{z w X : ℝ}
(F : CompleteQueryFrame d u q s factors outcome z w X)
:
theorem
MindFormal.A641Practice.CompleteQueryFrame.raw_row
{C : Type u_1}
{T : Type u_2}
{Λ : Type u_3}
{n : ℕ}
[Fintype C]
{d : MindDriftData C n T Λ}
{u q : C → ℝ}
{s : MindState C n T Λ}
{factors : Finset C}
{outcome : C}
{z w X : ℝ}
(F : CompleteQueryFrame d u q s factors outcome z w X)
:
theorem
MindFormal.A641Practice.CompleteQueryFrame.outcome_input
{C : Type u_1}
{T : Type u_2}
{Λ : Type u_3}
{n : ℕ}
[Fintype C]
{d : MindDriftData C n T Λ}
{u q : C → ℝ}
{s : MindState C n T Λ}
{factors : Finset C}
{outcome : C}
{z w X : ℝ}
(F : CompleteQueryFrame d u q s factors outcome z w X)
:
theorem
MindFormal.A641Practice.CompleteQueryFrame.pool_eq
{C : Type u_1}
{T : Type u_2}
{Λ : Type u_3}
{n : ℕ}
[Fintype C]
{d : MindDriftData C n T Λ}
{u q : C → ℝ}
{s : MindState C n T Λ}
{factors : Finset C}
{outcome : C}
{z w X : ℝ}
(F : CompleteQueryFrame d u q s factors outcome z w X)
:
theorem
MindFormal.A641Practice.CompleteQueryBalance.raw_fixed
{C : Type u_1}
{T : Type u_2}
{Λ : Type u_3}
{n : ℕ}
[Fintype C]
{d : MindDriftData C n T Λ}
{u q : C → ℝ}
{s : MindState C n T Λ}
{factors : Finset C}
{outcome : C}
{z w X : ℝ}
(F : CompleteQueryBalance d u q s factors outcome z w X)
:
theorem
MindFormal.A641Practice.CompleteQueryBalance.solved
{C : Type u_1}
{T : Type u_2}
{Λ : Type u_3}
{n : ℕ}
[Fintype C]
{d : MindDriftData C n T Λ}
{u q : C → ℝ}
{s : MindState C n T Λ}
{factors : Finset C}
{outcome : C}
{z w X : ℝ}
(F : CompleteQueryBalance d u q s factors outcome z w X)
:
have L := queryOtherPool d u q s factors outcome;
have U := L + ↑factors.card * z;
have a := ↑factors.card * w;
(d.activity.g * U < z → a * X = queryRaw U a d.activity.g z) ∧ (z ≤ d.activity.g * U → a * X = 0) ∧ normalizedTarget d.activity.σ d.activity.g (assembledInputs d u q s) outcome = max (a * X / (U + a * X) - d.activity.g) 0 ∧ (w = 0 → a * X = 0)
AS6.6's complete nonnegative root, including clipping and zero link.