Definition pointwise_setwithbinop (X : setwithbinop) (n : nat) : setwithbinop. Proof. use make_setwithbinop. - apply pointwise_hSet; [exact X|assumption]. - exact (pointwise n op). Defined.
Require Import UniMath.Foundations.PartA. Require Import UniMath.MoreFoundations.PartA. Require Import UniMath.Combinatorics.FiniteSequences. Require Import UniMath.Algebra.BinaryOperations. Require Import UniMath.Algebra.IteratedBinaryOperations. Require Import UniMath.Algebra.RigsAndRings.