OAI/Combinatorics/ProgressionColoring/UniformMesh.lean
21 declarations, 0 contain sorry, 0 declared as axioms
- def
OAI.QuantitativeVanDerWaerden.UniformMesh.leftline 13Source documentation
The left endpoint of a literal interval in
[0,1).def left (n : ℕ) (i : Fin n) : ℝ := (i.val : ℝ) / n
- def
OAI.QuantitativeVanDerWaerden.UniformMesh.rightline 16Source documentation
The upper endpoint is excluded.
def right (n : ℕ) (i : Fin n) : ℝ := ((i.val : ℝ) + 1) / n
- def
OAI.QuantitativeVanDerWaerden.UniformMesh.Containsline 18 - def
OAI.QuantitativeVanDerWaerden.UniformMesh.labelline 21 - theorem
OAI.QuantitativeVanDerWaerden.UniformMesh.label_valline 27 - theorem
OAI.QuantitativeVanDerWaerden.UniformMesh.left_nonnegline 30 - theorem
OAI.QuantitativeVanDerWaerden.UniformMesh.right_le_oneline 34 - theorem
OAI.QuantitativeVanDerWaerden.UniformMesh.left_lt_rightline 39 - theorem
OAI.QuantitativeVanDerWaerden.UniformMesh.width_eqline 43 - theorem
OAI.QuantitativeVanDerWaerden.UniformMesh.label_memline 49 - theorem
OAI.QuantitativeVanDerWaerden.UniformMesh.label_mem_iffline 60 - theorem
OAI.QuantitativeVanDerWaerden.UniformMesh.existsUnique_containsline 75Source documentation
The literal half-open intervals cover
[0,1)exactly once.theorem existsUnique_contains (n : ℕ) (hn : 0 < n) (x : ℝ) (hx : 0 ≤ x ∧ x < 1) : ∃! i : Fin n, Contains n i x := by …Mentions: OAI.QuantitativeVanDerWaerden.UniformMesh.Contains
- theorem
OAI.QuantitativeVanDerWaerden.UniformMesh.label_add_intline 83 - theorem
OAI.QuantitativeVanDerWaerden.UniformMesh.label_eq_of_integer_differenceline 88 - theorem
OAI.QuantitativeVanDerWaerden.UniformMesh.label_cast_eq_emodline 94Source documentation
Integer floor modulo n recovers the literal fractional-part label.
theorem label_cast_eq_emod (n : ℕ) (hn : 0 < n) (x : ℝ) : ((label n hn x).val : ℤ) = ⌊(n : ℝ) * x⌋ % (n : ℤ) := by … - theorem
OAI.QuantitativeVanDerWaerden.UniformMesh.label_eq_of_floor_eqline 111 - def
OAI.QuantitativeVanDerWaerden.UniformMesh.liftedEndpointsline 119Source documentation
Precisely the lifted lattice endpoints lying in a closed target interval.
def liftedEndpoints (n : ℕ) (a b : ℝ) : Finset ℤ := …
- theorem
OAI.QuantitativeVanDerWaerden.UniformMesh.mem_liftedEndpointsline 122 - theorem
OAI.QuantitativeVanDerWaerden.UniformMesh.card_liftedEndpoints_le_fourline 135Source documentation
The closed interval may meet both extreme endpoints; hence four, not three.
theorem card_liftedEndpoints_le_four (n : ℕ) (hn : 0 < n) (a b : ℝ) (hwidth : b - a ≤ 3 / (n : ℝ)) : (liftedEndpoints n a b).card ≤ 4 := by …Mentions: OAI.QuantitativeVanDerWaerden.UniformMesh.liftedEndpoints
- theorem
OAI.QuantitativeVanDerWaerden.UniformMesh.floor_le_of_signs_eqline 147 - theorem
OAI.QuantitativeVanDerWaerden.UniformMesh.label_eq_of_signs_eqline 173Source documentation
Literal-label factorization through finitely many ternary comparisons. No width or counting premise is needed for this determination statement.
theorem label_eq_of_signs_eq (n : ℕ) (hn : 0 < n) (a b x y : ℝ) (hx : x ∈ Set.Icc a b) (hy : y ∈ Set.Icc a b) (hsign : ∀ j ∈ liftedEndpoints n a b, ternarySign (x - (j : ℝ) / n) = ternarySign (y - (j : ℝ) / n)) : label n hn x = label n hn y := by …Mentions: OAI.QuantitativeVanDerWaerden.UniformMesh.liftedEndpoints, OAI.QuantitativeVanDerWaerden.ternarySign, OAI.QuantitativeVanDerWaerden.UniformMesh.label