<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Formalization of Transform Methods in Higher-order Logic: A Survey</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Muhammad Ahmed</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Adnan Rashid</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>School of Electrical Engineering and Computer Science (SEECS), National University of Sciences and Technology (NUST)</institution>
          ,
          <addr-line>Islamabad</addr-line>
          ,
          <country country="PK">Pakistan</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Most of the engineering and physical systems are generally characterized by diferential and diference equations based on their continuous-time and discrete-time dynamics, respectively. Moreover, these dynamical models are analyzed using transform methods to prove various properties of these systems, such as, transfer function, frequency response and stability, and to find out solutions of the diferential/diference equations. The conventional techniques for performing the transform methods based analysis have been unable to provide an accurate analysis of these systems. Therefore, higher-order-logic theorem proving, a formal method, has been used for accurately analyzing systems based on transform methods. In this paper, we survey developments for transform methods based analysis in various higher-order-logic theorem provers and overview the corresponding real world case studies from the avionics, medicine and transportation domains that have been analyzed based on these developments.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Transform Methods</kwd>
        <kwd>Laplace Transform</kwd>
        <kwd>Fourier Transform</kwd>
        <kwd>Discrete-time Transform</kwd>
        <kwd>-Transform</kwd>
        <kwd>Higher-order Logic</kwd>
        <kwd>Theorem Proving</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        The engineering and physical systems exhibiting dynamical behaviours are generally modeled
using diferential [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] and diference [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] equations based on their corresponding dynamics that
can be continuous-time and discrete-time, respectively. To analyze these models capturing the
dynamics of such systems, transform methods, such as, the Laplace transform [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], the Fourier
transform [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], the Discrete Fourier Transform (DFT) [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] and the -Transform [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], have been
widely used. These transform methods facilitate finding out solutions of these diferential and
diference equations based models and analyzing their various important properties, such as,
transfer function, frequency response and stability, as shown in Figure 1.
      </p>
      <p>The continuous-time dynamical behaviour of a system is generally modeled using diferential
equations. These diferential equations-based models are not easier to analyze in time-domain,
especially, for the case of larger systems (-order diferential equations for larger ). Transform
methods, which include the Laplace and the Fourier transforms have been widely used to</p>
      <sec id="sec-1-1">
        <title>System Exhibiting Dynamical Behavior</title>
        <p>Continuoustime Input
Discretetime Input
Differential
Equation
(Continuous)
Solving
Solution
Solution</p>
        <p>Solving
Difference
Equation
(Discrete)
Laplace
Transform
Fourier
Transform</p>
        <p>Inverse
Transform
Inverse
Transform</p>
        <p>ZTransform</p>
        <p>DF
Transform</p>
      </sec>
      <sec id="sec-1-2">
        <title>Algebra</title>
        <p>Laplace form</p>
        <p>F(s)
Fourier form</p>
        <p>F(w)</p>
        <p>Solving
Solution
Solution</p>
        <p>Solving
Z Form</p>
        <p>F(z)
DF form</p>
        <p>F(w)</p>
        <p>Simplification of
the expressions
Simplification of
the expressions
Simplification of
the expressions
Simplification of
the expressions</p>
        <p>X(s)</p>
        <p>System</p>
        <p>Y(s)
Transfer function = Y(s)/X(s)
X(w)</p>
        <p>System</p>
        <p>Y(w)
Frequency response = Y(w)/X(w)
X(z)</p>
        <p>System</p>
        <p>Y(z)
Transfer function = Y(z)/X(z)
X(w)</p>
        <p>System</p>
        <p>
          Y(w)
Frequency response = Y(w)/X(w)
analyze these diferential equations. These methods involve a transformation of the
timedomain model to its corresponding frequency domain representation (-domain for the Laplace
and -domain for the Fourier transform), which converts the diferential equations involving
integrals and diferentials to their corresponding algebraic equations having multiplication
and division operators, as shown in Figure 1. These equations are further solved to analyze
various properties of the system, such as, transfer function and frequency response, and to
obtain solutions in frequency domain [
          <xref ref-type="bibr" rid="ref3 ref4">3, 4</xref>
          ]. Finally, the inverse transforms (the inverse Laplace
and the inverse Fourier) are applied to obtain the time-domain solutions of the diferential
equations-based models.
        </p>
        <p>
          Similarly, the dynamics of a discrete-time system are captured using diference equations.
These diference equations based models are analyzed using the discrete-time transform methods,
which include the Discrete Fourier Transform (DFT) and the -transform. These transform
methods perform a conversion of the discrete time model to its corresponding frequency domain
representation (-domain for the -transform and  for the DFT), as shown in Figure 1. These
representations are further solved to analyze various properties of the given system, such as,
transfer function and frequency response, and to obtain solutions in frequency domain [
          <xref ref-type="bibr" rid="ref5 ref6">5, 6</xref>
          ].
Finally, the inverse transforms are applied to obtain the time-domain solutions of the diference
equations based models.
        </p>
        <p>
          Conventionally, the transform methods based analysis has been performed using
paperand-pencil based proofs and computer based symbolic and numerical techniques. However,
these methods sufer from their inherent limitations and thus compromise the accuracy of
the analysis [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ]. Formal methods [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ], in particular, higher-order-logic theorem proving [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ]
can overcome the limitations of the conventional methods and thus provides an accurate
transform methods based analysis of the systems. It has been widely used for the transform
methods based analysis of the engineering and physical systems. These transform methods have
been formalized using various higher-order-logic theorem provers, such as, HOL Light [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ],
HOL4 [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ], Coq [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ] and Isabelle [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ]. Moreover, these formalizations have been used for
analyzing various safety-critical systems, such as, linear analog circuits, automobile suspension
systems, a drug therapy model, unmanned aerial vehicles, synthetic biological circuits, power
converters and digital filters. In this paper, we survey these contributions regarding formalization
of transform methods that have been done using higher-order-logic theorem proving.
        </p>
        <p>
          The rest of the paper is organized as follows: Section 2 provides the developments of the
Laplace and the Fourier transforms in various theorem provers and their associated analysis of
the continuous-time systems. We provide the formalization of the DFT and the -transform and
the associated analysis of the discrete-time systems in Section 3. Section 4 presents a discussion
about the features and availability of the transform methods based analysis and its comparison
in diferent theorem provers. Finally, Section 5 concludes the paper.
2. Transform Methods for Analyzing Continuous-time Systems
The Laplace and the Fourier transforms have been formalized using various higher-order-logic
theorem provers. Moreover, these formalizations have been used for formally analyzing many
engineering and physical systems. Taqdees et al. [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ] formalized the Laplace transform using
multivariate calculus theories of HOL Light. This formalization mainly includes the formal
definition of the Laplace transform and the formal verification of its various properties, such
as, linearity, frequency shifting, first-order diferentiation, higher-order diferentiation and
integration in time-domain. Moreover, the authors used their formalization of the Laplace
transform for formally verifying the transfer function of a Linear Transfer Converter (LTC)
circuit. Next, the authors extended their framework by providing a support to formally reason
about the linear analog circuits, such as first-order and second-order Sallen-Key low-pass
iflters by formalizing the system governing laws such as Kirchhof’s Current Law (KCL) and
Kirchhof’s Voltage Law (KVL) using HOL Light [ 15]. Later, Rashid et al. [16] proposed a new
formalization of the Laplace transform based on the notion of sets and verified some more
properties of the Laplace transform, such as, time shifting, time scaling, the Laplace transform
a -order diferential equation and uniqueness [ 17]. The authors also formally verified the
Laplace transform of some commonly used functions, such as, exponential function, sine and
cosine functions. Finally, they used their proposed formalization of the Laplace transform for
analyzing the control system of an Unmanned Free-swimming Submersible (UFSS) vehicle [16]
and 4- soft error cross talk model [17]. Similarly, the formalization of the Laplace transform
has been used for formally analyzing the unmanned aerial vehicles [18] and synthetic biological
circuits [19, 20].
        </p>
        <p>Wang et al. [21] provided a formalization of the Laplace transform using the Coq theorem
prover. The authors formally defined the Laplace transform and formally verified a few of its
classical properties, such as, linearity, frequency shifting and diferentiation in time domain.
Moreover, they applied their proposed formalization for formally verifying a flight control
system using Coq. Similarly, Immler [22] formalized the Laplace transform using the Isabelle
theorem prover. The authors mainly verified some of the classical properties of the Laplace
transform, such as, linearity, frequency shifting, uniqueness, diferentiation and integration in
time-domain. Gang et al. [23] used HOL4 for the formalization of the Laplace transform. The
authors formally modeled the Laplace transform and verified some of its classical properties,
such as, linearity, frequency shifting, diferentiation and integration in time domain. Next, they
used their proposed formalization for formally verifying the transfer function of a motor.</p>
        <p>Rashid et al. [26] formalized the Fourier transform using the HOL Light theorem prover.
The authors provided a formal definition of the Fourier transform and formally verified its
various classical properties, such as, linearity, frequency shifting, modulation, time reversal,
ifrst-order and higher-order diefrentiations in time-domain. Furthermore, they formally
veriifed the Fourier transform of some commonly used functions, such as, exponential, sine and
cosine functions. Moreover, they used their proposed formalization for formally analyzing an
Automobile Suspension System (ASS), an audio equalizer, a drug therapy model and a MEMs
accelerometer [24]. Similarly, Guan et al. [25] formalized the Fourier transform using HOL4. The
authors provided a formal definition of the Fourier transform and formally verified its various
properties, such as, linearity, time reversal, frequency shifting, diferentiation and integration
in time domain. Moreover, they used their proposed formalization for formally verifying the
frequency response of a RLC circuit. A summary of the formalizations of the Laplace and
the Fourier transforms in various theorem provers and the systems that have been formally
analyzed using these transform methods can be found in Tables 1 and 2.
3. Transform Methods for Analyzing Discrete-time Systems
The DFT and -Transform have been formalized using various higher-order-logic theorem
provers. Moreover, these formalizations have been used for formally analyzing many
discretetime systems. Siddique et al. [27] formalized -transform using the HOL Light theorem prover.
The authors provided a formal definition of the -transform and formally verified its various
properties, such as, linearity, time shifting and scaling in -domain. Moreover, they used their
proposed formalization for the formal analysis of Infinite Impulse Response (IIR) Digital Signal
Processing (DSP) filter. Later, the authors extended their proposed framework by providing
the formal verification of some more properties, such as, time scaling, complex conjugate and
a formal support for the inverse z-transform and used it for formally analyzing a
switchedcapacitor interleaved DC-DC voltage doubler [28].
Shi et al. [29] proposed a formalization of DFT using the HOL4 theorem prover. The authors
presented a formal definition of the DFT and formally verified its various properties, such
as, implicit periodicity, linearity, symmetry, frequency shifting, time sifting and convolution.
Moreover, the authors used their proposed formalization for formally verifying Fast Fourier
Transform (FFT) and cosine frequency shifting. Capretta et al. [31] formally verified the FFT
using the Coq theorem prover. Similarly, Akbarpour et al. [30] provided a formal specification
and verification of the FFT at diferent abstraction levels using the HOL4 theorem prover. A
summary of the formalization of the transform methods for discrete-time systems in various
theorem provers and their associated applications can be found in Tables 3 and 4.
4. Theorem Proving Support for Transform Methods based</p>
        <p>Analysis</p>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>5. Conclusion</title>
      <p>Transform methods are widely used for analyzing the engineering and physical systems
exhibiting dynamical behaviours. Due to the safety-critical nature of these system, their accurate
analysis is of utmost importance. This paper surveys the transform methods that have been
formalized using diferent theorem provers by highlighting various safety-critical systems that
have been formally analyzed based on transform methods. In this regard, only HOL Light
theorem prover contains most number of transform methods, such as, the Laplace and the
Fourier transforms, and the -transform. Similarly, PVS contains no transform methods library
and we need to develop these libraries that can be used for performing transform methods
based analysis using PVS.
[15] S. H. Taqdees, O. Hasan, Formally Verifying Transfer Functions of Linear Analog Circuits,</p>
      <p>IEEE Design &amp; Test 34 (2017) 30–37.
[16] A. Rashid, O. Hasan, Formal Analysis of Linear Control Systems using Theorem Proving,
in: Formal Engineering Methods, Springer, 2017, pp. 345–361.
[17] A. Rashid, O. Hasan, Formalization of Lerch’s Theorem using HOL Light, Journal of</p>
      <p>Applied Logics 5 (2018) 1623–1652.
[18] S. Abed, A. Rashid, O. Hasan, Formal Analysis of Unmanned Aerial Vehicles Using
Higher-Order-Logic Theorem Proving, Journal of Aerospace Information Systems 17
(2020) 481–495.
[19] S. Abed, A. Rashid, O. Hasan, Formal Analysis of the Biological Circuits using
Higherorder-logic Theorem Proving, in: ACM Symposium on Applied Computing, 2020, pp.
3–7.
[20] A. Rashid, O. Hasan, et al., Formal Reasoning about Synthetic Biology using
Higher-orderlogic Theorem Proving, IET Systems Biology 14 (2020) 271–283.
[21] Y. Wang, G. Chen, Formalization of Laplace Transform in Coq, in: Dependable Systems
and Their Applications, IEEE, 2017, pp. 13–21.
[22] F. Immler, Laplace Transform (2021).
[23] Z. Gang, Z. Chun-na, G. Yong, L. Xing-li, L. Xiao-juan, Formalization of Laplace Transform</p>
      <p>Calculus in HOL4, Journal of Chinese Computer Systems 35 (2014) 2177–2181.
[24] A. Rashid, O. Hasan, Formal Analysis of Continuous-time Systems using Fourier Transform,</p>
      <p>Journal of Symbolic Computation 90 (2019) 65–88.
[25] Y. Guan, J. Zhang, Z. Shi, Y. Wang, Y. Li, Formalization of Continuous Fourier Transform
in Verifying Applications for Dependable Cyber-physical Systems, Journal of Systems
Architecture 106 (2020) 101707.
[26] A. Rashid, O. Hasan, On the Formalization of Fourier Transform in Higher-order Logic,
in: Interactive Theorem Proving, volume 9807 of LNCS, Springer, 2016, pp. 483–490.
[27] U. Siddique, M. Y. Mahmoud, S. Tahar, On the Formalization of -Transform in HOL, in:</p>
      <p>Interactive Theorem Proving, volume 8558 of LNCS, Springer, 2014, pp. 483–498.
[28] U. Siddique, M. Y. Mahmoud, S. Tahar, Formal Analysis of Discrete-Time Systems using
-Transform, Journal of Applied Logics 5 (2018) 875–906.
[29] Z. Shi, Y. Zhang, Y. Guan, L. Li, J. Zhang, The Formalization of Discrete Fourier Transform
in HOL, Mathematical Problems in Engineering 2015 (2015).
[30] B. Akbarpour, S. Tahar, Verification of the Fast Fourier Transform using HOL Theorem</p>
      <p>Proving, Techincal Report, Concordia University, Montreal-Canada (2004).
[31] V. Capretta, Certifying the Fast Fourier Transform with Coq, in: Theorem Proving in
Higher Order Logics, volume 2152 of LNCS, Springer, 2001, pp. 154–168.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>X.-S.</given-names>
            <surname>Yang</surname>
          </string-name>
          , et al.,
          <source>Mathematical Modeling with Multidisciplinary Applications</source>
          , Wiley,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>W. G.</given-names>
            <surname>Kelley</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. C.</given-names>
            <surname>Peterson</surname>
          </string-name>
          ,
          <article-title>Diference Equations: an Introduction with Applications</article-title>
          , Academic Press,
          <year>2001</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>R. J.</given-names>
            <surname>Beerends</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H. G.</given-names>
            <surname>Morsche</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. C.</given-names>
            <surname>Van den Berg</surname>
          </string-name>
          , E. M. Van de Vrie,
          <source>Fourier and Laplace Transforms</source>
          , Cambridge University Press,
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>R. N.</given-names>
            <surname>Bracewell</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. N.</given-names>
            <surname>Bracewell</surname>
          </string-name>
          ,
          <source>The Fourier Transform and its Applications</source>
          , volume
          <volume>31999</volume>
          ,
          <string-name>
            <surname>McGraw-Hill</surname>
          </string-name>
          ,
          <year>1986</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>D.</given-names>
            <surname>Sundararajan</surname>
          </string-name>
          ,
          <article-title>The Discrete Fourier Transform: Theory, Algorithms</article-title>
          and Applications, World Scientific,
          <year>2001</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>A. V.</given-names>
            <surname>Oppenheim</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. R.</given-names>
            <surname>Buck</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. W.</given-names>
            <surname>Schafer</surname>
          </string-name>
          ,
          <string-name>
            <surname>Discrete-time Signal</surname>
            <given-names>Processing</given-names>
          </string-name>
          , Prentice Hall,
          <year>2001</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>A. J.</given-names>
            <surname>Durán</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Pérez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. L.</given-names>
            <surname>Varona</surname>
          </string-name>
          ,
          <article-title>The Misfortunes of a Mathematicians' Trio using Computer Algebra Systems: Can We Trust?</article-title>
          ,
          <source>CoRR abs/1312</source>
          .3270 (
          <year>2013</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>O.</given-names>
            <surname>Hasan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Tahar</surname>
          </string-name>
          , Formal Verification Methods,
          <source>Encyclopedia of Information Science and Technology, IGI Global Pub</source>
          (
          <year>2015</year>
          )
          <fpage>7162</fpage>
          -
          <lpage>7170</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>J.</given-names>
            <surname>Harrison</surname>
          </string-name>
          ,
          <source>Handbook of Practical Logic and Automated Reasoning</source>
          , Cambridge University Press,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>J.</given-names>
            <surname>Harrison</surname>
          </string-name>
          , HOL Light:
          <article-title>A Tutorial Introduction</article-title>
          , in: Formal Methods in Computer-Aided Design, volume
          <volume>1166</volume>
          <source>of LNCS</source>
          , Springer,
          <year>1996</year>
          , pp.
          <fpage>265</fpage>
          -
          <lpage>269</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>K.</given-names>
            <surname>Slind</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Norrish</surname>
          </string-name>
          ,
          <article-title>A Brief Overview of HOL4</article-title>
          , in: Theorem Proving in Higher Order Logics, Springer,
          <year>2008</year>
          , pp.
          <fpage>28</fpage>
          -
          <lpage>32</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Bertot</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Castéran</surname>
          </string-name>
          ,
          <source>Interactive Theorem Proving and Program Development: Coq'Art: the Calculus of Inductive Constructions</source>
          , Springer Science &amp; Business
          <string-name>
            <surname>Media</surname>
          </string-name>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>L. C.</given-names>
            <surname>Paulson</surname>
          </string-name>
          , Isabelle:
          <string-name>
            <given-names>A Generic</given-names>
            <surname>Theorem</surname>
          </string-name>
          <string-name>
            <surname>Prover</surname>
          </string-name>
          , volume
          <volume>828</volume>
          ,
          <string-name>
            <surname>Springer</surname>
            <given-names>Science</given-names>
          </string-name>
          &amp; Business
          <string-name>
            <surname>Media</surname>
          </string-name>
          ,
          <year>1994</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>S. H.</given-names>
            <surname>Taqdees</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Hasan</surname>
          </string-name>
          ,
          <article-title>Formalization of Laplace Transform Using the Multivariable Calculus Theory of HOL-Light, in: Logic for Programming</article-title>
          ,
          <source>Artificial Intelligence, and Reasoning</source>
          , volume
          <volume>8312</volume>
          <source>of LNCS</source>
          , Springer,
          <year>2013</year>
          , pp.
          <fpage>744</fpage>
          -
          <lpage>758</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>