OAI/Combinatorics/ContingencyTables/Transport/FiniteMetropolis.lean
5 declarations, 0 contain sorry, 0 declared as axioms
Exact finite proposal-and-acceptance experiments
- def
OAI.ContingencyTables.FirstSuccess.finiteAcceptStepline 17 - def
OAI.ContingencyTables.FirstSuccess.finiteAcceptLawline 23 - theorem
OAI.ContingencyTables.FirstSuccess.finiteAcceptStep_eq_iffline 28 - theorem
OAI.ContingencyTables.FirstSuccess.finiteAcceptLaw_off_diagonalline 41Source documentation
The off-diagonal mass is the exact product of the proposal-code and acceptance-coin frequencies. Both experiments use bounded finite samples.
theorem finiteAcceptLaw_off_diagonal (a b : α) (proposal : β → Option α) (accept : α → γ → Prop) (hab : a ≠ b) : (finiteAcceptLaw a proposal accept).mass b = ((Finset.univ.filter (fun z => proposal z = some b)).card / (Fintype.card β : ℚ)) * ((Finset.univ.filter (accept b)).card / (Fintype.card γ : ℚ)) := by …Mentions: OAI.ContingencyTables.FirstSuccess.finiteAcceptLaw
- theorem
OAI.ContingencyTables.FirstSuccess.RationalLaw.eq_of_off_diagonalline 68Source documentation
Two finite probability laws agreeing off a fixed state agree there as well. This recovers the rejection/stay probability from normalization.
theorem RationalLaw.eq_of_off_diagonal (p q : RationalLaw α) (a : α) (h : ∀ b, b ≠ a → p.mass b = q.mass b) : p = q := by …