Composition
Warm-upHumanLet and . Compute .
Let and . Compute .
If and , what are the domain and codomain of ?
Let and . Compute .
Suppose is injective. Which of these must be true? (Choose all that apply.)
In Lean, comp_assoc is proved by rfl. What does that tell us?
Finite functions can be stored as dictionaries. Write compose(g, f) returning a dictionary for (apply f first!). You may assume every value of f is a key of g.