Lean / Reader
Lean reader

SixPointResult.lean

36 lines4 declarationsno sorryimports SixExtremizers SixPoint

Lean 4 Web has Mathlib, so it can check files that import only Mathlib. This one also imports SixExtremizers, SixPoint, which it does not have: you can read it there, but it will not check. Build the project itself to check it.

  1. import SixExtremizers
  2. import SixPoint
  3. noncomputable section
  4. namespace SixEquality
  5. /-- Convert the lexicographic edge vector into the fields of the
  6. previously verified upper-bound theorem. -/
  7. def namedWeights (w : Edge → ℝ) : SixPoint.EdgeWeights ℝ :=
  8. ⟨w 0,w 1,w 2,w 3,w 4,w 5,w 6,w 7,w 8,w 9,w 10,w 11,w 12,w 13,w 14⟩
  9. theorem same_moment (w : Edge → ℝ) (n : ℕ) :
  10. moment w n = SixPoint.moment n (SixPoint.unpack (SixPoint.readings (namedWeights w))) := by
  11. simp [moment,Fin.sum_univ_succ,left,right,SixPoint.moment,SixPoint.unpack,
  12. SixPoint.readings,namedWeights,List.flatMap]
  13. ring
  14. theorem sharp_upper_bound (w : Edge → ℝ) :
  15. 124 * moment w 4 ≤ 71 * (moment w 2)^2 := by
  16. rw [same_moment,same_moment]
  17. exact SixPoint.edge_bound (namedWeights w)
  18. /-- Optimal six-point inequality and classification of all nonzero equality
  19. cases, for arbitrary real weights on the original fifteen unordered edges. -/
  20. theorem sharp_bound_and_all_extremizers (w : Edge → ℝ) :
  21. 124*moment w 4 ≤ 71*(moment w 2)^2 ∧
  22. (((∃ k, w k ≠ 0) ∧ 124*moment w 4 = 71*(moment w 2)^2) ↔
  23. ∃ A : Finset V, A.card = 3 ∧ ∃ c : ℝ, c ≠ 0 ∧
  24. w = fun k => c * standardWeight A k) :=
  25. ⟨sharp_upper_bound w, all_nonzero_extremizers w⟩
  26. end SixEquality
  27. #print axioms SixEquality.sharp_bound_and_all_extremizers