jacopy.hodge¶
- jacopy.hodge(omega, g)¶
⋆_g ω— the Hodge dual ofωw.r.t.g(p-form → (n−p)-form).The bundle dimension
nis read from the metric; whenbundle.dim is Nonea symbolicn(Degree.var("n")) is used. NOTE (variable capture): the symbolic dimension is literally the degree variablen— a form whose own symbolic degree usesDegree.var("n")will unify with it (|⋆ω| = n − n = 0). That is correct exactly when you meanp = dim(a top-form); otherwise name your form’s degree variable something else (Degree.var("p")). When bothnand the degreepofomegaare concrete integers,0 ≤ p ≤ nis enforced (the Hodge star is only defined on that range); when either is symbolic or undeterminable the check is skipped (symbolic proof mode).