OAI/Combinatorics/ContingencyTables/Sampling/PaddedCompletions.lean
13 declarations, 0 contain sorry, 0 declared as axioms
Zero penalties are exactly padded residual completions
Retain the small x,y views and fill every large cell with the balanced pair (A,B-A). For an assignment supported on large cells, the full margin equations are precisely the padded residual margin equations. The small positive-part penalties enforce the original nonnegative residual tests.
- def
OAI.ContingencyTables.PaddedCompletions.smallRowline 21 - def
OAI.ContingencyTables.PaddedCompletions.smallColumnline 24 - def
OAI.ContingencyTables.PaddedCompletions.rowLargeCountline 27 - def
OAI.ContingencyTables.PaddedCompletions.columnLargeCountline 30 - def
OAI.ContingencyTables.PaddedCompletions.profileline 33 - def
OAI.ContingencyTables.PaddedCompletions.Supportedline 37 - def
OAI.ContingencyTables.PaddedCompletions.OriginalResidualsNonnegativeline 40 - lemma
OAI.ContingencyTables.PaddedCompletions.profile_inBoxline 45 - lemma
OAI.ContingencyTables.PaddedCompletions.profile_rowline 58 - lemma
OAI.ContingencyTables.PaddedCompletions.profile_columnline 70 - lemma
OAI.ContingencyTables.PaddedCompletions.profile_small_rowline 82 - lemma
OAI.ContingencyTables.PaddedCompletions.profile_small_columnline 89 - theorem
OAI.ContingencyTables.PaddedCompletions.zero_penalty_iff_padded_completionline 97Source documentation
No positivity or balance assumption is imposed on the retained small profile. Thus this exact identity covers transversals and defects.
theorem zero_penalty_iff_padded_completion (small : I → J → Bool) (B X Y A : I → J → ℕ) (r : I → ℕ) (c : J → ℕ) (L : ℕ) (hA : Supported small A) (hX : ∀ i j, small i j=true → X i j ≤ B i j) (hY : ∀ i j, small i j=true → Y i j ≤ B i j) (hcap : ∀ i j, small i j=false → A i j ≤ B i j) : penalty RowColumnPenalties.cellLine (smallCoordinate small) (fullOffset B (fun i => r i+rowLargeCount small i*L) (fun j => c j+columnLargeCount small j*L)) viewSlope (smallOffset small B r c) viewSlope (profile small B X Y A)=0 ↔ OriginalResidualsNonnegative small B X Y r c ∧ HasMargins A (fun i => r i-smallRow small X i+rowLargeCount small i*L) (fun j => c j-smallColumn small B Y j+columnLargeCount small j*L) := by …Mentions: OAI.ContingencyTables.PaddedCompletions.Supported, OAI.ContingencyTables.RowColumnPenalties.cellLine, OAI.ContingencyTables.PaddedCompletions.rowLargeCount, OAI.ContingencyTables.PaddedCompletions.columnLargeCount, OAI.ContingencyTables.PaddedCompletions.profile, OAI.ContingencyTables.PaddedCompletions.OriginalResidualsNonnegative, OAI.ContingencyTables.HasMargins, OAI.ContingencyTables.PaddedCompletions.smallRow, OAI.ContingencyTables.PaddedCompletions.smallColumn