I have a linear binary code $C$ with generators $(G_1,\cdots,G_a,G_{a+1},\cdots G_k)$.
$C$ has a subcode $C_a$ with generators $(G_1,\cdots,G_a)$.
I'd like to get the minimum weight of all codewords in $C$ that are not in $C_a$.
[Edit : minimum distance in original question changed to minimum weight]
Is there a way to get this without listing elements?
I'm tagging abelian groups and GAP since this can be viewed in a group setting too : I think this translates to looking at cosets of $C_a$ in $C$ and taking a representative (or "leader") of minimum weight.
An example for the Jyrki's answer : first 8 rows are for $C_a$ (so $r=2$)
[[1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,0],
[1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1],
[0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,1,1,0,1]]
$d_{min}(C)=4$ but $d_{min}(C-C_a)$ is known to be $6$ using other methods (brute force listing of elements). Note that this code is "degenerate" : it doesn't have unique columns (21 unique columns out of 27). The codes I tried that Jyrki's answer works for have unique columns.
A reminder: In general the question whether a linear code has non-zero words of Hamming weight below a given threshold is a difficult one. Alex Vardy proved it to be in one of those nasty complexity classes (NP-hard, NP-complete, ..., I don't know for sure). GAP/GUAVA can work with small codes easily enough, and the weight enumerators of some classes of codes with a rigid algebraic structure are known, but in general the outlook is grim.
The following observation can be done though. The result is that the minimum distance of $C\setminus C_a$ is equal to the minimum distance of one of the codes. The choice depends on the codimension that I denote by by $r=\dim C-\dim C_a$, so $r=k-a$.