OAI/Combinatorics/ContingencyTables/Transport/TwoLiftStates.lean
28 declarations, 0 contain sorry, 0 declared as axioms
Actual paired states and the two factorial weights
Every physical cell contains an arbitrary finite bundle of paired labels. The plain and one-hole/one-full predicates imply the exact cell count identities. Thus the literal subset lifts agree on plain states and obey the manuscript's W² comparison on every actual chain state.
- def
OAI.ContingencyTables.TwoLiftStates.groupline 21 - def
OAI.ContingencyTables.TwoLiftStates.pairline 23 - def
OAI.ContingencyTables.TwoLiftStates.pairsline 25 - def
OAI.ContingencyTables.TwoLiftStates.widthline 28 - def
OAI.ContingencyTables.TwoLiftStates.viewCountline 31 - def
OAI.ContingencyTables.TwoLiftStates.occupancyline 34 - lemma
OAI.ContingencyTables.TwoLiftStates.pair_memline 37 - lemma
OAI.ContingencyTables.TwoLiftStates.pair_injectiveline 41 - lemma
OAI.ContingencyTables.TwoLiftStates.groupCount_eq_viewCountline 46 - lemma
OAI.ContingencyTables.TwoLiftStates.width_eq_sumline 56 - lemma
OAI.ContingencyTables.TwoLiftStates.viewCount_complline 60 - lemma
OAI.ContingencyTables.TwoLiftStates.viewCount_le_widthline 70 - lemma
OAI.ContingencyTables.TwoLiftStates.viewCounts_eq_occupancyline 76 - lemma
OAI.ContingencyTables.TwoLiftStates.occupancy_singleline 86 - lemma
OAI.ContingencyTables.TwoLiftStates.occupancy_emptyline 91 - lemma
OAI.ContingencyTables.TwoLiftStates.occupancy_fullline 98 - theorem
OAI.ContingencyTables.TwoLiftStates.plain_countsline 106Source documentation
Every actual plain state is balanced in every physical cell.
theorem plain_counts (cell : P → C) (S : Set (P × Bool)) (hS : PlainState pairs S) (c : C) : viewCount cell S c false + viewCount cell S c true = width cell c := by …Mentions: OAI.ContingencyTables.TwoLiftStates.pairs, OAI.ContingencyTables.TwoLiftStates.viewCount, OAI.ContingencyTables.TwoLiftStates.width
- lemma
OAI.ContingencyTables.TwoLiftStates.defect_occupancyline 114 - theorem
OAI.ContingencyTables.TwoLiftStates.defect_countsline 133Source documentation
Cell occupancies of an actual defect have exactly one unit missing at its hole and one unit extra at its full pair, including coinciding cells.
theorem defect_counts (cell : P → C) (S : Set (P × Bool)) (p q : P) (hS : DefectState pairs (pair p) (pair q) S) (c : C) : viewCount cell S c false + viewCount cell S c true + (if cell p=c then 1 else 0) = width cell c + (if cell q=c then 1 else 0) := by …Mentions: OAI.ContingencyTables.TwoLiftStates.pairs, OAI.ContingencyTables.TwoLiftStates.pair, OAI.ContingencyTables.TwoLiftStates.viewCount, OAI.ContingencyTables.TwoLiftStates.width
- def
OAI.ContingencyTables.TwoLiftStates.denominatorline 158 - lemma
OAI.ContingencyTables.TwoLiftStates.firstLift_eq_cellsline 160 - lemma
OAI.ContingencyTables.TwoLiftStates.secondLift_eq_cellsline 169 - theorem
OAI.ContingencyTables.TwoLiftStates.plain_lifts_agreeline 184Source documentation
Exact agreement of the two literal subset lifts on every plain state.
theorem plain_lifts_agree (cell : P → C) (h : ((C × Bool) → ℕ) → ℝ) (S : Set (P × Bool)) (hS : PlainState pairs S) : secondLift (group cell) h (denominator cell) S = firstLift (group cell) h (denominator cell) S := by …Mentions: OAI.ContingencyTables.TwoLiftStates.pairs, OAI.ContingencyTables.TwoLiftStates.group, OAI.ContingencyTables.TwoLiftStates.denominator
- theorem
OAI.ContingencyTables.TwoLiftStates.defect_lifts_compareline 191Source documentation
The paper's exact W² comparison on every actual defect state.
theorem defect_lifts_compare (cell : P → C) (h : ((C × Bool) → ℕ) → ℝ) (S : Set (P × Bool)) (hS : ∃ p q, DefectState pairs (pair p) (pair q) S) (W : ℕ) (hW : 0 < W) (hbW : ∀ c, width cell c < W) (hh : 0 ≤ h (groupCount (group cell) S)) : (1/(W:ℝ)^2) * firstLift (group cell) h (denominator cell) S ≤ secondLift (group cell) h (denominator cell) S ∧ secondLift (group cell) h (denominator cell) S ≤ (W:ℝ)^2 * firstLift (group cell) h (denominator cell) S := by …Mentions: OAI.ContingencyTables.TwoLiftStates.pairs, OAI.ContingencyTables.TwoLiftStates.pair, OAI.ContingencyTables.TwoLiftStates.width, OAI.ContingencyTables.TwoLiftStates.group, OAI.ContingencyTables.TwoLiftStates.denominator
- lemma
OAI.ContingencyTables.TwoLiftStates.denominator_positiveline 226 - lemma
OAI.ContingencyTables.TwoLiftStates.firstLift_nonnegativeline 231 - theorem
OAI.ContingencyTables.TwoLiftStates.chain_lifts_compareline 239Source documentation
Both inequalities hold on every actual chain state, with no extra assumption about which cells contain the hole and full pair.
theorem chain_lifts_compare (cell : P → C) (h : ((C × Bool) → ℕ) → ℝ) (S : Set (P × Bool)) (hS : ChainState pairs S) (W : ℕ) (hW : 0 < W) (hbW : ∀ c, width cell c < W) (hh : 0 ≤ h (groupCount (group cell) S)) : (1/(W:ℝ)^2) * firstLift (group cell) h (denominator cell) S ≤ secondLift (group cell) h (denominator cell) S ∧ secondLift (group cell) h (denominator cell) S ≤ (W:ℝ)^2 * firstLift (group cell) h (denominator cell) S := by …Mentions: OAI.ContingencyTables.TwoLiftStates.pairs, OAI.ContingencyTables.TwoLiftStates.width, OAI.ContingencyTables.TwoLiftStates.group, OAI.ContingencyTables.TwoLiftStates.denominator
- theorem
OAI.ContingencyTables.TwoLiftStates.firstLift_le_square_secondLiftline 261Source documentation
The pointwise comparison used by the actual original-chain variance argument is supplied by the factorial state counts.
theorem firstLift_le_square_secondLift (cell : P → C) (h : ((C × Bool) → ℕ) → ℝ) (S : Set (P × Bool)) (hS : ChainState pairs S) (W : ℕ) (hW : 0 < W) (hbW : ∀ c, width cell c < W) (hh : 0 ≤ h (groupCount (group cell) S)) : firstLift (group cell) h (denominator cell) S ≤ (W:ℝ)^2 * secondLift (group cell) h (denominator cell) S := by …Mentions: OAI.ContingencyTables.TwoLiftStates.pairs, OAI.ContingencyTables.TwoLiftStates.width, OAI.ContingencyTables.TwoLiftStates.group, OAI.ContingencyTables.TwoLiftStates.denominator