mocha-model-checking 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. mocha_model_checking-0.1.0/.github/scripts/smoke_base_install.py +60 -0
  2. mocha_model_checking-0.1.0/CHANGELOG.md +30 -0
  3. mocha_model_checking-0.1.0/CONTRIBUTING.md +177 -0
  4. mocha_model_checking-0.1.0/LICENCE +340 -0
  5. mocha_model_checking-0.1.0/MANIFEST.in +6 -0
  6. mocha_model_checking-0.1.0/PKG-INFO +587 -0
  7. mocha_model_checking-0.1.0/README.md +557 -0
  8. mocha_model_checking-0.1.0/docs/ltl.md +191 -0
  9. mocha_model_checking-0.1.0/examples/invariant_checking.py +79 -0
  10. mocha_model_checking-0.1.0/examples/typed_usage.py +40 -0
  11. mocha_model_checking-0.1.0/pyproject.toml +69 -0
  12. mocha_model_checking-0.1.0/setup.cfg +4 -0
  13. mocha_model_checking-0.1.0/src/mocha/__init__.py +199 -0
  14. mocha_model_checking-0.1.0/src/mocha/algorithms/__init__.py +159 -0
  15. mocha_model_checking-0.1.0/src/mocha/algorithms/automata.py +205 -0
  16. mocha_model_checking-0.1.0/src/mocha/algorithms/invariance.py +166 -0
  17. mocha_model_checking-0.1.0/src/mocha/algorithms/ltl2gnba/__init__.py +75 -0
  18. mocha_model_checking-0.1.0/src/mocha/algorithms/ltl2gnba/acceptance.py +199 -0
  19. mocha_model_checking-0.1.0/src/mocha/algorithms/ltl2gnba/elementary_set_enumeration.py +360 -0
  20. mocha_model_checking-0.1.0/src/mocha/algorithms/ltl2gnba/elementary_set_validation.py +312 -0
  21. mocha_model_checking-0.1.0/src/mocha/algorithms/ltl2gnba/initial_states.py +116 -0
  22. mocha_model_checking-0.1.0/src/mocha/algorithms/ltl2gnba/pipeline.py +137 -0
  23. mocha_model_checking-0.1.0/src/mocha/algorithms/ltl2gnba/transitions.py +327 -0
  24. mocha_model_checking-0.1.0/src/mocha/algorithms/ltl_model_checking.py +313 -0
  25. mocha_model_checking-0.1.0/src/mocha/algorithms/ltl_satisfiability_validity.py +308 -0
  26. mocha_model_checking-0.1.0/src/mocha/algorithms/ltl_transformations.py +291 -0
  27. mocha_model_checking-0.1.0/src/mocha/algorithms/persistence.py +259 -0
  28. mocha_model_checking-0.1.0/src/mocha/algorithms/reachability.py +143 -0
  29. mocha_model_checking-0.1.0/src/mocha/algorithms/trace.py +22 -0
  30. mocha_model_checking-0.1.0/src/mocha/io/__init__.py +20 -0
  31. mocha_model_checking-0.1.0/src/mocha/io/ltl.py +195 -0
  32. mocha_model_checking-0.1.0/src/mocha/io/schemas/__init__.py +1 -0
  33. mocha_model_checking-0.1.0/src/mocha/io/schemas/transition-system.schema.json +95 -0
  34. mocha_model_checking-0.1.0/src/mocha/io/transition_system.py +136 -0
  35. mocha_model_checking-0.1.0/src/mocha/logic/__init__.py +5 -0
  36. mocha_model_checking-0.1.0/src/mocha/logic/_syntax.py +8 -0
  37. mocha_model_checking-0.1.0/src/mocha/logic/ltl.py +179 -0
  38. mocha_model_checking-0.1.0/src/mocha/models/__init__.py +37 -0
  39. mocha_model_checking-0.1.0/src/mocha/models/automaton.py +604 -0
  40. mocha_model_checking-0.1.0/src/mocha/models/transition_system.py +535 -0
  41. mocha_model_checking-0.1.0/src/mocha/py.typed +0 -0
  42. mocha_model_checking-0.1.0/src/mocha/visualisation/__init__.py +55 -0
  43. mocha_model_checking-0.1.0/src/mocha/visualisation/automaton.py +170 -0
  44. mocha_model_checking-0.1.0/src/mocha/visualisation/invariance.py +84 -0
  45. mocha_model_checking-0.1.0/src/mocha/visualisation/overlay.py +24 -0
  46. mocha_model_checking-0.1.0/src/mocha/visualisation/persistence.py +48 -0
  47. mocha_model_checking-0.1.0/src/mocha/visualisation/reachability.py +35 -0
  48. mocha_model_checking-0.1.0/src/mocha/visualisation/transition_system.py +252 -0
  49. mocha_model_checking-0.1.0/src/mocha_model_checking.egg-info/PKG-INFO +587 -0
  50. mocha_model_checking-0.1.0/src/mocha_model_checking.egg-info/SOURCES.txt +70 -0
  51. mocha_model_checking-0.1.0/src/mocha_model_checking.egg-info/dependency_links.txt +1 -0
  52. mocha_model_checking-0.1.0/src/mocha_model_checking.egg-info/requires.txt +8 -0
  53. mocha_model_checking-0.1.0/src/mocha_model_checking.egg-info/top_level.txt +1 -0
  54. mocha_model_checking-0.1.0/tests/test_automata.py +238 -0
  55. mocha_model_checking-0.1.0/tests/test_automaton.py +339 -0
  56. mocha_model_checking-0.1.0/tests/test_automaton_visualisation.py +283 -0
  57. mocha_model_checking-0.1.0/tests/test_elementary_set_enumeration.py +154 -0
  58. mocha_model_checking-0.1.0/tests/test_elementary_set_validation.py +248 -0
  59. mocha_model_checking-0.1.0/tests/test_invariance.py +203 -0
  60. mocha_model_checking-0.1.0/tests/test_ltl.py +468 -0
  61. mocha_model_checking-0.1.0/tests/test_ltl_gnba.py +280 -0
  62. mocha_model_checking-0.1.0/tests/test_ltl_model_checking.py +186 -0
  63. mocha_model_checking-0.1.0/tests/test_ltl_satisfiability_validity.py +134 -0
  64. mocha_model_checking-0.1.0/tests/test_ltl_trace.py +82 -0
  65. mocha_model_checking-0.1.0/tests/test_ltl_transitions.py +345 -0
  66. mocha_model_checking-0.1.0/tests/test_ltl_visualisation.py +54 -0
  67. mocha_model_checking-0.1.0/tests/test_persistence.py +132 -0
  68. mocha_model_checking-0.1.0/tests/test_persistence_visualisation.py +75 -0
  69. mocha_model_checking-0.1.0/tests/test_reachability.py +74 -0
  70. mocha_model_checking-0.1.0/tests/test_transition_system.py +427 -0
  71. mocha_model_checking-0.1.0/tests/test_transition_system_io.py +138 -0
  72. mocha_model_checking-0.1.0/tests/test_transition_system_visualisation.py +140 -0
@@ -0,0 +1,60 @@
1
+ """Exercise the installed base package without its visualisation dependency."""
2
+
3
+ from importlib import import_module
4
+ from importlib.util import find_spec
5
+
6
+
7
+ def main() -> None:
8
+ assert find_spec("graphviz") is None, "The base installation includes graphviz"
9
+
10
+ import mocha
11
+ from mocha.algorithms import (
12
+ check_invariant,
13
+ check_persistence,
14
+ compute_reachable_states,
15
+ )
16
+ from mocha.io import from_dict, to_dict
17
+
18
+ # Importing the namespace should leave rendering dependencies optional.
19
+ import_module("mocha.visualisation")
20
+
21
+ # Every advertised core export must work without the optional dependency.
22
+ for module_name in (
23
+ "mocha", "mocha.algorithms", "mocha.io", "mocha.models", "mocha.logic",
24
+ ):
25
+ module = import_module(module_name)
26
+ for name in module.__all__:
27
+ getattr(module, name)
28
+
29
+ system = mocha.TransitionSystem.from_components(
30
+ states={"start", "stable", "unreachable"},
31
+ actions={"step"},
32
+ transitions={
33
+ ("start", "step", "stable"),
34
+ ("stable", "step", "stable"),
35
+ ("unreachable", "step", "unreachable"),
36
+ },
37
+ initial_states={"start"},
38
+ atomic_propositions={"safe"},
39
+ labels={"start": set(), "stable": {"safe"}, "unreachable": set()},
40
+ )
41
+ system = from_dict(to_dict(system))
42
+
43
+ assert compute_reachable_states(system).reachable_states == {"start", "stable"}
44
+ assert check_invariant(system, {"start", "stable"}).satisfies
45
+ invariant = check_invariant(system, {"start"})
46
+ assert not invariant.satisfies
47
+ assert invariant.counterexample == ("start", "stable")
48
+ assert check_persistence(system, "safe").satisfies
49
+
50
+ system.remove_label("stable", "safe")
51
+ persistence = check_persistence(system, "safe")
52
+ assert not persistence.satisfies
53
+ assert persistence.counterexample == ("start", "stable", "stable")
54
+ assert persistence.loop_start == 1
55
+
56
+ print("Base installation smoke test passed without the graphviz package.")
57
+
58
+
59
+ if __name__ == "__main__":
60
+ main()
@@ -0,0 +1,30 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0
4
+
5
+ First stable release of MoChA, a teaching library for model checking.
6
+
7
+ - Labelled transition systems and finite, Büchi, and generalized Büchi automata.
8
+ - Reachability, invariant, persistence, and LTL model checking.
9
+ - LTL parsing, normal-form transformations, and automata construction.
10
+ - Algorithm traces exposing intermediate steps for teaching.
11
+ - Validated JSON import and export for string-valued transition systems.
12
+ - Optional Graphviz visualisation for transition systems, automata, and counterexamples.
13
+ - Docker images with JupyterLab, a Python notebook kernel, and Graphviz for
14
+ `linux/amd64` and `linux/arm64`.
15
+
16
+ Requires Python 3.11 or later. Image rendering additionally requires the Graphviz
17
+ executables, which are included in the Docker images.
18
+
19
+ ## 0.1.0rc1
20
+
21
+ First release candidate of MoChA, a teaching library for model checking.
22
+
23
+ - Labelled transition systems and finite, Büchi, and generalized Büchi automata.
24
+ - Reachability, invariant, persistence, and LTL model checking.
25
+ - LTL parsing, normal-form transformations, and automata construction.
26
+ - Algorithm traces exposing intermediate steps for teaching.
27
+ - Validated JSON import and export for string-valued transition systems.
28
+ - Optional Graphviz visualisation.
29
+
30
+ Requires Python 3.11 or later. Image rendering additionally requires the Graphviz executables.
@@ -0,0 +1,177 @@
1
+ # Contributing to MoChA
2
+
3
+ Bug reports, documentation improvements, and code contributions are welcome.
4
+ Use the [issue tracker](https://github.com/moves-rwth/mocha/issues) for bugs
5
+ and feature requests. For a bug report, include a small reproducing example,
6
+ the expected result, the actual result, and your Python and MoChA versions.
7
+
8
+ ## Set up a development environment
9
+
10
+ Use Python 3.11 or later. CI is configured to test Python 3.11 through 3.15
11
+ on Ubuntu. Run these commands from the repository root.
12
+
13
+ On Linux or macOS:
14
+
15
+ ```bash
16
+ python3 -m venv .venv
17
+ source .venv/bin/activate
18
+ ```
19
+
20
+ On Windows, using PowerShell:
21
+
22
+ ```powershell
23
+ py -3 -m venv .venv
24
+ .venv\Scripts\Activate.ps1
25
+ ```
26
+
27
+ Install an editable checkout with visualisation support and the development
28
+ tools:
29
+
30
+ ```bash
31
+ python -m pip install -e '.[visualization,typecheck]'
32
+ python -m pip install build twine
33
+ ```
34
+
35
+ An editable installation makes source changes available without reinstalling
36
+ the package. The development tools are separate from MoChA's runtime
37
+ dependencies.
38
+
39
+ Install the [Graphviz executables](https://graphviz.org/download/) separately
40
+ and make sure `dot` is on your `PATH`:
41
+
42
+ ```bash
43
+ dot -V
44
+ ```
45
+
46
+ The Python `graphviz` dependency does not install these executables.
47
+
48
+ ## Run the tests
49
+
50
+ ```bash
51
+ python -m unittest discover -s tests -v
52
+ ```
53
+
54
+ Inspect any skipped tests: rendering tests require `dot`. Add focused
55
+ regression tests when fixing a behavioral bug. For algorithm changes,
56
+ include the model assumptions and an example that exercises the change.
57
+
58
+ ## Check library types
59
+
60
+ ```bash
61
+ python -m mypy
62
+ ```
63
+
64
+ The configuration in `pyproject.toml` checks all of `src/mocha` in strict mode,
65
+ targeting Python 3.11. The `typecheck` extra supplies mypy and the JSON Schema
66
+ stubs. A Graphviz-only override lets mypy read that dependency's partial
67
+ source annotations; checking calls to Graphviz is limited by those annotations.
68
+ CI runs the same library check.
69
+
70
+ ## Check the typing example
71
+
72
+ ```bash
73
+ python examples/typed_usage.py
74
+ python -m mypy --strict examples/typed_usage.py
75
+ ```
76
+
77
+ The example uses the public API to build an integer-state transition system.
78
+ `typing.assert_type` checks that type inference preserves integer states in
79
+ the reachability result. The ordinary `assert` checks the reachable values
80
+ at runtime. Expected output is `Reachable states: [0, 1, 2]`, and mypy should
81
+ report no issues.
82
+
83
+ This checks the consumer example, rather than type-checking the entire
84
+ library. To verify the type information in a distribution, repeat it against
85
+ the installed wheel as described below.
86
+
87
+ ## Validate the release artifacts
88
+
89
+ These Linux/macOS shell commands use a new temporary directory so older
90
+ builds and development installations cannot supply the package being tested.
91
+ Run them from the repository root, with the development environment active.
92
+ Keep the same terminal open throughout this section.
93
+
94
+ ```bash
95
+ artifact_check_dir=$(mktemp -d)
96
+ python -m build --outdir "$artifact_check_dir/dist"
97
+ python -m twine check --strict "$artifact_check_dir"/dist/*
98
+ python -m venv "$artifact_check_dir/venv"
99
+ ```
100
+
101
+ The default build creates a source archive and then builds the wheel from
102
+ that archive. First install the base wheel and check that the core API works
103
+ without the optional Graphviz package:
104
+
105
+ ```bash
106
+ "$artifact_check_dir/venv/bin/python" -m pip install "$artifact_check_dir"/dist/*.whl
107
+ "$artifact_check_dir/venv/bin/python" -I .github/scripts/smoke_base_install.py
108
+ ```
109
+
110
+ Next check the typing example against the wheel:
111
+
112
+ ```bash
113
+ "$artifact_check_dir/venv/bin/python" -m pip install mypy
114
+ "$artifact_check_dir/venv/bin/python" -I examples/typed_usage.py
115
+ "$artifact_check_dir/venv/bin/python" -I -m mypy --strict examples/typed_usage.py
116
+ ```
117
+
118
+ Finally, install the visualisation extra and run the full test suite:
119
+
120
+ ```bash
121
+ for wheel in "$artifact_check_dir"/dist/*.whl; do
122
+ "$artifact_check_dir/venv/bin/python" -m pip install "${wheel}[visualization]"
123
+ done
124
+ "$artifact_check_dir/venv/bin/python" -I -m unittest discover -s tests -v
125
+ ```
126
+
127
+ `-I` ignores `PYTHONPATH` and excludes the script directory from Python's
128
+ import path. The fresh environment therefore exercises the installed wheel.
129
+ The Graphviz executables must still be available to run the rendering tests.
130
+
131
+ ## Publish a release
132
+
133
+ The `Publish Python package` workflow publishes the wheel and source archive
134
+ to PyPI when a GitHub release is published. It first runs the full CI workflow,
135
+ checks that the release tag matches the version in `pyproject.toml`, builds
136
+ the distributions, and validates their metadata. Publishing uses
137
+ [PyPI Trusted Publishing](https://docs.pypi.org/trusted-publishers/using-a-publisher/)
138
+ with the GitHub environment `pypi`.
139
+
140
+ Before the first release:
141
+
142
+ 1. Create a GitHub environment named `pypi` in `moves-rwth/mocha`.
143
+ 2. On PyPI, configure a GitHub Trusted Publisher for `mocha-model-checking`
144
+ with owner `moves-rwth`, repository `mocha`, workflow filename
145
+ `pypi-publish.yml`, and environment `pypi`. If the project does not exist
146
+ yet, use a
147
+ [pending publisher](https://docs.pypi.org/trusted-publishers/creating-a-project-through-oidc/).
148
+ This setup uses no PyPI API token.
149
+
150
+ For each release:
151
+
152
+ 1. Update the version in `pyproject.toml` and the entry in `CHANGELOG.md`.
153
+ 2. Complete the release-artifact checks above and merge the release changes
154
+ into `main`. Confirm that CI passes for the intended release commit.
155
+ 3. Create a GitHub release for that commit, using a tag such as `v0.1.0`
156
+ (a bare `0.1.0` is also accepted). Use the changelog entry as the release
157
+ notes, then publish the release to start the publication workflows.
158
+ 4. Check that both `Publish Python package` and `Publish container` succeed.
159
+ Confirm that the new version can be installed from PyPI and that the
160
+ release tag is available at `ghcr.io/moves-rwth/mocha`.
161
+
162
+ Container releases use the GitHub release tag verbatim. A release marked as a
163
+ prerelease does not update the container's `latest` tag; it still triggers
164
+ Python package publication using the version declared in `pyproject.toml`.
165
+
166
+ For a trial release before `0.1.0`, use version `0.1.0rc1` in
167
+ `pyproject.toml`, tag the GitHub release `v0.1.0rc1`, and select **Set as a
168
+ pre-release**. After publication, install that candidate with
169
+ `python -m pip install 'mocha-model-checking==0.1.0rc1'`.
170
+
171
+ ## Submit a pull request
172
+
173
+ Keep the change focused and explain the resulting behavior and how you
174
+ checked it. Update the README, relevant guides in `docs/`, and changelog when
175
+ the public behavior changes.
176
+ Include examples or counterexamples where they help explain an algorithm
177
+ change. CI runs on pull requests and on pushes to `main`.
@@ -0,0 +1,340 @@
1
+ Mozilla Public License Version 2.0
2
+ ==================================
3
+
4
+ 1. Definitions
5
+ --------------
6
+
7
+ 1.1. "Contributor"
8
+ means each individual or legal entity that creates, contributes to
9
+ the creation of, or owns Covered Software.
10
+
11
+ 1.2. "Contributor Version"
12
+ means the combination of the Contributions of others (if any) used
13
+ by a Contributor and that particular Contributor's Contribution.
14
+
15
+ 1.3. "Contribution"
16
+ means Covered Software of a particular Contributor.
17
+ 1.4. "Covered Software"
18
+ means Source Code Form to which the initial Contributor has attached
19
+ the notice in Exhibit A, the Executable Form of such Source Code
20
+ Form, and Modifications of such Source Code Form, in each case
21
+ including portions thereof.
22
+
23
+ 1.5. "Incompatible With Secondary Licenses"
24
+ means
25
+
26
+ (a) that the initial Contributor has attached the notice described
27
+ in Exhibit B to the Covered Software; or
28
+ (b) that the Covered Software was made available under the terms of
29
+ version 1.1 or earlier of the License, but not also under the
30
+ terms of a Secondary License.
31
+
32
+ 1.6. "Executable Form"
33
+ means any form of the work other than Source Code Form.
34
+
35
+ 1.7. "Larger Work"
36
+ means a work that combines Covered Software with other material, in
37
+ a separate file or files, that is not Covered Software.
38
+
39
+ 1.8. "License"
40
+ means this document.
41
+ 1.9. "Licensable"
42
+ means having the right to grant, to the maximum extent possible,
43
+ whether at the time of the initial grant or subsequently, any and
44
+ all of the rights conveyed by this License.
45
+
46
+ 1.10. "Modifications"
47
+ means any of the following:
48
+
49
+ (a) any file in Source Code Form that results from an addition to,
50
+ deletion from, or modification of the contents of Covered
51
+ Software; or
52
+
53
+ (b) any new file in Source Code Form that contains any Covered
54
+ Software.
55
+ 1.11. "Patent Claims" of a Contributor
56
+ means any patent claim(s), including without limitation, method,
57
+ process, and apparatus claims, in any patent Licensable by such
58
+ Contributor that would be infringed, but for the grant of the
59
+ License, by the making, using, selling, offering for sale, having
60
+ made, import, or transfer of either its Contributions or its
61
+ Contributor Version.
62
+ 1.12. "Secondary License"
63
+ means either the GNU General Public License, Version 2.0, the GNU
64
+ Lesser General Public License, Version 2.1, the GNU Affero General
65
+ Public License, Version 3.0, or any later versions of those
66
+ licenses.
67
+
68
+ 1.13. "Source Code Form"
69
+ means the form of the work preferred for making modifications.
70
+ 1.14. "You" (or "Your")
71
+ means an individual or a legal entity exercising rights under this
72
+ License. For legal entities, "You" includes any entity that
73
+ controls, is controlled by, or is under common control with You. For
74
+ purposes of this definition, "control" means (a) the power, direct
75
+ or indirect, to cause the direction or management of such entity,
76
+ whether by contract or otherwise, or (b) ownership of more than
77
+ fifty percent (50%) of the outstanding shares or beneficial
78
+ ownership of such entity.
79
+ 2. License Grants and Conditions
80
+ --------------------------------
81
+
82
+ 2.1. Grants
83
+
84
+ Each Contributor hereby grants You a world-wide, royalty-free,
85
+ non-exclusive license:
86
+
87
+ (a) under intellectual property rights (other than patent or trademark)
88
+ Licensable by such Contributor to use, reproduce, make available,
89
+ modify, display, perform, distribute, and otherwise exploit its
90
+ Contributions, either on an unmodified basis, with Modifications, or
91
+ as part of a Larger Work; and
92
+ (b) under Patent Claims of such Contributor to make, use, sell, offer
93
+ for sale, have made, import, and otherwise transfer either its
94
+ Contributions or its Contributor Version.
95
+
96
+ 2.2. Effective Date
97
+
98
+ The licenses granted in Section 2.1 with respect to any Contribution
99
+ become effective for each Contribution on the date the Contributor first
100
+ distributes such Contribution.
101
+
102
+ 2.3. Limitations on Grant Scope
103
+ The licenses granted in this Section 2 are the only rights granted under
104
+ this License. No additional rights or licenses will be implied from the
105
+ distribution or licensing of Covered Software under this License.
106
+ Notwithstanding Section 2.1(b) above, no patent license is granted by a
107
+ Contributor:
108
+
109
+ (a) for any code that a Contributor has removed from Covered Software;
110
+ or
111
+ (b) for infringements caused by: (i) Your and any other third party's
112
+ modifications of Covered Software, or (ii) the combination of its
113
+ Contributions with other software (except as part of its Contributor
114
+ Version); or
115
+
116
+ (c) under Patent Claims infringed by Covered Software in the absence of
117
+ its Contributions.
118
+ This License does not grant any rights in the trademarks, service marks,
119
+ or logos of any Contributor (except as may be necessary to comply with
120
+ the notice requirements in Section 3.4).
121
+
122
+ 2.4. Subsequent Licenses
123
+
124
+ No Contributor makes additional grants as a result of Your choice to
125
+ distribute the Covered Software under a subsequent version of this
126
+ License (see Section 10.2) or under the terms of a Secondary License (if
127
+ permitted under the terms of Section 3.3).
128
+
129
+ 2.5. Representation
130
+ Each Contributor represents that the Contributor believes its
131
+ Contributions are its original creation(s) or it has sufficient rights
132
+ to grant the rights to its Contributions conveyed by this License.
133
+
134
+ 2.6. Fair Use
135
+
136
+ This License is not intended to limit any rights You have under
137
+ applicable copyright doctrines of fair use, fair dealing, or other
138
+ equivalents.
139
+
140
+ 2.7. Conditions
141
+
142
+ Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
143
+ in Section 2.1.
144
+
145
+ 3. Responsibilities
146
+ -------------------
147
+ 3.1. Distribution of Source Form
148
+
149
+ All distribution of Covered Software in Source Code Form, including any
150
+ Modifications that You create or to which You contribute, must be under
151
+ the terms of this License. You must inform recipients that the Source
152
+ Code Form of the Covered Software is governed by the terms of this
153
+ License, and how they can obtain a copy of this License. You may not
154
+ attempt to alter or restrict the recipients' rights in the Source Code
155
+ Form.
156
+
157
+ 3.2. Distribution of Executable Form
158
+ If You distribute Covered Software in Executable Form then:
159
+
160
+ (a) such Covered Software must also be made available in Source Code
161
+ Form, as described in Section 3.1, and You must inform recipients of
162
+ the Executable Form how they can obtain a copy of such Source Code
163
+ Form by reasonable means in a timely manner, at a charge no more
164
+ than the cost of distribution to the recipient; and
165
+ (b) You may distribute such Executable Form under the terms of this
166
+ License, or sublicense it under different terms, provided that the
167
+ license for the Executable Form does not attempt to limit or alter
168
+ the recipients' rights in the Source Code Form under this License.
169
+
170
+ 3.3. Distribution of a Larger Work
171
+ You may create and distribute a Larger Work under terms of Your choice,
172
+ provided that You also comply with the requirements of this License for
173
+ the Covered Software. If the Larger Work is a combination of Covered
174
+ Software with a work governed by one or more Secondary Licenses, and the
175
+ Covered Software is not Incompatible With Secondary Licenses, this
176
+ License permits You to additionally distribute such Covered Software
177
+ under the terms of such Secondary License(s), so that the recipient of
178
+ the Larger Work may, at their option, further distribute the Covered
179
+ Software under the terms of either this License or such Secondary
180
+ License(s).
181
+ 3.4. Notices
182
+
183
+ You may not remove or alter the substance of any license notices
184
+ (including copyright notices, patent notices, disclaimers of warranty,
185
+ or limitations of liability) contained within the Source Code Form of
186
+ the Covered Software, except that You may alter any license notices to
187
+ the extent required to remedy known factual inaccuracies.
188
+
189
+ 3.5. Application of Additional Terms
190
+ You may choose to offer, and to charge a fee for, warranty, support,
191
+ indemnity or liability obligations to one or more recipients of Covered
192
+ Software. However, You may do so only on Your own behalf, and not on
193
+ behalf of any Contributor. You must make it absolutely clear that any
194
+ such warranty, support, indemnity, or liability obligation is offered by
195
+ You alone, and You hereby agree to indemnify every Contributor for any
196
+ liability incurred by such Contributor as a result of warranty, support,
197
+ indemnity or liability terms You offer. You may include additional
198
+ disclaimers of warranty and limitations of liability specific to any
199
+ jurisdiction.
200
+ 4. Inability to Comply Due to Statute or Regulation
201
+ ---------------------------------------------------
202
+ If it is impossible for You to comply with any of the terms of this
203
+ License with respect to some or all of the Covered Software due to
204
+ statute, judicial order, or regulation then You must: (a) comply with
205
+ the terms of this License to the maximum extent possible; and (b)
206
+ describe the limitations and the code they affect. Such description must
207
+ be placed in a text file included with all distributions of the Covered
208
+ Software under this License. Except to the extent prohibited by statute
209
+ or regulation, such description must be sufficiently detailed for a
210
+ recipient of ordinary skill to be able to understand it.
211
+ 5. Termination
212
+ --------------
213
+ 5.1. The rights granted under this License will terminate automatically
214
+ if You fail to comply with any of its terms. However, if You become
215
+ compliant, then the rights granted under this License from a particular
216
+ Contributor are reinstated (a) provisionally, unless and until such
217
+ Contributor explicitly and finally terminates Your grants, and (b) on an
218
+ ongoing basis, if such Contributor fails to notify You of the
219
+ non-compliance by some reasonable means prior to 60 days after You have
220
+ come back into compliance. Moreover, Your grants from a particular
221
+ Contributor are reinstated on an ongoing basis if such Contributor
222
+ notifies You of the non-compliance by some reasonable means, this is the
223
+ first time You have received notice of non-compliance with this License
224
+ from such Contributor, and You become compliant prior to 30 days after
225
+ Your receipt of the notice.
226
+ 5.2. If You initiate litigation against any entity by asserting a patent
227
+ infringement claim (excluding declaratory judgment actions,
228
+ counter-claims, and cross-claims) alleging that a Contributor Version
229
+ directly or indirectly infringes any patent, then the rights granted to
230
+ You by any and all Contributors for the Covered Software under Section
231
+ 2.1 of this License shall terminate.
232
+ 5.3. In the event of termination under Sections 5.1 or 5.2 above, all
233
+ end user license agreements (excluding distributors and resellers) which
234
+ have been validly granted by You or Your distributors under this License
235
+ prior to termination shall survive termination.
236
+ ************************************************************************
237
+ * *
238
+ * 6. Disclaimer of Warranty *
239
+ * ------------------------- *
240
+ * *
241
+ * Covered Software is provided under this License on an "as is" *
242
+ * basis, without warranty of any kind, either expressed, implied, or *
243
+ * statutory, including, without limitation, warranties that the *
244
+ * Covered Software is free of defects, merchantable, fit for a *
245
+ * particular purpose or non-infringing. The entire risk as to the *
246
+ * quality and performance of the Covered Software is with You. *
247
+ * Should any Covered Software prove defective in any respect, You *
248
+ * (not any Contributor) assume the cost of any necessary servicing, *
249
+ * repair, or correction. This disclaimer of warranty constitutes an *
250
+ * essential part of this License. No use of any Covered Software is *
251
+ * authorized under this License except under this disclaimer. *
252
+ * *
253
+ ************************************************************************
254
+ ************************************************************************
255
+ * *
256
+ * 7. Limitation of Liability *
257
+ * -------------------------- *
258
+ * *
259
+ * Under no circumstances and under no legal theory, whether tort *
260
+ * (including negligence), contract, or otherwise, shall any *
261
+ * Contributor, or anyone who distributes Covered Software as *
262
+ * permitted above, be liable to You for any direct, indirect, *
263
+ * special, incidental, or consequential damages of any character *
264
+ * including, without limitation, damages for lost profits, loss of *
265
+ * goodwill, work stoppage, computer failure or malfunction, or any *
266
+ * and all other commercial damages or losses, even if such party *
267
+ * shall have been informed of the possibility of such damages. This *
268
+ * limitation of liability shall not apply to liability for death or *
269
+ * personal injury resulting from such party's negligence to the *
270
+ * extent applicable law prohibits such limitation. Some *
271
+ * jurisdictions do not allow the exclusion or limitation of *
272
+ * incidental or consequential damages, so this exclusion and *
273
+ * limitation may not apply to You. *
274
+ * *
275
+ ************************************************************************
276
+ 8. Litigation
277
+ -------------
278
+
279
+ Any litigation relating to this License may be brought only in the
280
+ courts of a jurisdiction where the defendant maintains its principal
281
+ place of business and such litigation shall be governed by laws of that
282
+ jurisdiction, without reference to its conflict-of-law provisions.
283
+ Nothing in this Section shall prevent a party's ability to bring
284
+ cross-claims or counter-claims.
285
+
286
+ 9. Miscellaneous
287
+ ----------------
288
+ This License represents the complete agreement concerning the subject
289
+ matter hereof. If any provision of this License is held to be
290
+ unenforceable, such provision shall be reformed only to the extent
291
+ necessary to make it enforceable. Any law or regulation which provides
292
+ that the language of a contract shall be construed against the drafter
293
+ shall not be used to construe this License against a Contributor.
294
+
295
+ 10. Versions of the License
296
+ ---------------------------
297
+
298
+ 10.1. New Versions
299
+ Mozilla Foundation is the license steward. Except as provided in Section
300
+ 10.3, no one other than the license steward has the right to modify or
301
+ publish new versions of this License. Each version will be given a
302
+ distinguishing version number.
303
+
304
+ 10.2. Effect of New Versions
305
+
306
+ You may distribute the Covered Software under the terms of the version
307
+ of the License under which You originally received the Covered Software,
308
+ or under the terms of any subsequent version published by the license
309
+ steward.
310
+ 10.3. Modified Versions
311
+
312
+ If you create software not governed by this License, and you want to
313
+ create a new license for such software, you may create and use a
314
+ modified version of this License if you rename the license and remove
315
+ any references to the name of the license steward (except to note that
316
+ such modified license differs from this License).
317
+
318
+ 10.4. Distributing Source Code Form that is Incompatible With Secondary
319
+ Licenses
320
+ If You choose to distribute Source Code Form that is Incompatible With
321
+ Secondary Licenses under the terms of this version of the License, the
322
+ notice described in Exhibit B of this License must be attached.
323
+
324
+ Exhibit A - Source Code Form License Notice
325
+ -------------------------------------------
326
+
327
+ This Source Code Form is subject to the terms of the Mozilla Public
328
+ License, v. 2.0. If a copy of the MPL was not distributed with this
329
+ file, You can obtain one at https://mozilla.org/MPL/2.0/.
330
+ If it is not possible or desirable to put the notice in a particular
331
+ file, then You may include the notice in a location (such as a LICENSE
332
+ file in a relevant directory) where a recipient would be likely to look
333
+ for such a notice.
334
+
335
+ You may add additional accurate notices of copyright ownership.
336
+
337
+ Exhibit B - "Incompatible With Secondary Licenses" Notice
338
+ ---------------------------------------------------------
339
+ This Source Code Form is "Incompatible With Secondary Licenses", as
340
+ defined by the Mozilla Public License, v. 2.0.
@@ -0,0 +1,6 @@
1
+ include CHANGELOG.md
2
+ include CONTRIBUTING.md
3
+ recursive-include docs *.md
4
+ include examples/invariant_checking.py
5
+ include examples/typed_usage.py
6
+ include .github/scripts/smoke_base_install.py