Skip to main content

A high-level functional language for writing mathematically-precise specifications for neural networks.

Project description

PyPI GitHub tag (latest by date) GitHub Workflow Status readthedocs status pre-commit.ci status

Vehicle

Vehicle is a system for embedding logical specifications into neural networks. At its heart is the Vehicle specification language, a high-level, functional language for writing mathematically-precise specifications for your networks. For example, the following simple specification says that a network's output should be monotonically increasing with respect to its third input.

Example specification

These specifications can then automatically be compiled down to loss functions to be used when training your network. After training, the same specification can be compiled down to low-level neural network verifiers such as Marabou which either prove that the specification holds or produce a counter-example. Such a proof is far better than simply testing, as you can prove that the specification holds for all inputs. Verified specifications can also be exported to interactive theorem provers (ITPs) such as Agda. This in turn allows for the formal verification of larger software systems that use neural networks as subcomponents. The generated ITP code is tightly linked to the actual deployed network, so changes to the network will result in errors when checking the larger proof.

Documentation

Examples

Each of the following examples comes with an explanatory README file:

  • ACAS Xu - The complete specification of the ACAS Xu collision avoidance system from the Reluplex paper in a single file.

  • Car controller - A neural network controller that is formally proven to always keep a simple model of a car on the road in the face of noisy sensor data and an unpredictable cross-wind.

  • MNIST robustness - A classifier for the MNIST dataset that is proven to be robust around the images in the dataset.

In addition to the above, further examples of specifications can be found in the test suite and the corresponding output of the Vehicle compiler can be found here.

Support

If you are interested in adding support for a particular format/verifier/ITP then open an issue on the Issue Tracker to discuss it with us.

Neural network formats

Dataset formats

Verifier backends

Interactive Theorem Prover backends

Related papers

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

vehicle_lang-0.24.0-cp313-cp313-win_amd64.whl (13.5 MB view details)

Uploaded CPython 3.13Windows x86-64

vehicle_lang-0.24.0-cp313-cp313-musllinux_1_1_x86_64.whl (22.9 MB view details)

Uploaded CPython 3.13musllinux: musl 1.1+ x86-64

vehicle_lang-0.24.0-cp313-cp313-manylinux_2_28_x86_64.whl (22.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

vehicle_lang-0.24.0-cp313-cp313-macosx_11_0_arm64.whl (18.0 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

vehicle_lang-0.24.0-cp313-cp313-macosx_10_13_x86_64.whl (18.6 MB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

vehicle_lang-0.24.0-cp312-cp312-win_amd64.whl (13.5 MB view details)

Uploaded CPython 3.12Windows x86-64

vehicle_lang-0.24.0-cp312-cp312-musllinux_1_1_x86_64.whl (22.9 MB view details)

Uploaded CPython 3.12musllinux: musl 1.1+ x86-64

vehicle_lang-0.24.0-cp312-cp312-manylinux_2_28_x86_64.whl (22.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

vehicle_lang-0.24.0-cp312-cp312-macosx_11_0_arm64.whl (18.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

vehicle_lang-0.24.0-cp312-cp312-macosx_10_13_x86_64.whl (18.6 MB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

vehicle_lang-0.24.0-cp311-cp311-win_amd64.whl (13.5 MB view details)

Uploaded CPython 3.11Windows x86-64

vehicle_lang-0.24.0-cp311-cp311-musllinux_1_1_x86_64.whl (22.9 MB view details)

Uploaded CPython 3.11musllinux: musl 1.1+ x86-64

vehicle_lang-0.24.0-cp311-cp311-manylinux_2_28_x86_64.whl (22.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

vehicle_lang-0.24.0-cp311-cp311-macosx_11_0_arm64.whl (18.0 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

vehicle_lang-0.24.0-cp311-cp311-macosx_10_10_x86_64.whl (18.6 MB view details)

Uploaded CPython 3.11macOS 10.10+ x86-64

vehicle_lang-0.24.0-cp310-cp310-win_amd64.whl (13.5 MB view details)

Uploaded CPython 3.10Windows x86-64

vehicle_lang-0.24.0-cp310-cp310-musllinux_1_1_x86_64.whl (22.9 MB view details)

Uploaded CPython 3.10musllinux: musl 1.1+ x86-64

vehicle_lang-0.24.0-cp310-cp310-manylinux_2_28_x86_64.whl (22.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

vehicle_lang-0.24.0-cp310-cp310-macosx_11_0_arm64.whl (18.0 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

vehicle_lang-0.24.0-cp310-cp310-macosx_10_10_x86_64.whl (18.6 MB view details)

Uploaded CPython 3.10macOS 10.10+ x86-64

File details

Details for the file vehicle_lang-0.24.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for vehicle_lang-0.24.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 5c816554152b210196349bd40a08855e80427f443daa3923fab6881d67afd86b
MD5 691685eda9b2c8d83fdcad5b259c2b81
BLAKE2b-256 278c9cd7c982d02fad8f0e636df6d84b696022684bee9df70a2d2405562e995a

See more details on using hashes here.

Provenance

The following attestation bundles were made for vehicle_lang-0.24.0-cp313-cp313-win_amd64.whl:

Publisher: ci.yml on vehicle-lang/vehicle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vehicle_lang-0.24.0-cp313-cp313-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for vehicle_lang-0.24.0-cp313-cp313-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 1101027619f8785c63d1d938a0c0cc83490392e7d32b885ab3f1497ea65e8a8b
MD5 cda575c48e2af30c26d1b7af272cc5f3
BLAKE2b-256 95030f853d4804ca633905735bc4ca4f9b014b161bbcf2dde8fd924307cfcb08

See more details on using hashes here.

Provenance

The following attestation bundles were made for vehicle_lang-0.24.0-cp313-cp313-musllinux_1_1_x86_64.whl:

Publisher: ci.yml on vehicle-lang/vehicle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vehicle_lang-0.24.0-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for vehicle_lang-0.24.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9a43ced072d29b8e2b5552c2d5de7b842b1a36d019d8b6ef6e04393ac2e09150
MD5 c7866f845b0ff1fde1232bddd3c8b1fa
BLAKE2b-256 b440ecd1b0e3818112df15d9e5750689fa9b08b01c92e69ebe78bf9bc0979995

See more details on using hashes here.

Provenance

The following attestation bundles were made for vehicle_lang-0.24.0-cp313-cp313-manylinux_2_28_x86_64.whl:

Publisher: ci.yml on vehicle-lang/vehicle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vehicle_lang-0.24.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for vehicle_lang-0.24.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7281543e4864ee1f5c76fa7ab32e2e66afe6dbd45fa3d4b58aeed8739ae7427e
MD5 632f59af4f7bb3a6d5a03d522e5abbfd
BLAKE2b-256 0acef8da12ce68ec8bf0d3c088efc82c1148752a692fd13cee470de72ebda624

See more details on using hashes here.

Provenance

The following attestation bundles were made for vehicle_lang-0.24.0-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: ci.yml on vehicle-lang/vehicle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vehicle_lang-0.24.0-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for vehicle_lang-0.24.0-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 2a55f19d0e4212beca4255522eaefbdd73fa2d302405c3fb4c827208ffcf6c52
MD5 46dc3592a60a506bf7a00f8df5c4bd12
BLAKE2b-256 dd4908057a9f46d05f86614d24a36355c6cb9d75e1f2782377d4427ca6cced1a

See more details on using hashes here.

Provenance

The following attestation bundles were made for vehicle_lang-0.24.0-cp313-cp313-macosx_10_13_x86_64.whl:

Publisher: ci.yml on vehicle-lang/vehicle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vehicle_lang-0.24.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for vehicle_lang-0.24.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6f2a48bf7341419559acf88bc61d0ef879fef61eb6d66713c0d2274abb14fe64
MD5 af5fa260e1957095e37ffa8cc204196f
BLAKE2b-256 dee2f98a0b325c8320e27bc5e29346747bc68f00c9d4e11251a4148c38fc2360

See more details on using hashes here.

Provenance

The following attestation bundles were made for vehicle_lang-0.24.0-cp312-cp312-win_amd64.whl:

Publisher: ci.yml on vehicle-lang/vehicle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vehicle_lang-0.24.0-cp312-cp312-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for vehicle_lang-0.24.0-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 252cbbeae190bf383278f74d5214542e1bfd995f4d413032f7aaae965478a1e3
MD5 1f6ca8c2e1884c79ae9e51ea3f4da7f8
BLAKE2b-256 b0ff63a79c3f4b0fba68823f34facbe9e61e2afce37f8d61340b96908ac96921

See more details on using hashes here.

Provenance

The following attestation bundles were made for vehicle_lang-0.24.0-cp312-cp312-musllinux_1_1_x86_64.whl:

Publisher: ci.yml on vehicle-lang/vehicle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vehicle_lang-0.24.0-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for vehicle_lang-0.24.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3a6bcfda368b02c752c5c5ffe96b7a541552e4fca5b28f6133afed316fbea009
MD5 49190054c8c45970beda6aa4332b88d9
BLAKE2b-256 fad8e926ae6518e053390238069aaf389fcf6a958ec4a8c1c25f61a6589f8be3

See more details on using hashes here.

Provenance

The following attestation bundles were made for vehicle_lang-0.24.0-cp312-cp312-manylinux_2_28_x86_64.whl:

Publisher: ci.yml on vehicle-lang/vehicle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vehicle_lang-0.24.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for vehicle_lang-0.24.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 48e6f3d7046327b43d4e5f08526eddff6c408ffc2d0d0433138e1b2f7a021476
MD5 b567a75cd4accf08fd2682b7bbc7c493
BLAKE2b-256 208084da71cf38f516ac4e09bcf8adae478dba780a762ffd3ec05996decda0fd

See more details on using hashes here.

Provenance

The following attestation bundles were made for vehicle_lang-0.24.0-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: ci.yml on vehicle-lang/vehicle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vehicle_lang-0.24.0-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for vehicle_lang-0.24.0-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 0ef4bf2b14cfd53c070e6e34bf8c6d8009767e76dde82eacf0381c8204846351
MD5 1c88398569a9317ebe2ca340d67d0db9
BLAKE2b-256 67ba2a82079350af0db4074a7344cd9e0afdc787187ade575f59330a135afcbd

See more details on using hashes here.

Provenance

The following attestation bundles were made for vehicle_lang-0.24.0-cp312-cp312-macosx_10_13_x86_64.whl:

Publisher: ci.yml on vehicle-lang/vehicle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vehicle_lang-0.24.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for vehicle_lang-0.24.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 48b0069e70a4d7be4487d3b3564245eea2d499470b394fe3cb02335794492c19
MD5 ad5b5f1ed69b3ada02bef39ab6b13fca
BLAKE2b-256 816e1dc3fcbda6405b4d279c2ceb2c6d82e993859ff13a8d0e3dd986ff05999d

See more details on using hashes here.

Provenance

The following attestation bundles were made for vehicle_lang-0.24.0-cp311-cp311-win_amd64.whl:

Publisher: ci.yml on vehicle-lang/vehicle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vehicle_lang-0.24.0-cp311-cp311-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for vehicle_lang-0.24.0-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 13bdf52670efe832f596eac522ae832aeabdf2d0c385717a11e46b12e3343393
MD5 a7bb4765bcff828c58850606eba39a54
BLAKE2b-256 9f412f4783ce63b3ab12e0e1e3a2a2e3c132547e4eace05b70ac8157a82ed68e

See more details on using hashes here.

Provenance

The following attestation bundles were made for vehicle_lang-0.24.0-cp311-cp311-musllinux_1_1_x86_64.whl:

Publisher: ci.yml on vehicle-lang/vehicle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vehicle_lang-0.24.0-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for vehicle_lang-0.24.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ea905100aa5b98a3dff72679a2b1827f644e7fbf269519a11711dca216419dc6
MD5 7e299e3ec51c59bef52b20f0406c77c3
BLAKE2b-256 49270c1225a907429d0f3ce69d909afd2857754208df26088c091cd130445fc0

See more details on using hashes here.

Provenance

The following attestation bundles were made for vehicle_lang-0.24.0-cp311-cp311-manylinux_2_28_x86_64.whl:

Publisher: ci.yml on vehicle-lang/vehicle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vehicle_lang-0.24.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for vehicle_lang-0.24.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f2bb67f87dcdac863e82c318fdd13fc0e7d0cdec02e64dcd06016888fa3317d1
MD5 f9e2d2c796c1d057796a09991a1dd0bc
BLAKE2b-256 3dcceed9172e74dafa52f39e3b64670426f9f0ce18ac647c9f202130fdb03082

See more details on using hashes here.

Provenance

The following attestation bundles were made for vehicle_lang-0.24.0-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: ci.yml on vehicle-lang/vehicle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vehicle_lang-0.24.0-cp311-cp311-macosx_10_10_x86_64.whl.

File metadata

File hashes

Hashes for vehicle_lang-0.24.0-cp311-cp311-macosx_10_10_x86_64.whl
Algorithm Hash digest
SHA256 fa540d75da4876c87172fa5e17b23e6138c3113128a8bee8cab97732cb894681
MD5 6d7f6b81344d937f9f0a5a05ee6818da
BLAKE2b-256 385a075c3ac4a6b299e0835fbd2e367424a371e8a45142e910dfdcbd951c52f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for vehicle_lang-0.24.0-cp311-cp311-macosx_10_10_x86_64.whl:

Publisher: ci.yml on vehicle-lang/vehicle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vehicle_lang-0.24.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for vehicle_lang-0.24.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 cc64ae3a87f0447958e83ac17b078cef4304b3abf1faea4a475aaa5439e7e6a2
MD5 c16386d4e3494f98fb1f2306b86f60df
BLAKE2b-256 6e7a530ee2a023112344413df5e8015aaab07ddf3b6341d6fc9114b29ac58d82

See more details on using hashes here.

Provenance

The following attestation bundles were made for vehicle_lang-0.24.0-cp310-cp310-win_amd64.whl:

Publisher: ci.yml on vehicle-lang/vehicle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vehicle_lang-0.24.0-cp310-cp310-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for vehicle_lang-0.24.0-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 c044c2ad10219fb03047781a06ad5c36c16ceafc3ccd63c1914e23aca02efe02
MD5 72dd178ce14936acde21262cfaede3db
BLAKE2b-256 3677106ba128ea722aa8b5568d2de93787c92a99a5a60245b2e0d31f0b2961ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for vehicle_lang-0.24.0-cp310-cp310-musllinux_1_1_x86_64.whl:

Publisher: ci.yml on vehicle-lang/vehicle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vehicle_lang-0.24.0-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for vehicle_lang-0.24.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ccb2c8a6633c65776b87af9a0800d1755bb5b41a74e38f7652bfbf0f774ba865
MD5 b4cbf6d255215bdf962bfa1725a6ab20
BLAKE2b-256 d3aeb92f00740f5c521110f05e9544e4d3a1ccc051f0394e50358d4d222d08f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for vehicle_lang-0.24.0-cp310-cp310-manylinux_2_28_x86_64.whl:

Publisher: ci.yml on vehicle-lang/vehicle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vehicle_lang-0.24.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for vehicle_lang-0.24.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6dc18362e26ecbc69a80eddeb96dfff5296fa8bd8700864950e11da233357dcd
MD5 d430d08a385df54c0740631b39193907
BLAKE2b-256 e2ce60c25a8dc4e29c062e731ef0ad97f0d5ce90f494c3ab16d3b32163565ce0

See more details on using hashes here.

Provenance

The following attestation bundles were made for vehicle_lang-0.24.0-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: ci.yml on vehicle-lang/vehicle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vehicle_lang-0.24.0-cp310-cp310-macosx_10_10_x86_64.whl.

File metadata

File hashes

Hashes for vehicle_lang-0.24.0-cp310-cp310-macosx_10_10_x86_64.whl
Algorithm Hash digest
SHA256 78433c055e8b3987c4fa7e984a63c657cc2ef31c484d14ba9dc6a870332690ea
MD5 981b2aa9f89d53611aefff24eaa4f3ef
BLAKE2b-256 01b9357333c17351d7619587bb8b0a66827823aad152da959741d67ede49617c

See more details on using hashes here.

Provenance

The following attestation bundles were made for vehicle_lang-0.24.0-cp310-cp310-macosx_10_10_x86_64.whl:

Publisher: ci.yml on vehicle-lang/vehicle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page