Module: Mathlib.Geometry.Euclidean.MongePoint

Goal state before:
pp: V : Type u_1
P : Type u_2
inst✝³ : NormedAddCommGroup V
inst✝² : InnerProductSpace ℝ V
inst✝¹ : MetricSpace P
inst✝ : NormedAddTorsor V P
t : Triangle ℝ P
i₁ i₂ : Fin 3
h : i₁ ≠ i₂
hu : {i₁, i₂} ⊆ univ
i₃ : Fin 3
hi₃ : univ \ {i₁, i₂} = {i₃}
hi₃₁ : i₃ ≠ i₁
hi₃₂ : i₃ ≠ i₂
⊢ -(∑ x,
            (∑ x_1,
                ((↑(0 + 1))⁻¹ - if x = i₁ ∨ x = i₂ then 1 else 0) *
                    ((↑(0 + 1))⁻¹ - if x_1 = i₁ ∨ x_1 = i₂ then 1 else 0) *
                  (dist (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x))
                      (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x_1)) *
                    dist (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x))
                      (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x_1))) +
              ((↑(0 + 1))⁻¹ - if x = i₁ ∨ x = i₂ then 1 else 0) * (-2 / ↑(0 + 1) - -1) *
                (dist (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x))
                    (pointsWithCircumcenter t PointsWithCircumcenterIndex.circumcenterIndex) *
                  dist (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x))
                    (pointsWithCircumcenter t PointsWithCircumcenterIndex.circumcenterIndex))) +
          (∑ x,
              (-2 / ↑(0 + 1) - -1) * ((↑(0 + 1))⁻¹ - if x = i₁ ∨ x = i₂ then 1 else 0) *
                (dist (pointsWithCircumcenter t PointsWithCircumcenterIndex.circumcenterIndex)
                    (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x)) *
                  dist (pointsWithCircumcenter t PointsWithCircumcenterIndex.circumcenterIndex)
                    (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x))) +
            (-2 / ↑(0 + 1) - -1) * (-2 / ↑(0 + 1) - -1) *
              (dist (pointsWithCircumcenter t PointsWithCircumcenterIndex.circumcenterIndex)
                  (pointsWithCircumcenter t PointsWithCircumcenterIndex.circumcenterIndex) *
                dist (pointsWithCircumcenter t PointsWithCircumcenterIndex.circumcenterIndex)
                  (pointsWithCircumcenter t PointsWithCircumcenterIndex.circumcenterIndex)))) /
      2 =
    circumradius t * circumradius t

Tactic:
← sum_sdiff hu,

Goal state after:
V : Type u_1
P : Type u_2
inst✝³ : NormedAddCommGroup V
inst✝² : InnerProductSpace ℝ V
inst✝¹ : MetricSpace P
inst✝ : NormedAddTorsor V P
t : Triangle ℝ P
i₁ i₂ : Fin 3
h : i₁ ≠ i₂
hu : {i₁, i₂} ⊆ univ
i₃ : Fin 3
hi₃ : univ \ {i₁, i₂} = {i₃}
hi₃₁ : i₃ ≠ i₁
hi₃₂ : i₃ ≠ i₂
⊢ -(∑ x ∈ univ \ {i₁, i₂},
              (∑ x_1 ∈ univ \ {i₁, i₂},
                    ((↑(0 + 1))⁻¹ - if x = i₁ ∨ x = i₂ then 1 else 0) *
                        ((↑(0 + 1))⁻¹ - if x_1 = i₁ ∨ x_1 = i₂ then 1 else 0) *
                      (dist (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x))
                          (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x_1)) *
                        dist (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x))
                          (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x_1))) +
                  ∑ x_1 ∈ {i₁, i₂},
                    ((↑(0 + 1))⁻¹ - if x = i₁ ∨ x = i₂ then 1 else 0) *
                        ((↑(0 + 1))⁻¹ - if x_1 = i₁ ∨ x_1 = i₂ then 1 else 0) *
                      (dist (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x))
                          (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x_1)) *
                        dist (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x))
                          (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x_1))) +
                ((↑(0 + 1))⁻¹ - if x = i₁ ∨ x = i₂ then 1 else 0) * (-2 / ↑(0 + 1) - -1) *
                  (dist (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x))
                      (pointsWithCircumcenter t PointsWithCircumcenterIndex.circumcenterIndex) *
                    dist (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x))
                      (pointsWithCircumcenter t PointsWithCircumcenterIndex.circumcenterIndex))) +
            ∑ x ∈ {i₁, i₂},
              (∑ x_1 ∈ univ \ {i₁, i₂},
                    ((↑(0 + 1))⁻¹ - if x = i₁ ∨ x = i₂ then 1 else 0) *
                        ((↑(0 + 1))⁻¹ - if x_1 = i₁ ∨ x_1 = i₂ then 1 else 0) *
                      (dist (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x))
                          (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x_1)) *
                        dist (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x))
                          (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x_1))) +
                  ∑ x_1 ∈ {i₁, i₂},
                    ((↑(0 + 1))⁻¹ - if x = i₁ ∨ x = i₂ then 1 else 0) *
                        ((↑(0 + 1))⁻¹ - if x_1 = i₁ ∨ x_1 = i₂ then 1 else 0) *
                      (dist (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x))
                          (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x_1)) *
                        dist (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x))
                          (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x_1))) +
                ((↑(0 + 1))⁻¹ - if x = i₁ ∨ x = i₂ then 1 else 0) * (-2 / ↑(0 + 1) - -1) *
                  (dist (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x))
                      (pointsWithCircumcenter t PointsWithCircumcenterIndex.circumcenterIndex) *
                    dist (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x))
                      (pointsWithCircumcenter t PointsWithCircumcenterIndex.circumcenterIndex))) +
          (∑ x ∈ univ \ {i₁, i₂},
                (-2 / ↑(0 + 1) - -1) * ((↑(0 + 1))⁻¹ - if x = i₁ ∨ x = i₂ then 1 else 0) *
                  (dist (pointsWithCircumcenter t PointsWithCircumcenterIndex.circumcenterIndex)
                      (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x)) *
                    dist (pointsWithCircumcenter t PointsWithCircumcenterIndex.circumcenterIndex)
                      (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x))) +
              ∑ x ∈ {i₁, i₂},
                (-2 / ↑(0 + 1) - -1) * ((↑(0 + 1))⁻¹ - if x = i₁ ∨ x = i₂ then 1 else 0) *
                  (dist (pointsWithCircumcenter t PointsWithCircumcenterIndex.circumcenterIndex)
                      (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x)) *
                    dist (pointsWithCircumcenter t PointsWithCircumcenterIndex.circumcenterIndex)
                      (pointsWithCircumcenter t (PointsWithCircumcenterIndex.pointIndex x))) +
            (-2 / ↑(0 + 1) - -1) * (-2 / ↑(0 + 1) - -1) *
              (dist (pointsWithCircumcenter t PointsWithCircumcenterIndex.circumcenterIndex)
                  (pointsWithCircumcenter t PointsWithCircumcenterIndex.circumcenterIndex) *
                dist (pointsWithCircumcenter t PointsWithCircumcenterIndex.circumcenterIndex)
                  (pointsWithCircumcenter t PointsWithCircumcenterIndex.circumcenterIndex)))) /
      2 =
    circumradius t * circumradius t