let pair_first x = match AF.get_file x with | Pair (a, _) -> a |> AF.with_provenance "pair-first" ["pair", AF.get_provenance x] | other -> fail_get other "Pair"