Lean / Reader
Lean readerSixPointResult.lean
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.
import SixExtremizersimport SixPointnoncomputable sectionnamespace SixEquality/-- Convert the lexicographic edge vector into the fields of thepreviously verified upper-bound theorem. -/def namedWeights (w : Edge → ℝ) : SixPoint.EdgeWeights ℝ :=⟨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⟩theorem same_moment (w : Edge → ℝ) (n : ℕ) :moment w n = SixPoint.moment n (SixPoint.unpack (SixPoint.readings (namedWeights w))) := bysimp [moment,Fin.sum_univ_succ,left,right,SixPoint.moment,SixPoint.unpack,SixPoint.readings,namedWeights,List.flatMap]ringtheorem sharp_upper_bound (w : Edge → ℝ) :124 * moment w 4 ≤ 71 * (moment w 2)^2 := byrw [same_moment,same_moment]exact SixPoint.edge_bound (namedWeights w)/-- Optimal six-point inequality and classification of all nonzero equalitycases, for arbitrary real weights on the original fifteen unordered edges. -/theorem sharp_bound_and_all_extremizers (w : Edge → ℝ) :124*moment w 4 ≤ 71*(moment w 2)^2 ∧(((∃ k, w k ≠ 0) ∧ 124*moment w 4 = 71*(moment w 2)^2) ↔∃ A : Finset V, A.card = 3 ∧ ∃ c : ℝ, c ≠ 0 ∧w = fun k => c * standardWeight A k) :=⟨sharp_upper_bound w, all_nonzero_extremizers w⟩end SixEquality#print axioms SixEquality.sharp_bound_and_all_extremizers