According to Parikh's theorem, if LL were context-free then the set M={(a,b):a≤γb}M={(a,b):a≤γb} would be semilinear, that is, it would be the union of finitely many sets of the form S=u0+Nu1+⋯+NuℓS=u0+Nu1+⋯+Nuℓ, for some ui=(ai,bi)ui=(ai,bi).
Obviously u0∈Mu0∈M, and moreover ui∈Mui∈M for each i>0i>0, since otherwise u0+Nui∉Mu0+Nui∉M for large enough NN. Therefore g(S):=max(a0/b0,…,aℓ/bℓ)<γg(S):=max(a0/b0,…,aℓ/bℓ)<γ (since g(S)g(S) is rational). This means that every (a,b)∈S(a,b)∈S satisfies a/b≤g(S)a/b≤g(S).
Now suppose that MM is the union of S(1),…,S(m)S(1),…,S(m), and define g=max(g(S(1)),…,g(S(m)))<γg=max(g(S(1)),…,g(S(m)))<γ. The foregoing shows that every (a,b)(a,b) in the union satisfies a/b≤g<γa/b≤g<γ, and we obtain a contradiction, since sup{a/b:(a,b)∈M}=γsup{a/b:(a,b)∈M}=γ.
When γγ is rational, the proof fails, and indeed MM is semilinear:
{(a,b):a≤stb}=s−1⋃a=0(a,⌈tsa⌉)+N(s,t)+N(0,1).{(a,b):a≤stb}=⋃a=0s−1(a,⌈tsa⌉)+N(s,t)+N(0,1).
Indeed, by construction, any pair (a,b)(a,b) in the right-hand side satisfies a≤stba≤stb (since s=stts=stt). Conversely, suppose that a≤stba≤stb. While a≥sa≥s and b≥tb≥t, subtract (s,t)(s,t) from (a,b)(a,b). Eventually a<sa<s (since b<tb<t implies a≤stb<sa≤stb<s). Since a≤stba≤stb, necessarily b≥⌈tsa⌉b≥⌈tsa⌉. Hence we can subtract (0,1)(0,1) from (a,b)(a,b) until we reach (a,⌈tsa⌉)(a,⌈tsa⌉).