Restriction of DataValue
that covers exactly those cases that Lean is able to handle when passed via the -D
flag.
- ofString (s : String) : Lean.LeanOptionValue
- ofBool (b : Bool) : Lean.LeanOptionValue
- ofNat (n : Nat) : Lean.LeanOptionValue
Instances For
Equations
- Lean.instInhabitedLeanOptionValue = { default := Lean.LeanOptionValue.ofString default }
Equations
- Lean.instReprLeanOptionValue = { reprPrec := Lean.reprLeanOptionValue✝ }
Equations
- Lean.LeanOptionValue.ofDataValue? (Lean.DataValue.ofString s) = some (Lean.LeanOptionValue.ofString s)
- Lean.LeanOptionValue.ofDataValue? (Lean.DataValue.ofBool b) = some (Lean.LeanOptionValue.ofBool b)
- Lean.LeanOptionValue.ofDataValue? (Lean.DataValue.ofNat n) = some (Lean.LeanOptionValue.ofNat n)
- Lean.LeanOptionValue.ofDataValue? x✝ = none
Instances For
Equations
- (Lean.LeanOptionValue.ofString a).toDataValue = Lean.DataValue.ofString a
- (Lean.LeanOptionValue.ofBool a).toDataValue = Lean.DataValue.ofBool a
- (Lean.LeanOptionValue.ofNat a).toDataValue = Lean.DataValue.ofNat a
Instances For
Equations
- Lean.instValueLeanOptionValue = { toDataValue := Lean.LeanOptionValue.toDataValue, ofDataValue? := Lean.LeanOptionValue.ofDataValue? }
Equations
Equations
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.
Formats the lean option value as a CLI flag argument.
Equations
- (Lean.LeanOptionValue.ofString a).asCliFlagValue = toString "\"" ++ toString a ++ toString "\""
- (Lean.LeanOptionValue.ofBool a).asCliFlagValue = toString a
- (Lean.LeanOptionValue.ofNat a).asCliFlagValue = toString a
Instances For
Options that are used by Lean as if they were passed using -D
.
Instances For
Equations
- Lean.instInhabitedLeanOptions = { default := { values := default } }
Equations
- Lean.instReprLeanOptions = { reprPrec := Lean.reprLeanOptions✝ }
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
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.