English
Applying rdropWhile with the same predicate twice yields the same result: rdropWhile p (rdropWhile p l) = rdropWhile p l.
Русский
Повторное применение rdropWhile с тем же предикатом не меняет результат: rdropWhile p (rdropWhile p l) = rdropWhile p l.
LaTeX
$$$$ \mathrm{rdropWhile}(p, \mathrm{rdropWhile}(p, l)) = \mathrm{rdropWhile}(p, l). $$$$
Lean4
theorem rdropWhile_idempotent : rdropWhile p (rdropWhile p l) = rdropWhile p l :=
rdropWhile_eq_self_iff.mpr (rdropWhile_last_not _ _)