Documentation

ISAR.QuantityKernel

structure ISAR.Rational :

Exact rational numbers represented as a pair of numerator and denominator.

Instances For
    def ISAR.instDecidableEqRational.decEq (x✝ x✝¹ : Rational) :
    Decidable (x✝ = x✝¹)
    Equations
    Instances For
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        Equations
        Instances For
          Equations
          Instances For
            inductive ISAR.DimBase :

            Base SI dimensions.

            Instances For
              @[implicit_reducible]
              Equations
              @[implicit_reducible]
              Equations
              inductive ISAR.DimExpr :

              Dimensional expressions forming a free abelian group.

              Instances For
                def ISAR.instDecidableEqDimExpr.decEq (x✝ x✝¹ : DimExpr) :
                Decidable (x✝ = x✝¹)
                Equations
                Instances For
                  @[implicit_reducible]
                  Equations
                  Equations
                  Instances For

                    Symbolic base constants and expressions.

                    Instances For
                      def ISAR.instDecidableEqSymbolBase.decEq (x✝ x✝¹ : SymbolBase) :
                      Decidable (x✝ = x✝¹)
                      Equations
                      Instances For
                        Equations
                        Instances For

                          Symbolic relational layer allowing exact algebraic manipulations.

                          Instances For
                            def ISAR.instDecidableEqSymbolExpr.decEq (x✝ x✝¹ : SymbolExpr) :
                            Decidable (x✝ = x✝¹)
                            Equations
                            Instances For
                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For

                                Metric representation layer, mapping to numerical magnitude.

                                Instances For
                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For

                                    Uncertainty definition (mean and variance).

                                    Instances For
                                      Equations
                                      • One or more equations did not get rendered due to their size.
                                      Instances For

                                        Covariance/correlation representation.

                                        Instances For
                                          Equations
                                          • One or more equations did not get rendered due to their size.
                                          Instances For

                                            Epistemic layer representing uncertainties and correlations.

                                            Instances For
                                              Equations
                                              • One or more equations did not get rendered due to their size.
                                              Instances For
                                                structure ISAR.Quantity :

                                                The unified Quantity type, stacking structural, symbolic, metric, and epistemic.

                                                Instances For
                                                  Equations
                                                  • One or more equations did not get rendered due to their size.
                                                  Instances For
                                                    def ISAR.propagateVarAdd (var1 var2 covar : MetricExpr) :

                                                    Linearized variance propagation for addition: var(A + B) = var(A) + var(B) + 2 * covar(A,B).

                                                    Equations
                                                    • One or more equations did not get rendered due to their size.
                                                    Instances For
                                                      def ISAR.propagateVarMul (mean1 mean2 var1 var2 covar : MetricExpr) :

                                                      Linearized variance propagation for multiplication: var(A * B) = B^2 * var(A) + A^2 * var(B) + 2 * A * B * covar(A,B).

                                                      Equations
                                                      • One or more equations did not get rendered due to their size.
                                                      Instances For
                                                        def ISAR.addQ (q1 q2 : Quantity) (_h_dim : q1.dim = q2.dim) :

                                                        Dimension-compatible addition of two quantities.

                                                        Equations
                                                        • One or more equations did not get rendered due to their size.
                                                        Instances For
                                                          def ISAR.mulQ (q1 q2 : Quantity) :

                                                          Multiplication of two quantities.

                                                          Equations
                                                          • One or more equations did not get rendered due to their size.
                                                          Instances For

                                                            Named modeling axioms: Quantity carries String and Float, which block a kernel Encodable instance. The countable bijection is not derived.

                                                            Exact core without SymbolBase.Symbolic (String) or MetricExpr.MetricApprox (Float). The four quantityToNat axioms on the full Quantity stay named.

                                                            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.
                                                                Instances For
                                                                  def ISAR.natToInt (n : ) :
                                                                  Equations
                                                                  Instances For
                                                                    Equations
                                                                    Instances For

                                                                      Constructed left inverse: QuantityCore is encodable. Not a bijection on the full Quantity (those four axioms stay named).

                                                                      noncomputable def ISAR.view_of (t : ISKSubtype) :

                                                                      Mapping from substrate to Quantity.

                                                                      Equations
                                                                      Instances For
                                                                        noncomputable def ISAR.decode (q : Quantity) :

                                                                        Mapping from Quantity back to substrate.

                                                                        Equations
                                                                        Instances For

                                                                          Equivalence on Quantity is standard equality.

                                                                          theorem ISAR.sound (t u : ISKSubtype) (h : OperEq t u) :
                                                                          theorem ISAR.decode_eq (q1 q2 : Quantity) (h : q1 = q2) :
                                                                          OperEq (decode q1) (decode q2)
                                                                          @[reducible, inline]
                                                                          noncomputable abbrev ISAR.QuantityKernel :

                                                                          QuantityKernel definition as an admissible semantic kernel.

                                                                          Equations
                                                                          • One or more equations did not get rendered due to their size.
                                                                          Instances For

                                                                            Stable addition on the Invariant Layer quotient class.

                                                                            Equations
                                                                            Instances For

                                                                              Theorem proving that InvariantLayer.add is a stable invariant preserving arithmetic addition.