Packages

trait ExpressionEquationSolver extends AnyRef

Solve equations based on expressions (approximately), and compute various related quantities The actual solving is done after translating the equations to ones based on indices, for the sake of efficiency. Other methods let one construct new expression-equation-solvers, including by export.

Self Type
ExpressionEquationSolver
Linear Supertypes
AnyRef, Any
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ExpressionEquationSolver
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. case class FixedExpressionProbs(p: Map[Expression, Double]) extends Product with Serializable

Abstract Value Members

  1. abstract val coeffsAsVars: Boolean
  2. abstract val coeffval: (Coeff[_]) => Option[Double]
  3. abstract val decay: Double
  4. abstract val equations: Set[Equation]
  5. abstract val exponent: Double
  6. abstract val finalTyps: FiniteDistribution[Typ[Term]]
  7. abstract val init: Map[Expression, Double]
  8. abstract val maxRatio: Double
  9. abstract val maxTime: Option[Long]
  10. abstract val previousMap: Option[Map[Expression, Double]]
  11. abstract val resolution: Double
  12. abstract val scale: Double
  13. abstract val smoothing: Option[Double]
  14. abstract val varWeight: Double

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from ExpressionEquationSolver toany2stringadd[ExpressionEquationSolver] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ExpressionEquationSolver, B)
    Implicit
    This member is added by an implicit conversion from ExpressionEquationSolver toArrowAssoc[ExpressionEquationSolver] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. lazy val Final: FixedExpressionProbs
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. lazy val atoms: Set[Expression]

    the atomic expressions in the equations

  9. def avgInit(that: ExpressionEquationSolver): ExpressionEquationSolver

    new expression-equation-solver with initial distribution averaged with the current one

    new expression-equation-solver with initial distribution averaged with the current one

    that

    the other initial distribution

    returns

    averaged expression eval

  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  11. lazy val coefficients: Vector[Coeff[_]]
  12. implicit lazy val dim: JetDim
  13. def ensuring(cond: (ExpressionEquationSolver) => Boolean, msg: => Any): ExpressionEquationSolver
    Implicit
    This member is added by an implicit conversion from ExpressionEquationSolver toEnsuring[ExpressionEquationSolver] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: (ExpressionEquationSolver) => Boolean): ExpressionEquationSolver
    Implicit
    This member is added by an implicit conversion from ExpressionEquationSolver toEnsuring[ExpressionEquationSolver] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean, msg: => Any): ExpressionEquationSolver
    Implicit
    This member is added by an implicit conversion from ExpressionEquationSolver toEnsuring[ExpressionEquationSolver] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean): ExpressionEquationSolver
    Implicit
    This member is added by an implicit conversion from ExpressionEquationSolver toEnsuring[ExpressionEquationSolver] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def entropy(hW: Double = 1, klW: Double = 1): Expression

    Expression for composite entropy.

  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. lazy val eqnExpressions: Vector[Expression]

    Expressions for equations.

  20. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  21. def expressionGroup(exp: Expression): Option[Set[Expression]]
  22. lazy val finalDist: Map[Expression, Double]

    The final distributions, obtained from the initial one by finding an almost solution.

  23. lazy val finalTermEntropy: Expression
  24. lazy val finalTermMap: Map[Term, Expression]
  25. lazy val finalTermSet: Set[Term]

    Terms in the final (i.e.

    Terms in the final (i.e. evolved) distribution * May have extra terms that evaluate to zero

  26. lazy val finalTermSetSum: Sum
  27. def finalTermState(vars: Vector[Term] = Vector(), inds: FiniteDistribution[ExstInducDefn] = FD.empty[induction.ExstInducDefn], goals: FiniteDistribution[Typ[Term]] = FD.empty, context: Context = Context.Empty): TermState

    final term state

  28. lazy val finalTerms: FiniteDistribution[Term]

    final distribution on terms

  29. lazy val finalTypEntropy: Expression
  30. lazy val finalTypMap: Map[Term, Expression]
  31. lazy val finalTypSet: Set[Typ[Term]]

    Typs in the final (i.e.

    Typs in the final (i.e. evolved) distribution May have extra types that evaluate to zero

  32. lazy val finalVarGroups: Map[(RandomVar[_], Vector[_]), Set[Expression]]
  33. def fixTypes: ExpressionEquationSolver

    undoing generation of types by freezing them

  34. def flattenedEntropy(pow: Double, hW: Double = 1, klW: Double = 1): Expression
  35. def flattenedKLExp(pow: Double): Expression
  36. def flattenedOptimumTask(pow: Double, hW: Double = 1, klW: Double = 1, cutoff: Double, p: Map[Expression, Double] = finalDist, maxRatio: Double = 1.01): Task[Map[Expression, Double]]
  37. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from ExpressionEquationSolver toStringFormat[ExpressionEquationSolver] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  38. lazy val funcTotal: Expression
  39. lazy val genTerms: Map[Term, Expression]

    Terms of the generating distribution

  40. def generateTyps: ExpressionEquationSolver

    copy with types generated from equations

  41. def generatorIterant(hW: Double = 1, klW: Double = 1, cutoff: Double, p: Map[Expression, Double] = finalDist): Iterant[Task, FiniteDistribution[Term]]
  42. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  43. def gradShift(p: Map[Expression, Double], t: Vector[Double], eps: Double = scale): Map[Expression, Double]

    Shift downwards by the gradient, mapped by sigmoids.

  44. lazy val hExp: Expression

    Expression for entropy of the generating distribution

  45. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  46. def indepEquations(variable: Term): Set[Equation]

    equations not depending on a variable, to be used with boats

  47. lazy val indexEquationSolver: IndexEquationSolver

    the solver that does the actual solving

    the solver that does the actual solving

    returns

    indexed-equation-solver with the correct parameters

  48. lazy val initTerms: Vector[Term]

    Terms in the initial distributions, used to calculate total weights of functions etc

  49. lazy val initTermsSum: Sum
  50. lazy val initVarGroups: Map[(RandomVar[_], Vector[_]), Set[Expression]]
  51. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  52. def isleVar(el: Elem[_]): Boolean

    identifying an isle variable by having an initial value, but one that is not part of the initial distribution

    identifying an isle variable by having an initial value, but one that is not part of the initial distribution

    el

    the element to decide

    returns

    whether the element is an isle-var

  53. def iterant(hW: Double = 1, klW: Double = 1, p: Map[Expression, Double] = finalDist): Iterant[Task, Map[Expression, Double]]
  54. def iterator(hW: Double = 1, klW: Double = 1, p: Map[Expression, Double] = finalDist): Iterator[Map[Expression, Double]]
  55. implicit lazy val jetField: Field[Jet[Double]]
  56. lazy val keys: Vector[Expression]
  57. lazy val klExp: Expression

    Expression for Kullback-Liebler divergence of proofs from statements of theorems.

  58. def lambdaExportEquations(variable: Term): Set[Equation]
  59. def modify(initNew: Map[Expression, Double] = self.init, finalTypsNew: => FiniteDistribution[Typ[Term]] = self.finalTyps, equationsNew: Set[Equation] = self.equations, coeffvalNew: (Coeff[_]) => Option[Double] = self.coeffval, varWeightNew: Double = self.varWeight, coeffsAsVarsNew: Boolean = self.coeffsAsVars, maxRatioNew: Double = self.maxRatio, resolutionNew: Double = self.resolution, scaleNew: Double = self.scale, smoothNew: Option[Double] = self.smoothing, exponentNew: Double = self.exponent, decayNew: Double = self.decay, maxTimeNew: Option[Long] = self.maxTime): ExpressionEquationSolver

    modified copy

  60. val mvs: VectorSpace[Map[Expression, Double], Double]
  61. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  62. def normalizedMap(p: Map[Expression, Double]): Map[Expression, Double]
  63. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  64. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  65. def optimum(hW: Double = 1, klW: Double = 1, cutoff: Double, p: Map[Expression, Double] = finalDist, maxRatio: Double = 1.01): Map[Expression, Double]

    Optimal value, more precisely stable under gradient flow.

    Optimal value, more precisely stable under gradient flow.

    hW

    entropy weight

    klW

    Kullback-Liebler weight

    p

    Initial distribution

  66. def optimumTask(hW: Double = 1, klW: Double = 1, cutoff: Double, p: Map[Expression, Double] = finalDist, maxRatio: Double = 1.01): Task[Map[Expression, Double]]
  67. def piExportEquations(variable: Term): Set[Equation]
  68. def piTermExportEquations(variable: Term): Set[Equation]
  69. def proofExpression(typ: Typ[Term]): Expression
  70. def relVariable(x: Term): ExpressionEquationSolver
  71. def resolveOpt(exp: Expression): Option[Expression]
  72. def rhs(exp: Expression): Expression
  73. def stableGradShift(p: Map[Expression, Double], t: Vector[Double], eps: Double = scale): Map[Expression, Double]
  74. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  75. lazy val thmProbsByStatement: Map[Typ[Term], Double]
  76. lazy val thmSet: Set[Typ[Term]]
  77. lazy val thmsByProof: Map[Typ[Term], Expression]
  78. lazy val thmsByStatement: Map[Typ[Term], Expression]
  79. def toString(): String
    Definition Classes
    AnyRef → Any
  80. lazy val typFamilyTotal: Expression
  81. def unitJet(p: Map[Expression, Double], exp: Expression): Jet[Double]
  82. lazy val unknownsExp: Option[Expression]
  83. lazy val unknownsValue: Option[Double]
  84. lazy val valueVars: Vector[Expression]

    Vector of all variables.

    Vector of all variables. This is frozen so that their indices can be used.

  85. lazy val variableIndex: Map[Expression, Int]
  86. lazy val vars: Vector[Expression]
  87. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  88. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  89. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  2. def [B](y: B): (ExpressionEquationSolver, B)
    Implicit
    This member is added by an implicit conversion from ExpressionEquationSolver toArrowAssoc[ExpressionEquationSolver] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromExpressionEquationSolver to any2stringadd[ExpressionEquationSolver]

Inherited by implicit conversion StringFormat fromExpressionEquationSolver to StringFormat[ExpressionEquationSolver]

Inherited by implicit conversion Ensuring fromExpressionEquationSolver to Ensuring[ExpressionEquationSolver]

Inherited by implicit conversion ArrowAssoc fromExpressionEquationSolver to ArrowAssoc[ExpressionEquationSolver]

Ungrouped