infinitesimals() returns non-symmetries for first order ODEs nonlinear in y', and checkinfsol() confirms them
For a first order ODE of degree >= 2 in y', infinitesimals solves for y' and keeps one root (h = sol[0], sympy/solvers/ode/lie_group.py:258), and checkinfsol does the same (sympy/solvers/ode/ode.py, around line 2855). The returned generators are then symmetries of one branch, not of the equation.
from sympy import Function, symbols, diff, factor
from sympy.solvers.ode.lie_group import infinitesimals
from sympy.solvers.ode import checkinfsol
x = symbols('x')
y = Function('y')(x)
eq = y*diff(y, x)**2 - (y - x)*diff(y, x) - x # Kamke 1.471
print(factor(eq)) # (x + y*y')*(y' - 1)
inf = infinitesimals(eq, y)
print(inf) # [{xi(x, y(x)): 0, eta(x, y(x)): 1}]
print(checkinfsol(eq, inf, y)) # [(True, 0)]The solutions are the lines y = x + c and the circles x2 + y2 = c. The translation y -> y + e (xi = 0, eta = 1) maps the lines to lines but a circle to a shifted circle, which is not a solution, so it is not a symmetry of the equation. Independent check: with F(x, y, p) = y p**2 - (y - x) p - x, the prolonged generator applied to F is not divisible by F (prem(X(F), F, p) != 0).
Comparing SymPy's generators for Kamke's first order equations (chapters 1 and 2) with the determining equations of the whole equation, 22 of 23 disagreements are equations of degree 2 to 6 in y'.
Source: sympy/sympy