Skip to content

Commit 9a461de

Browse files
committed
Clean up subcomponent dependencies of lia
1 parent 9adb84b commit 9a461de

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+1460
-1728
lines changed

.nix/rocq-overlays/stdlib-subcomponents/default.nix

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,39 +14,37 @@ let
1414
"classes" = [ "program" "relations" ];
1515
"bool" = [ "classes" ];
1616
"structures" = [ "bool" ];
17-
"arith-base" = [ "structures" ];
18-
"positive" = [ "arith-base" ];
17+
"naturals" = [ "structures" ];
1918
"narith" = [ "ring" ];
20-
"zarith-base" = [ "narith-base" ];
21-
"narith-base" = [ "positive" ];
22-
"lists" = [ "arith-base" ];
23-
"ring" = [ "zarith-base" "lists" ];
19+
"integers" = [ "naturals" ];
20+
"lists" = [ "naturals" ];
21+
"ring" = [ "integers" "lists" ];
2422
"arith" = [ "ring" ];
25-
"strings" = [ "arith" ];
26-
"lia" = [ "arith" "narith" ];
23+
"strings" = [ "integers" "lists" ];
24+
"lia" = [ "ring" ];
2725
"zarith" = [ "lia" ];
2826
"zmod" = [ "zarith" "sorting" "field" ];
29-
"qarith-base" = [ "ring" ];
30-
"field" = [ "zarith" ];
27+
"qarith-base" = [ "zarith" ];
28+
"field" = [ "ring" ];
3129
"lqa" = [ "field" "qarith-base" ];
3230
"qarith" = [ "lqa" ];
33-
"classical-logic" = [ "arith" ];
31+
"classical-logic" = [ "naturals" ];
3432
"sets" = [ "classical-logic" ];
3533
"vectors" = [ "lists" ];
3634
"sorting" = [ "lia" "sets" "vectors" ];
37-
"orders-ex" = [ "strings" "sorting" ];
35+
"orders-ex" = [ "narith" "strings" "sorting" ];
3836
"unicode" = [ ];
3937
"primitive-int" = [ "unicode" "zarith" ];
4038
"primitive-floats" = [ "primitive-int" ];
4139
"primitive-array" = [ "primitive-int" ];
4240
"primitive-string" = [ "primitive-int" "orders-ex" ];
4341
"reals" = [ "qarith" "classical-logic" "vectors" ];
44-
"fmaps-fsets-msets" = [ "orders-ex" "zarith" ];
45-
"extraction" = [ "primitive-string" "primitive-array" "primitive-floats" ];
46-
"funind" = [ "arith-base" ];
42+
"fmaps-fsets-msets" = [ "orders-ex" "zarith" "arith" ];
43+
"extraction" = [ "zarith" "primitive-string" "primitive-array" "primitive-floats" ];
44+
"funind" = [ "naturals" ];
4745
"wellfounded" = [ "lists" ];
4846
"streams" = [ "logic" ];
49-
"rtauto" = [ "positive" "lists" ];
47+
"rtauto" = [ "integers" "lists" ];
5048
"compat" = [ "rtauto" "fmaps-fsets-msets" "funind" "extraction" "reals" "zmod" "wellfounded" "streams" ];
5149
"all" = [ "compat" ];
5250
};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
- Internal dependencies between about 50 stdlib files
2+
3+
+ To diagnose a failing qualified reference use
4+
`From Stdlib Require All. Locate My.Qualified.reference.`
5+
Then add a Require command for the appropriately granular containing file
6+
(`#150 <https://github.com/coq/stdlib/pull/150>`_,
7+
by Andres Erbsen).
8+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
- in `ZArithRing`
2+
3+
+ Added `Zpower_theory` to replace the now-deprecated one in `Zpow_def`
4+
(`#150 <https://github.com/coq/stdlib/pull/150>`_,
5+
by Andres Erbsen).
6+
7+
- in `BinInt`
8+
9+
+ Added lemmas `div_eucl_0_r`, `mod_0_r`, `div_0_r`
10+
(`#150 <https://github.com/coq/stdlib/pull/150>`_,
11+
by Andres Erbsen).
12+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
- in `ZMicromega`
2+
3+
+ Support for `EnumProof`s in `ZChecker`.
4+
The `lia` plugin does not generate such proofs anymore.
5+
If you have a different certificate generator that targets the same
6+
checker, please open an issue
7+
(`#150 <https://github.com/coq/stdlib/pull/150>`_,
8+
by Andres Erbsen).
9+
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
- in `ZMicromega`
2+
3+
+ Internal tactics `flatten_bool` and `inv`, definitions `EnumProof`, `isZ0`,
4+
`bdepth`, `vars`, and lemmas `eq_le_iff`, `isZ0_0`, `isZ0_0`, `isZ0_n0`,
5+
`isZ0_n0`, `eq_true_iff_eq`, `max_var_le`, `max_var_correct`,
6+
`max_var_nformulae_correct_aux`, `max_var_nformalae_correct`,
7+
`ltof_bdepth_split_l`, `ltof_bdepth_split_r`
8+
(`#150 <https://github.com/coq/stdlib/pull/150>`_,
9+
by Andres Erbsen).
10+
11+
- in `ZMicromega`
12+
13+
+ Misplaced lemma `Zpower_theory`, with replacement in `ZArithRing`
14+
(`#150 <https://github.com/coq/stdlib/pull/150>`_,
15+
by Andres Erbsen).
16+
17+
- in `Div`
18+
19+
+ Lemmas `Zmod_0_r` and `Zdiv_0_r` in favor of `BinInt.Z.mod_0_r` and
20+
`BinInt.Z.div_0_r`
21+
(`#150 <https://github.com/coq/stdlib/pull/150>`_,
22+
by Andres Erbsen).
23+

doc/stdlib/depends.dot

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,31 @@ digraph stdlib_deps {
1212
classes -> relations;
1313
program -> "corelib-wrapper";
1414
program -> logic;
15-
strings -> arith;
15+
strings -> integers;
16+
strings -> lists;
1617
reals -> qarith;
1718
reals -> vectors;
1819
reals -> "classical-logic";
19-
"arith-base" -> structures;
20+
naturals -> structures;
21+
integers -> naturals;
2022
zarith -> lia;
2123
zmod -> zarith;
2224
zmod -> sorting;
2325
zmod -> field;
2426
qarith -> lqa;
25-
positive -> "arith-base";
2627
narith -> ring;
2728
ring -> lists;
28-
ring -> "zarith-base";
29+
ring -> integers;
2930
arith -> ring;
3031
structures -> bool;
31-
"narith-base" -> positive;
32-
lists -> "arith-base";
33-
"zarith-base" -> "narith-base";
32+
lists -> naturals;
3433
"primitive-int" -> zarith;
3534
"primitive-int" -> unicode;
36-
lia -> narith;
37-
lia -> arith;
35+
lia -> ring;
3836
"fmaps-fsets-msets" -> zarith;
37+
"fmaps-fsets-msets" -> arith;
3938
"fmaps-fsets-msets" -> "orders-ex";
39+
"orders-ex" -> narith;
4040
"orders-ex" -> strings;
4141
"orders-ex" -> sorting;
4242
sets -> "classical-logic";
@@ -49,22 +49,22 @@ digraph stdlib_deps {
4949
"primitive-string" -> "primitive-int";
5050
"primitive-string" -> "orders-ex";
5151
vectors -> lists;
52-
field -> zarith;
52+
field -> ring;
5353
lqa -> field;
5454
lqa -> "qarith-base";
55-
"qarith-base" -> ring;
56-
"classical-logic" -> arith;
55+
"qarith-base" -> zarith;
56+
"classical-logic" -> naturals;
57+
extraction -> "zarith";
5758
extraction -> "primitive-string";
5859
extraction -> "primitive-floats";
5960
extraction -> "primitive-array";
6061
"primitive-array" -> "primitive-int";
6162
streams -> logic;
62-
funind -> "arith-base";
63+
funind -> naturals;
6364
compat -> zmod;
6465
compat -> reals;
6566
compat -> "fmaps-fsets-msets";
6667
compat -> wellfounded;
67-
compat -> "primitive-string";
6868
compat -> extraction;
6969
compat -> streams;
7070
compat -> funind;

doc/stdlib/hidden-files

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ theories/micromega/Env.v
3333
theories/micromega/EnvRing.v
3434
theories/micromega/Fourier.v
3535
theories/micromega/Fourier_util.v
36-
theories/micromega/Lia.v
37-
theories/micromega/Lqa.v
3836
theories/micromega/Lra.v
3937
theories/micromega/OrderedRing.v
4038
theories/micromega/Psatz.v
@@ -51,8 +49,7 @@ theories/micromega/ZifyInst.v
5149
theories/micromega/ZifyBool.v
5250
theories/micromega/ZifyUint63.v
5351
theories/micromega/ZifySint63.v
54-
theories/micromega/ZifyNat.v
55-
theories/micromega/ZifyN.v
52+
theories/micromega/SatDivMod.v
5653
theories/micromega/ZifyComparison.v
5754
theories/micromega/ZifyClasses.v
5855
theories/micromega/ZifyPow.v
@@ -66,7 +63,6 @@ theories/setoid_ring/Algebra_syntax.v
6663
theories/setoid_ring/ArithRing.v
6764
theories/setoid_ring/BinList.v
6865
theories/setoid_ring/Cring.v
69-
theories/setoid_ring/Field.v
7066
theories/setoid_ring/Field_tac.v
7167
theories/setoid_ring/Field_theory.v
7268
theories/setoid_ring/InitialRing.v
@@ -77,7 +73,6 @@ theories/setoid_ring/Ncring_initial.v
7773
theories/setoid_ring/Ncring_polynom.v
7874
theories/setoid_ring/Ncring_tac.v
7975
theories/setoid_ring/RealField.v
80-
theories/setoid_ring/Ring.v
8176
theories/setoid_ring/Ring_base.v
8277
theories/setoid_ring/Ring_polynom.v
8378
theories/setoid_ring/Ring_tac.v
@@ -163,3 +158,5 @@ theories/ssr/ssrfun.v
163158
theories/ssr/ssrsetoid.v
164159
theories/ssr/ssrunder.v
165160
theories/ssrmatching/ssrmatching.v
161+
theories/NArith/NArith_base.v
162+
theories/ZArith/ZArith_base.v

0 commit comments

Comments
 (0)