jacopy.hodge

jacopy.hodge(omega, g)

⋆_g ω — the Hodge dual of ω w.r.t. g (p-form → (n−p)-form).

The bundle dimension n is read from the metric; when bundle.dim is None a symbolic n (Degree.var("n")) is used. NOTE (variable capture): the symbolic dimension is literally the degree variable n — a form whose own symbolic degree uses Degree.var("n") will unify with it (|⋆ω| = n − n = 0). That is correct exactly when you mean p = dim (a top-form); otherwise name your form’s degree variable something else (Degree.var("p")). When both n and the degree p of omega are concrete integers, 0 ≤ p ≤ n is enforced (the Hodge star is only defined on that range); when either is symbolic or undeterminable the check is skipped (symbolic proof mode).

Parameters:
Return type:

HodgeStar