I have a question regarding the following thread: Commutative unitary ring with exactly three ideals. I believe I've put the pieces together, but I am, for whatever reason, feeling uncomfortable. So, combining the OP's initial attempt and MooS' second solution, we have:
First, let's prove that if $a\notin I$, then $a$ is a unit of $R$: suppose $a$ is not a unit of $R$. Then, $I\subseteq I+(a)\subsetneq R$. Since $1\notin I+(a)$ we have $I=I+(a)$, thus $a\in I$, a contradiction, so $a$ is a unit of $R$.
Now we want to show that if $a,b\in I$ then $ab=0$: By our first part, we conclude that any element not in $I$ must be a unit of $R$, thus any element in $I$ must be a non-unit of $R$. So, $R$ is a local ring with maximal ideal $I$ (for the rest of this proof, even though MooS uses it, is it necessary that $I$ is finitely generated? How do we know that?).
So, suppose $ab\neq 0$, then $I=(ab)=(a)(b)=(a)(a)$. Let $a\in I$, from MooS, we consider the set $A:=\{x\in R:ax=0\}$, which he says is an ideal. So, we will prove that this ideal is not $\{0\}$: If $a^2=0$, then done, so assume $a^2\neq 0$, then $(a)=(a^2)$ (I assume we can say this because $a^2=a\cdot a\implies a\in(a^2)\implies(a)\subseteq(a^2)$, and certainly $(a^2)\subseteq(a)$, so we get equality), thus $a=ba^2\implies a(ab-1)=0\implies ab-1\in A$. Now, since $a\in I$, from part the first part of the problem, $a$ is a non-unit, thus $ab-1\neq 0$. (so, is this our contradiction, because $R$ has no zero divisors thus $a=0$?)
EDIT: From Severin's comment, I see why $I$ is finitely generated, and based on Mark's comment, I see why $(a)=I$, but I am still curious if my rationale behind why $a=0$ is valid. Something still feels slightly off.
But, the last line, is my rationale correct?
Thank you!
– User7238 Dec 29 '21 at 22:55