Documentation

Lean.Compiler.ConstFolding

Constant folding for primitives that have special runtime support.

Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.
def Lean.Compiler.foldBinUInt (fn : Lean.Compiler.NumScalarTypeInfoBoolNatNatNat) (beforeErasure : Bool) (a₁ a₂ : Lean.Expr) :
Equations
  • One or more equations did not get rendered due to their size.
def Lean.Compiler.foldUIntSub (beforeErasure : Bool) (a₁ a₂ : Lean.Expr) :
Equations
Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.
def Lean.Compiler.foldNatBinOp (fn : NatNatNat) (a₁ a₂ : Lean.Expr) :
Equations
Equations
  • One or more equations did not get rendered due to their size.
def Lean.Compiler.foldNatBinPred (mkPred : Lean.ExprLean.ExprLean.Expr) (fn : NatNatBool) (beforeErasure : Bool) (a₁ a₂ : Lean.Expr) :
Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.
@[export lean_fold_bin_op]
def Lean.Compiler.foldBinOp (beforeErasure : Bool) (f a b : Lean.Expr) :
Equations
@[export lean_fold_un_op]
def Lean.Compiler.foldUnOp (beforeErasure : Bool) (f a : Lean.Expr) :
Equations