Research-Stack/.opencode/agents/fix-hamiltonian-mechanics.md
Brandon Schneider dac28c1b52 docs: sync all editor rules, opencode agents, and sorry audit
Editor rules updated (.cursorrules, .clinerules, copilot-instructions, .roo):
- Build: 3571 jobs, 0 errors
- Sorry inventory: 8 across 4 files (all documented)
- Q16_16 compliance, new modules list, FPGA info
- Fixed stale path in copilot-instructions

Opencode agents:
- 3 marked RESOLVED (pist-simulation, qfactor, ssms)
- 2 new agents created (adjugate-matrix, hamiltonian-mechanics)
- 1 updated (hyperbolic-statesurface)

SORRY_AUDIT.md: updated to 8 sorries across 4 files
2026-05-28 17:53:54 -05:00

1.4 KiB
Raw Blame History

description mode model permission
Fix the Picard-Lindelöf existence sorry in HamiltonianMechanics.lean (legacy). Use ONLY when asked to fix HamiltonianMechanics sorry or formalize ODE existence. subagent anthropic/claude-sonnet-4-6
edit bash read
allow allow allow

Fix HamiltonianMechanics.lean sorry

Context

Semantics/legacy/6point5sigma/HamiltonianMechanics.lean:391 has:

have hex : ∃ γ, IsSolutionND f x₀ γ := sorry

This is the Picard-Lindelöf existence theorem for ODEs. The uniqueness half (picard_lindelof_uniqueness) is already proven. The existence half requires:

  1. Formalizing C([-T,T]) as a complete metric space
  2. The weighted-norm contraction estimate
  3. The local-to-global extension argument
  4. The linear growth bound ‖f(x)‖ ≤ ‖f(x₀)‖ + K‖x - x₀‖ prevents blowup

Note: This file is in legacy/6point5sigma/ and is not part of the active Compiler surface. It does not block lake build Compiler or lake build. Priority is low.

Steps

  1. Read Semantics/legacy/6point5sigma/HamiltonianMechanics.lean around lines 380-395
  2. Read the IsSolutionND definition and picard_lindelof_uniqueness theorem
  3. Determine if Mathlib has a Picard-Lindelöf existence theorem that can be used
  4. If not, formalize the contraction mapping argument on C([-T,T])
  5. Build: lake build Semantics.legacy.6point5sigma.HamiltonianMechanics (if in lakefile)