@@ -72,7 +72,7 @@ theorem centroid_eq_affineCombination (s : Simplex k P n) :
7272 s.centroid = affineCombination k univ s.points (centroidWeights k univ) := by rfl
7373
7474/-- The centroid of a simplex does not lie in the affine span of any proper subset of its
75- vertices. -/
75+ vertices. -/
7676theorem centroid_notMem_affineSpan_of_ne_univ [CharZero k] (s : Simplex k P n)
7777 {t : Set (Fin (n + 1 ))} (ht : t ≠ Set.univ) :
7878 s.centroid ∉ affineSpan k (s.points '' t) := by
@@ -238,7 +238,7 @@ theorem faceOppositeCentroid_mem_affineSpan_face [CharZero k] (s : Simplex k P n
238238 centroid_mem_affineSpan (s.faceOpposite i)
239239
240240/-- The `faceOppositeCentroid` is the affine combination of the complement vertices with equal
241- weights `1/n`. -/
241+ weights `1/n`. -/
242242theorem faceOppositeCentroid_eq_affineCombination (s : Affine.Simplex k P n) (i : Fin (n + 1 )) :
243243 s.faceOppositeCentroid i = ((affineCombination k {i}ᶜ s.points) fun _ ↦ (↑n)⁻¹) := by
244244 unfold faceOppositeCentroid
@@ -250,7 +250,7 @@ theorem faceOppositeCentroid_eq_affineCombination (s : Affine.Simplex k P n) (i
250250 rfl
251251
252252/-- The vector from a vertex to the corresponding `faceOppositeCentroid` equals the average of the
253- displacements to the other vertices. -/
253+ displacements to the other vertices. -/
254254theorem faceOppositeCentroid_vsub_point_eq_smul_sum_vsub [CharZero k] (s : Affine.Simplex k P n)
255255 (i : Fin (n + 1 )) :
256256 s.faceOppositeCentroid i -ᵥ (s.points i) = (n : k)⁻¹ • ∑ x, (s.points x -ᵥ s.points i) := by
@@ -318,7 +318,7 @@ theorem faceOppositeCentroid_vsub_faceOppositeCentroid [CharZero k] (s : Affine.
318318 rw [this, smul_smul, inv_eq_one_div, one_div_mul_cancel (NeZero.ne (n : k)), one_smul]
319319
320320/-- The vector from a vertex to its `faceOppositeCentroid` is `(n+1)` times the vector from the
321- `centroid` to that `faceOppositeCentroid`. -/
321+ `centroid` to that `faceOppositeCentroid`. -/
322322theorem faceOppositeCentroid_vsub_point_eq_smul_vsub [CharZero k] (s : Simplex k P n)
323323 (i : Fin (n + 1 )) :
324324 s.faceOppositeCentroid i -ᵥ s.points i =
@@ -419,7 +419,7 @@ theorem faceOppositeCentroid_eq_smul_vsub_vadd_point [CharZero k] (s : Simplex k
419419section median
420420
421421/-- The median of a simplex is the line through a vertex and its corresponding
422- `faceOppositeCentroid`.
422+ `faceOppositeCentroid`.
423423-/
424424def median (s : Simplex k P n) (i : Fin (n + 1 )) : AffineSubspace k P :=
425425 line[k, s.points i, s.faceOppositeCentroid i]
0 commit comments