Hi Richard,
I uploaded a new version of CQL that fixes this error, which was related to functionality not present in your example. The result given by CQL is shown below. David Spivak points out that what is being computed isn’t really the co-pairing, which would be of maps A1->B and A2->B (pairing would be A-> B1*B2).
entity S_B -> {from vv0:B where
foreign_keys g -> {vv0 -> vv0.g}}
entity S_A -> {from vv0:A where
foreign_keys f -> {vv0 -> vv0.f}}
entity U_ -> {from vv0:A where}
-Ryan