OAI/Computability/MaxCut/Arithmetic/GridWeight.lean
10 declarations, 0 contain sorry, 0 declared as axioms
- def
OAI.OptimalMaxCut.LongCode.Law.gridWeightline 17Source documentation
Downward rounding is performed BEFORE aggregation. Thus every output mass has the same polynomially sized integer denominator; no product of all input vertex degrees has to be represented as a unary integer.
noncomputable def gridWeight (P : ℕ) (a : ℚ) : ℚ := (⌊(P : ℚ) * a⌋₊ : ℚ) / P
- theorem
OAI.OptimalMaxCut.LongCode.Law.gridWeight_nonnegline 19 - theorem
OAI.OptimalMaxCut.LongCode.Law.gridWeight_leline 22 - theorem
OAI.OptimalMaxCut.LongCode.Law.gridWeight_errorline 28 - def
OAI.OptimalMaxCut.LongCode.Law.gridline 37 - theorem
OAI.OptimalMaxCut.LongCode.Law.grid_averageline 50 - theorem
OAI.OptimalMaxCut.LongCode.Law.grid_average_boundsline 55 - def
OAI.OptimalMaxCut.LongCode.roundedWeightsline 79Source documentation
Lost mass becomes a loop, which is deleted by exactly the original aggregation. It is never renormalized into non-loop edges.
noncomputable def roundedWeights {I : Type} [Fintype I] {N : ℕ} (p : Law I) (endpoints : I → Fin N × Fin N) (v0 : Fin N) (P : ℕ) (hP : 0 < P) : Fin N → Fin N → ℚ := …Mentions: OAI.OptimalMaxCut.LongCode.Law
- theorem
OAI.OptimalMaxCut.LongCode.roundedWeights_cut_errorline 86 - theorem
OAI.OptimalMaxCut.LongCode.roundedWeights_max_errorline 100