reserve D for non empty set;
reserve m,n,N for Nat;
reserve size for non zero Nat;
reserve f1,f2,f3,f4,f5,f6 for BinominativeFunction of D;
reserve p1,p2,p3,p4,p5,p6,p7 for PartialPredicate of D;
reserve d,v for object;
reserve V,A for set;
reserve z for Element of V;
reserve val for Function;
reserve loc for V-valued Function;
reserve d1 for NonatomicND of V,A;
reserve T for TypeSCNominativeData of V,A;

theorem Th11:
  loc,val,size are_correct_wrt d1 & loc,val are_different_wrt size
  implies
  for j,m,n being Nat st 1 <= n <= m < j <= size holds
  (LocalOverlapSeq(A,loc,val,d1,size).n).(val.j) =
   (LocalOverlapSeq(A,loc,val,d1,size).m).(val.j)
  proof
    set F = LocalOverlapSeq(A,loc,val,d1,size);
    assume
A1: loc,val,size are_correct_wrt d1;
    assume
A2: loc,val are_different_wrt size;
    let j,m,n be Nat;
    assume that
A3: 1 <= n and
A4: n <= m and
A5: m < j and
A6: j <= size;
A7: 1 <= m by A3,A4,XXREAL_0:2;
    set lo = val.j;
    defpred P[Nat] means n <= $1 < j <= size implies (F.n).lo = (F.$1).lo;
A8: P[0];
A9: for k being Nat st P[k] holds P[k+1]
    proof
      let k be Nat such that
A10:  P[k] and
A11:  n <= k+1 and
A12:  k+1 < j and
A13:  j <= size;
      per cases by A11,NAT_1:8;
      suppose
A14:    n <= k;
        then
A15:    1 <= k by A3,XXREAL_0:2;
A16:    k+1 < size by A12,A13,XXREAL_0:2;
        then
A17:    k < size by NAT_1:13;
A18:    len F = size by Def4;
        set D = denaming(V,A,val.(k+1));
        reconsider d2 = F.k as NonatomicND of V,A by A15,A17,A18,Def6;
A19:    dom D = {d where d is NonatomicND of V,A: val.(k+1) in dom d}
        by NOMIN_1:def 18;
A20:    1 <= k+1 by NAT_1:12;
        val.(k+1) in dom d2 by A1,A15,A17,A20,A16,Th10;
        then d2 in dom D by A19;
        then reconsider Dd2 = D.d2 as TypeSCNominativeData of V,A
        by PARTFUN1:4,NOMIN_1:39;
A21:    F.(k+1) = local_overlapping(V,A,d2,Dd2,loc/.(k+1))
        by A15,A17,A18,Def4;
A22:    k+0 < k+1 by XREAL_1:8;
A23:    1 <= j by A5,A7,XXREAL_0:2;
        then
A24:    loc/.(k+1) <> lo by A2,A13,A20,A16;
        lo in dom d2 by A1,A15,A17,A23,A13,Th10;
        hence thesis by A10,A14,A13,A22,A12,A1,A21,A24,NOMIN_5:3,XXREAL_0:2;
      end;
      suppose n = k+1;
        hence thesis;
      end;
    end;
    for k being Nat holds P[k] from NAT_1:sch 2(A8,A9);
    hence thesis by A4,A5,A6;
  end;
