Documentation

Actus.Contract.ANN

def Actus.Contract.ANN.annuityAmount {α : Type} [Amount α] (rf : RiskFactorEnv α) (t : Protocol.Time) (nt ipac ipnr : α) :
α

Annuity amount A(t, Md, Nt, Ipac, Ipnr) for the post-reset state.

Equations
Instances For
    def Actus.Contract.ANN.stf_RR {α : Type} [Amount α] (ct : Terms α) (rf : RiskFactorEnv α) (t : Protocol.Time) (s : State α) :

    Rate reset: PAM rate logic, interest accrued on Ipcb, then Prnxt recomputed as the annuity amount.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      def Actus.Contract.ANN.stf_RRF {α : Type} [Amount α] (ct : Terms α) (rf : RiskFactorEnv α) (t : Protocol.Time) (s : State α) :

      Fixed-rate reset variant: Ipnr := RRNXT, then recompute Prnxt.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        def Actus.Contract.ANN.pof {α : Type} [Amount α] [DecidableLE α] (ct : Terms α) (rf : RiskFactorEnv α) (ev : Protocol.EventType) (t : Protocol.Time) (s : State α) :
        α

        Payoffs are exactly NAM's (RR/RRF pay nothing; PR uses POF_PR_NAM).

        Equations
        Instances For
          def Actus.Contract.ANN.init {α : Type} [Amount α] (ct : Terms α) (md t₀ : Protocol.Time) :

          Initial state: as NAM (Prnxt = R(CNTRL)·PRNXT; the annuity-derived fallback for an absent PRNXT is recomputed on the first reset).

          Equations
          Instances For
            inductive Actus.Contract.ANN.Step {α : Type} [Amount α] [DecidableLE α] (ct : Terms α) (rf : RiskFactorEnv α) :
            State αState αType
            Instances For
              @[reducible, inline]
              abbrev Actus.Contract.ANN.Trace {α : Type} [Amount α] [DecidableLE α] (ct : Terms α) (rf : RiskFactorEnv α) :
              State αState αType
              Equations
              Instances For
                def Actus.Contract.ANN.getCashflow {α : Type} [Amount α] [DecidableLE α] (ct : Terms α) (rf : RiskFactorEnv α) {s s' : State α} (h : Step ct rf s s') :
                Equations
                Instances For
                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For