Abstract
Finite tables are commonly used in many hardware and software applications. In most theorem provers, tables are typically axiomatized using predicates over the table indices. For proving conjectures expressed using such tables, provers often have to resort to brute force case analysis, usually based on indices of a table. Resulting proofs can be unnecessarily complicated and lengthy. They are often inefficient to generate as well as difficult to understand. Large tables are often manually abstracted using predicates, which is error-prone; furthermore, the correctness of abstractions must be ensured. An approach for modeling finite tables as a special data structure is proposed for use in Rewrite Rule Laboratory (RRL), a theorem prover for mechanizing equational reasoning and induction based on rewrite techniques. Dontcare entries in tables can be handled explicitly. This approach allows tables to be handled directly without having to resort to any abstraction mechanism. For efficiently processing large tables, concepts of a sparse and weakly sparse tables are introduced based on how frequently particular values appear as table entries. Sparsity in the tables is exploited in correctness proofs by doing case analyses on the table entries rather on the indices. The generated cases are used to deduce constraints on the table indices. Additional domain information about table indices can then be used to further simplify constraints on indices and check them. The methodology is illustrated using a nontrivial correctness proof of the hardware SRT division circuit performed in RRL. 1536 cases originally needed in the correctness proof are reduced to 12 top level cases by using the proposed approach. Each individual top level case generated is much simpler, even though it may have additional subcases. The proposed approach is likely to provide similar gains for applications such as hardware circuits for square root and other arithmetic functions, in which much larger and multiple lookup tables, having structure similar to the sparse structure of the SRT table, are used
Partially supported by the National Science Foundation Grant no. CCR-9712366.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
References
E.M. Clarke, S.M. German and X. Zhao, “Verifying the SRT division algorithm using theorem proving techniques,” Proc. Computer Aided Verification, 8th Intl. Conf. Brunswick, August 1996, Springer LNCS 1102, 111–122.
Proc. of the IEEE International Symposium on Computer Arithmetic,, IEEE Computer Society 1995.
Proc. of the IEEE International Symposium on Computer Arithmetic,, IEEE Computer Society 1997.
M.P. Heimdahl and N. Leveson, “Consistency and completeness analyses of state-based requirements,” 17th Intl. Conf. on Software Eng., IEEE, 1995.
C. Heitmeyer, A. Bull, C. Gasarch, B. Labaw, “SCR*: A toolset for specifying and analyzing requirements,” In Proc. of COMPASS’95, IEEE 1995.
D.N. Hoover and Z. Chen, “Tablewise, a decision table tool”, In Proc. of COMPASS’95, IEEE 1995.
P.S. Miner and J.F. Leathrum Jr., “Verification of IEEE compliant subtractive division algorithm,” Proc. FMCAD’96, LNCS 1166, Palo Alto, CA, 1996.
D. Kapur, “Rewriting, decision procedures and lemma speculation for automated hardware verification,” Proc. 10th Intl. Conf. Theorem Proving in Higher Order Logics, LNCS 1275, 1997.
D. Kapur and X. Nie, “Reasoning about numbers in Tecton,” Proc. 8th Intl. Symp. Methodologies for Intelligent Systems, (ISMIS’94), October 1994.
D. Kapur, M. Subramaniam “Mechanizing Reasoning About Arithmetic Circuits: SRT Division,” In Proc. of 17th FSTTCS, LNCS (eds. Sivakumar and Ramesh), 1997.
A.R. Omondi, Computer Arithmetic Systems: Algorithms, Architecture and Imple-mentations, Prentice Hall 1994.
K.D. Tocher, “Techniques of multiplication and division for automatic binary com-puters,” Quarterly Journal of Mechanics and Applied Mathematics, 11(3), 1958.
G.S. Taylor, “Compatible hardware for division and square root,” Proc. 5th IEEE Symp. on Computer Architecture, May 1981.
S. Owre, J.R. Rushby, N. Shankar, “Integration in PVS: Tables, Types, and Model Checking,” Proc. of TACAS,, LNCS 1217, Springer Verlag, April 1997.
M.D. Ercegovac, T. Lang, “Radix-4 Square Root Without Initial PLA,” IEEE Trans. on Computers, Vol. 39. No. 8, Aug. 1990.
J.H. Zurawski, J.B. Gosling, “Design of a high speed square root multiply and divide unit”, IEEE Trans. on Computers, vol. C-36, 1987.
D.D. Sarma and D. Matula, “Measuring the Accuracy of ROM Reciprocal Tables”, IEEE Int. Symp. on Comput. Arithmetic, IEEE Computer Society, 1993.
H. Ruess, N. Shankar and M.K. Srivas, “Modular verification of SRT division,” Proc. Computer Aided Verification, 8th Intl. Conf.-CAV’96, New Brunswick, 1996, Springer LNCS 1102 (eds. Alur and Henzinger).
J.E. Robertson, “A new class of digital division methods,” IRE Trans. on Electronic Computers, 1958, 218–222.
H. Zhang, D. Kapur, and M.S. Krishnamoorthy, “dA mechanizable induction principle for equational specifications,” Proc. 9th (CADE), Springer LNCS 310, 1988.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 1998 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Kapur, D., Subramaniam, M. (1998). Mechanizing Reasoning about Large Finite Tables in a Rewrite Based Theorem Prover. In: Hsiang, J., Ohori, A. (eds) Advances in Computing Science ASIAN 98. ASIAN 1998. Lecture Notes in Computer Science, vol 1538. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-49366-2_3
Download citation
DOI: https://doi.org/10.1007/3-540-49366-2_3
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-65388-2
Online ISBN: 978-3-540-49366-2
eBook Packages: Springer Book Archive