OAI/Combinatorics/ContingencyTables/Counting/CompanionObservationQueriesLaw.lean
9 declarations, 0 contain sorry, 0 declared as axioms
Exact independent laws for the executed observation queries
- lemma
OAI.ContingencyTables.CompanionObservationQueriesProgram.queryPair_ofFnline 17 - lemma
OAI.ContingencyTables.CompanionObservationQueriesProgram.output_ofFnline 28 - def
OAI.ContingencyTables.CompanionObservationQueriesProgram.valuesline 44 - theorem
OAI.ContingencyTables.CompanionObservationQueriesProgram.sameLawline 48Source documentation
Each trajectory position gets its own independent current and next query.
theorem sameLaw {N : ℕ} {U V : Type*} [Fintype U] [Fintype V] (cs : Config×Config) (codes : Fin N→List ℕ) (f : Fin N→U→ℚ) (g : Fin N→V→ℚ) (hf : ∀ i,SameLaw (fun bits : Fin (queryWidth cs.1)→Bool => TreeFraction.val (RootedLabelWeightProgram.output (cs.1,(codes i,List.ofFn bits)))) (f i)) (hg : ∀ i,SameLaw (fun bits : Fin (queryWidth cs.2)→Bool => TreeFraction.val (RootedLabelWeightProgram.output (cs.2,(codes i,List.ofFn bits)))) (g i)) : SameLaw (fun bits : Fin (N*blockWidth cs)→Bool => values (output (cs,(List.ofFn codes,List.ofFn bits)))) (fun bits : Fin N→U×V => List.ofFn (fun i => (f i (bits i).1,g i (bits i).2))) := by …Mentions: OAI.ContingencyTables.CompanionObservationQueriesProgram.Config, OAI.ContingencyTables.CompanionObservationQueriesProgram.queryWidth, OAI.ContingencyTables.RootedLabelWeightProgram.output, OAI.ContingencyTables.CompanionObservationQueriesProgram.blockWidth, OAI.ContingencyTables.CompanionObservationQueriesProgram.values, OAI.ContingencyTables.CompanionObservationQueriesProgram.output
- lemma
OAI.ContingencyTables.CompanionObservationQueriesProgram.queryWidth_configline 78 - lemma
OAI.ContingencyTables.CompanionObservationQueriesProgram.sameLaw_queryline 86 - def
OAI.ContingencyTables.CompanionObservationQueriesProgram.phaseConfigsline 110Source documentation
The two physical configurations used for observing one phase.
def phaseConfigs (A : Instance (Fin m) (Fin n)) (C K j : ℕ) (xi : ℚ) (z : View A→ℕ) (v : Grid (I := Fin (RootedCatalogGrid.freeCount A)) K) … - lemma
OAI.ContingencyTables.CompanionObservationQueriesProgram.blockWidth_phaseConfigsline 116 - theorem
OAI.ContingencyTables.CompanionObservationQueriesProgram.sameLaw_phaseline 125Source documentation
All state observations use the exact selected-root oracle law, independently.
theorem sameLaw_phase (A : Instance (Fin m) (Fin n)) (C K j N : ℕ) (hC : 0 < C) (hj : j+1 ≤ rationalHeight A C) (hK : 1 ≤ K) (hW : 100*A.d*K ≤ A.W) (hB : (K:ℝ)=binWidth A C) (xi : ℚ) (hxi : 0 < xi) (z : View A→ℕ) (v : Grid (I := Fin (RootedCatalogGrid.freeCount A)) K) …