Equations
- instHashableCodomain = { hash := hashCodomain✝ }
Equations
- instReprCodomain = { reprPrec := reprCodomain✝ }
Equations
- instInhabitedCodomain = { default := Codomain.Nat }
Equations
- instCoeCodomainType = { coe := fun (x : Codomain) => match x with | Codomain.Nat => Nat | Codomain.Int => Int }
Equations
- instCoeCodomainName = { coe := fun (x : Codomain) => match x with | Codomain.Nat => `Nat | Codomain.Int => `Int }
Equations
- codomainOf (Lean.Expr.forallE binderName (Lean.Expr.const `Nat us) (Lean.Expr.const `Nat us_1) binderInfo) = pure Codomain.Nat
- codomainOf (Lean.Expr.forallE binderName (Lean.Expr.const `Nat us) (Lean.Expr.const `Int us_1) binderInfo) = pure Codomain.Int
- codomainOf e = Lean.throwError (Lean.toMessageData "Only functions of type ℕ → ℕ or ℕ → ℤ are supported")
Instances For
def
codomainOfDecl
{m : Type → Type}
[Monad m]
[Lean.MonadEnv m]
[Lean.MonadError m]
(decl : Lean.Name)
:
m Codomain
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- instToStringCodomain = { toString := fun (x : Codomain) => match x with | Codomain.Nat => "ℕ" | Codomain.Int => "ℤ" }