Description: Composition of two functions as a function with domain and codomain. (Contributed by Glauco Siliprandi, 26-Jun-2021) (Proof shortened by AV, 20-Sep-2024)