Главная / Что меняет внешняя сила / Вычисление и оценка времени ухода
"""An exact logical audit and a numerical illustration, not a PDE proof.
All unforced trajectories of x'=x^4 sin^2(pi*x) are global. With a smooth,
bounded, compactly time-supported additive force, the trajectory from zero
can reach infinity in finite time. The proof is in notes/navier_stokes.txt.
Quadratures below are numerical and are explicitly not certified intervals.
"""
import json
import math
from pathlib import Path
from scipy.integrate import quad
def interval_integral(k):
# The peak around integer k has width of order k^-2. Rescaling avoids
# missing it at large k. sin(pi*y) avoids loss from subtracting pi*k.
scale = float(k*k)
limit = scale / 2
def density(z):
y = z / scale
return 1 / (scale * (1 + (k+y)**4 * math.sin(math.pi*y)**2))
# Split near the peak, then integrate its positive and negative tails.
inner = min(5.0, limit)
pieces = [(-inner, 0), (0, inner)]
if limit > inner:
pieces += [(-limit, -inner), (inner, limit)]
values = [quad(density, a, b, epsabs=1e-12, epsrel=1e-11, limit=300)
for a, b in pieces]
return sum(v for v, _ in values), sum(e for _, e in values)
def main():
first, first_error = quad(lambda x: 1/(1+x**4*math.sin(math.pi*x)**2),
0, 0.5, epsabs=1e-12)
intervals = [interval_integral(k) for k in range(1, 201)]
records = []
for K in (5, 10, 25, 50, 100, 200):
partial = first + sum(v for v, _ in intervals[:K])
# Exact analytic inequality: tail <= 2*pi*sum_{k>K} k^-2 <=2*pi/K.
records.append({'K':K, 'numerical_partial_integral':partial,
'quadrature_error_estimate_not_certificate':
first_error+sum(e for _,e in intervals[:K]),
'rigorous_tail_bound_expression':f'2*pi/{K}',
'tail_bound_float':2*math.pi/K})
result = {
'experiment':'forced_vs_unforced_ODE_counterexample',
'status':'Elementary analytical counterexample; not Navier-Stokes solution',
'unforced_drift':'g(x)=x^4*sin(pi*x)^2',
'unforced_global_reason':'Integer equilibria trap every orbit by local uniqueness.',
'constant_force_blowup_time':'T=integral_0^infinity 1/(1+x^4*sin(pi*x)^2) dx',
'rigorous_upper_bound_expression':'T <= 1/2 + pi^3/3',
'upper_bound_float':0.5+math.pi**3/3,
'numerical_illustration':records,
'logical_conclusion':'A proof with smooth forcing does not by itself imply an unforced blowup proof.',
}
output = Path(__file__).resolve().parents[1]/'results'/'navier_forcing_audit.json'
output.write_text(json.dumps(result, indent=2), encoding='utf-8')
print(json.dumps(result, indent=2))
if __name__ == '__main__':
main()
Исходные технические записи отражают состояние работы на дату их составления. Уточнения и итоговый вывод приведены в статье.
Контрольная сумма оригинала · SHA-256
4754663c7c32cc89bcb9f65183e41bd0e4577aee64ded38b138ac272b173e255