Skip to content

[formalization] Anchored Euler capacity matrices and A157012 #1878

Closed as not planned

Description

@PerAlexandersson

Purpose

Formalize the reachable-state theorem for the triangular Weyl matrix

                    [ E(c,d)   lambda I ]
A(c,d,lambda) =     [                    ],
                    [   0          I     ]

E(c,d)p = c p + (d+1)X p + X(1-X)p'.

On the anchored state (p,1), its first coordinate is
q=E(c,d)p+C(lambda). The useful invariant is an interval of constant shifts
of p, because (p,1) is generally outside the ordinary ordered-PF
two-vector cone when deg p>1.

The paper/formalization contract is
anchored-euler-capacity-matrices.md.
Related architecture: #1872 (reachable companion states), #1873 (target-aware
router), #1675 (shortening long downstream proofs), and #1234 (derivative
recurrences).

Claude owns Lean source, downstream migration, serialized builds, source
guards, and axiom audits. The research lane edits no Lean source and runs no
Lean build.

1. Exact affine capacity transport

For 0<c, a<=b, and s=(t-lambda)/c, prove the identity

(E(c,d)p+C(lambda))-C(t)
  = E(0,d)p + C(c)*(p-C(s)).

Add a reusable interval predicate only if it improves the API, provisionally

def LevelCapacity (a b : ℝ) (p : ℝ[X]) : Prop :=
  ∀ s, a ≤ s → s ≤ b → (p - C s).Splits

If a public predicate is added, follow project naming and namespace rules.
Otherwise expose the quantified theorem directly.

Prove a low-level transport theorem:

0<c
a<=b
forall s in [a,b], Compatible (E(0,d)p) (p-C(s))
nonzero target combinations
------------------------------------------------
LevelCapacity (lambda+c*a) (lambda+c*b)
  (E(c,d)p+C(lambda)).

Also prove a PF-oriented wrapper that derives target nonzeroness from explicit
degree/positive-leading data. Do not silently discard the zero alternative in
Compatible.

Handle c=0 in a separate collapsed-interval lemma. Do not divide by c
under a weak nonnegativity hypothesis. Negative c is out of the initial
nonnegative-combination theorem.

Suggested algebra name, adjusted after namespace review:

eulerInsertionStep_add_const_sub_const
levelCapacity_eulerInsertionStep_add_const

2. Two-endpoint reduction

Define, or use a local abbreviation for,

M_d(p)=(d+1)p+(1-X)p',
E(0,d)p=X*M_d(p).

For a<b, prove

M_d(p) << p-C(a)
M_d(p) << p-C(b)
s in [a,b]
--------------------------------
M_d(p) << p-C(s).

Use the exact convex identity

p-C(s)
 = ((b-s)/(b-a))*(p-C(a))
 + ((s-a)/(b-a))*(p-C(b))

and StrictInterl.sum_left_of_common_left. Split off s=a, s=b,
and a=b so no strict theorem receives a zero scalar multiple. Keep all
same-degree and positive-leading hypotheses explicit.

Then use the checked positive-X transfer to obtain

p-C(s) << X*M_d(p)=E(0,d)p

under coefficient nonnegativity, convert this to Compatible, and combine
with section 1. Provide the resulting two-endpoint capacity theorem.

For [0,b], add a wrapper that discharges

M_d(p) << p

through strictInterl_affine_derivative_of_nonnegCoeffs. The only
orbit-specific premise exposed by this wrapper must be

M_d(p) << p-C(b).

A weak zero-aware variant is welcome after the strict API is complete, but it
must not delay the strict A157012 client.

3. Root-flux endpoint certificate

Let h=p-C(b). Under explicit hypotheses that h has simple nonpositive
roots, b>=0, and M_d(p) and h have the same degree and positive
leading coefficients, package the standard same-degree root-sign step.

At a root r of h:

p(r)=b,
h'(r)=p'(r),
M_d(p)(r)=(d+1)b+(1-r)p'(r).

Prove M_d(p)<<h from the oriented root condition

M_d(p)(r)*p'(r)>0.

Reuse the strongest existing Ma--Wang/root-evaluation theorem; do not duplicate
a root-count proof. The positive-slope branch is automatic for b>=0 and
r<0. The negative-slope branch is exactly

(d+1)b < (1-r)*(-p'(r)).

A suitable public theorem should accept this descending-root implication and
derive the endpoint edge. If existing APIs naturally split the sufficient and
necessary directions, provide separate named lemmas rather than forcing an
awkward iff.

Suggested name, subject to namespace review:

strictInterl_affineDerivative_sub_const_of_rootFlux

4. A157012 specialization

Use the downstream recurrence

P_(n+1)=E(2,n)P_n-C(1).

The affine interval map sends [0,1] to

-1+2*[0,1]=[-1,1].

In particular it preserves the required [0,1] capacity. Add a theorem-level
regression for the exact identity

P_(n+1)-C(t)
  = E(0,n)P_n+C(2)*(P_n-C((1+t)/2)).

The hard endpoint is b=1. With P_n-1=X*B_n, the root-flux condition
reduces exactly to

n+1 < (beta^2-beta)*B_n'(beta)

at the positive-slope roots of B_n. This is the already proved downstream
A157012DeflatedAmplitude.

Migrate the downstream splitness proof by retaining that quantitative
certificate and replacing the generic recurrence identity, interval
interpolation, compatibility assembly, and positive-X transfer with the
new library theorem. At pinned downstream revision
4da79256c504843df1f8d2ddcfbe7522d9186657, the candidate generic region
begins near the ### The capacity reformulation heading (approximately lines
997--1341). Perform a fresh reference audit before deletion; line numbers are
advisory.

Do not delete the quantitative Wronskian/amplitude development until every
remaining caller has moved. Preserve public downstream names when they are
used outside the removed region, or add small corollaries from the generic
theorem.

5. Adjacent interlacing remains separate

Do not claim that capacity proves P_n<<P_(n+1). At a root r of P_n,

P_(n+1)(r)=r(1-r)P_n'(r)-1.

The remaining descending-root obligation is

1 < (r^2-r)*(-P_n'(r)).

This is A157012NegativeSlopeAmplitude, and the pinned downstream
A157012_interlaces and A157012_prec are still admitted. Capacity,
including capacity on [-1,1], does not orient roots across this homotopy
without a common-root exclusion or the displayed flux inequality.

Leave this as a named residual in this issue. If the existing quantitative
Wronskian package implies it, prove that implication in a follow-up theorem;
otherwise keep the adjacent theorem open. Phase 1 is complete only for generic
capacity and A157012 splitness, never for adjacent interlacing.

6. Module and routing

The natural module is provisionally

RealRooted/EulerianMixedCompatibility/AnchoredCapacity.lean

with imports chosen after checking the actual dependency graph. Avoid importing
the tactic layer into the mathematical module.

After #1872, expose the matrix as a reachable anchored-state certificate. It is
not a universal PreservesOrderedPF theorem. After #1873, the diagnostic
router should recognize

P_(n+1)=E(c_n,d_n)P_n+C(lambda_n)

and report:

  • the input and target capacity intervals;
  • the generic endpoint discharged by the affine-derivative theorem;
  • the remaining endpoint-flux premise;
  • that the route proves capacity/splitness only unless a separate adjacent
    certificate is supplied.

7. Regressions

Add theorem-level regressions for:

  1. c=2, lambda=-1, [0,1] mapping to [-1,1];
  2. the exact A157012 shift identity;
  3. the singleton interval and c=0 boundary;
  4. automatic positive-slope root flux;
  5. exact simplification of the negative-slope branch;
  6. a degree->1 anchored state that is routed through capacity and never
    treated as an ordinary interlacing pair;
  7. missing endpoint flux reported as residual rather than success;
  8. capacity success producing no adjacent-interlacing replay.

Acceptance

Completion requires checked affine interval transport, strict two-endpoint
reduction, the root-flux sufficient theorem, the A157012 specialization and
splitness migration, source-reference cleanup, and all applicable regressions.
Document final declaration/module names for #1873.

No sorry, added axiom, self-assumed statement scaffold, finite root sampling,
or unchecked meta Boolean counts as completion. The exact implementation
revision must pass focused and default builds, source guards, and applicable
axiom audits.

Activity

  1. PerAlexandersson commented on Oct 19, 2026

    @PerAlexandersson
    OwnerAuthor

    #1879 supplies the generic root-flux facade for the A157012 endpoint used here. For a root beta of the deflated row B_n, the update is

    M_n(beta) = (n+1) + beta(1-beta) B_n'(beta).
    

    Negative-slope roots are automatic. At positive-slope roots the exact adverse budget is

    n+1 < (beta^2-beta) B_n'(beta),
    

    which is precisely A157012DeflatedAmplitude. This issue should continue to own the anchored interval/capacity theorem and its endpoint estimate; #1879 should own the reusable exact budget theorem. The implementation should share that theorem rather than duplicate the root-sign assembly.

    The corresponding row-level forcing H=-1 is also recorded in #1879, but its adjacent-interlacing amplitude remains a separate A157012 obligation.

  2. added
    formalizationPlanned formalization of a specific statement
    weyl-programDifferential BKW / Weyl-matrix interlacing program (#601)
    on Oct 25, 2026
  3. PerAlexandersson commented on Nov 9, 2026

    @PerAlexandersson
    OwnerAuthor

    Consolidated into the Weyl-program cluster tracker #2469 (Cluster N: Recurrence-space and OEIS consumers; roadmap #2018). This issue keeps its statement, proof plan and sources as the reference for that cluster; it is linked from the tracker's member table.

  4. added a commit that references this issue on Nov 22, 2026
  5. PerAlexandersson commented on Nov 22, 2026

    @PerAlexandersson
    OwnerAuthor

    Formalized and merged: PR #2632 (anchored Euler capacity transport and forced root-flux budgets). The downstream migration of A157012 and A366159 follows in oeis-proofs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    formalizationPlanned formalization of a specific statementweyl-programDifferential BKW / Weyl-matrix interlacing program (#601)

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions