I'm studying coding theory. In my lecture we saw that Hadamard codes have an optimal relative distance of $1/2$. The relative distance of a code $C$ with minimum distance $d(C)$ and block length $n$ is defined by: $$\dfrac{d(C)}{n}.$$
According to this, the minimum distance for a Hadamard code with block length $n=2^k$ is $\dfrac{n}{2} = 2^{k-1}$. Is there any code $C$ with block length $n$ and minimum distance $d(C)>n/2$? How can I prove it?
Yes. There are such codes, but they necessarily have a very low rate. For example: