- coe : α → β
Instances
- Lean.Server.FileWorker.instCoeErrorElabTaskError
- Lean.Server.RequestError.instCoeErrorRequestError
- Lean.JsonRpc.instCoeResponseErrorMessage
- Lean.Parser.instCoeParserParserAliasValue
- Lean.instCoeTSyntaxSyntax
- Lean.TSyntax.instCoeTSyntaxConsSyntaxNodeKindNil
- Lean.TSyntax.instCoeTSyntaxConsSyntaxNodeKindNil_1
- Lean.Parser.Term.instCoeTSyntaxConsSyntaxNodeKindMkStrAnonymousNil_1
- Lean.Parser.Term.instCoeTSyntaxConsSyntaxNodeKindMkStrAnonymousNil
- Lean.TSyntax.instCoeCharLitTerm
- Lean.Syntax.instCoeIdentTSyntaxConsSyntaxNodeKindMkStrAnonymousNil
- Lean.TSyntax.instCoeIdentTerm
- Lean.TSyntax.instCoeNameLitTerm
- Lean.TSyntax.instCoeNumLitPrec
- Lean.TSyntax.instCoeNumLitTerm
- Lean.TSyntax.instCoeStrLitTerm
- Lean.Syntax.instCoeTermTSyntaxConsSyntaxNodeKindMkStrAnonymousNil
- Lean.Server.RefInfo.instCoeRefInfoRefInfo
- Lean.JsonRpc.instCoeJsonNumberRequestID
- Lean.MessageData.instCoeFormatMessageData
- Lean.Server.ModuleRefs.instCoeModuleRefsModuleRefs
- Lean.JsonRpc.instCoeRequestMessage
- Lean.Syntax.instCoeTSepArrayTSyntaxArray
- Lean.MessageData.instCoeOptionExprMessageData
- Lean.instCoeSyntaxDataValue
- Lean.instCoeSyntaxTSyntaxConsSyntaxNodeKindMkStrAnonymousNil
- Lean.MessageData.instCoeSyntaxMessageData
- Lean.instCoeExprExprStructEq
- Lean.MessageData.instCoeExprMessageData
- IO.AsyncList.instCoeListAsyncList
- Lean.MessageData.instCoeListExprMessageData
- Lean.MessageData.instCoeListMessageData
- Array.instCoeSubarrayArray
- Lean.Json.instCoeRBNodeStringJsonStructured
- Lean.PrettyPrinter.Parenthesizer.instCoeParenthesizerParenthesizerAliasValue
- Lean.PrettyPrinter.Formatter.instCoeFormatterFormatterAliasValue
- Lean.JsonRpc.instCoeNotificationMessage
- Lean.instCoeNatDataValue
- Lean.Json.instCoeNatJson
- Lean.JsonNumber.instCoeNatJsonNumber
- instCoeNatInt
- Lean.Json.instCoeArrayJsonStructured
- Lean.Syntax.instCoeTSyntaxArrayTSepArray
- Lean.Syntax.instCoeTSyntaxArray
- Lean.Syntax.instCoeTSyntaxArrayArraySyntax
- Lean.Syntax.instCoeArraySyntaxSepArray
- Lean.MessageData.instCoeArrayExprMessageData
- Lean.MessageData.instCoeMVarIdMessageData
- boolToProp
- Lean.instCoeBoolDataValue
- Lean.Json.instCoeBoolJson
- Lean.JsonRpc.instCoeResponseMessage
- Lean.instCoeSyntaxNodeKindSyntaxNodeKinds
- Lean.instCoeNameDataValue
- Lean.MessageData.instCoeNameMessageData
- instCoeStringError
- Lean.instCoeStringDataValue
- Lean.Json.instCoeStringJson
- Lean.Parser.instCoeStringParser
- Std.Format.instCoeStringFormat
- Lean.MessageData.instCoeStringMessageData
- Lean.JsonRpc.instCoeStringRequestID
- System.instCoeStringFilePath
- Lean.instCoeStringName
- Fin.coeToNat
- Lean.MessageData.instCoeLevelMessageData
- Lean.Rat.instCoeIntRat
- Lean.instCoeIntDataValue
- Lean.Json.instCoeIntJson
- Lean.JsonNumber.instCoeIntJsonNumber
- Lean.Parser.instCoeForAllParserParserAliasValue
- Lean.PrettyPrinter.Parenthesizer.instCoeForAllParenthesizerParenthesizerAliasValue
- Lean.PrettyPrinter.Formatter.instCoeForAllFormatterFormatterAliasValue
- Lean.Parser.instCoeForAllParserParserAliasValue_1
- Lean.PrettyPrinter.Parenthesizer.instCoeForAllParenthesizerParenthesizerAliasValue_1
- Lean.PrettyPrinter.Formatter.instCoeForAllFormatterFormatterAliasValue_1
- coe : α → β
- coe : α → β
- coe : β
- coe : α → β
Instances
Equations
- coeNotation = Lean.ParserDescr.node `coeNotation 1024 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol "↑") (Lean.ParserDescr.cat `term 1024))
instance
coeOfHeafOfTCOfTail
{α : Sort u}
{β : Sort v}
{δ : Sort w}
{γ : Sort w'}
[inst : CoeHead α β]
[inst : CoeTail δ γ]
[inst : CoeTC β δ]
:
CoeHTCT α γ
Equations
- coeOfHeafOfTCOfTail = { coe := fun a => CoeTail.coe (CoeTC.coe (CoeHead.coe a)) }
instance
coeOfHeadOfTC
{α : Sort u}
{β : Sort v}
{δ : Sort w}
[inst : CoeHead α β]
[inst : CoeTC β δ]
:
CoeHTCT α δ
Equations
- coeOfHeadOfTC = { coe := fun a => CoeTC.coe (CoeHead.coe a) }
instance
coeOfTCOfTail
{α : Sort u}
{β : Sort v}
{δ : Sort w}
[inst : CoeTail β δ]
[inst : CoeTC α β]
:
CoeHTCT α δ
Equations
- coeOfTCOfTail = { coe := fun a => CoeTail.coe (CoeTC.coe a) }
Equations
- coeSortToCoeTail = { coe := CoeSort.coe }
@[inline]
Equations
- boolToProp = { coe := fun b => b = true }
Equations
- decPropToBool p = { coe := decide p }
Equations
- subtypeCoe = { coe := fun v => v.val }
@[inline]
def
Lean.Internal.liftCoeM
{m : Type u → Type v}
{n : Type u → Type w}
{α : Type u}
{β : Type u}
[inst : MonadLiftT m n]
[inst : (a : α) → CoeT α a β]
[inst : Monad n]
(x : m α)
:
n β
Equations
- Lean.Internal.liftCoeM x = do let a ← liftM x pure a
@[inline]
def
Lean.Internal.coeM
{m : Type u → Type v}
{α : Type u}
{β : Type u}
[inst : (a : α) → CoeT α a β]
[inst : Monad m]
(x : m α)
:
m β
Equations
- Lean.Internal.coeM x = do let a ← x pure a
Equations
- instCoeDep a = { coe := a }
Equations
- instCoeTail = { coe := fun a => a }
Equations
- instCoeTail_1 = { coe := fun a => a }