Record IdiomaticTransformation (F G:Applicative) := idiomaticTransformation
{ transform :> forall a, F a -> G a
; _ : forall a (x:a), transform (pure F x) = pure G x
; _ : forall a b (f : F (a -> b)) x, transform (ap f x) = ap (transform f) (transform x)
}.
Section IdiomaticTransformation.
Variables (F G:Applicative).
Variable (eta : IdiomaticTransformation F G).

Lemma idiomaticTransform_traverseVector n a b (f : a -> F b) (v : Vector.t a n) :
eta _ (traverseVector f v) = traverseVector (fun y => eta _ (f y)) v.