So, I tried again with the following mutual inductive definition of "dependent n-path". I don't even know if it makes sense but I'm desperate right now:
Given A : U and P : A-> U, define n-paths in A as follows:
_-path : Nat -> U -> U
0-path(A) := A
succ(n)-path(A) := ∑(bd : n-path(A) * n-path(A)) pr1(bd) = pr2(bd)
Define dependent n-boundaries and dependent n-paths denoted as n-pathD as follows:
_-boundaryD : Nat -> U
0-boundaryD : ∑ (a, b : A) P(a) * P(b)
succ(n)-boundaryD: ∑ (p : n-path(A)) (q : n-path(A)) n-pathD(A,P,p) * n-pathD(A,P,q)
_-pathD : (n : N) -> n-boundaryD(A,P) -> succ(n)-path(A)
0-pathD is freely generated by
reflD0 : (a : A) -> (u : P(a)) -> 0-pathD((a,a,u,u))
succ(n)-pathD is freely generated by
reflD : (p : n-path(A)) -> (p' : n-pathD(A,P,p)) -> succ(n)-pathD((p,p,p',p'))