In a previous post, I proved that
Let $E$ be a locally convex t.v.s. and $f \not \equiv 0$ a linear functional on $E$. Then $\ker f$ is either closed or dense in $E$.
Then I have found a proof without using Hahn-Banach theorem. However, this proof is for n.v.s. Below, I try to adopt that proof to a general t.v.s.
Theorem: Let $E$ be a t.v.s. and $f \not \equiv 0$ a linear functional on $E$. Then $\ker f$ is either closed or dense in $E$.
Could you please have a check on my attempt?
I post my proof separately as below answer. This allows me to subsequently remove this question from unanswered list.