theorem
ProbabilityTheory.Copula.RankRegion.RhoTau.completeReplacement_endpoint
{n : ℕ}
(π : Equiv.Perm (Fin (n + 1)))
(u : Fin (n + 1) → ℝ)
(hu : ∀ (i : Fin (n + 1)), 0 ≤ u i)
(hs : ∑ i : Fin (n + 1), u i = 1)
(i : Fin (n + 1))
(hi : u i < 1)
(he : ∀ (j : Fin (n + 1)), j ≠ i → (permutationSigns π).edge i j = 1)
(hrep : CompleteReplacement (permutationSigns (deletePermutation π i)) fun (j : Fin n) => u (i.succAbove j) / (1 - u i))
:
Reinsert a stripped endpoint into a complete replacement of the normalized remainder.