Let $L \subset \{a\}^*$ and $L$ satisfies pump lemma. Prove that $L$ is regular.
Please help me.
My an attempt:
Definition. A language $L$ of $A^∗$ is recognized by a monoid $M$ if there is a monoid morphism11 $f:A^* \rightarrow M$ and a subset $X$ of $M$ such that $f^{-1}(X)=L$.
Fact. A language is regular if and only if it is recognized by some finite monoid. Let $A = \{a\}$ Ok, Let $M = (\mathbb{N}, +, 0) $ be a monoid. And let $h : A^* \rightarrow M$ be a homomorphism defined: $h(s) = |s|$. Now, we should find such $X$ that $h^{-1}[X] = L$. So, let consider $h[L]$. h[L] is a set with a numbers which means length of words in $L$. So, Let $X = h[L] $. It is important to observe that $h$ is injection- $A = \{a\}$.
This proof is not used for pumping lemma. I have to prove that the lemma of pumping is necessary and sufficient here. Therefore, I ask for help in finding such evidence as well as check my proof.