jacopy.packages.metric_affine.ConnectionCoefficient

class jacopy.packages.metric_affine.ConnectionCoefficient(connection_name, frame_name, upper, first, second)

Bases: Atom

Γ^a_{bc} — a connection coefficient on a frame; a genuine function on the base (degree 0, not constant). No index symmetry is imposed.

Parameters:
  • connection_name (str)

  • frame_name (str)

  • upper (str)

  • first (str)

  • second (str)

__init__(connection_name, frame_name, upper, first, second)
Parameters:
  • connection_name (str)

  • frame_name (str)

  • upper (str)

  • first (str)

  • second (str)

Return type:

None

Methods

__init__(connection_name, frame_name, upper, ...)

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.

connection_name

degree

frame_name

index_names

is_atom

lower

upper

substitute_atom(dummy, target)

Return self with every occurrence of dummy replaced by target.

dummy must be an Atom. The default implementation does the obvious top-level match, then recurses through children(). Atoms that hide a sub-atom inside a private slot (e.g. a frame vector field carrying a FrameIndex) override this method to expose that hidden state for substitution. Binders that introduce their own dummy (notably IndexedSum) override to respect shadowing.

Parameters:
Return type:

Expr