jacopy.Derivation

class jacopy.Derivation(name, degree=0)

Bases: Atom

A named graded derivation operator.

name is a display handle; equality is purely structural over (name, degree) so two Derivation("d", 1) instances compare equal. Grading follows the Koszul convention: a derivation of degree d applied to a product satisfies D(a*b) = D(a)*b + (-1)^{d*|a|} a*D(b).

Parameters:
  • name (str)

  • degree (DegreeLike)

__init__(name, degree=0)
Parameters:
  • name (str)

  • degree (int | Degree)

Return type:

None

Methods

__init__(name[, degree])

clone()

Return self.

find(predicate)

Yield descendants (including self) satisfying predicate.

replace_at(path, new)

Return a new tree with new spliced at path.

substitute_atom(dummy, target)

Return self with every occurrence of dummy replaced by target.

walk()

Pre-order traversal yielding self followed by descendants through children only.

Attributes

children

Tuple of immediate children.

degree

is_atom

leibniz

a section value is no derivation (False); otherwise undecided (None — the class contract).

name

section_value

True for an atom that subclasses Derivation only for slot plumbing — a VALUE in a bundle other than TM ([u,v]_E, J_E, g⁻¹ω, …), not an operator on functions.

section_value = False

True for an atom that subclasses Derivation only for slot plumbing — a VALUE in a bundle other than TM ([u,v]_E, J_E, g⁻¹ω, …), not an operator on functions. Act on it is undefined: the product rule leaves it inert and kind_of does not type it.

Type:

Section-VALUE protocol

property leibniz

a section value is no derivation (False); otherwise undecided (None — the class contract). Subclasses that are operators but not derivations override it (ι_P: leibniz = False).

Type:

Leibniz marker DERIVED from section_value