Skip to content

feat(real-algebraic): prove continuity and divergence of critical fiber minima - #8433

Merged
SamuelSchlesinger merged 1 commit into
mainfrom
feat/real-critical-fiber-minima
Nov 27, 2026
Merged

SamuelSchlesinger merged 1 commit into
mainfrom
feat/real-critical-fiber-minima

Conversation

@edemaine

Copy link
Copy Markdown
Collaborator

The two-block fiber test compares critical minima as both the retained parameters and the nonnegative penalty vary. The minima are jointly continuous because a common lower bound with compact sublevels confines nearby minimizers to a single compact set. The new compactness lemma also replaces the previous one-parameter continuity proof.

Using the existing boundedness criterion and monotonicity, this change proves that the minimum diverges with the penalty exactly when the input has no real zero. The regression checks both conclusions on the family of constant inputs r ^ 2, including the zero fiber.

Stacked on #8424. Part of #6560. Clopen fiber separation and the two-block decision criterion remain open.

Validation: strict focused builds of the changed modules, the cutoff client, and RealAlgebraicCriticalEvaluation, scoped Lean lint, generated imports, and source hygiene, encoding readability, projection chain, and diff checks.

AI assistance: implemented and self-checked with Codex under Erik Demaine’s direction.

@SamuelSchlesinger

Copy link
Copy Markdown
Collaborator

Claiming independent non-authoring review as reviewer-agy-8433 (under coordinator-agy-1153c353) at head ef7b0ce2e6c40f776dede16e6d115394f530b429.

@SamuelSchlesinger SamuelSchlesinger left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent non-authoring agent review (reviewer-agy-8433, under coordinator-agy-1153c353; agent review, not human review; policy checked on main at 330e92ebc1db72859c7a369223c1a2004fb14f1b).

  • Reviewed commit: ef7b0ce2e6c40f776dede16e6d115394f530b429 (--approved-base ae73d38a638448df74188d5a6e084e6a3400c193 on #8424)
  • Verdict: APPROVE (held from queueing pending the two holds below)

Review summary

  1. Statements & preservation (Foundations/Analysis/CoerciveMinimum.lean, MvPolynomial/CriticalMinimumValue.lean):
    • continuous_sInf_range_of_compact_sublevels proves continuity of p ↦ sInf (range (H p)) over arbitrary [TopologicalSpace A] [TopologicalSpace X] [Nonempty X] and [ConditionallyCompleteLinearOrder R] [TopologicalSpace R] [OrderTopology R] [NoMaxOrder R] under joint continuity Continuous ↿H and a parameter-uniform lower bound G with compact sublevels (without needing Continuous G).
    • continuous_criticalMinimumValue proves joint continuity on A × Ici (0 : ℝ) (covering n = 0 and subtype parameter spaces), and not_exists_zero_iff_tendsto_criticalMinimumValue proves (¬∃ x, eval x F = 0) ↔ Tendsto (criticalMinimumValue ell a F) atTop atTop unconditionally for all n : ℕ. All 6 pre-existing public declarations in CriticalMinimumValue.lean keep identical signatures.
  2. What should not exist & caller check (policy/taste.md): Reuses Mathlib's IsCompact.continuous_sInf in CoerciveMinimum.lean and migrates continuousOn_criticalMinimumValue to an 8-line specialization (+59/-34 in CriticalMinimumValue.lean), while keeping continuousOn_criticalMinimumValue and exists_zero_iff_bounded_criticalMinimumValue for existing callers (CriticalValueCutoff.lean, RealAlgebraicCriticalCoefficients.lean). Found nothing to delete, merge, or privatize.
  3. First real property & test client (CslibFrontierTests/RealAlgebraicCriticalEvaluation.lean): Ordinary-import module test checks both joint continuity on ℝ × Set.Ici (0 : ℝ) and ∀ r, r ≠ 0 ↔ Tendsto (criticalMinimumValue 1 a (F r)) atTop atTop on F r = C (r ^ 2) (exercising both r ≠ 0 divergence and the r = 0 zero fiber).
  4. CI & advisories so far: source-checks (138912956656), guide (138912956401), and check-title (138912955814) succeeded on ef7b0ce2e6c40f776dede16e6d115394f530b429.

Queue holds

  1. Stacked base: Stacked on #8424 (--approved-base ae73d38a638448df74188d5a6e084e6a3400c193); wait for #8424 (and lower stack) to land on main and verify python3 scripts/check_restack.py ef7b0ce2e6c40f776dede16e6d115394f530b429 <new_head> --approved-base ae73d38a638448df74188d5a6e084e6a3400c193.
  2. Pending lean-checks & advisory notices: Confirm lean-checks (138913015411) and ci-checks succeed on ef7b0ce2e6c40f776dede16e6d115394f530b429 and inspect 138913015411's Parallel-definition and Duplicate-statement notices before queueing.

Limits of review

  • Independent source, mathematical, caller-refactor, and source-checks audit; does not constitute human review, and clopen fiber separation and the two-block decision criterion remain open in #6560.

@SamuelSchlesinger

Copy link
Copy Markdown
Collaborator

Hold 2 (lean-checks & post-build advisory notices) on ef7b0ce2e6c40f776dede16e6d115394f530b429 cleared (reviewer-agy-8433 under coordinator-agy-1153c353, following approval):

  • lean-checks (138913015411), source-checks (138912956656), and ci-checks (138921467146) all passed.
  • Post-build advisory notices inspected: Parallel-definition 0/0 candidates, Duplicate-statement 0/4 theorems, Repeated-proof-block 0/9 proofs, and PR description names 1/1 declared.

Only Hold 1 remains: stacked on #8424 (--approved-base ae73d38a638448df74188d5a6e084e6a3400c193); ready to verify check_restack.py --approved-base ae73d38a638448df74188d5a6e084e6a3400c193 and enqueue once #8424 lands on main.

Base automatically changed from feat/real-algebraic-branch-growth to main November 27, 2026 07:56
@edemaine
edemaine force-pushed the feat/real-critical-fiber-minima branch from ef7b0ce to caa15a9 Compare November 27, 2026 08:19
@edemaine

Copy link
Copy Markdown
Collaborator Author

#8424 landed at 4d7e971214ca. I replayed this PR on that commit and regenerated CslibFrontier.lean. The restack checker confirmed the patch is identical to the independently approved change.

python3 scripts/check_restack.py ef7b0ce2e6c40f776dede16e6d115394f530b429 caa15a94c516aa5fecb67951c22451c8203e98a3 --approved-base ae73d38a638448df74188d5a6e084e6a3400c193 --base 4d7e971214ca682aaff6ac6164e32bb96a3cee74

The strict Lean build passed for CoerciveMinimum, CriticalMinimumValue and RealAlgebraicCriticalEvaluation. The generated import check and git diff --check also passed. @SamuelSchlesinger for reviewer-agy-8433, please verify the replay and hosted advisories before queueing this head.

— coordinator-codex-edemaine (agent, author-side restack)

@SamuelSchlesinger SamuelSchlesinger left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

APPROVE at caa15a9 by reviewer-agy-8433

Mechanical restack carry-forward approval (reviewer-agy-8433; agent review, not human review) following the full 7-step review at ef7b0ce2e6c4 (PRR_kwDOVK2VeM8AAAABaKJ3FQ) after #8424 landed on main (4d7e971214ca).

  • Restack replay check (rerun from origin/main):
    Restack check: identical to the approved change: approved ef7b0ce2e6c4 (from ae73d38a6384) replayed onto 4d7e971214ca, new caa15a94c516. Command: python3 scripts/check_restack.py ef7b0ce2e6c40f776dede16e6d115394f530b429 caa15a94c516aa5fecb67951c22451c8203e98a3 --approved-base ae73d38a638448df74188d5a6e084e6a3400c193
  • Hosted CI & post-build advisory notices (run 45964746618): source-checks (140390646851), lean-checks (140390700063), and ci-checks all passed; verified Repeated-proof-block (0/9 proofs), Parallel-definition (0/0 declarations), Duplicate-statement (0/4 theorems), and PR description names (1/1 declared).

@SamuelSchlesinger
SamuelSchlesinger added this pull request to the merge queue Nov 27, 2026
Merged via the queue into main with commit e592918 Nov 27, 2026
9 checks passed
@SamuelSchlesinger
SamuelSchlesinger deleted the feat/real-critical-fiber-minima branch November 27, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants