Abstract
Propositional Projection Temporal Logic (PPTL) has been widely used in formal verification, and its expressiveness is suitable for the description of security requirements. However, the expression and application of temporal logic formulas rely on a strong mathematical background, which is difficult for non-domain experts, thus bridging the chasm between natural language descriptions and formal languages is urgently needed. This paper proposes an innovative architecture for neural machine automatic translation named NL2PPTL, which transforms natural language into PPTL specification via utilizing data preprocessing, encoder-decoder network and stack sequentially. To evaluate the performance of our method, the experimental verification is realized on real datasets. The experiment conducted shows that our method has effectiveness on temporal logic specification generation.
Supported by National Natural Science Foundation of China (61972301, 61672403), Key Research and Development Program of Shaanxi Province of China (2020GY-043), Shaanxi Innovative Research Team for Key Science and Technology (2019TD-001), and Xi’an Science and Technology Project (22GXFW0025).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Abie, H., Aredo, D.B., Kristoffersen, T., Mazaher, S., Raguin, T.: Integrating a security requirement language with UML. In: Baar, T., Strohmeier, A., Moreira, A., Mellor, S.J. (eds.) UML 2004. LNCS, vol. 3273, pp. 350–364. Springer, Heidelberg (2004). https://doi.org/10.1007/978-3-540-30187-5_25
Acharya, S., Mohanty, H., George, C.: Domain consistency in requirements specification. In: Fifth International Conference on Quality Software (QSIC 2005), pp. 231–238. IEEE (2005)
Ameur, Y.A., Boniol, F., Wiels, V.: Toward a wider use of formal methods for aerospace systems design and verification. Int. J. Softw. Tools Technol. Transf. 12(1), 1–7 (2010)
Brunello, A., Montanari, A., Reynolds, M.: Synthesis of LTL formulas from natural language texts: State of the art and research directions. In: 26th International Symposium on Temporal Representation and Reasoning (TIME 2019). Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik (2019)
Buzhinsky, I.: Formalization of natural language requirements into temporal logics: a survey. In: 2019 IEEE 17th International Conference on Industrial Informatics (INDIN), vol. 1, pp. 400–406. IEEE (2019)
Cho, K., et al.: Learning phrase representations using RNN encoder-decoder for statistical machine translation. arXiv preprint arXiv:1406.1078 (2014)
Duan, Z.: An extended interval temporal logic and a framing technique for temporal logic programming. Ph.D. thesis, Newcastle University (1996)
Duan, Z., Tian, C., Yang, M., He, J.: Bounded model checking for propositional projection temporal logic. In: Du, D.-Z., Zhang, G. (eds.) COCOON 2013. LNCS, vol. 7936, pp. 591–602. Springer, Heidelberg (2013). https://doi.org/10.1007/978-3-642-38768-5_52
Emerson, E.A., Sistla, A.P.: Deciding full branching time logic. Inf. Control 61(3), 175–201 (1984)
Flake, S., Müller, W., Ruf, J.: Structured English for model checking specification. In: MBMV, pp. 99–108 (2000)
Gong, Y., Chuan, C.H., Yongwei, Z., Sakauchi, M.: A generic video parsing system with a scene description language (SDL). Real-Time Imaging 2(1), 45–59 (1996)
Guo, J., et al.: Towards complex text-to-SQL in cross-domain database with intermediate representation. arXiv preprint arXiv:1905.08205 (2019)
Hsiung, E., et al.: Generalizing to new domains by mapping natural language to lifted LTL. In: 2022 International Conference on Robotics and Automation (ICRA), pp. 3624–3630. IEEE (2022)
Hu, K., Duan, Z., Wang, J., Gao, L., Shang, L.: Template-based AADL automatic code generation. Front. Comput. Sci. 13(4), 698–714 (2019)
Kasenberg, D., Scheutz, M.: Interpretable apprenticeship learning with temporal logic specifications. In: 2017 IEEE 56th Annual Conference on Decision and Control (CDC), pp. 4914–4921. IEEE (2017)
Khan, N.A., Jhanjhi, N.Z., Brohi, S.N., Nayyar, A.: Emerging use of UAV’s: secure communication protocol issues and challenges. In: Drones in Smart-Cities, pp. 37–55. Elsevier (2020)
Li, B., Hou, Y., Che, W.: Data augmentation approaches in natural language processing: a survey. CoRR (2021)
Mandal, S., Naskar, S.K.: Natural language programing with automatic code generation towards solving addition-subtraction word problems. In: Proceedings of the 14th International Conference on Natural Language Processing (ICON-2017), pp. 146–154 (2017)
Manning, C.D., Surdeanu, M., Bauer, J., Finkel, J.R., Bethard, S., McClosky, D.: The stanford CoreNLP natural language processing toolkit. In: Proceedings of 52nd Annual Meeting of the Association for Computational Linguistics: System Demonstrations, pp. 55–60 (2014)
Papineni, K., Roukos, S., Ward, T., Zhu, W.J.: BLEU: a method for automatic evaluation of machine translation. In: Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics, pp. 311–318 (2002)
Pnueli, A.: The temporal logic of programs. In: 18th Annual Symposium on Foundations of Computer Science (SFCS 1977), pp. 46–57. IEEE (1977)
Qureshi, Z.H.: Formal modelling and analysis of mission-critical software in military avionics systems. In: Proceedings of the Eleventh Australian Workshop on Safety Critical Systems and Software, vol. 69, pp. 67–77 (2007)
Sedo, S., Seong, P.H.: A comparative study of formal methods for safety critical software in nuclear power plant. Nucl. Eng. Technol. 32(6), 537–548 (2000)
Seshia, S.A., Sadigh, D., Sastry, S.S.: Formal methods for semi-autonomous driving. In: 2015 52nd ACM/EDAC/IEEE Design Automation Conference (DAC), pp. 1–5. IEEE (2015)
Sheridan, D.: GoldMine: an integration of data mining and static analysis for automatic generation of hardware assertions (2011)
Shi, Y., Tian, C., Duan, Z., Zhou, M.: Model checking petri nets with MSVL. Inf. Sci. 363, 274–291 (2016)
Shu, X., Zhang, N., Wang, X., Zhao, L.: Efficient decision procedure for propositional projection temporal logic. Theor. Comput. Sci. 838, 1–16 (2020)
Specification, A., Bialkowski, J., Diaz, J., Buttner, A., Evan, M.R., Wittbold, J.: Application vulnerability description (2004)
Srivastava, S., Azaria, A., Mitchell, T.M.: Parsing natural language conversations using contextual cues. In: IJCAI, pp. 4089–4095 (2017)
Stratica, N., Kosseim, L., Desai, B.C.: NLIDB templates for semantic parsing. In: Natural Language Processing and Information Systems (2003)
Tian, C., Duan, Z.: Expressiveness of propositional projection temporal logic with star. Theor. Comput. Sci. 412(18), 1729–1744 (2011)
Wang, X., Li, G., Li, C., Zhao, L., Shu, X.: Automatic generation of specification from natural language based on temporal logic. In: Xue, J., Nagoya, F., Liu, S., Duan, Z. (eds.) SOFL+MSVL 2020. LNCS, vol. 12723, pp. 154–171. Springer, Cham (2021). https://doi.org/10.1007/978-3-030-77474-5_11
Wang, X., Yang, K., Wang, Y., Zhao, L., Shu, X.: Towards formal verification of neural networks: a temporal logic based framework. In: Miao, H., Tian, C., Liu, S., Duan, Z. (eds.) SOFL+MSVL 2019. LNCS, vol. 12028, pp. 73–87. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-41418-4_6
Wang, X., Yang, X., Li, C.: A formal verification method for smart contract. In: 2020 7th International Conference on Dependable Systems and their Applications (DSA), pp. 31–36. IEEE (2020)
Xu, F.F., Jiang, Z., Yin, P., Vasilescu, B., Neubig, G.: Incorporating external knowledge through pre-training for natural language to code generation. arXiv preprint arXiv:2004.09015 (2020)
Yan, R., Cheng, C.H., Chai, Y.: Formal consistency checking over specifications in natural languages. In: 2015 Design, Automation & Test in Europe Conference & Exhibition (DATE), pp. 1677–1682. IEEE (2015)
Zhang, J., Yang, L., Cao, W., Wang, Q.: Formal analysis of 5G EAP-TLS authentication protocol using proverif. IEEE Access 8, 23674–23688 (2020)
Zhang, N., Wang, M., Duan, Z., Tian, C.: Verifying properties of mapreduce-based big data processing. IEEE Trans. Reliab. (2020)
Zhang, N., Yang, M., Gu, B., Duan, Z., Tian, C.: Verifying safety critical task scheduling systems in PPTL axiom system. J. Comb. Optim. 31(2), 577–603 (2016)
Zhu, W.: PPTL model checking for blockchains. In: 2020 IEEE 5th Information Technology and Mechatronics Engineering Conference (ITOEC), pp. 792–795. IEEE (2020)
Zhu, Y., Zhang, Y., Yang, H., Wang, F.: GANCoder: an automatic natural language-to-programming language translation approach based on GAN. In: Tang, J., Kan, M.-Y., Zhao, D., Li, S., Zan, H. (eds.) NLPCC 2019. LNCS (LNAI), vol. 11839, pp. 529–539. Springer, Cham (2019). https://doi.org/10.1007/978-3-030-32236-6_48
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Li, C., Chang, J., Wang, X., Zhao, L., Mao, W. (2023). Formalization of Natural Language into PPTL Specification via Neural Machine Translation. In: Liu, S., Duan, Z., Liu, A. (eds) Structured Object-Oriented Formal Language and Method. SOFL+MSVL 2022. Lecture Notes in Computer Science, vol 13854. Springer, Cham. https://doi.org/10.1007/978-3-031-29476-1_7
Download citation
DOI: https://doi.org/10.1007/978-3-031-29476-1_7
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-29475-4
Online ISBN: 978-3-031-29476-1
eBook Packages: Computer ScienceComputer Science (R0)