Rewrite Rulesphysics/evaluated-to-eval

physics/evaluated-to-eval

Collapse evaluated to the shorter eval helper before eval expansion.

Rewrite patterns#

  1. braced\evaluated{#1}#2\eval{#1}#2
  2. braced-star\evaluated*{#1}#2\eval*{#1}#2
  3. paren\evaluated(#1|#2\eval(#1|#2
  4. bracket\evaluated[#1|#2\eval[#1|#2

Examples#

Each example shows this rule applied in isolation. A complete normalization profile may make additional changes.

eval alias named bounds#

Before

I=\evaluated{F(x)}_{a}^{b}

After this rule

I=\eval{F(x)}_{a}^{b}

Rendering verified with the declared packages.

eval alias star#

Before

\evaluated*{F(x)}_a^b

After this rule

\eval*{F(x)}_a^b

Rendering verified with the declared packages.

eval alias paren#

Before

\evaluated(\sin x|_0^{\pi}=0

After this rule

\eval(\sin x|_0^{\pi}=0

Rendering verified with the declared packages.

eval alias bracket#

Before

\evaluated[f(x)|_{x=0}=1

After this rule

\eval[f(x)|_{x=0}=1

Rendering verified with the declared packages.

Downstream rules#

Same family#

Notes#

This alias preserves star and delimiter syntax; eval expansion is handled by the eval-fence rules.

Disable this rule#

TransformEngine(profile="corpus", disable_rules=["physics/evaluated-to-eval"])
new TransformEngine({ profile: 'corpus', disableRules: ['physics/evaluated-to-eval'] })

Open in Playground