Dependent power operator, allows to have the output type depend on the exponent.
q ^ᵈ n:
- if
n : ℕusesq.npow - if
n : ℤusesq.zpow - if
n : ℚusesq.qpow
Examples:
q ^ᵈ 2-- npowq ^ᵈ (-2 : ℤ)-- zpowq ^ᵈ (1/3 : ℚ)-- qpow
- pow : α → (n : β) → γ n
Instances
Equations
- Units.«term_^ᵈ_» = Lean.ParserDescr.trailingNode `Units.«term_^ᵈ_» 80 81 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol " ^ᵈ ") (Lean.ParserDescr.cat `term 80))