In fact, L and { k = i+j-1} does NOT imply
{1=< i+1 =< n and 1 =< j+1 =< n and 1 =< k+1 =< 2*n } !!!
Such partial formal analysis can show the above program has errors. We can thus localize and repair such errors.