Repository navigation
Delete mod_delta - #22954
Delete mod_delta#22954SkySkimmer wants to merge 8 commits into
Conversation
|
@coqbot run full ci |
|
@coqbot bench |
|
🏁 Bench results: INFO: failed to install rocq-mathcomp-boot (dependency rocq-elpi failed) 🐢 Top 25 slow downs┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ TOP 25 SLOW DOWNS │ │ │ │ OLD NEW DIFF %DIFF Ln FILE │ ├─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ 38.6 39.5 0.8801 2.28% 224 coq-performance-tests-lite/PerformanceExperiments/rewrite_lift_lets_map.v.html │ │ 13.2 13.6 0.4292 3.25% 832 coq-unimath/UniMath/CategoryTheory/ComprehensionCats/CwfFromCompCatWithUniv.v.html │ │ 7.30 7.66 0.3646 5.00% 1016 coq-unimath/UniMath/CategoryTheory/ComprehensionCats/CwfFromCompCatWithUniv.v.html │ │ 7.68 8.03 0.3499 4.56% 976 coq-category-theory/Instance/Grp/Colimit/Presentation.v.html │ │ 8.43 8.72 0.2943 3.49% 3 coq-performance-tests-lite/PerformanceExperiments/Reify/LtacVariants/_1_SuperFast.v.html │ │ 9.02 9.31 0.2919 3.24% 3 coq-performance-tests-lite/PerformanceExperiments/Reify/LtacVariants/_6_SuperFast.v.html │ │ 38.8 39.0 0.2851 0.74% 116 coq-bedrock2/bedrock2/src/bedrock2Examples/full_mul.v.html │ │ 9.03 9.30 0.2665 2.95% 3 coq-performance-tests-lite/PerformanceExperiments/Reify/LtacVariants/_3_SuperFast.v.html │ │ 8.16 8.41 0.2515 3.08% 31 coq-performance-tests-lite/src/pattern.v.html │ │ 18.4 18.6 0.2324 1.26% 32 coq-performance-tests-lite/src/pattern.v.html │ │ 8.43 8.65 0.2191 2.60% 3 coq-performance-tests-lite/PerformanceExperiments/Reify/LtacVariants/_2_SuperFast.v.html │ │ 1.25 1.45 0.2083 16.71% 3 rocq-metarocq-pcuic/_build/default/theories/PCUIC/PCUICGeneration.v.html │ │ 9.12 9.32 0.2075 2.28% 669 coq-category-theory/Theory/Multicategory/Endomorphism.v.html │ │ 1.22 1.41 0.1904 15.66% 4 rocq-metarocq-pcuic/_build/default/theories/PCUIC/PCUICSigmaCalculus.v.html │ │ 7.81 8.00 0.1898 2.43% 3 coq-performance-tests-lite/PerformanceExperiments/Reify/Parametricity/_3_SuperFast.v.html │ │ 1.22 1.40 0.1846 15.15% 5 rocq-metarocq-pcuic/_build/default/theories/PCUIC/Syntax/PCUICViews.v.html │ │ 8.18 8.36 0.1773 2.17% 415 coq-category-theory/Theory/Metacategory.v.html │ │ 1.20 1.37 0.1710 14.21% 4 rocq-metarocq-pcuic/_build/default/theories/PCUIC/Syntax/PCUICInduction.v.html │ │ 2.92 3.08 0.1643 5.63% 1461 coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/PERNaturals.v.html │ │ 16.7 16.9 0.1629 0.97% 670 coq-performance-tests-lite/src/Nia.v.html │ │ 1.21 1.37 0.1577 12.99% 3 rocq-metarocq-pcuic/_build/default/theories/PCUIC/utils/PCUICPretty.v.html │ │ 8.59 8.75 0.1571 1.83% 3 coq-performance-tests-lite/PerformanceExperiments/Reify/LtacVariants/_5_SuperFast.v.html │ │ 1.21 1.37 0.1561 12.86% 4 rocq-metarocq-pcuic/_build/default/theories/PCUIC/PCUICReduction.v.html │ │ 1.10 1.26 0.1554 14.14% 4 rocq-metarocq-pcuic/_build/default/theories/PCUIC/Conversion/PCUICUnivSubstitutionConv.v.html │ │ 1.23 1.38 0.1550 12.60% 6 rocq-metarocq-pcuic/_build/default/theories/PCUIC/Syntax/PCUICOnFreeVars.v.html │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ 🐇 Top 25 speed ups┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ TOP 25 SPEED UPS │ │ │ │ OLD NEW DIFF %DIFF Ln FILE │ ├─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ 222 217 -5.6228 -2.53% 8 coq-neural-net-interp-computed-lite/theories/MaxOfTwoNumbersSimpler/Computed/AllLogits.v.html │ │ 60.1 59.0 -1.0935 -1.82% 3 coq-performance-tests-lite/PerformanceExperiments/typeclass_reification_let_in_HOAS/_0_SuperFast.v.html │ │ 13.7 12.9 -0.7955 -5.81% 512 coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/Logic/Universal.v.html │ │ 14.3 13.6 -0.7859 -5.48% 391 coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/Logic/Existential.v.html │ │ 7.39 6.90 -0.4883 -6.61% 1018 coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/ExponentialEqs.v.html │ │ 18.7 18.2 -0.4573 -2.45% 31 coq-engine-bench-lite/coq/PerformanceDemos/pattern.v.html │ │ 5.65 5.21 -0.4457 -7.88% 820 coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/PERNaturals.v.html │ │ 13.5 13.0 -0.4454 -3.31% 3 coq-performance-tests-lite/PerformanceExperiments/sieve_of_eratosthenes/_1_SuperFast.v.html │ │ 45.8 45.4 -0.3785 -0.83% 376 coq-unimath/UniMath/ModelCategories/Generated/LNWFSMonoidalStructure.v.html │ │ 6.773 6.413 -0.3600 -5.32% 192 coq-vst/veric/binop_lemmas5.v.html │ │ 29.741 29.391 -0.3500 -1.18% 97 coq-vst/veric/binop_lemmas5.v.html │ │ 4.91 4.60 -0.3091 -6.29% 785 coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/ExponentialEqs.v.html │ │ 4.18 3.88 -0.3046 -7.28% 122 coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/ExponentialEqs.v.html │ │ 3.67 3.39 -0.2788 -7.59% 451 coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/PERNaturals.v.html │ │ 5.522 5.254 -0.2680 -4.85% 888 coq-vst/veric/binop_lemmas4.v.html │ │ 3.30 3.04 -0.2608 -7.91% 802 coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/ExponentialLam.v.html │ │ 38.9 38.7 -0.2344 -0.60% 139 coq-fiat-parsers/src/Parsers/Refinement/SharpenedJSON.v.html │ │ 2.98 2.75 -0.2293 -7.69% 470 coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/PERSubobjectClassifier.v.html │ │ 31.798 31.578 -0.2200 -0.69% 834 coq-vst/veric/binop_lemmas4.v.html │ │ 24.6 24.4 -0.2010 -0.82% 374 coq-unimath/UniMath/ModelCategories/Generated/LNWFSMonoidalStructure.v.html │ │ 25.531 25.345 -0.1860 -0.73% 147 coq-vst/veric/expr_lemmas4.v.html │ │ 7.71 7.53 -0.1826 -2.37% 3 coq-performance-tests-lite/PerformanceExperiments/Reify/LtacVariants/_7_SuperFast.v.html │ │ 11.3 11.1 -0.1816 -1.61% 119 coq-fiat-parsers/src/Parsers/Refinement/SharpenedJSON.v.html │ │ 24.5 24.4 -0.1745 -0.71% 375 coq-unimath/UniMath/ModelCategories/Generated/LNWFSMonoidalStructure.v.html │ │ 0.366 0.194 -0.1721 -47.01% 267 coq-category-theory/Instance/Mod/Quotient/Isomorphism.v.html │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ |
|
some vo sizes are exploding |
|
@coqbot bench |
|
🏁 Bench results: INFO: failed to install rocq-mathcomp-boot (dependency rocq-elpi failed) 🐢 Top 25 slow downs┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ TOP 25 SLOW DOWNS │ │ │ │ OLD NEW DIFF %DIFF Ln FILE │ ├────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ 220 223 2.4307 1.10% 8 coq-neural-net-interp-computed-lite/theories/MaxOfTwoNumbersSimpler/Computed/AllLogits.v.html │ │ 63.7 65.7 2.0261 3.18% 279 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Jacobian.v.html │ │ 65.4 66.2 0.8090 1.24% 302 coq-fiat-crypto-with-bedrock/src/Bedrock/Secp256k1/Addchain.v.html │ │ 31.7 32.5 0.8073 2.54% 575 coq-fiat-crypto-with-bedrock/rupicola/bedrock2/compiler/src/compiler/MMIO.v.html │ │ 44.8 45.4 0.6544 1.46% 4 coq-fiat-crypto-with-bedrock/src/ExtractionOCaml/bedrock2_fiat_crypto.v.html │ │ 70.1 70.7 0.6095 0.87% 22 coq-fiat-crypto-with-bedrock/src/Rewriter/Passes/ArithWithCasts.v.html │ │ 31.1 31.6 0.5051 1.63% 197 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Jacobian.v.html │ │ 25.6 26.1 0.4572 1.79% 334 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Coord.v.html │ │ 52.8 53.2 0.3897 0.74% 259 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Jacobian.v.html │ │ 23.7 24.1 0.3829 1.61% 91 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/modinv/u320_shr.v.html │ │ 25.5 25.9 0.3700 1.45% 258 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Coord.v.html │ │ 25.5 25.9 0.3617 1.42% 310 coq-fiat-crypto-with-bedrock/src/Bedrock/Secp256k1/Addchain.v.html │ │ 45.3 45.6 0.2904 0.64% 4 coq-fiat-crypto-with-bedrock/src/ExtractionOCaml/WithBedrock/fiat_crypto.v.html │ │ 17.4 17.7 0.2831 1.62% 6 coq-fiat-crypto-with-bedrock/rupicola/bedrock2/deps/riscv-coq/src/riscv/Proofs/DecodeEncodeI.v.html │ │ 16.8 17.1 0.2759 1.64% 245 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Coord32.v.html │ │ 17.7 18.0 0.2753 1.55% 32 coq-performance-tests-lite/src/pattern.v.html │ │ 72.8 73.1 0.2650 0.36% 663 coq-fiat-crypto-with-bedrock/src/Bedrock/Secp256k1/JacobianCoZ.v.html │ │ 13.3 13.6 0.2560 1.93% 6 coq-fiat-crypto-with-bedrock/rupicola/bedrock2/deps/riscv-coq/src/riscv/Proofs/DecodeEncodeCSR.v.html │ │ 26.9 27.1 0.2520 0.94% 247 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Coord32.v.html │ │ 43.1 43.3 0.2492 0.58% 3 coq-fiat-crypto-with-bedrock/src/ExtractionOCaml/fiat_crypto.v.html │ │ 24.3 24.5 0.2431 1.00% 374 coq-unimath/UniMath/ModelCategories/Generated/LNWFSMonoidalStructure.v.html │ │ 14.286 14.529 0.2430 1.70% 1223 coq-vst/floyd/Component.v.html │ │ 6.07 6.31 0.2392 3.94% 8 coq-fiat-crypto-with-bedrock/src/PerfTesting/PerfTestSearch.v.html │ │ 2.73 2.96 0.2317 8.50% 33 coq-fiat-crypto-with-bedrock/src/Fancy/Barrett256.v.html │ │ 242 242 0.2310 0.10% 141 coq-fiat-crypto-with-bedrock/src/UnsaturatedSolinasHeuristics/Tests.v.html │ └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ 🐇 Top 25 speed ups┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ TOP 25 SPEED UPS │ │ │ │ OLD NEW DIFF %DIFF Ln FILE │ ├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ 78.6 77.1 -1.4265 -1.82% 48 coq-fiat-crypto-with-bedrock/src/Curves/Weierstrass/AffineProofs.v.html │ │ 13.2 12.1 -1.0581 -8.04% 512 coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/Logic/Universal.v.html │ │ 43.4 42.7 -0.7686 -1.77% 371 coq-fiat-crypto-with-bedrock/src/Stringification/Zig.v.html │ │ 11.0 10.4 -0.6200 -5.64% 2325 coq-fiat-crypto-with-bedrock/rupicola/bedrock2/compiler/src/compiler/FlatToRiscvFunctions.v.html │ │ 7.54 6.95 -0.5851 -7.76% 820 coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/NNORecursiveMap.v.html │ │ 13.3 12.7 -0.5619 -4.23% 391 coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/Logic/Existential.v.html │ │ 7.96 7.48 -0.4813 -6.05% 675 coq-fiat-crypto-with-bedrock/src/Bedrock/Secp256k1/JacobianCoZ.v.html │ │ 24.1 23.6 -0.4755 -1.98% 68 coq-fiat-crypto-with-bedrock/rupicola/bedrock2/deps/riscv-coq/src/riscv/Proofs/VerifyDecode.v.html │ │ 7.08 6.63 -0.4539 -6.41% 1018 coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/ExponentialEqs.v.html │ │ 13.2 12.8 -0.4147 -3.13% 832 coq-unimath/UniMath/CategoryTheory/ComprehensionCats/CwfFromCompCatWithUniv.v.html │ │ 4.09 3.77 -0.3209 -7.84% 122 coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/ExponentialEqs.v.html │ │ 45.4 45.1 -0.3107 -0.68% 4 coq-fiat-crypto-with-bedrock/src/ExtractionJsOfOCaml/bedrock2_fiat_crypto.v.html │ │ 7.71 7.42 -0.2971 -3.85% 3 coq-performance-tests-lite/PerformanceExperiments/Reify/LtacVariants/_7_SuperFast.v.html │ │ 12.9 12.7 -0.2746 -2.12% 197 coq-fiat-crypto-with-bedrock/src/Demo.v.html │ │ 3.51 3.25 -0.2563 -7.31% 451 coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/PERNaturals.v.html │ │ 7.16 6.92 -0.2491 -3.48% 1016 coq-unimath/UniMath/CategoryTheory/ComprehensionCats/CwfFromCompCatWithUniv.v.html │ │ 3.24 3.01 -0.2287 -7.05% 189 coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/PEREqualizers.v.html │ │ 4.86 4.64 -0.2245 -4.62% 785 coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/ExponentialEqs.v.html │ │ 28.4 28.2 -0.2169 -0.76% 348 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Coord.v.html │ │ 2.97 2.75 -0.2148 -7.24% 498 coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/ExponentialPER.v.html │ │ 9.18 8.97 -0.2103 -2.29% 3 coq-performance-tests-lite/PerformanceExperiments/Reify/LtacVariants/_6_SuperFast.v.html │ │ 8.23 8.03 -0.2072 -2.52% 326 coq-fiat-crypto-with-bedrock/src/Fancy/Barrett256.v.html │ │ 4.26 4.07 -0.1917 -4.50% 437 coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/Logic/Universal.v.html │ │ 20.3 20.1 -0.1866 -0.92% 98 coq-fiat-crypto-with-bedrock/rupicola/bedrock2/deps/coqutil/src/coqutil/Map/Memory.v.html │ │ 8.52 8.34 -0.1778 -2.09% 2852 coq-fiat-crypto-with-bedrock/src/Assembly/EquivalenceProofs.v.html │ └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ |
|
@coqbot bench |
|
@coqbot ci minimize ci-color |
We need to delay a call in declaremods to avoid calling it on an invalid argument (ie avoid resurrecting rocq-prover#11845)
When introducing an aliasing, the object which gets a new aliasing is not already aliased so there is no need to delta resolve. NB: test suite passed when I kept the delta resolver use and added "assert canon = user" in the aliasing = None branches.
I think if the kerpair is incorrect then the inductive from the argument/discriminee type would not compare equal to the projection/case info inductive (assuming the argument is well typed), but it's probably better to be explicit (until we get rid of kerpairs someday). Also for cases the user name may have been unchecked with unknown consequences (for projection it's checked by lookup_projection).
|
@coqbot bench |
Minimization interrupted by timeout, being automatically continued. Partially Minimized File /home/runner/work/run-coq-bug-minimizer/run-coq-bug-minimizer/builds/coq/coq-failing/_build_ci/color/Term/Lambda/LCompSimple.v in 5h 15m 5s (from ci-color) (interrupted by timeout, being automatically continued) (full log on GitHub Actions - verbose log)⭐ ⏱️ Partially Minimized Coq File (timeout) (truncated to first and last 32KiB; full 48KiB file on GitHub Actions Artifacts under
|
|
🏁 Bench results: 🐢 Top 25 slow downs┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ TOP 25 SLOW DOWNS │ │ │ │ OLD NEW DIFF %DIFF Ln FILE │ ├────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ 43.4 46.0 2.6178 6.03% 371 coq-fiat-crypto-with-bedrock/src/Stringification/Zig.v.html │ │ 214 216 2.4882 1.16% 8 coq-neural-net-interp-computed-lite/theories/MaxOfTwoNumbersSimpler/Computed/AllLogits.v.html │ │ 25.8 26.5 0.6873 2.66% 258 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Coord.v.html │ │ 20.7 21.4 0.6873 3.32% 254 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/modinv/beeu_shrtz.v.html │ │ 38.8 39.4 0.6687 1.72% 139 coq-fiat-parsers/src/Parsers/Refinement/SharpenedJSON.v.html │ │ 26.1 26.7 0.6647 2.55% 334 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Coord.v.html │ │ 53.1 53.8 0.6293 1.18% 259 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Jacobian.v.html │ │ 78.0 78.6 0.6090 0.78% 48 coq-fiat-crypto-with-bedrock/src/Curves/Weierstrass/AffineProofs.v.html │ │ 30.2 30.8 0.5891 1.95% 222 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Coord32.v.html │ │ 38.6 39.1 0.5529 1.43% 116 coq-bedrock2/bedrock2/src/bedrock2Examples/full_mul.v.html │ │ 34.9 35.4 0.5263 1.51% 221 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Coord32.v.html │ │ 25.7 26.2 0.5222 2.03% 223 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Coord32.v.html │ │ 21.5 22.0 0.5208 2.43% 224 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Coord32.v.html │ │ 18.0 18.5 0.4994 2.77% 272 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Jacobian.v.html │ │ 17.2 17.6 0.4886 2.85% 245 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Coord32.v.html │ │ 38.6 39.1 0.4753 1.23% 116 coq-fiat-crypto-with-bedrock/rupicola/bedrock2/bedrock2/src/bedrock2Examples/full_mul.v.html │ │ 43.4 43.8 0.4198 0.97% 3 coq-fiat-crypto-with-bedrock/src/ExtractionOCaml/fiat_crypto.v.html │ │ 45.8 46.2 0.4130 0.90% 4 coq-fiat-crypto-with-bedrock/src/ExtractionOCaml/bedrock2_fiat_crypto.v.html │ │ 4.01 4.41 0.4044 10.09% 497 rocq-mathcomp-algebra/algebra/field_tactic.v.html │ │ 17.1 17.5 0.3651 2.13% 225 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Coord32.v.html │ │ 21.8 22.1 0.3586 1.65% 229 coq-unimath/UniMath/CategoryTheory/Presheaves/Sheafification.v.html │ │ 13.7 14.0 0.3528 2.58% 391 coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/Logic/Existential.v.html │ │ 8.66 9.01 0.3482 4.02% 245 rocq-mathcomp-analysis/theories/gauss_integral.v.html │ │ 16.1 16.5 0.3473 2.16% 233 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Coord32.v.html │ │ 65.4 65.7 0.3453 0.53% 279 coq-fiat-crypto-with-bedrock/src/Bedrock/P256/Jacobian.v.html │ └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ 🐇 Top 25 speed ups┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ TOP 25 SPEED UPS │ │ │ │ OLD NEW DIFF %DIFF Ln FILE │ ├────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ 297 292 -5.2059 -1.75% 3 coq-rewriter-perf-SuperFast/src/Rewriter/Rewriter/Examples/PerfTesting/LiftLetsMap/_10_SuperFast.v.html │ │ 60.0 57.1 -2.8873 -4.81% 3 coq-performance-tests-lite/PerformanceExperiments/typeclass_reification_let_in_HOAS/_0_SuperFast.v.html │ │ 50.8 49.4 -1.4080 -2.77% 999 coq-performance-tests-lite/src/fiat_crypto_via_setoid_rewrite_standalone.v.html │ │ 50.6 49.4 -1.2185 -2.41% 968 coq-performance-tests-lite/src/fiat_crypto_via_setoid_rewrite_standalone.v.html │ │ 19.8 18.9 -0.8140 -4.12% 13 coq-fourcolor/theories/proof/job207to214.v.html │ │ 74.9 74.2 -0.6633 -0.89% 663 coq-fiat-crypto-with-bedrock/src/Bedrock/Secp256k1/JacobianCoZ.v.html │ │ 55.9 55.4 -0.4537 -0.81% 20 coq-fiat-crypto-with-bedrock/src/Rewriter/Passes/NBE.v.html │ │ 45.9 45.5 -0.4433 -0.97% 4 coq-fiat-crypto-with-bedrock/src/ExtractionJsOfOCaml/WithBedrock/fiat_crypto.v.html │ │ 27.5 27.2 -0.3654 -1.33% 145 coq-fiat-crypto-with-bedrock/src/Bedrock/End2End/X25519/GarageDoorTop.v.html │ │ 26.7 26.3 -0.3551 -1.33% 33 coq-fiat-crypto-with-bedrock/src/Bedrock/End2End/X25519/MontgomeryLadderRISCV.v.html │ │ 44.2 43.9 -0.3487 -0.79% 3 coq-fiat-crypto-with-bedrock/src/ExtractionJsOfOCaml/fiat_crypto.v.html │ │ 20.9 20.5 -0.3473 -1.66% 98 coq-fiat-crypto-with-bedrock/rupicola/bedrock2/deps/coqutil/src/coqutil/Map/Memory.v.html │ │ 27.6 27.2 -0.3309 -1.20% 148 coq-fiat-crypto-with-bedrock/src/Bedrock/End2End/X25519/GarageDoorTop.v.html │ │ 26.7 26.4 -0.3241 -1.21% 30 coq-fiat-crypto-with-bedrock/src/Bedrock/End2End/X25519/MontgomeryLadderRISCV.v.html │ │ 18.6 18.3 -0.3181 -1.71% 31 coq-engine-bench-lite/coq/PerformanceDemos/pattern.v.html │ │ 38.1 37.8 -0.2916 -0.77% 600 coq-fiat-crypto-with-bedrock/src/Bedrock/Secp256k1/JacobianCoZ.v.html │ │ 13.4 13.1 -0.2564 -1.92% 2857 rocq-metarocq-safechecker/_build/default/theories/SafeChecker/PCUICTypeChecker.v.html │ │ 7.92 7.66 -0.2557 -3.23% 3 coq-performance-tests-lite/PerformanceExperiments/Reify/LtacVariants/_7_SuperFast.v.html │ │ 8.61 8.35 -0.2533 -2.94% 1332 coq-mathcomp-odd-order/theories/PFsection9.v.html │ │ 35.7 35.5 -0.2532 -0.71% 27 coq-fiat-crypto-with-bedrock/src/Rewriter/Passes/ToFancyWithCasts.v.html │ │ 26.0 25.8 -0.2498 -0.96% 13 coq-fourcolor/theories/proof/job499to502.v.html │ │ 19.2 18.9 -0.2342 -1.22% 213 coq-fiat-crypto-with-bedrock/src/Curves/EdwardsMontgomery.v.html │ │ 6.59 6.36 -0.2338 -3.55% 324 coq-fiat-crypto-with-bedrock/src/Bedrock/Secp256k1/Addchain.v.html │ │ 3.13 2.90 -0.2300 -7.35% 1461 coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/PERNaturals.v.html │ │ 7.27 7.05 -0.2295 -3.15% 1018 coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/ExponentialEqs.v.html │ └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ |
|
Regression: library objects inside a functor are wrongly named after going through a module alias Module Type E. End E.
Module E0. End E0.
Module M.
Module F (Y : E).
Axiom a : nat.
Axiom b : a = 0.
#[export] Hint Resolve b : db.
End F.
End M.
Module M' := M.
Module A := M'.F E0.
Import A.
Goal A.a = 0. auto with db. Qed.On master this compiles and passes For Kernel signatures don't notice, since copying and subtyping add a more specific Restoring the lift in the alias case only gives exactly the old resolvers: --- a/kernel/mod_declarations.ml
+++ b/kernel/mod_declarations.ml
@@ -152,7 +152,7 @@ let rec infer_struct_delta_gen mp mp' struc =
| SFBmodule mb ->
let mp = MPdot (mp, l) in
begin match infer_delta mp mb with
- | None -> delta
+ | None -> if Option.is_empty mp' then delta else lift_mp_delta_resolver mp delta
| Some delta' -> add_delta_resolver delta' delta
end
| SFBrules _ -> deltaLifting unconditionally is wrong: |
|
Regression: anomaly when a functor argument lacks an Module Type T. Parameter Inline v : Prop. End T.
Module F (A:T). Definition w := A.v. End F.
Module N0. End N0.
Module B0 := F N0.On master:
--- a/vernac/declaremods.ml
+++ b/vernac/declaremods.ml
@@ -1276,6 +1276,16 @@ let declare_module id args res mexpr_o =
| None, Some (typ, inl) -> MType (params, typ), inl
| Some body, otyp -> MExpr (params, body, Option.map fst otyp), Option.cata snd (default_inline_level ()) otyp
in
+ let inl = match inl_expr with
+ | None -> None
+ | _ -> inl_res
+ in
+ let state = ((Environ.universes env, Univ.UnivConstraints.empty), Reductionops.inferred_universes) in
+ let entry_body = match entry with
+ | MType (_, typ) -> MType ([], typ)
+ | MExpr (_, body, typ) -> MExpr ([], body, typ)
+ in
+ let _, (_, cst), _ = Mod_typing.translate_module state vm_state env mp inl entry_body in
let sobjs, mp0 = match entry with
| MType (_,mte) | MExpr (_,_,Some mte) ->
get_functor_sobjs false env inl_res (params,mte), get_module_path mte
| MExpr (_,me,None) ->
get_functor_sobjs true env inl_expr (params,me), get_module_path me
in
(* Computed here, while the parameters of the module are still part of the
environment. *)
let inlined = match entry with
| MType (_,mte) | MExpr (_,_,Some mte) ->
inlined_bodies env inl_res ~is_mod:false mte
| MExpr (_,me,None) ->
inlined_bodies env inl_expr ~is_mod:true me
in
(* Undo the simulated interactive building of the module
and declare the module as a whole *)
Summary.Interp.unfreeze_summaries fs;
- let inl = match inl_expr with
- | None -> None
- | _ -> inl_res
- in
let () = Global.push_context_set ctx in
- let state = ((Global.universes (), Univ.UnivConstraints.empty), Reductionops.inferred_universes) in
- let _, (_, cst), _ = Mod_typing.translate_module state vm_state (Global.env ()) mp inl entry in
let () = Global.add_univ_constraints cst in
let mp_env = Global.add_module id entry inl inSince the kernel check now runs first, some cases report the kernel's subtyping error instead of master's "field missing" one. For example, when |
|
Regression: the inductive alias check in False rejection (accepted on master): Module Type TT. Inductive T := a | b. End TT.
Module Type S. Declare Module T : TT. End S.
Module Imp. Module T. Inductive T := a | b. End T. End Imp.
Module Type SI := S with Module T := Imp.T.
Module F (X : SI). End F.
Module FI := F Imp.False acceptance (rejected on master; Unset Elimination Schemes.
Module Type S. Module T. Inductive T : Prop := . End T. Module T' := T. End S.
Module Imp. Module T. Inductive T : Prop := . End T. Module T'. Inductive T : Prop := . End T'. End Imp.
Module C1 : S := Imp.With constructors or elimination schemes, the later constructor-type or Module Type Empty. End Empty.
Module E0. End E0.
Module Type TypE (E : Empty). Inductive T := c : bool -> T. End TypE.
Module natE (E : Empty). Inductive T := c : bool -> T. End natE.
Module Type TypC (F : TypE). Module T := F E0. Module T' := T. End TypC.
Module Imp. Module T. Inductive T := c : bool -> T. End T. Module T'. Inductive T := c : bool -> T. End T'. End Imp.
Module C1 : TypC natE := Imp.There are two problems:
I couldn't turn the bypass into an inconsistency, because constructor types name the inductive under its canonical name and catch the mismatch. But that check is then effectively dead code. --- a/kernel/subtyping.ml
+++ b/kernel/subtyping.ml
@@ -280,18 +280,12 @@ let check_inductive (cst, ustate) trace env mp1 l info1 mp2 mib2 subst1 subst2 =
error (InductiveUniformParams { got = mib1.mind_nparams_rec; expected = mib2.mind_nparams_rec })
in
- let () = match mib1.mind_aliasing, mib2.mind_aliasing with
- | _, None -> ()
- | None, Some kn2' ->
- let mind1 = MutInd.make1 kn1 in
- let mind2 = subst_mind subst2 (MutInd.make kn1 kn2') in
- error (NotEqualInductiveAliases (mind1, mind2))
- | Some kn1', Some kn2' ->
- let mind1 = MutInd.make kn1 kn1' in
- let mind2 = subst_mind subst2 (MutInd.make kn2 kn2') in
- if KerName.equal kn1' (MutInd.canonical mind2)
- then ()
- else error (NotEqualInductiveAliases (mind1, mind2))
+ let () = match mib2.mind_aliasing with
+ | None -> ()
+ | Some kn2' ->
+ let kn1' = Option.default kn1 mib1.mind_aliasing in
+ if not (KerName.equal kn1' kn2') then
+ error (NotEqualInductiveAliases (MutInd.make kn1 kn1', MutInd.make (subst_kn subst2 kn2) kn2'))
in
(* we first check simple things *)
let cst =
|
ppedrot
left a comment
There was a problem hiding this comment.
In terms of design this looks fine to me. There are a few regressions, but some may be not so serious and their fix might be postponed to the next cleanup round?
Delta resolvers are now only used in substitutions. When we need a delta resolver to build a substitution, we infer it from the module structure. This simplifies data at rest, reducing the attack surface of crafted .vo files.
didn't fix this one, the proposed patch fails on the assert at Line 1101 in 4e253cd |
Depends:
Delta resolvers are now only used in substitutions. When we need a
delta resolver to build a substitution, we infer it from the module structure.
This simplifies data at rest, reducing the attack surface of crafted
.vo files.