Splitting a pairwise-coprime list gives coprime products
ProvedCoprimality.coprime_take_prod_drop_prodCutting a pairwise-coprime list anywhere yields two coprime products.
If the entries of a list of naturals are pairwise coprime, then for every cut point ,
Coprimality is multiplicative in each argument: if is coprime to each of
then is coprime to their product. Applying this twice — first across the entries of the
suffix, then across those of the prefix — reduces the claim to pairwise coprimality of entries
on opposite sides of the cut, which is part of the hypothesis since List.Pairwise relates
every earlier entry to every later one.
The statement is the combinatorial engine behind Chinese-remainder constructions: to build an integer with prescribed behaviour modulo several coprime moduli one repeatedly splits the list of moduli and needs the two halves to remain coprime. It is also what justifies inducting over a squarefree number's prime factorisation by peeling off an arbitrary initial segment.
Formalization note. l.take k and l.drop k are the prefix and suffix at the cut, and
List.Pairwise Nat.Coprime asserts coprimality of each earlier entry with each later one.
import Mathlib
namespace Coprimality
theorem coprime_take_prod_drop_prod {l : List ℕ} (h : l.Pairwise Nat.Coprime) (k : ℕ) :
Nat.Coprime ((l.take k).prod) ((l.drop k).prod) := by sorry
end Coprimality