How To Install cvc4 on Fedora 34

cvc4 is Automatic theorem prover for SMT problems

Introduction

In this tutorial we learn how to install cvc4 on Fedora 34.

What is cvc4

CVC4 is an efficient open-source automatic theorem prover for satisfiability modulo theories (SMT) problems. It can be used to prove the validity (or, dually, the satisfiability) of first-order formulas in a large number of built-in logical theories and their combination. CVC4 is the fourth in the Cooperating Validity Checker family of tools (CVC, CVC Lite, CVC3) but does not directly incorporate code from any previous version. A joint project of NYU and U Iowa, CVC4 aims to support the features of CVC3 and SMT-LIBv2 while optimizing the design of the core system architecture and decision procedures to take advantage of recent engineering and algorithmic advances. CVC4 is intended to be an open and extensible SMT engine, and it can be used as a stand-alone tool or as a library, with essentially no limit on its use for research or commercial purposes.

We can use yum or dnf to install cvc4 on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install cvc4.

Install cvc4 on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install cvc4 using dnf by running the following command:

sudo dnf -y install cvc4

Install cvc4 on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install cvc4 using yum by running the following command:

sudo yum -y install cvc4

How To Uninstall cvc4 on Fedora 34

To uninstall only the cvc4 package we can use the following command:

sudo dnf remove cvc4

cvc4 Package Contents on Fedora 34

/usr/bin/cvc4
/usr/lib/.build-id
/usr/lib/.build-id/88
/usr/lib/.build-id/88/7e8b02a657d09f7fc1172987c178d147beda87
/usr/share/cvc4
/usr/share/cvc4/drat.plf
/usr/share/cvc4/er.plf
/usr/share/cvc4/lrat.plf
/usr/share/cvc4/sat.plf
/usr/share/cvc4/smt.plf
/usr/share/cvc4/th_arrays.plf
/usr/share/cvc4/th_base.plf
/usr/share/cvc4/th_bv.plf
/usr/share/cvc4/th_bv_bitblast.plf
/usr/share/cvc4/th_bv_rewrites.plf
/usr/share/cvc4/th_int.plf
/usr/share/cvc4/th_lira.plf
/usr/share/cvc4/th_real.plf
/usr/share/doc/cvc4
/usr/share/doc/cvc4/AUTHORS
/usr/share/doc/cvc4/NEWS
/usr/share/doc/cvc4/README.md
/usr/share/doc/cvc4/THANKS
/usr/share/man/man1/cvc4.1.gz
/usr/share/man/man5/cvc4.5.gz
/usr/bin/cvc4
/usr/lib/.build-id
/usr/lib/.build-id/ed
/usr/lib/.build-id/ed/763ee1db3338948a911a8f2f2c5c5e11687382
/usr/share/cvc4
/usr/share/cvc4/drat.plf
/usr/share/cvc4/er.plf
/usr/share/cvc4/lrat.plf
/usr/share/cvc4/sat.plf
/usr/share/cvc4/smt.plf
/usr/share/cvc4/th_arrays.plf
/usr/share/cvc4/th_base.plf
/usr/share/cvc4/th_bv.plf
/usr/share/cvc4/th_bv_bitblast.plf
/usr/share/cvc4/th_bv_rewrites.plf
/usr/share/cvc4/th_int.plf
/usr/share/cvc4/th_lira.plf
/usr/share/cvc4/th_real.plf
/usr/share/doc/cvc4
/usr/share/doc/cvc4/AUTHORS
/usr/share/doc/cvc4/NEWS
/usr/share/doc/cvc4/README.md
/usr/share/doc/cvc4/THANKS
/usr/share/man/man1/cvc4.1.gz
/usr/share/man/man5/cvc4.5.gz

References

Summary

In this tutorial we learn how to install cvc4 on Fedora 34 using yum and dnf.