jacopy.packages.metric_affine.CoframeRecombinationDefinition

class jacopy.packages.metric_affine.CoframeRecombinationDefinition(alg, fr, registry=None)

Bases: Definition

Σ_s ρ(e_s)(f)·E(e^s) → E(Df) — coframe completeness in the collection direction (the sole direction; the decomposition inverse would ping-pong).

Soundness condition (exact). Write the summand as ρ(e_s)(f)·E[e^s] where E[ξ] is the remaining factors with the coframe atom replaced by a hole ξ. Then

Σ_s ρ(e_s)(f)·E[e^s] = E[Σ_s ρ(e_s)(f)·e^s] = E[Df]

holds iff (i) the bound index s occurs in the summand ONLY through ρ(e_s) and the atoms e^s (so E and f are the same for every s) and (ii) ξ ↦ E[ξ] is C^∞-LINEAR (additive and E[g·ξ] = g·E[ξ] for functions g); the middle step is exactly this linearity with the coefficients g = ρ(e_s)(f), the last is coframe completeness Df = Σ_s ⟨Df, e_s⟩ e^s. ℝ-linearity is not enough (a derivative of e^s produces the Leibniz term), and neither is “every e^s consumed”: E[ξ] = ⟨ξ,u⟩⟨ξ,v⟩ is quadratic. (ii) is certified syntactically by _LinearityCertifier; anything it cannot certify is left alone (the rule simply does not fire).

Parameters:
__init__(alg, fr, registry=None)
Parameters:
Return type:

None

Methods

__init__(alg, fr[, registry])

matches(expr)

True when expr is an instance of this definition's LHS.

rewrite(expr)

Return the RHS.

theorem_proof_builder()

Return a callable producing this definition's sub-proof, or None.

Attributes

identity

Structural IDENTITY of the rule: None by default — the rule is never deduplicated by identity and its key falls back to (class name, display name).

is_theorem

True when this definition carries a sub-proof builder.

key

identity when given, else (class name, display name).

name

owner

the algebroid of a declared axiom, the theorem's owner for a cited theorem, … None for structure-free rules.

role

"definition" — a definitional unfolding or a structural law (no assumption); "assumption" — a DECLARED axiom of a structure (the *Declaration rules), i.e. a hypothesis the proof depends on; "theorem" — a cited proven result.

source

a jacopy.bibliography.Citation — or a tuple of them — built with jacopy.bibliography.cite(), e.g. cite("Uchino2002", "Section 1, axiom [C5]").

unverified

Explicitly-unverified citation (a TheoremBook record marked unverified): its steps are classified as legacy assumptions.

anchor

alias of IndexedSum

source = Citation(key='DereliDogan2020', locator='proof of Corollary 3.2', note='')

a jacopy.bibliography.Citation — or a tuple of them — built with jacopy.bibliography.cite(), e.g. cite("Uchino2002", "Section 1, axiom [C5]"). The engine copies it onto every ProofStep the rule produces and the display layer prints it; no matching, rewriting or classification reads it. None: the rule names no source.

Type:

Literature source of the rule (metadata only)

matches(expr)

True when expr is an instance of this definition’s LHS.

Parameters:

expr (Expr)

Return type:

bool

rewrite(expr)

Return the RHS. Caller guarantees matches(expr) is True.

Parameters:

expr (Expr)

Return type:

Expr