Review questions and problems

Review questions and problems#

The review questions test your understanding of the successive steps of the proof — the answer is hidden under the button. The problems are marked by difficulty (★ — routine, ★★ — require an idea, ★★★ — challenge) and with 💻 if they require computation. The numbering of lemmas and theorems refers to The complete proof, step by step.

Review questions#

1. What is the input of the identity problem: a function or an expression? Why does this distinction matter?

2. Does Richardson’s theorem imply that a computer cannot verify the identity \(\sin^2x+\cos^2x=1\)?

3. Why does the language need a periodic function? What happens if we allow only polynomials?

4. What are the weights \(k_i^4\) in the penalty \(f\) for? What would happen without them?

5. Why, in Theorem 3.4, do we round to the nearest natural number rather than the nearest integer? Where does this matter?

6. Where exactly in the proof do we use the fact that \(P\) takes integer values?

7. Why does the rounding theorem concern the inequality \(f\le1\) and not just the equation \(f=0\)?

8. Does the curve \(\Gamma_n\) pass through every point of \(\mathbb R^n\)? Is that needed?

9. Why in Lemma 4.2 do we require \(g(w)=b\) exactly, not just approximately?

10. For \(a\in U\), must the function \(G_a\) have a zero?

11. Where in the proof is the absolute value needed, and why can’t it simply be omitted?

12. Is the problem “is \(A(x)<0\) for some \(x\)?” semi-decidable? And the problem “is \(A\equiv0\)?”

13. How does the identity problem differ from the constant problem?

14. In the reduction, what must be computable, and what merely has to exist?

15. Why in Lemma 2.1 is the majorant of a constant \(c\) equal to \(c^2+2\) rather than \(|c|+2\), as in Richardson’s paper?

16. What role does \(\log2\) play in the original theorem? Is it necessary?

17. Why does the threshold \(\frac12\), rather than \(1\), appear in the integration part?

18. Does Richardson’s theorem contradict the existence of the Risch algorithm (integration in finite terms)?

19. A numerical program in float64 returned \(G_a(t)\approx0.5\). Do we now know that \(a\in U\)?

20. Why do we define the curve \(\Gamma_n\) for \(n\ge2\)?

Problems#

1. ★ Prove the inequalities from Lemma 2.1: \(|c|<c^2+2\) for \(c\in\mathbb R\) and \(|z|+1<z^2+2\). What are the smallest values of the differences?

2. ★ 💻 Build by hand the majorant from Lemma 2.1 for \(A(x,y)=x\sin y-e^{x}\), and then check the result with the function majoranta from The complete proof, step by step and with a randomized test of the inequality \(|A(\mathbf z+\boldsymbol\eta)|<M_A(\mathbf z)\).

3. ★ Extend Lemma 2.1 to the language with absolute value: propose a rule for \(M_{|A|}\) and prove it. Why does Lemma 2.3 (differentiation) not extend, and why does the proof require the polynomial \(P\) to be analytic?

4. ★★ Prove in full the variant with squares (Remark 3.5): \(f_{\mathrm{alt}}=(n+1)^2\bigl[P^2+\sum_i\sin^2(\pi x_i)k_i^2\bigr]\) also yields a gap.

5. ★★ 💻 For \(n=2\), find the number \(s_0>1\) from Remark 3.6 (the largest you can) and prove that \(\varphi(s_0)<1\). What is the meaning of \(s_0\) in the case \(a\notin U\)?

6. ★★ Can \(g(t)=t\sin t^3\) be replaced by \(t\sin t^2\) in the Richardson curve? Analyze the proof of Lemma 4.2: compare the change of the phase with the admissible change of \(h\) on the same interval. (Hint: for the phase \(t^k\), the ratio of the derivatives of the phase and of \(h\) behaves like \(k\,t^{k-1}/t\).)

7. ★★ Fill in the details of Remark 4.6: prove that the image of \(\Gamma_2\) has Lebesgue measure zero in \(\mathbb R^2\) and yet is dense.

8. ★★ Show that the problem “is \(A\ge0\) everywhere?” for \(A\in\mathcal A_1\) is not semi-decidable. (Hint: Proposition 10.1 and Post’s theorem.)

9. ★★ Existence of a zero. Prove that there is no algorithm that, given \(A\in\mathcal A_1\), decides whether \(A\) has a zero. Hint: show that for every \(a\) there is a point at which \(G_a>1\) — estimate \(F(a,\mathbf u)\) at points with \(u_1^2=\frac12\) and use density — and then apply the intermediate value theorem to \(G_a-1\). (Cf. Wang, 1974.)

10. ★★ Prove that the relation “\(A\not\equiv B\)” for \(A,B\in\mathcal B_1\) is semi-decidable, while the relation “\(A\equiv B\)” is not.

11. ★★ Decidability for polynomials in one variable without Tarski’s theorem: show that \(p\in\mathbb Q[x]\) takes a negative value if and only if it has a negative leading coefficient, odd degree, or a real root of odd multiplicity. Describe an algorithm (Sturm sequences) and implement it in SymPy (sp.sturm, sp.sqf_list). 💻

12. ★★ 💻 Check Lemma A.1 from Appendices: powers of two and the integral of e^{x^2} numerically for all \(1\le a,b\le 6\): compute \(k\), \(M\), \(q\), \(s\) and confirm the equivalence.

13. ★★ 💻 Reproduce the construction from Lemma 4.2 for the target \((a,b)=(0,100)\) and \(\delta=10^{-3}\). Estimate how many digits of precision are needed for the computation of \(g(w)\) to be reliable, and check this by changing mp.mp.dps.

14. ★★★ 💻 For the toy equation \(x_1^2+x_2^2=5\) from §5, find a point \(t\) at which \(G(t)<\frac12\) (such a point is needed in the integration part). How should \(\delta\) be chosen? How large is \(t\), and what precision is needed?

15. ★★★ Prove Lemma B.4 from Appendices: powers of two and the integral of e^{x^2} for the language with the square root instead of the absolute value (the details of the remark after Corollary B.5).

16. ★★★ Show that the function \(\dfrac{\sin x}{x}\) (extended by the value \(1\) at zero) has no elementary antiderivative. Hint: the criterion for \(f\,e^{g}\) from Conrad’s notes (consider \(e^{ix}/x\)) and an analogue of Lemma B.3.

17. ★★★ Read Laczkovich’s paper (2003) and explain what replaces the condition \(\sin(\pi x)=0\), given that the language has no \(\pi\).

Topics for further exploration#

  • Dense curves versus space-filling curves. Compare the Richardson curve (dense, of measure zero, endless) with the Hilbert curve (a continuous surjection of a segment onto a square; see the course Obliczenia matematyczne wspierane komputerowo (in Polish), the chapter on the Hilbert curve). What does each of them give in dimension-reduction proofs?

  • Hunting for zeros that a CAS cannot see. Collect identities that SymPy’s simplify cannot handle (nested radicals, branches of the logarithm, Ramanujan’s identities) and classify the reasons for the failures.

  • The constant problem and Schanuel’s conjecture. Present the algorithm from Richardson’s paper (1997) and explain exactly where the conjecture is needed.

  • Hilbert’s tenth problem. Based on Davis’s article (1973), explain why the relation \(c=a^b\) is Diophantine (the Pell equation).

  • Formalization in Lean. Formalize Lemma 3.3 (\(2d\le\sin(\pi d)\) on \([0,\tfrac12]\)) or Lemma 4.1 in Lean 4 + Mathlib. Which facts about the sine are already in Mathlib?

  • Decidable subclasses. Implement a sign test for multivariate polynomials on small examples (cylindrical algebraic decomposition in Sage/Mathematica) and compare it with our semi-deciding interval procedure.