coq-community / run-coq-bug-minimizer

Repository for triggering runs of the Coq bug minimizer using GitHub Actions [maintainer=@JasonGross]
MIT License
2 stars 0 forks source link

Test issue creation 3 #24

Closed JasonGross closed 1 year ago

JasonGross commented 1 year ago

@coqbot minimize coq-8.16

#!/usr/bin/env bash
opam install -y coq-equations
git clone https://github.com/JasonGross/metacoq.git --branch=quotation+typingwf
cd metacoq
./configure.sh local
make safechecker TIMED=1 -j2
coqbot commented 1 year ago

Hey @JasonGross, the coq bug minimizer is running your script, I'll come back to you with the results once it's done.

JasonGross commented 1 year ago

@coqbot minimize coq-8.16

#!/usr/bin/env bash
opam install -y coq-equations
git clone https://github.com/JasonGross/metacoq.git --branch=coq-8.16+all-polymorphic
cd metacoq
./configure.sh local
make safechecker TIMED=1 -j2
coqbot commented 1 year ago

Hey @JasonGross, the coq bug minimizer is running your script, I'll come back to you with the results once it's done.

coqbot commented 1 year ago

@JasonGross, Error: Could not minimize file /github/workspace/metacoq/safechecker/theories/PCUICSafeConversion.v (full log on GitHub Actions, cc @JasonGross)

build log (truncated to last 26KiB; full 125KiB file on GitHub Actions Artifacts under build.log) ``` workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC theories/PCUICAlpha.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.EOIfyAypzs MINIMIZER_DEBUG: files: theories/PCUICAlpha.v theories/PCUICEtaExpand.vo (real: 5.74, user: 5.46, sys: 0.26, mem: 843324 ko) theories/PCUICAlpha.vo (real: 12.21, user: 11.82, sys: 0.36, mem: 907268 ko) COQC theories/PCUICSR.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/pcuic MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC theories/PCUICSR.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.thIas0H3oN MINIMIZER_DEBUG: files: theories/PCUICSR.v theories/PCUICSR.vo (real: 42.11, user: 41.66, sys: 0.43, mem: 1482200 ko) COQC theories/PCUICNormal.v COQC theories/Bidirectional/BDToPCUIC.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/pcuic MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/pcuic MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC theories/PCUICNormal.v MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC theories/Bidirectional/BDToPCUIC.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.Mk7ND3b7eu MINIMIZER_DEBUG: files: theories/PCUICNormal.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.hwifaorFIl MINIMIZER_DEBUG: files: theories/Bidirectional/BDToPCUIC.v theories/Bidirectional/BDToPCUIC.vo (real: 4.59, user: 3.87, sys: 0.29, mem: 843536 ko) COQC theories/PCUICCasesHelper.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/pcuic MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC theories/PCUICCasesHelper.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.COcMYCaCiN MINIMIZER_DEBUG: files: theories/PCUICCasesHelper.v theories/PCUICCasesHelper.vo (real: 5.98, user: 5.71, sys: 0.25, mem: 840232 ko) COQC theories/Bidirectional/BDFromPCUIC.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/pcuic MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC theories/Bidirectional/BDFromPCUIC.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.Wb4MoHj1gy MINIMIZER_DEBUG: files: theories/Bidirectional/BDFromPCUIC.v theories/Bidirectional/BDFromPCUIC.vo (real: 3.60, user: 3.32, sys: 0.26, mem: 842932 ko) COQC theories/Bidirectional/BDUnique.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/pcuic MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC theories/Bidirectional/BDUnique.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.zf1AcgkLIz MINIMIZER_DEBUG: files: theories/Bidirectional/BDUnique.v theories/PCUICNormal.vo (real: 15.52, user: 14.65, sys: 0.35, mem: 994652 ko) COQC theories/Bidirectional/BDStrengthening.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/pcuic MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC theories/Bidirectional/BDStrengthening.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.D3wOFqlIOi MINIMIZER_DEBUG: files: theories/Bidirectional/BDStrengthening.v theories/Bidirectional/BDStrengthening.vo (real: 6.38, user: 6.05, sys: 0.27, mem: 847592 ko) COQC theories/PCUICConvCumInversion.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/pcuic MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC theories/PCUICConvCumInversion.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.z9Fma2WDZ9 MINIMIZER_DEBUG: files: theories/PCUICConvCumInversion.v theories/Bidirectional/BDUnique.vo (real: 13.61, user: 12.48, sys: 0.33, mem: 971120 ko) COQC theories/PCUICSafeLemmata.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/pcuic MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC theories/PCUICSafeLemmata.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.s6znTUN6Yx MINIMIZER_DEBUG: files: theories/PCUICSafeLemmata.v theories/PCUICSafeLemmata.vo (real: 4.40, user: 4.08, sys: 0.29, mem: 858604 ko) COQC theories/PCUICCumulProp.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/pcuic MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC theories/PCUICCumulProp.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.5SG0oVNY2Z MINIMIZER_DEBUG: files: theories/PCUICCumulProp.v theories/PCUICConvCumInversion.vo (real: 14.11, user: 12.85, sys: 0.36, mem: 942572 ko) COQC theories/PCUICSN.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/pcuic MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC theories/PCUICSN.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.Q3Fgr79hmJ MINIMIZER_DEBUG: files: theories/PCUICSN.v theories/PCUICSN.vo (real: 1.68, user: 1.37, sys: 0.30, mem: 839108 ko) COQC theories/PCUICWeakeningEnvSN.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/pcuic MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC theories/PCUICWeakeningEnvSN.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.wk5BXII3xB MINIMIZER_DEBUG: files: theories/PCUICWeakeningEnvSN.v theories/PCUICWeakeningEnvSN.vo (real: 1.54, user: 1.21, sys: 0.32, mem: 837140 ko) COQC theories/PCUICWeakeningConfigSN.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/pcuic MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC theories/PCUICWeakeningConfigSN.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.me53qlSmzb MINIMIZER_DEBUG: files: theories/PCUICWeakeningConfigSN.v theories/PCUICWeakeningConfigSN.vo (real: 1.50, user: 1.21, sys: 0.28, mem: 837992 ko) theories/PCUICCumulProp.vo (real: 15.11, user: 14.69, sys: 0.37, mem: 1033080 ko) COQC theories/PCUICElimination.v COQC theories/PCUICPrincipality.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/pcuic MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/pcuic MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC theories/PCUICElimination.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.UtpaJzjzCb MINIMIZER_DEBUG: files: theories/PCUICElimination.v MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC theories/PCUICPrincipality.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.qwrZ4EWdCv MINIMIZER_DEBUG: files: theories/PCUICPrincipality.v theories/PCUICElimination.vo (real: 6.65, user: 6.35, sys: 0.28, mem: 857940 ko) COQC theories/PCUICCanonicity.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/pcuic MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC theories/PCUICCanonicity.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.PYvIbTSypL MINIMIZER_DEBUG: files: theories/PCUICCanonicity.v theories/PCUICCanonicity.vo (real: 7.76, user: 7.41, sys: 0.32, mem: 873232 ko) COQC theories/PCUICProgress.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/pcuic MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC theories/PCUICProgress.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.dG6UJZmttJ MINIMIZER_DEBUG: files: theories/PCUICProgress.v theories/PCUICPrincipality.vo (real: 16.96, user: 16.49, sys: 0.32, mem: 929020 ko) COQC theories/PCUICExpandLetsCorrectness.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/pcuic MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC theories/PCUICExpandLetsCorrectness.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.a6xEkMpPVW MINIMIZER_DEBUG: files: theories/PCUICExpandLetsCorrectness.v theories/PCUICProgress.vo (real: 4.98, user: 4.66, sys: 0.31, mem: 860700 ko) COQC theories/PCUICFirstorder.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/pcuic MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC theories/PCUICFirstorder.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.g8Moy1bIrX MINIMIZER_DEBUG: files: theories/PCUICFirstorder.v theories/PCUICFirstorder.vo (real: 4.71, user: 4.39, sys: 0.30, mem: 852536 ko) COQC theories/PCUICNormalization.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/pcuic MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC theories/PCUICNormalization.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.DmcPo1nXp2 MINIMIZER_DEBUG: files: theories/PCUICNormalization.v theories/PCUICNormalization.vo (real: 2.11, user: 1.80, sys: 0.29, mem: 847132 ko) COQC theories/PCUICConsistency.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/pcuic MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC theories/PCUICConsistency.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.qAAGHaJjot MINIMIZER_DEBUG: files: theories/PCUICConsistency.v theories/PCUICConsistency.vo (real: 1.67, user: 1.40, sys: 0.26, mem: 846312 ko) theories/PCUICExpandLetsCorrectness.vo (real: 39.73, user: 39.28, sys: 0.39, mem: 1156864 ko) MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/pcuic MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig --print-version MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.DWMHc2dor6 MINIMIZER_DEBUG: files: make[2]: Leaving directory '/github/workspace/metacoq/pcuic' make[1]: Leaving directory '/github/workspace/metacoq/pcuic' make -C safechecker make[1]: Entering directory '/github/workspace/metacoq/safechecker' cat metacoq-config > _CoqProject cat _CoqProject.in >> _CoqProject coq_makefile -f _CoqProject -o Makefile.safechecker Warning: ../utils/theories (used in -R or -Q) is not a subdirectory of the current directory make -f Makefile.safechecker make[2]: Entering directory '/github/workspace/metacoq/safechecker' MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/safechecker MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig --print-version MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.6gFba4LiKw MINIMIZER_DEBUG: files: COQDEP VFILES MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/safechecker MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig --print-version MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.ry4uq7eExE MINIMIZER_DEBUG: files: MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/safechecker MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig --print-version MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.RgSVSz09oA MINIMIZER_DEBUG: files: MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/safechecker MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig --print-version MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.u1wlgsefCV MINIMIZER_DEBUG: files: COQC theories/PCUICEqualityDec.v COQC theories/PCUICErrors.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/safechecker MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/safechecker MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC -R /github/workspace/metacoq/safechecker/theories MetaCoq.SafeChecker theories/PCUICErrors.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.RbkzZz7lyB MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC -R /github/workspace/metacoq/safechecker/theories MetaCoq.SafeChecker theories/PCUICEqualityDec.v MINIMIZER_DEBUG: files: theories/PCUICErrors.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.7apRyqcjio MINIMIZER_DEBUG: files: theories/PCUICEqualityDec.v theories/PCUICErrors.vo (real: 1.91, user: 1.61, sys: 0.26, mem: 755280 ko) theories/PCUICEqualityDec.vo (real: 12.39, user: 11.95, sys: 0.41, mem: 1000916 ko) COQC theories/PCUICWfEnv.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/safechecker MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC -R /github/workspace/metacoq/safechecker/theories MetaCoq.SafeChecker theories/PCUICWfEnv.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.HCjKgv5Y8b MINIMIZER_DEBUG: files: theories/PCUICWfEnv.v theories/PCUICWfEnv.vo (real: 2.66, user: 2.33, sys: 0.32, mem: 843376 ko) COQC theories/PCUICWfReduction.v COQC theories/PCUICWfEnvImpl.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/safechecker MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/safechecker MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC -R /github/workspace/metacoq/safechecker/theories MetaCoq.SafeChecker theories/PCUICWfReduction.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.ObK8v35dhV MINIMIZER_DEBUG: files: theories/PCUICWfReduction.v MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC -R /github/workspace/metacoq/safechecker/theories MetaCoq.SafeChecker theories/PCUICWfEnvImpl.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.Q9L7IS10Ke MINIMIZER_DEBUG: files: theories/PCUICWfEnvImpl.v theories/PCUICWfEnvImpl.vo (real: 2.81, user: 2.51, sys: 0.28, mem: 850000 ko) theories/PCUICWfReduction.vo (real: 3.18, user: 2.91, sys: 0.25, mem: 864228 ko) COQC theories/PCUICSafeReduce.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/safechecker MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC -R /github/workspace/metacoq/safechecker/theories MetaCoq.SafeChecker theories/PCUICSafeReduce.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.oUPVrW4UlO MINIMIZER_DEBUG: files: theories/PCUICSafeReduce.v theories/PCUICSafeReduce.vo (real: 98.12, user: 97.57, sys: 0.52, mem: 1569292 ko) COQC theories/PCUICSafeConversion.v COQC theories/PCUICSafeRetyping.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/safechecker MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/safechecker MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC -R /github/workspace/metacoq/safechecker/theories MetaCoq.SafeChecker theories/PCUICSafeConversion.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.DHCJd703Jn MINIMIZER_DEBUG: files: theories/PCUICSafeConversion.v MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC -R /github/workspace/metacoq/safechecker/theories MetaCoq.SafeChecker theories/PCUICSafeRetyping.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.klM8UGt2dX MINIMIZER_DEBUG: files: theories/PCUICSafeRetyping.v theories/PCUICSafeRetyping.vo (real: 44.97, user: 43.54, sys: 0.47, mem: 1241068 ko) COQC theories/PCUICRetypingEnvIrrelevance.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/safechecker MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC -R /github/workspace/metacoq/safechecker/theories MetaCoq.SafeChecker theories/PCUICRetypingEnvIrrelevance.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.uXa79b6KUI MINIMIZER_DEBUG: files: theories/PCUICRetypingEnvIrrelevance.v File "./theories/PCUICSafeConversion.v", line 2594, characters 2-6: Error: Anomaly "in Univ.repr: Universe MetaCoq.SafeChecker.PCUICSafeConversion.12667 undefined." Please report at http://coq.inria.fr/bugs/. Command exited with non-zero status 129 theories/PCUICSafeConversion.vo (real: 91.07, user: 88.98, sys: 0.47, mem: 1281280 ko) make[3]: *** [Makefile.safechecker:793: theories/PCUICSafeConversion.vo] Error 129 make[3]: *** Waiting for unfinished jobs.... theories/PCUICRetypingEnvIrrelevance.vo (real: 142.38, user: 141.32, sys: 0.44, mem: 1288300 ko) make[2]: *** [Makefile.safechecker:409: all] Error 2 make[2]: Leaving directory '/github/workspace/metacoq/safechecker' make[1]: *** [Makefile:11: theory] Error 2 make[1]: Leaving directory '/github/workspace/metacoq/safechecker' make: *** [Makefile:137: safechecker] Error 2 ```
minimizer log ``` Coq version: 8.16.1 compiled with OCaml 4.13.1 First, I will attempt to absolutize relevant [Require]s in /github/workspace/metacoq/safechecker/theories/PCUICSafeConversion.v, and store the result in /github/workspace/cwd/bug_01.v... getting /github/workspace/metacoq/safechecker/theories/PCUICSafeConversion.v getting /github/workspace/metacoq/safechecker/theories/PCUICSafeConversion.glob Now, I will attempt to coq the file, and find the error... Coqing the file (/github/workspace/cwd/bug_01.v)... Running command: "/home/coq/.opam/4.13.1+flambda/bin/coqc.orig" "-q" "-w" "-deprecated-native-compiler-option" "-native-compiler" "no" "-R" "/github/workspace/metacoq/utils/theories" "MetaCoq.Utils" "-R" "/github/workspace/metacoq/common/theories" "MetaCoq.Common" "-R" "/github/workspace/metacoq/pcuic/theories" "MetaCoq.PCUIC" "-R" "/github/workspace/metacoq/safechecker/theories" "MetaCoq.SafeChecker" "-Q" "/github/workspace/cwd" "Top" "-Q" "/home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Bignums" "Bignums" "-Q" "/home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Equations" "Equations" "-Q" "/home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Ltac2" "Ltac2" "-top" "MetaCoq.SafeChecker.PCUICSafeConversion" "-R" "/tmp/tmp9q14rftp" "" "/tmp/tmp9q14rftp/MetaCoq/SafeChecker/PCUICSafeConversion.v" "-q" The timeout for /home/coq/.opam/4.13.1+flambda/bin/coqc.orig has been set to: 51 This file produces the following output when Coq'ed: File "/tmp/tmp9q14rftp/MetaCoq/SafeChecker/PCUICSafeConversion.v", line 613, characters 7-13: Error: There is already an Ltac named is_var. I think the error is 'Error: There is already an Ltac named is_var. '. The corresponding regular expression is 'File "[^"]+", line ([0-9]+), characters [0-9-]+:\n(Error:\s+There\s+is\s+already\s+an\s+Ltac\s+named\s+is_var\.)'. Now, I will attempt to find the error message in the log... Moving /github/workspace/cwd/bug_01.v to /github/workspace/cwd/tmp.v... The computed error message was not present in the given error log. ```

If you have any comments on your experience of the minimizer, please share them in a reply (possibly tagging @JasonGross). If you believe there's a bug in the bug minimizer, please report it on the bug minimizer issue tracker.

JasonGross commented 1 year ago

@coqbot minimize coq-8.16

#!/usr/bin/env bash
opam install -y coq-equations
git clone https://github.com/JasonGross/metacoq.git --branch=coq-8.16+all-polymorphic
cd metacoq
./configure.sh local
make safechecker TIMED=1 -j2
coqbot commented 1 year ago

Hey @JasonGross, the coq bug minimizer is running your script, I'll come back to you with the results once it's done.

coqbot commented 1 year ago

@JasonGross, Minimized File /github/workspace/metacoq/safechecker/theories/PCUICSafeConversion.v (interrupted by timeout) (full log on GitHub Actions)

Minimized Coq File (truncated to 32KiB; full 54KiB file on GitHub Actions Artifacts under bug.v) ```coq (* -*- mode: coq; coq-prog-args: ("-emacs" "-q" "-w" "-deprecated-native-compiler-option" "-native-compiler" "no" "-R" "/github/workspace/metacoq/utils/theories" "MetaCoq.Utils" "-R" "/github/workspace/metacoq/common/theories" "MetaCoq.Common" "-R" "/github/workspace/metacoq/pcuic/theories" "MetaCoq.PCUIC" "-R" "/github/workspace/metacoq/safechecker/theories" "MetaCoq.SafeChecker" "-Q" "/github/workspace/cwd" "Top" "-Q" "/home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Bignums" "Bignums" "-Q" "/home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Equations" "Equations" "-Q" "/home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Ltac2" "Ltac2" "-top" "MetaCoq.SafeChecker.PCUICSafeConversion") -*- *) (* File reduced by coq-bug-minimizer from original input, then from 5927 lines to 1512 lines *) (* coqc version 8.16.1 compiled with OCaml 4.13.1 coqtop version 8.16.1 Expected coqc runtime on this file: 50.537 sec *) Require Coq.Init.Ltac. Require Coq.Logic.ProofIrrelevance. Require Coq.Bool.Bool. Require Coq.ZArith.ZArith. Require Coq.Arith.Arith. Require Coq.micromega.Lia. Require Coq.Lists.List. Require Coq.Init.Nat. Require Coq.Strings.Ascii. Require Coq.Strings.String. Require Coq.Classes.Morphisms. Require Coq.extraction.Extraction. Require Coq.Unicode.Utf8_core. Require Equations.Init. Require Equations.Signature. Require Equations.CoreTactics. Require Coq.Relations.Relation_Definitions. Require Equations.Prop.Logic. Require Equations.Prop.Classes. Require Coq.Program.Tactics. Require Equations.Prop.EqDec. Require Equations.Prop.DepElim. Require Coq.Relations.Relations. Require Equations.Prop.Constants. Require Coq.Bool.Bvector. Require Coq.Arith.Wf_nat. Require Coq.Wellfounded.Wellfounded. Require Coq.Relations.Relation_Operators. Require Coq.Wellfounded.Lexicographic_Product. Require Coq.Program.Wf. Require Coq.Logic.FunctionalExtensionality. Require Equations.Prop.Subterm. Require Equations.Prop.FunctionalInduction. Require Equations.Prop.Tactics. Require Equations.Prop.NoConfusion. Require Equations.Prop.EqDecInstances. Require Equations.Prop.Loader. Require Equations.Prop.Telescopes. Require Equations.Prop.Equations. Require MetaCoq.Utils.MCPrelude. Require Coq.ssr.ssreflect. Require MetaCoq.Utils.MCReflect. Require Coq.Unicode.Utf8. Require Coq.Lists.SetoidList. Require Coq.Classes.CRelationClasses. Require Equations.Type.Logic. Require Equations.Type.Relation. Require Equations.Type.Relation_Properties. Require MetaCoq.Utils.MCRelations. Require Coq.ssr.ssrbool. Require MetaCoq.Utils.ReflectEq. Require MetaCoq.Utils.MCList. Require Coq.Classes.RelationClasses. Require MetaCoq.Utils.MCProd. Require MetaCoq.Utils.MCOption. Require MetaCoq.Utils.MCSquash. Require MetaCoq.Utils.All_Forall. Require MetaCoq.Utils.MCArith. Require Coq.Structures.OrderedType. Require Coq.Structures.Orders. Require MetaCoq.Utils.MCCompare. Require MetaCoq.Utils.MCEquality. Require Coq.Init.Decimal. Require Coq.Numbers.DecimalString. Require Coq.NArith.NArith. Require Coq.Strings.Byte. Require Coq.NArith.BinNat. Require MetaCoq.Utils.ByteCompare. Require MetaCoq.Utils.ByteCompareSpec. Require MetaCoq.Utils.bytestring. Require MetaCoq.Utils.MCString. Require MetaCoq.Utils.MCTactics.SpecializeBy. Require MetaCoq.Utils.MCTactics.Zeta1. Require MetaCoq.Utils.MCTactics.GeneralizeOverHoles. Require MetaCoq.Utils.MCTactics.FindHyp. Require MetaCoq.Utils.MCTactics.UniquePose. Require MetaCoq.Utils.MCTactics.InHypUnderBindersDo. Require MetaCoq.Utils.MCTactics.SpecializeUnderBindersBy. Require MetaCoq.Utils.MCTactics.Head. Require MetaCoq.Utils.MCTactics.DestructHyps. Require MetaCoq.Utils.MCTactics.DestructHead. Require MetaCoq.Utils.MCTactics.SpecializeAllWays. Require MetaCoq.Utils.MCTactics.SplitInContext. Require Ltac2.Init. Require Ltac2.Message. Require Ltac2.Control. Require Ltac2.Ltac1. Require MetaCoq.Utils.MCUtils. Require MetaCoq.Utils.monad_utils. Require MetaCoq.Utils.utils. Require Coq.btauto.Btauto. Require MetaCoq.Common.config. Require Coq.Structures.OrderedTypeAlt. Require Coq.MSets.MSetAVL. Require Coq.MSets.MSetFacts. Require Coq.MSets.MSetProperties. Require Coq.MSets.MSetDecide. Require Coq.ZArith.Zcompare. Require Coq.MSets.MSetInterface. Require MetaCoq.Utils.wGraph. Require Coq.Structures.OrdersAlt. Require Coq.MSets.MSetList. Require Coq.FSets.FMapAVL. Require Coq.Setoids.Setoid. Require Coq.Structures.OrderedTypeEx. Require Coq.FSets.FMapFacts. Require MetaCoq.Common.Kernames. Require Coq.Floats.SpecFloat. Require MetaCoq.Common.BasicAst. Require MetaCoq.Common.Universes. Require Coq.Classes.SetoidTactics. Require MetaCoq.Common.uGraph. Require Coq.ssr.ssrfun. Require Coq.Numbers.Cyclic.Int63.Uint63. Require Coq.Floats.PrimFloat. Require Coq.Floats.FloatOps. Require Coq.Numbers.HexadecimalString. Require MetaCoq.Common.Primitive. Require MetaCoq.Common.Environment. Require Coq.Floats.FloatAxioms. Require MetaCoq.Common.Reflect. Require Coq.Classes.CMorphisms. Require MetaCoq.Common.EnvironmentTyping. Require MetaCoq.PCUIC.utils.PCUICPrimitive. Require MetaCoq.PCUIC.PCUICAst. Require MetaCoq.PCUIC.utils.PCUICSize. Require MetaCoq.PCUIC.utils.PCUICAstUtils. Require Coq.Program.Program. Require Coq.PArith.BinPos. Require Coq.Arith.Compare_dec. Require MetaCoq.Utils.LibHypsNaming. Require MetaCoq.PCUIC.Syntax.PCUICCases. Require MetaCoq.PCUIC.Syntax.PCUICInduction. Require MetaCoq.PCUIC.Syntax.PCUICReflect. Require MetaCoq.PCUIC.Syntax.PCUICLiftSubst. Require MetaCoq.PCUIC.Syntax.PCUICUnivSubst. Require MetaCoq.PCUIC.PCUICEquality. Require MetaCoq.PCUIC.utils.PCUICUtils. Require MetaCoq.PCUIC.Syntax.PCUICPosition. Require MetaCoq.PCUIC.utils.PCUICOnOne. Require MetaCoq.Utils.MCPred. Require MetaCoq.PCUIC.PCUICSigmaCalculus. Require MetaCoq.PCUIC.Syntax.PCUICClosed. Require MetaCoq.PCUIC.Syntax.PCUICOnFreeVars. Require MetaCoq.PCUIC.PCUICCumulativitySpec. Require MetaCoq.PCUIC.PCUICTyping. Require MetaCoq.PCUIC.PCUICGlobalEnv. Require MetaCoq.PCUIC.Syntax.PCUICTactics. Require MetaCoq.PCUIC.PCUICReduction. Require MetaCoq.PCUIC.PCUICCumulativity. Require MetaCoq.PCUIC.PCUICContextSubst. Require MetaCoq.PCUIC.PCUICWeakeningEnv. Require MetaCoq.PCUIC.Conversion.PCUICWeakeningEnvConv. Require MetaCoq.PCUIC.Syntax.PCUICNamelessDef. Require MetaCoq.PCUIC.Syntax.PCUICRenameDef. Require MetaCoq.PCUIC.Syntax.PCUICInstDef. Require MetaCoq.PCUIC.PCUICGuardCondition. Require MetaCoq.PCUIC.Typing.PCUICWeakeningEnvTyp. Require MetaCoq.PCUIC.Conversion.PCUICClosedConv. Require MetaCoq.PCUIC.Typing.PCUICClosedTyp. Require MetaCoq.PCUIC.Syntax.PCUICViews. Require MetaCoq.PCUIC.Conversion.PCUICRenameConv. Require MetaCoq.PCUIC.Conversion.PCUICWeakeningConv. Require MetaCoq.PCUIC.Conversion.PCUICOnFreeVarsConv. Require MetaCoq.PCUIC.Typing.PCUICRenameTyp. Require MetaCoq.PCUIC.Typing.PCUICWeakeningTyp. Require MetaCoq.PCUIC.Conversion.PCUICUnivSubstitutionConv. Require MetaCoq.PCUIC.Conversion.PCUICInstConv. Require MetaCoq.PCUIC.Typing.PCUICInstTyp. Require MetaCoq.PCUIC.PCUICSubstitution. Require MetaCoq.PCUIC.PCUICContextReduction. Require MetaCoq.PCUIC.Syntax.PCUICDepth. Require MetaCoq.PCUIC.PCUICParallelReduction. Require MetaCoq.PCUIC.PCUICParallelReductionConfluence. Require MetaCoq.PCUIC.PCUICRedTypeIrrelevance. Require MetaCoq.PCUIC.PCUICConfluence. Require MetaCoq.PCUIC.PCUICWellScopedCumulativity. Require MetaCoq.PCUIC.PCUICContextConversion. Require MetaCoq.PCUIC.PCUICConversion. Require MetaCoq.PCUIC.PCUICCasesContexts. Require MetaCoq.PCUIC.PCUICGeneration. Require MetaCoq.PCUIC.Typing.PCUICContextConversionTyp. Require MetaCoq.PCUIC.PCUICInversion. Require MetaCoq.PCUIC.Typing.PCUICUnivSubstitutionTyp. Require MetaCoq.PCUIC.PCUICContexts. Require MetaCoq.PCUIC.PCUICWfUniverses. Require MetaCoq.PCUIC.PCUICArities. Require MetaCoq.PCUIC.PCUICSpine. Require MetaCoq.PCUIC.PCUICInductives. Require MetaCoq.PCUIC.PCUICValidity. Require MetaCoq.PCUIC.PCUICInductiveInversion. Require MetaCoq.PCUIC.PCUICAlpha. Require MetaCoq.PCUIC.PCUICSR. Require MetaCoq.PCUIC.PCUICNormal. Require MetaCoq.PCUIC.PCUICSafeLemmata. Require MetaCoq.PCUIC.PCUICCumulProp. Require MetaCoq.PCUIC.PCUICPrincipality. Require MetaCoq.PCUIC.PCUICSN. Require MetaCoq.PCUIC.PCUICConvCumInversion. Require MetaCoq.PCUIC.utils.PCUICPretty. Require MetaCoq.SafeChecker.PCUICErrors. Require MetaCoq.Utils.canonicaltries.String2pos. Require MetaCoq.Utils.canonicaltries.CanonicalTries. Require MetaCoq.Common.EnvMap. Require MetaCoq.SafeChecker.PCUICEqualityDec. Require MetaCoq.SafeChecker.PCUICWfEnv. Require MetaCoq.PCUIC.PCUICCSubst. Require MetaCoq.PCUIC.PCUICWcbvEval. Require MetaCoq.PCUIC.PCUICElimination. Require MetaCoq.PCUIC.PCUICCanonicity. Require Equations.Type.FunctionalExtensionality. Require Equations.Type.WellFounded. Require MetaCoq.SafeChecker.PCUICWfReduction. Require MetaCoq.SafeChecker.PCUICSafeReduce. Module Export AdmitTactic. Module Import LocalFalse. Inductive False : Prop := . End LocalFalse. Axiom proof_admitted : False. Import Coq.Init.Ltac. Tactic Notation "admit" := abstract case proof_admitted. End AdmitTactic. Import Coq.Logic.ProofIrrelevance. Import MetaCoq.Utils.utils. Import MetaCoq.Common.config MetaCoq.Common.uGraph. Import MetaCoq.PCUIC.PCUICAst MetaCoq.PCUIC.utils.PCUICAstUtils MetaCoq.PCUIC.Syntax.PCUICReflect MetaCoq.PCUIC.Syntax.PCUICLiftSubst MetaCoq.PCUIC.Syntax.PCUICUnivSubst MetaCoq.PCUIC.PCUICTyping MetaCoq.PCUIC.PCUICGlobalEnv MetaCoq.PCUIC.PCUICCumulativity MetaCoq.PCUIC.PCUICConversion MetaCoq.PCUIC.PCUICEquality MetaCoq.PCUIC.PCUICConversion MetaCoq.PCUIC.PCUICSafeLemmata MetaCoq.PCUIC.PCUICNormal MetaCoq.PCUIC.PCUICInversion MetaCoq.PCUIC.PCUICReduction MetaCoq.PCUIC.Syntax.PCUICPosition MetaCoq.PCUIC.PCUICPrincipality MetaCoq.PCUIC.PCUICContextConversion MetaCoq.PCUIC.Typing.PCUICContextConversionTyp MetaCoq.PCUIC.PCUICSN MetaCoq.PCUIC.utils.PCUICUtils MetaCoq.PCUIC.PCUICWfUniverses MetaCoq.PCUIC.Syntax.PCUICOnFreeVars MetaCoq.PCUIC.PCUICWellScopedCumulativity MetaCoq.PCUIC.Conversion.PCUICWeakeningEnvConv MetaCoq.PCUIC.Typing.PCUICWeakeningEnvTyp MetaCoq.PCUIC.Conversion.PCUICWeakeningConv MetaCoq.PCUIC.Typing.PCUICWeakeningTyp MetaCoq.PCUIC.Syntax.PCUICClosed MetaCoq.PCUIC.Typing.PCUICClosedTyp MetaCoq.PCUIC.PCUICConvCumInversion . Import MetaCoq.SafeChecker.PCUICErrors MetaCoq.SafeChecker.PCUICWfEnv MetaCoq.SafeChecker.PCUICSafeReduce MetaCoq.SafeChecker.PCUICEqualityDec. Import Equations.Prop.DepElim. Import Equations.Prop.Equations. Local Set Keyed Unification. Set Default Goal Selector "!". Implicit Types (cf : checker_flags) (Σ : global_env_ext). #[global] Instance red_brs_refl Σ p Γ: CRelationClasses.Reflexive (@red_brs Σ p Γ). Admitted. #[global] Instance conv_cum_trans {cf leq} {Σ : global_env_ext} {Γ} : wf Σ -> RelationClasses.Transitive (@conv_cum cf leq Σ Γ). Admitted. Lemma closed_red_mkApps_tConst_axiom {cf} {Σ} {wfΣ : wf Σ} {Γ} {cst u} {args : list term} {cb c} : declared_constant Σ cst cb -> cst_body cb = None -> Σ ;;; Γ ⊢ mkApps (tConst cst u) args ⇝ c -> ∑ args' : list term, (c = mkApps (tConst cst u) args') * (red_terms Σ Γ args args'). Admitted. Section Conversion. Context {cf : checker_flags} {nor : normalizing_flags}. Context (X_type : abstract_env_impl). Context (X : X_type.π2.π1). Context {normalization_in : forall Σ, wf_ext Σ -> Σ ∼_ext X -> NormalizationIn Σ}. Local Definition heΣ Σ (wfΣ : abstract_env_ext_rel X Σ) : ∥ wf_ext Σ ∥ := abstract_env_ext_wf _ wfΣ. Local Definition hΣ Σ (wfΣ : abstract_env_ext_rel X Σ) : ∥ wf Σ ∥ := abstract_env_ext_sq_wf _ _ _ wfΣ. Set Equations Transparent. Set Equations With UIP. Inductive state := | Reduction | Term | Args | Fallback. Inductive stateR : state -> state -> Prop := | stateR_Term_Reduction : stateR Term Reduction | stateR_Args_Term : stateR Args Term | stateR_Fallback_Term : stateR Fallback Term | stateR_Args_Fallback : stateR Args Fallback. Derive Signature for stateR. Lemma stateR_Acc : forall s, Acc stateR s. Admitted. Notation wtp Γ t π := (forall Σ (wfΣ : abstract_env_ext_rel X Σ), welltyped Σ Γ (zipc t π)) (only parsing). Set Primitive Projections. Record pack (Γ : context) := mkpack { st : state ; tm1 : term ; stk1 : stack ; tm2 : term ; stk2 : stack ; wth : wtp Γ tm2 stk2 }. Arguments st {_} _. Arguments tm1 {_} _. Arguments stk1 {_} _. Arguments tm2 {_} _. Arguments stk2 {_} _. Arguments wth {_} _. Definition wterm Γ := { t : term | forall Σ (wfΣ : abstract_env_ext_rel X Σ), welltyped Σ Γ t }. Definition wcored Γ (u v : wterm Γ) := forall Σ (wfΣ : abstract_env_ext_rel X Σ), cored' Σ Γ (` u) (` v). Lemma wcored_wf : forall Γ, well_founded (wcored Γ). Admitted. Import MetaCoq.PCUIC.PCUICAlpha. Definition eqt u v := ∥ u ≡α v ∥. Lemma eqt_eqterm {Σ} {wfΣ : abstract_env_ext_rel X Σ} {u v} : u ≡α v -> eq_term Σ Σ u v. Admitted. Local Instance eqt_refl : RelationClasses.Reflexive eqt. Admitted. Lemma eq_term_valid_pos : forall {u v p}, validpos u p -> eqt u v -> validpos v p. Admitted. Definition weqt {Γ} (u v : wterm Γ) := eqt (` u) (` v). Equations R_aux (Γ : context) : (∑ t : term, pos t × (∑ w : wterm Γ, pos (` w) × state)) -> (∑ t : term, pos t × (∑ w : wterm Γ, pos (` w) × state)) -> Prop := R_aux Γ := t ⊨ eqt \ fun t t' => forall Σ, abstract_env_ext_rel X Σ -> cored' Σ Γ t t' by _ ⨷ @posR t ⊗ w ⊨ weqt \ wcored Γ by _ ⨷ @posR (` w) ⊗ stateR. Next Obligation. split. 2: intuition eauto. exists (` p). destruct p as [p hp]. eapply eq_term_valid_pos. all: eauto. Defined. Next Obligation. split. 2: assumption. exists (` p). destruct x as [u hu], x' as [v hv]. destruct p as [p hp]. simpl in *. eapply eq_term_valid_pos. all: eauto. Defined. Derive Signature for Subterm.lexprod. Lemma R_aux_Acc : forall Γ t p w q s, (forall Σ, abstract_env_ext_rel X Σ -> welltyped Σ Γ t) -> Acc (R_aux Γ) (t ; (p, (w ; (q, s)))). Admitted. Notation pzt u := (zipc (tm1 u) (stk1 u)) (only parsing). Notation pps1 u := (stack_pos (tm1 u) (stk1 u)) (only parsing). Notation pwt u := (exist (P := fun t => forall Σ, abstract_env_ext_rel X Σ -> welltyped Σ _ t) _ (fun Σ wfΣ => wth u Σ wfΣ)) (only parsing). Notation pps2 u := (stack_pos (tm2 u) (stk2 u)) (only parsing). Notation obpack u:= (pzt u ; (pps1 u, (pwt u; (pps2 u, st u)))) (only parsing). Definition R Γ (u v : pack Γ) := R_aux Γ (obpack u) (obpack v). Lemma R_Acc : forall Γ u, (forall Σ (wfΣ : abstract_env_ext_rel X Σ), welltyped Σ Γ (zipc (tm1 u) (stk1 u))) -> Acc (R Γ) u. Admitted. Notation eq_term Σ t u := (eq_term Σ Σ t u). Lemma R_aux_irrelevance Γ x y z : ((x.π1; x.π2.1), (existT (fun x => pos x × state) (` x.π2.2.π1) x.π2.2.π2)) = ((y.π1; y.π2.1), (existT (fun x => pos x × state) (` y.π2.2.π1) y.π2.2.π2)) -> R_aux Γ z x -> R_aux Γ z y. Admitted. Lemma R_irrelevance Γ x y z : (x.(st), x.(tm1), x.(stk1), x.(tm2), x.(stk2)) = (y.(st), y.(tm1), y.(stk1), y.(tm2), y.(stk2)) -> R Γ z x -> R Γ z y. Admitted. Lemma R_cored : forall Γ p1 p2, (forall Σ (wfΣ : abstract_env_ext_rel X Σ), cored Σ Γ (pzt p1) (pzt p2)) -> R Γ p1 p2. Admitted. Lemma R_aux_positionR : forall Γ t1 t2 (p1 : pos t1) (p2 : pos t2) s1 s2, eqt t1 t2 -> positionR (` p1) (` p2) -> R_aux Γ (t1 ; (p1, s1)) (t2 ; (p2, s2)). Admitted. Lemma R_positionR : forall Γ p1 p2, (eqt (pzt p1) (pzt p2)) -> positionR (` (pps1 p1)) (` (pps1 p2)) -> R Γ p1 p2. Admitted. Lemma R_aux_cored2 : forall Γ t1 t2 (p1 : pos t1) (p2 : pos t2) w1 w2 q1 q2 s1 s2, (eqt t1 t2) -> ` p1 = ` p2 -> (forall Σ (wfΣ : abstract_env_ext_rel X Σ), cored' Σ Γ (` w1) (` w2)) -> R_aux Γ (t1 ; (p1, (w1 ; (q1, s1)))) (t2 ; (p2, (w2 ; (q2, s2)))). Admitted. Lemma R_cored2 : forall Γ p1 p2, (eqt (pzt p1) (pzt p2)) -> ` (pps1 p1) = ` (pps1 p2) -> (forall Σ (wfΣ : abstract_env_ext_rel X Σ), cored Σ Γ (` (pwt p1)) (` (pwt p2))) -> R Γ p1 p2. Admitted. Lemma R_aux_positionR2 : forall Γ t1 t2 (p1 : pos t1) (p2 : pos t2) w1 w2 q1 q2 s1 s2, (eqt t1 t2) -> ` p1 = ` p2 -> (eqt (` w1) (` w2)) -> positionR (` q1) (` q2) -> R_aux Γ (t1 ; (p1, (w1 ; (q1, s1)))) (t2 ; (p2, (w2 ; (q2, s2)))). Admitted. Lemma R_positionR2 : forall Γ p1 p2, (eqt (pzt p1) (pzt p2)) -> ` (pps1 p1) = ` (pps1 p2) -> (eqt (` (pwt p1)) (` (pwt p2))) -> positionR (` (pps2 p1)) (` (pps2 p2)) -> R Γ p1 p2. Admitted. Lemma R_aux_stateR : forall Γ t1 t2 (p1 : pos t1) (p2 : pos t2) w1 w2 q1 q2 s1 s2 , (eqt t1 t2) -> ` p1 = ` p2 -> (eqt (` w1) (` w2)) -> ` q1 = ` q2 -> stateR s1 s2 -> R_aux Γ (t1 ; (p1, (w1 ; (q1, s1)))) (t2 ; (p2, (w2 ; (q2, s2)))). Admitted. Lemma R_stateR : forall Γ p1 p2, (eqt (pzt p1) (pzt p2)) -> ` (pps1 p1) = ` (pps1 p2) -> (eqt (` (pwt p1)) (` (pwt p2))) -> ` (pps2 p1) = ` (pps2 p2) -> stateR (st p1) (st p2) -> R Γ p1 p2. Admitted. Definition abstract_env_compare_global_instance := compare_global_instance (abstract_env_lookup X) (abstract_env_eq X). Notation eqb_ctx := (eqb_ctx_gen (abstract_env_eq X) abstract_env_compare_global_instance). Notation eqb_term := (eqb_term_upto_univ (abstract_env_eq X) (abstract_env_eq X) abstract_env_compare_global_instance). Notation leqb_term := (eqb_term_upto_univ (abstract_env_eq X) (abstract_env_leq X) abstract_env_compare_global_instance). Definition eqb_term_stack t1 π1 t2 π2 := eqb_ctx (stack_context π1) (stack_context π2) && eqb_term (zipp t1 π1) (zipp t2 π2). Lemma iff_reflect (P : Prop) (b : bool) : P <-> b -> reflect P b. Admitted. Definition wf_universe_iff Σ u : wf_universeb Σ u <-> wf_universe Σ u. Admitted. Definition wf_universe_instance_iff Σ u : wf_universeb_instance Σ u <-> wf_universe_instance Σ u. Admitted. Notation conv_stack_ctx Γ π1 π2 := (forall Σ, abstract_env_ext_rel X Σ -> ∥ (Σ ⊢ Γ ,,, stack_context π1 = Γ ,,, stack_context π2) ∥). Notation conv_term leq Γ t π t' π' := (forall Σ, abstract_env_ext_rel X Σ -> conv_cum leq Σ (Γ ,,, stack_context π) (zipp t π) (zipp t' π')) (only parsing). Notation alt_conv_term Γ t π t' π' := (forall Σ, abstract_env_ext_rel X Σ -> ∥ Σ ;;; Γ ,,, stack_context π ⊢ zipp t π = zipp t' π' ∥) (only parsing). Inductive ConversionResult (P : Prop) := | Success (h : P) | Error (e : ConversionError) (h : ~P). Arguments Success {_} _. Arguments Error {_} _. Definition isred_full Γ t π := isApp t = false /\ forall Σ, abstract_env_ext_rel X Σ -> ∥whnf RedFlags.nodelta Σ (Γ,,, stack_context π) (zipp t π)∥. Lemma isred_full_nobeta Γ t π : isred_full Γ t π -> isLambda t -> isStackApp π = false. Admitted. Lemma eta_pair {A B} (p q : A * B) : p = q -> (p.1, p.2) = (q.1, q.2). Admitted. Ltac is_var t := match goal with | v : _ |- _ => match t with | v => idtac end end. Lemma zipp_stack_cat_decompose_stack t π π' : zipp t (π ++ (decompose_stack π').2) = zipp t π. Admitted. Lemma zipc_decompose_stack_empty t π : (decompose_stack π).2 = [] -> zipc t π = zipp t π. Admitted. Ltac reduce_stack_facts Σ wfΣ := repeat match goal with | [H: (?a, ?b) = reduce_stack ?f _ ?X ?Γ ?t ?π ?h |- _] => let rid := fresh "r" in let decompid := fresh "d" in let whid := fresh "w" in let isr := fresh "isr" in pose proof (reduce_stack_sound f _ X Σ wfΣ Γ t π h) as [rid]; pose proof (reduce_stack_decompose f _ X Γ t π h) as decompid; pose proof (reduce_stack_whnf f _ X Γ t π h Σ wfΣ) as whid; pose proof (reduce_stack_isred f _ X Γ t π h) as isr; rewrite <- H in rid, decompid, whid, isr; cbn in rid, decompid, whid, isr; clear H end. Lemma zipc_unfold_decompose_stack t π : zipc t π = zipc (mkApps t (decompose_stack π).1) (decompose_stack π).2. Admitted. Ltac simpl_stacks := (repeat match goal with | [H: (?a, ?b) = decompose_stack ?π |- _] => is_var a; is_var b; apply eta_pair in H; cbn in H; noconf H end); (repeat match goal with | [H: context[decompose_stack (appstack ?l ?ρ)] |- _] => (rewrite (decompose_stack_appstack l ρ) in H; cbn in H) || fail 2 | [H: context[stack_context (?π ++ ?π')] |- _] => (rewrite (stack_context_stack_cat π' π) in H; cbn in H) || fail 2 | [H: (decompose_stack ?π).2 = [], H': context[stack_context ?π] |- _] => (rewrite <- (stack_context_decompose π), H in H'; cbn in H') || fail 2 | [H: (decompose_stack ?π).2 = [], H': context[zipc ?t ?π] |- _] => (rewrite (zipc_decompose_stack_empty t π H) in H'; cbn in H') || fail 2 | [H: context[stack_context (decompose_stack ?π).2] |- _] => (rewrite (stack_context_decompose π) in H; cbn in H) || fail 2 | [H: context[zipp ?t (?π ++ (decompose_stack ?π').2)] |- _] => (rewrite (zipp_stack_cat_decompose_stack t π π') in H; cbn in H) || fail 2 | [H: context[zipc ?t (appstack ?args ?π)] |- _] => (rewrite (@zipc_appstack t args π) in H; cbn in H) || fail 2 | [H: context[zipc ?t (?π ++ ?π')] |- _] => (rewrite (zipc_stack_cat t π π') in H; cbn in H) || fail 2 | [H: context[zip (mkApps ?t (decompose_stack ?π).1, decompose_stack ?π).2] |- _] => unfold zip in H | [H: context[zipc (mkApps ?t (decompose_stack ?π).1) (decompose_stack ?π).2] |- _] => (rewrite <- (zipc_unfold_decompose_stack t π) in H; cbn in H) || fail 2 | [H: isStackApp ?π = false, H': context[zipp ?t ?π] |- _] => (rewrite (zipp_noStackApp t π H) in H'; cbn in H') || fail 2 | [H: (decompose_stack ?π).2 = (decompose_stack ?π').2, H': context[stack_context ?π] |- _] => (rewrite <- (stack_context_decompose π), H, (stack_context_decompose π') in H'; cbn in H') || fail 2 | [|- context[decompose_stack (appstack ?l ?ρ)]] => (rewrite (decompose_stack_appstack l ρ); cbn) || fail 2 | [|- context[stack_context (?π ++ ?π')]] => (rewrite (stack_context_stack_cat π' π); cbn) || fail 2 | [H: (decompose_stack ?π).2 = [] |- context[stack_context ?π]] => (rewrite <- (stack_context_decompose π), H; cbn) || fail 2 | [H: (decompose_stack ?π).2 = [] |- context[zipc ?t ?π]] => (rewrite (zipc_decompose_stack_empty t π H); cbn) || fail 2 | [|- context[stack_context (decompose_stack ?π).2]] => (rewrite (stack_context_decompose π); cbn) || fail 2 | [|- context[zipp ?t (?π ++ (decompose_stack ?π').2)]] => (rewrite (zipp_stack_cat_decompose_stack t π π'); cbn) || fail 2 | [|- context[zipc ?t (appstack ?args ?π)]] => (rewrite (@zipc_appstack t args π); cbn) || fail 2 | [|- context[zipc ?t (?π ++ ?π')]] => (rewrite (zipc_stack_cat t π π'); cbn) || fail 2 | [|- context[zip (mkApps ?t (decompose_stack ?π).1, decompose_stack ?π).2]] => unfold zip | [|- context[zipc (mkApps ?t (decompose_stack ?π).1) (decompose_stack ?π).2]] => (rewrite <- (zipc_unfold_decompose_stack t π); cbn) || fail 2 | [H: isStackApp ?π = false |- context[zipp ?t ?π]] => (rewrite (zipp_noStackApp t π H); cbn) || fail 2 | [H: (decompose_stack ?π).2 = (decompose_stack ?π').2 |- context[stack_context ?π]] => (rewrite <- (stack_context_decompose π), H, (stack_context_decompose π'); cbn) || fail 2 end); repeat match goal with | [H: context[zipp ?t ?π] |- _] => rewrite (zipp_as_mkApps t π) in H | [|- context[zipp ?t ?π]] => rewrite (zipp_as_mkApps t π) end. Ltac simpl_reduce_stack Σ wfΣ := reduce_stack_facts Σ wfΣ ; simpl_stacks. Equations prog_discr (t1 t2 : term) : Prop := prog_discr (tApp _ _) (tApp _ _) := False ; prog_discr (tConst _ _) (tConst _ _) := False ; prog_discr (tLambda _ _ _) (tLambda _ _ _) := False ; prog_discr (tProd _ _ _) (tProd _ _ _) := False ; prog_discr (tCase _ _ _ _) (tCase _ _ _ _) := False ; prog_discr (tProj _ _) (tProj _ _) := False ; prog_discr (tFix _ _) (tFix _ _) := False ; prog_discr (tCoFix _ _) (tCoFix _ _) := False ; prog_discr _ _ := True. Definition Ret s Γ t π t' π' := forall (leq : conv_pb), conv_stack_ctx Γ π π' -> (match s with Fallback | Term => isred_full Γ t π | _ => True end) -> (match s with Fallback | Term => isred_full Γ t' π' | _ => True end) -> (match s with | Fallback => prog_discr t t' | _ => True end) -> match s with | Reduction | Term | Fallback => ConversionResult (conv_term leq Γ t π t' π') | Args => ConversionResult (forall Σ, abstract_env_ext_rel X Σ -> ∥ws_cumul_pb_terms Σ (Γ,,, stack_context π) (decompose_stack π).1 (decompose_stack π').1∥) end. Definition Aux s Γ t1 π1 t2 π2 h2 := forall s' t1' π1' t2' π2' (h1' : wtp Γ t1' π1') (h2' : wtp Γ t2' π2'), conv_stack_ctx Γ π1 π2 -> R Γ (mkpack Γ s' t1' π1' t2' π2' h2') (mkpack Γ s t1 π1 t2 π2 h2) -> Ret s' Γ t1' π1' t2' π2'. Notation expand aux := (fun a b c d e f g h i => aux _ _ _ _ _ _ _ _ _) (only parsing). Local Notation yes := (Success _) (only parsing). Local Notation no := (fun e => Error e _) (only parsing). Local Notation repack e := (match e with Success h => Success _ | Error er h => Error er _ end) (only parsing). Notation isconv_red_raw leq t1 π1 t2 π2 aux := (aux Reduction t1 π1 t2 π2 _ _ _ _ leq _ I I I) (only parsing). Notation isconv_prog_raw leq t1 π1 t2 π2 aux := (aux Term t1 π1 t2 π2 _ _ _ _ leq _ _ _ I) (only parsing). Notation isconv_args_raw leq t1 π1 t2 π2 aux := (aux Args t1 π1 t2 π2 _ _ _ _ leq _ I I I) (only parsing). Notation isconv_fallback_raw leq t1 π1 t2 π2 aux := (aux Fallback t1 π1 t2 π2 _ _ _ _ leq _ _ _ _) (only parsing). Notation isconv_red leq t1 π1 t2 π2 aux := (repack (isconv_red_raw leq t1 π1 t2 π2 aux)) (only parsing). Notation isconv_prog leq t1 π1 t2 π2 aux := (repack (isconv_prog_raw leq t1 π1 t2 π2 aux)) (only parsing). Notation isconv_args leq t1 π1 t2 π2 aux := (repack (isconv_args_raw leq t1 π1 t2 π2 aux)) (only parsing). Notation isconv_fallback leq t1 π1 t2 π2 aux := (repack (isconv_fallback_raw leq t1 π1 t2 π2 aux)) (only parsing). Equations(noeqns) _isconv_red (Γ : context) (leq : conv_pb) (t1 : term) (π1 : stack) (h1 : wtp Γ t1 π1) (t2 : term) (π2 : stack) (h2 : wtp Γ t2 π2) (hx : conv_stack_ctx Γ π1 π2) (aux : Aux Reduction Γ t1 π1 t2 π2 h2) : ConversionResult (conv_term leq Γ t1 π1 t2 π2) := _isconv_red Γ leq t1 π1 h1 t2 π2 h2 hx aux with inspect (decompose_stack π1) := { | @exist (args1, ρ1) e1 with inspect (decompose_stack π2) := { | @exist (args2, ρ2) e2 with inspect (reduce_stack RedFlags.nodelta _ X (Γ ,,, stack_context π1) t1 (appstack args1 []) _) := { | @exist (t1',π1') eq1 with inspect (reduce_stack RedFlags.nodelta _ X (Γ ,,, stack_context π2) t2 (appstack args2 []) _) := { | @exist (t2',π2') eq2 => isconv_prog leq t1' (π1' ++ ρ1) t2' (π2' ++ ρ2) aux } } } }. Admit Obligations. Admit Obligations. Admit Obligations. Admit Obligations. Admit Obligations. Admit Obligations. Admit Obligations. Admit Obligations. Admit Obligations. Admit Obligations. Opaque reduce_stack. Equations unfold_one_fix (Γ : context) (mfix : mfixpoint term) (idx : nat) (π : stack) (h : wtp Γ (tFix mfix idx) π) : option (term * stack) := unfold_one_fix Γ mfix idx π h with inspect (unfold_fix mfix idx) := { | @exist (Some (arg, fn)) eq1 with inspect (decompose_stack_at π arg) := { | @exist (Some (l, c, θ)) eq2 with inspect (reduce_stack RedFlags.default _ X (Γ ,,, stack_context θ) c [] _) := { | @exist (cred, ρ) eq3 with construct_viewc cred := { | view_construct ind n ui := Some (fn, appstack l (App_l (zipc (tConstruct ind n ui) ρ) :: θ)) ; | view_other cred h' := None } } ; | _ := None } ; | _ := None }. Admit Obligations. Transparent reduce_stack. Derive NoConfusion NoConfusionHom for option. Lemma unfold_one_fix_red_zipp : forall Γ mfix idx π h fn ξ, Some (fn, ξ) = unfold_one_fix Γ mfix idx π h -> forall Σ (wfΣ : abstract_env_ext_rel X Σ), ∥ red (fst Σ) (Γ ,,, stack_context π) (zipp (tFix mfix idx) π) (zipp fn ξ) ∥. Admitted. Lemma unfold_one_fix_red_zippx : forall Γ mfix idx π h fn ξ, Some (fn, ξ) = unfold_one_fix Γ mfix idx π h -> forall Σ (wfΣ : abstract_env_ext_rel X Σ), ∥ red (fst Σ) Γ (zippx (tFix mfix idx) π) (zippx fn ξ) ∥. Admitted. Lemma unfold_one_fix_red : forall Γ mfix idx π h fn ξ, Some (fn, ξ) = unfold_one_fix Γ mfix idx π h -> forall Σ (wfΣ : abstract_env_ext_rel X Σ), ∥ red (fst Σ) Γ (zipc (tFix mfix idx) π) (zipc fn ξ) ∥. Admitted. Lemma unfold_one_fix_cored : forall Γ mfix idx π h fn ξ, Some (fn, ξ) = unfold_one_fix Γ mfix idx π h -> forall Σ (wfΣ : abstract_env_ext_rel X Σ), cored (fst Σ) Γ (zipc fn ξ) (zipc (tFix mfix idx) π). Admitted. Lemma unfold_one_fix_decompose : forall Γ mfix idx π h fn ξ, Some (fn, ξ) = unfold_one_fix Γ mfix idx π h -> snd (decompose_stack π) = snd (decompose_stack ξ). Admitted. Lemma unfold_one_fix_None Γ mfix idx π wf : None = unfold_one_fix Γ mfix idx π wf -> ∥∑args, forall Σ (wfΣ : abstract_env_ext_rel X Σ), All2 (red Σ (Γ,,, stack_context π)) (decompose_stack π).1 args × whnf RedFlags.default Σ (Γ,,, stack_context π) (mkApps (tFix mfix idx) args)∥. Admitted. Inductive prog_view : term -> term -> Type := | prog_view_App u1 v1 u2 v2 : prog_view (tApp u1 v1) (tApp u2 v2) | prog_view_Const c1 u1 c2 u2 : prog_view (tConst c1 u1) (tConst c2 u2) | prog_view_Lambda na1 A1 b1 na2 A2 b2 : prog_view (tLambda na1 A1 b1) (tLambda na2 A2 b2) | prog_view_Prod na1 A1 B1 na2 A2 B2 : prog_view (tProd na1 A1 B1) (tProd na2 A2 B2) | prog_view_Case ci p c brs ci' p' c' brs' : prog_view (tCase ci p c brs) (tCase ci' p' c' brs') | prog_view_Proj p c p' c' : prog_view (tProj p c) (tProj p' c') | prog_view_Fix mfix idx mfix' idx' : prog_view (tFix mfix idx) (tFix mfix' idx') | prog_view_CoFix mfix idx mfix' idx' : prog_view (tCoFix mfix idx) (tCoFix mfix' idx') | prog_view_other : forall u v, prog_discr u v -> prog_view u v. Equations prog_viewc u v : prog_view u v := prog_viewc (tApp u1 v1) (tApp u2 v2) := prog_view_App u1 v1 u2 v2 ; prog_viewc (tConst c1 u1) (tConst c2 u2) := prog_view_Const c1 u1 c2 u2 ; prog_viewc (tLambda na1 A1 b1) (tLambda na2 A2 b2) := prog_view_Lambda na1 A1 b1 na2 A2 b2 ; prog_viewc (tProd na1 A1 B1) (tProd na2 A2 B2) := prog_view_Prod na1 A1 B1 na2 A2 B2 ; prog_viewc (tCase ci p c brs) (tCase ci' p' c' brs') := prog_view_Case ci p c brs ci' p' c' brs' ; prog_viewc (tProj p c) (tProj p' c') := prog_view_Proj p c p' c' ; prog_viewc (tFix mfix idx) (tFix mfix' idx') := prog_view_Fix mfix idx mfix' idx' ; prog_viewc (tCoFix mfix idx) (tCoFix mfix' idx') := prog_view_CoFix mfix id ```
Intermediate Coq File (useful for debugging if minimization did not go as far as you wanted) ```coq ```
Build Log (contains the Coq error message) (truncated to last 8.0KiB; full 125KiB file on GitHub Actions Artifacts under build.log) ``` DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/safechecker MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig --print-version MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.DpU0vnbyVD MINIMIZER_DEBUG: files: COQC theories/PCUICEqualityDec.v COQC theories/PCUICErrors.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/safechecker MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/safechecker MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC -R /github/workspace/metacoq/safechecker/theories MetaCoq.SafeChecker theories/PCUICEqualityDec.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.CM9aZFviCC MINIMIZER_DEBUG: files: theories/PCUICEqualityDec.v MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC -R /github/workspace/metacoq/safechecker/theories MetaCoq.SafeChecker theories/PCUICErrors.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.A8HeHSZ37p MINIMIZER_DEBUG: files: theories/PCUICErrors.v theories/PCUICErrors.vo (real: 1.68, user: 1.51, sys: 0.16, mem: 755904 ko) theories/PCUICEqualityDec.vo (real: 11.23, user: 10.91, sys: 0.28, mem: 1002656 ko) COQC theories/PCUICWfEnv.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/safechecker MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC -R /github/workspace/metacoq/safechecker/theories MetaCoq.SafeChecker theories/PCUICWfEnv.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.nVuBU8e45l MINIMIZER_DEBUG: files: theories/PCUICWfEnv.v theories/PCUICWfEnv.vo (real: 2.43, user: 2.20, sys: 0.22, mem: 842592 ko) COQC theories/PCUICWfReduction.v COQC theories/PCUICWfEnvImpl.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/safechecker MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/safechecker MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC -R /github/workspace/metacoq/safechecker/theories MetaCoq.SafeChecker theories/PCUICWfEnvImpl.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.qy7FrC6nU1 MINIMIZER_DEBUG: files: theories/PCUICWfEnvImpl.v MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC -R /github/workspace/metacoq/safechecker/theories MetaCoq.SafeChecker theories/PCUICWfReduction.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.gsXg9NVDEs MINIMIZER_DEBUG: files: theories/PCUICWfReduction.v theories/PCUICWfEnvImpl.vo (real: 2.58, user: 2.35, sys: 0.19, mem: 850424 ko) theories/PCUICWfReduction.vo (real: 2.93, user: 2.65, sys: 0.26, mem: 864020 ko) COQC theories/PCUICSafeReduce.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/safechecker MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC -R /github/workspace/metacoq/safechecker/theories MetaCoq.SafeChecker theories/PCUICSafeReduce.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.s0ERUbbiSl MINIMIZER_DEBUG: files: theories/PCUICSafeReduce.v theories/PCUICSafeReduce.vo (real: 90.80, user: 90.42, sys: 0.36, mem: 1568528 ko) COQC theories/PCUICSafeConversion.v COQC theories/PCUICSafeRetyping.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/safechecker MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/safechecker MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC -R /github/workspace/metacoq/safechecker/theories MetaCoq.SafeChecker theories/PCUICSafeConversion.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.u6lxPFugnn MINIMIZER_DEBUG: files: theories/PCUICSafeConversion.v MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC -R /github/workspace/metacoq/safechecker/theories MetaCoq.SafeChecker theories/PCUICSafeRetyping.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.YBzqL5J2pe MINIMIZER_DEBUG: files: theories/PCUICSafeRetyping.v theories/PCUICSafeRetyping.vo (real: 41.98, user: 41.31, sys: 0.37, mem: 1242932 ko) COQC theories/PCUICRetypingEnvIrrelevance.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/safechecker MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC -R /github/workspace/metacoq/safechecker/theories MetaCoq.SafeChecker theories/PCUICRetypingEnvIrrelevance.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.tMR9rCjfR3 MINIMIZER_DEBUG: files: theories/PCUICRetypingEnvIrrelevance.v File "./theories/PCUICSafeConversion.v", line 2594, characters 2-6: Error: Anomaly "in Univ.repr: Universe MetaCoq.SafeChecker.PCUICSafeConversion.12667 undefined." Please report at http://coq.inria.fr/bugs/. Command exited with non-zero status 129 theories/PCUICSafeConversion.vo (real: 85.30, user: 84.06, sys: 0.38, mem: 1281324 ko) make[3]: *** [Makefile.safechecker:793: theories/PCUICSafeConversion.vo] Error 129 make[3]: *** Waiting for unfinished jobs.... theories/PCUICRetypingEnvIrrelevance.vo (real: 139.10, user: 137.83, sys: 0.31, mem: 1284804 ko) make[2]: *** [Makefile.safechecker:409: all] Error 2 make[2]: Leaving directory '/github/workspace/metacoq/safechecker' make[1]: *** [Makefile:11: theory] Error 2 make[1]: Leaving directory '/github/workspace/metacoq/safechecker' make: *** [Makefile:137: safechecker] Error 2 ```
Minimization Log (truncated to last 8.0KiB; full 62KiB file on GitHub Actions Artifacts under bug.log) ``` Δh' t' -> (forall Σ, Σ ∼_ext X -> ∥ ws_cumul_ctx_pb_rel Conv Σ Γ (context_hole_context Δh) (context_hole_context Δh') ∥) -> ConversionResult (forall Σ, Σ ∼_ext X -> conv_cum leq Σ (Γ,,, context_hole_context Δh) t t')) (Δpre Δ'pre Δpost Δ'post : context) (eq0 : Δ = Δpre,,, Δpost) (eq' : Δ' = Δ'pre,,, Δ'post) => match Δpre as l return (forall Δ'pre0 Δpost0 Δ'post0 : context, Δ = l,,, Δpost0 -> Δ' = Δ'pre0,,, Δ'post0 -> ConversionResult (forall Σ, Σ ∼_ext X -> ∥ ws_cumul_ctx_pb_rel Conv Σ Γ l Δ'pre0 ∥)) with | [] => fun (Δ'pre0 Δpost0 Δ'post0 : context) (eq1 : Δ = [],,, Δpost0) (eq'0 : Δ' = Δ'pre0,,, Δ'post0) => match Δ'pre0 as l return (forall Δpost1 Δ'post1 : context, Δ = [],,, Δpost1 -> Δ' = l,,, Δ'post1 -> ConversionResult (forall Σ, Σ ∼_ext X -> ∥ ws_cumul_ctx_pb_rel Conv Σ Γ [] l ∥)) with | [] => fun (Δpost1 Δ'post1 : context) (eq2 : Δ = [],,, Δpost1) (eq'1 : Δ' = [],,, Δ'post1) => Success (isconv_context_aux_obligations_obligation_1 isconv_context_aux Γ Γ' Δ Δ' cc check Δpost1 Δ'post1 eq2 eq'1) | c :: l => fun (Δpost1 Δ'post1 : context) (eq2 : Δ = [],,, Δpost1) (eq'1 : Δ' = (c :: l),,, Δ'post1) => (fun e : ConversionError => Error e (isconv_context_aux_obligations_obligation_2 isconv_context_aux Γ Γ' Δ Δ' cc check c l Δpost1 Δ'post1 eq2 eq'1 e)) ContextNotConvertibleLength end Δpost0 Δ'post0 eq1 eq'0 | c :: l => fun (Δ'pre0 Δpost0 Δ'post0 : context) (eq1 : Δ = (c :: l),,, Δpost0) (eq'0 : Δ' = Δ'pre0,,, Δ'post0) => match c as c0 return (forall (l0 : list context_decl) (Δ'pre1 Δpost1 Δ'post1 : context), Δ = (c0 :: l0),,, Δpost1 -> Δ' = Δ'pre1,,, Δ'post1 -> ConversionResult (forall Σ, Σ ∼_ext X -> ∥ ws_cumul_ctx_pb_rel Conv Σ Γ (c0 :: l0) Δ'pre1 ∥)) with | {| decl_name := decl_name; decl_body := decl_body; decl_type := decl_type |} => fun (l0 : list context_decl) (Δ'pre1 Δpost1 Δ'post1 : context) (eq2 : Δ = ({| decl_name := decl_name; decl_body := decl_body; decl_type := decl_type |} :: l0),,, Δpost1) (eq'1 : Δ' = Δ'pre1,,, Δ'post1) => match Δ'pre1 as l1 return (forall Δpost2 Δ'post2 : context, Δ = ({| decl_name := decl_name; decl_body := decl_body; decl_type := decl_type |} :: l0),,, Δpost2 -> Δ' = l1,,, Δ'post2 -> ConversionResult (forall Σ, Σ ∼_ext X -> ∥ ws_cumul_ctx_pb_rel Conv Σ Γ ({| decl_name := decl_name; decl_body := decl_body; decl_type := decl_type |} :: l0) l1 ∥)) with | [] => fun (Δpost2 Δ'post2 : context) (eq3 : Δ = ({| decl_name := decl_name; decl_body := decl_body; decl_type := decl_type |} :: l0),,, Δpost2) (eq'2 : Δ' = [],,, Δ'post2) => (fun e : ConversionError => Error e (isconv_context_aux_obligations_obligation_3 isconv_context_aux Γ Γ' Δ Δ' cc check decl_name decl_body decl_type l0 Δpost2 Δ'post2 eq3 eq'2 e)) ContextNotConvertibleLength | c0 :: l1 => fun (Δpost2 Δ'post2 : context) (eq3 : Δ = ({| decl_name := decl_name; decl_body := decl_body; decl_type := decl_type |} :: l0),,, Δpost2) (eq'2 : Δ' = (c0 :: l1),,, Δ'post2) => match c0 as c1 return (forall (l2 : list context_decl) (Δpost3 Δ'post3 : context), Δ = ({| decl_name := decl_name; decl_body := decl_body; decl_type := decl_type |} :: l0),,, Δpost3 -> Δ' = (c1 :: l2),,, Δ'post3 -> ConversionResult (forall Σ, Σ ∼_ext X -> ∥ ws_cumul_ctx_pb_rel Conv Σ Γ ({| decl_name := decl_name; decl_body := decl_body; decl_type := decl_type |} :: l0) (c1 :: l2) ∥)) with | {| decl_name := decl_name0; decl_body := decl_body0; decl_type := decl_type0 |} => fun (l2 : list context_decl) (Δpost3 Δ'post3 : context) (eq4 : Δ = ({| decl_name := decl_name; decl_body := decl_body; decl_type := decl_type |} :: l0),,, Δpost3) (eq'3 : Δ' = ({| decl_name := decl_name0; decl_body := decl_body0; decl_type := decl_type0 |} :: l2),,, Δ'post3) => isconv_context_aux_clause_2 isconv_context_aux Γ Γ' Δ Δ' cc check decl_name decl_body decl_type l0 decl_name0 decl_body0 decl_type0 l2 Δpost3 Δ'post3 eq4 eq'3 (isconv_context_aux Γ Γ' Δ Δ' cc check l0 l2 (Δpost3 ++ [{| decl_name := decl_name; decl_body := decl_body; decl_type := decl_type |}]) (Δ'post3 ++ [{| decl_name := decl_name0; decl_body := decl_body0; decl_type := decl_type0 |}]) (isconv_context_aux_obligations_obligation_4 isconv_context_aux Γ Γ' Δ Δ' cc check decl_name decl_body decl_type l0 decl_name0 decl_body0 decl_type0 l2 Δpost3 Δ'post3 eq4 eq'3) (isconv_context_aux_obligations_obligation_5 isconv_context_aux Γ Γ' Δ Δ' cc check decl_name decl_body decl_type l0 decl_name0 decl_body0 decl_type0 l2 Δpost3 Δ'post3 eq4 eq'3)) end l1 Δpost2 Δ'post2 eq3 eq'2 end Δpost1 Δ'post1 eq2 eq'1 end l Δ'pre0 Δpost0 Δ'post0 eq1 eq'0 end Δ'pre Δpost Δ'post eq0 eq'". Intermediate code not saved. Failed to do everything at once; trying one at a time. Admitting Qeds successful Success! I will now attempt to replace Qeds with admit. Defined. Non-fatal error: Failed to admit Qeds and preserve the error. The new error was: Error: The section Conversion needs to be closed. Intermediate code not saved. Failed to do everything at once; trying one at a time. Admitting Qeds successful Success! I will now attempt to remove goals ending in [Abort.]  Aborted removal successful. I will now attempt to remove unused Ltacs ```

If you have any comments on your experience of the minimizer, please share them in a reply (possibly tagging @JasonGross). If you believe there's a bug in the bug minimizer, please report it on the bug minimizer issue tracker.

JasonGross commented 1 year ago

@coqbot minimize coq-8.16

#!/usr/bin/env bash
opam install -y coq-equations
git clone https://github.com/JasonGross/metacoq.git --branch=zzz-bug-equations-anomaly
cd metacoq
./configure.sh local
make safechecker TIMED=1 -j2
coqbot commented 1 year ago

Hey @JasonGross, the coq bug minimizer is running your script, I'll come back to you with the results once it's done.

JasonGross commented 1 year ago

@coqbot minimize coq-8.16

#!/usr/bin/env bash
opam install -y coq-equations
git clone https://github.com/JasonGross/metacoq.git --branch=zzz-bug-equations-anomaly
cd metacoq
./configure.sh local
make safechecker TIMED=1 -j2
coqbot commented 1 year ago

Hey @JasonGross, the coq bug minimizer is running your script, I'll come back to you with the results once it's done.

coqbot commented 1 year ago

@JasonGross, Error: Could not minimize file (full log on GitHub Actions, cc @JasonGross)

build log (truncated to last 26KiB; full 38KiB file on GitHub Actions Artifacts under build.log) ``` C theories/MCRelations.v theories/MCRelations.vo (real: 0.27, user: 0.17, sys: 0.09, mem: 196828 ko) COQC theories/MCProd.v theories/MCPrelude.vo (real: 0.66, user: 0.48, sys: 0.17, mem: 459844 ko) COQC theories/MCSquash.v theories/MCProd.vo (real: 0.18, user: 0.13, sys: 0.05, mem: 147840 ko) COQC theories/MCArith.v theories/MCSquash.vo (real: 0.12, user: 0.06, sys: 0.05, mem: 99188 ko) COQC theories/MCEquality.v theories/MCEquality.vo (real: 0.11, user: 0.05, sys: 0.06, mem: 100452 ko) COQC theories/LibHypsNaming.v theories/MCArith.vo (real: 0.49, user: 0.30, sys: 0.15, mem: 331824 ko) COQC theories/MCTactics/SpecializeBy.v theories/LibHypsNaming.vo (real: 0.42, user: 0.25, sys: 0.15, mem: 293108 ko) COQC theories/MCTactics/Zeta1.v theories/MCTactics/SpecializeBy.vo (real: 0.12, user: 0.07, sys: 0.04, mem: 98268 ko) COQC theories/MCTactics/FindHyp.v theories/MCTactics/Zeta1.vo (real: 0.12, user: 0.08, sys: 0.04, mem: 97816 ko) COQC theories/MCTactics/Head.v theories/MCTactics/FindHyp.vo (real: 0.11, user: 0.05, sys: 0.06, mem: 99124 ko) COQC theories/MCTactics/DestructHyps.v theories/MCTactics/Head.vo (real: 0.12, user: 0.06, sys: 0.05, mem: 97616 ko) COQC theories/MCTactics/SplitInContext.v theories/MCTactics/DestructHyps.vo (real: 0.12, user: 0.05, sys: 0.07, mem: 98472 ko) COQC theories/MC_ExtrOCamlInt63.v theories/MCTactics/SplitInContext.vo (real: 0.12, user: 0.07, sys: 0.04, mem: 98784 ko) COQC theories/MC_ExtrOCamlZPosInt.v theories/MC_ExtrOCamlInt63.vo (real: 0.36, user: 0.25, sys: 0.10, mem: 266460 ko) COQC theories/canonicaltries/CanonicalTries.v theories/MC_ExtrOCamlZPosInt.vo (real: 0.42, user: 0.25, sys: 0.16, mem: 290800 ko) COQC theories/ByteCompareSpec.v theories/canonicaltries/CanonicalTries.vo (real: 1.76, user: 1.52, sys: 0.22, mem: 462932 ko) COQC theories/MCReflect.v theories/MCReflect.vo (real: 0.45, user: 0.28, sys: 0.14, mem: 320140 ko) COQC theories/MCList.v theories/MCList.vo (real: 2.98, user: 2.47, sys: 0.21, mem: 498528 ko) COQC theories/MCTactics/GeneralizeOverHoles.v theories/MCTactics/GeneralizeOverHoles.vo (real: 0.15, user: 0.10, sys: 0.05, mem: 111640 ko) COQC theories/MCTactics/UniquePose.v theories/MCTactics/UniquePose.vo (real: 0.13, user: 0.06, sys: 0.06, mem: 97920 ko) COQC theories/MCTactics/DestructHead.v theories/MCTactics/DestructHead.vo (real: 0.15, user: 0.07, sys: 0.06, mem: 104584 ko) COQC theories/MCTactics/SpecializeAllWays.v theories/MCTactics/SpecializeAllWays.vo (real: 0.12, user: 0.06, sys: 0.06, mem: 97972 ko) COQC theories/MCOption.v theories/MCOption.vo (real: 0.67, user: 0.46, sys: 0.21, mem: 480328 ko) COQC theories/MCTactics/InHypUnderBindersDo.v theories/MCTactics/InHypUnderBindersDo.vo (real: 0.14, user: 0.07, sys: 0.07, mem: 113536 ko) COQC theories/MCTactics/SpecializeUnderBindersBy.v theories/MCTactics/SpecializeUnderBindersBy.vo (real: 0.14, user: 0.08, sys: 0.06, mem: 115600 ko) COQC theories/All_Forall.v theories/All_Forall.vo (real: 12.12, user: 11.82, sys: 0.26, mem: 567252 ko) COQC theories/MCPred.v theories/MCPred.vo (real: 0.56, user: 0.39, sys: 0.17, mem: 416964 ko) COQC theories/monad_utils.v theories/monad_utils.vo (real: 0.89, user: 0.67, sys: 0.20, mem: 483688 ko) theories/ByteCompareSpec.vo (real: 49.98, user: 48.93, sys: 0.61, mem: 1304400 ko) COQC theories/bytestring.v theories/bytestring.vo (real: 0.73, user: 0.47, sys: 0.26, mem: 535760 ko) COQC theories/MCString.v theories/MCString.vo (real: 0.55, user: 0.39, sys: 0.15, mem: 406132 ko) COQC theories/MCUtils.v theories/MCUtils.vo (real: 0.79, user: 0.51, sys: 0.25, mem: 482312 ko) COQC theories/wGraph.v COQC theories/utils.v theories/utils.vo (real: 0.70, user: 0.47, sys: 0.21, mem: 460700 ko) theories/wGraph.vo (real: 16.13, user: 15.74, sys: 0.34, mem: 664060 ko) make[2]: Leaving directory '/github/workspace/metacoq/utils' make[1]: Leaving directory '/github/workspace/metacoq/utils' make -C common make[1]: Entering directory '/github/workspace/metacoq/common' cat metacoq-config > _CoqProject cat _CoqProject.in >> _CoqProject coq_makefile -f _CoqProject -o Makefile.coq Warning: ../utils/theories (used in -R or -Q) is not a subdirectory of the current directory make -f Makefile.coq make[2]: Entering directory '/github/workspace/metacoq/common' COQDEP VFILES COQC theories/Primitive.v COQC theories/config.v theories/Primitive.vo (real: 0.67, user: 0.34, sys: 0.20, mem: 421476 ko) COQC theories/Kernames.v theories/config.vo (real: 1.12, user: 0.77, sys: 0.21, mem: 464944 ko) COQC theories/Transform.v theories/Transform.vo (real: 0.72, user: 0.49, sys: 0.21, mem: 498956 ko) theories/Kernames.vo (real: 1.64, user: 1.35, sys: 0.29, mem: 632472 ko) COQC theories/BasicAst.v theories/BasicAst.vo (real: 2.61, user: 2.35, sys: 0.26, mem: 625888 ko) COQC theories/Universes.v COQC theories/MonadBasicAst.v theories/MonadBasicAst.vo (real: 1.03, user: 0.75, sys: 0.26, mem: 610224 ko) theories/Universes.vo (real: 5.44, user: 5.05, sys: 0.38, mem: 701340 ko) COQC theories/uGraph.v COQC theories/Environment.v theories/Environment.vo (real: 6.05, user: 5.63, sys: 0.27, mem: 682904 ko) COQC theories/Reflect.v theories/Reflect.vo (real: 3.25, user: 2.95, sys: 0.29, mem: 672292 ko) COQC theories/EnvironmentTyping.v theories/EnvironmentTyping.vo (real: 11.73, user: 11.22, sys: 0.37, mem: 863312 ko) theories/uGraph.vo (real: 24.45, user: 23.74, sys: 0.51, mem: 1275696 ko) COQC theories/UniversesDec.v COQC theories/EnvMap.v theories/EnvMap.vo (real: 1.87, user: 1.55, sys: 0.30, mem: 702428 ko) theories/UniversesDec.vo (real: 15.96, user: 15.53, sys: 0.37, mem: 765792 ko) make[2]: Leaving directory '/github/workspace/metacoq/common' make[1]: Leaving directory '/github/workspace/metacoq/common' make -C pcuic make[1]: Entering directory '/github/workspace/metacoq/pcuic' cat metacoq-config > _CoqProject cat _CoqProject.in >> _CoqProject coq_makefile -f _CoqProject -o Makefile.coq Warning: ../utils/theories (used in -R or -Q) is not a subdirectory of the current directory make -f Makefile.coq make[2]: Entering directory '/github/workspace/metacoq/pcuic' COQDEP VFILES COQC theories/utils/PCUICPrimitive.v COQC theories/utils/PCUICUtils.v theories/utils/PCUICUtils.vo (real: 0.90, user: 0.62, sys: 0.27, mem: 558812 ko) theories/utils/PCUICPrimitive.vo (real: 1.53, user: 1.17, sys: 0.34, mem: 711108 ko) COQC theories/PCUICAst.v theories/PCUICAst.vo (real: 5.24, user: 4.91, sys: 0.33, mem: 728680 ko) COQC theories/utils/PCUICOnOne.v COQC theories/utils/PCUICSize.v theories/utils/PCUICSize.vo (real: 1.29, user: 0.94, sys: 0.33, mem: 714956 ko) COQC theories/utils/PCUICAstUtils.v theories/utils/PCUICOnOne.vo (real: 2.16, user: 1.83, sys: 0.31, mem: 718424 ko) theories/utils/PCUICAstUtils.vo (real: 3.68, user: 3.35, sys: 0.33, mem: 758920 ko) COQC theories/utils/PCUICPretty.v COQC theories/Syntax/PCUICCases.v theories/utils/PCUICPretty.vo (real: 1.53, user: 1.22, sys: 0.30, mem: 753184 ko) theories/Syntax/PCUICCases.vo (real: 2.79, user: 2.43, sys: 0.34, mem: 752748 ko) COQC theories/Syntax/PCUICInduction.v theories/Syntax/PCUICInduction.vo (real: 3.44, user: 3.12, sys: 0.32, mem: 782664 ko) COQC theories/Syntax/PCUICDepth.v COQC theories/Syntax/PCUICReflect.v theories/Syntax/PCUICDepth.vo (real: 3.91, user: 3.47, sys: 0.41, mem: 784684 ko) COQC theories/Syntax/PCUICLiftSubst.v theories/Syntax/PCUICReflect.vo (real: 5.23, user: 4.84, sys: 0.35, mem: 790212 ko) COQC theories/Syntax/PCUICUnivSubst.v theories/Syntax/PCUICUnivSubst.vo (real: 8.48, user: 8.08, sys: 0.32, mem: 764036 ko) COQC theories/Syntax/PCUICViews.v theories/Syntax/PCUICViews.vo (real: 2.12, user: 1.74, sys: 0.32, mem: 765524 ko) theories/Syntax/PCUICLiftSubst.vo (real: 15.72, user: 15.34, sys: 0.35, mem: 799644 ko) COQC theories/PCUICEquality.v COQC theories/PCUICSigmaCalculus.v theories/PCUICEquality.vo (real: 26.87, user: 26.36, sys: 0.42, mem: 1002048 ko) COQC theories/Syntax/PCUICPosition.v theories/PCUICSigmaCalculus.vo (real: 43.43, user: 42.63, sys: 0.47, mem: 881880 ko) COQC theories/Syntax/PCUICClosed.v theories/Syntax/PCUICPosition.vo (real: 19.01, user: 18.54, sys: 0.42, mem: 958472 ko) COQC theories/Syntax/PCUICTactics.v theories/Syntax/PCUICTactics.vo (real: 1.53, user: 1.18, sys: 0.34, mem: 757936 ko) COQC theories/PCUICCasesContexts.v theories/PCUICCasesContexts.vo (real: 2.04, user: 1.76, sys: 0.27, mem: 768260 ko) theories/Syntax/PCUICClosed.vo (real: 21.19, user: 20.72, sys: 0.42, mem: 791756 ko) COQC theories/Syntax/PCUICOnFreeVars.v COQC theories/PCUICReduction.v theories/PCUICReduction.vo (real: 6.69, user: 6.28, sys: 0.32, mem: 787196 ko) COQC theories/PCUICContextSubst.v theories/PCUICContextSubst.vo (real: 3.04, user: 2.69, sys: 0.33, mem: 769188 ko) COQC theories/PCUICCumulativity.v theories/PCUICCumulativity.vo (real: 2.53, user: 2.22, sys: 0.29, mem: 774940 ko) theories/Syntax/PCUICOnFreeVars.vo (real: 19.72, user: 19.34, sys: 0.34, mem: 817712 ko) COQC theories/PCUICCumulativitySpec.v theories/PCUICCumulativitySpec.vo (real: 2.81, user: 2.49, sys: 0.31, mem: 763504 ko) COQC theories/PCUICTyping.v theories/PCUICTyping.vo (real: 22.34, user: 21.90, sys: 0.44, mem: 879068 ko) COQC theories/Syntax/PCUICNamelessDef.v COQC theories/Syntax/PCUICRenameDef.v theories/Syntax/PCUICNamelessDef.vo (real: 1.53, user: 1.19, sys: 0.32, mem: 774924 ko) COQC theories/PCUICGlobalEnv.v theories/Syntax/PCUICRenameDef.vo (real: 1.53, user: 1.18, sys: 0.33, mem: 774440 ko) COQC theories/PCUICWeakeningEnv.v theories/PCUICGlobalEnv.vo (real: 1.69, user: 1.29, sys: 0.39, mem: 770888 ko) COQC theories/PCUICWeakeningConfig.v theories/PCUICWeakeningEnv.vo (real: 2.16, user: 1.78, sys: 0.36, mem: 786120 ko) COQC theories/PCUICGeneration.v theories/PCUICWeakeningConfig.vo (real: 1.59, user: 1.29, sys: 0.30, mem: 775192 ko) COQC theories/PCUICCSubst.v theories/PCUICGeneration.vo (real: 1.77, user: 1.31, sys: 0.38, mem: 776068 ko) COQC theories/PCUICProgram.v theories/PCUICProgram.vo (real: 1.60, user: 1.18, sys: 0.39, mem: 762832 ko) COQC theories/Bidirectional/BDTyping.v theories/PCUICCSubst.vo (real: 2.44, user: 2.06, sys: 0.38, mem: 781876 ko) COQC theories/Syntax/PCUICInstDef.v theories/Syntax/PCUICInstDef.vo (real: 1.62, user: 1.29, sys: 0.31, mem: 775128 ko) COQC theories/Conversion/PCUICClosedConv.v theories/Conversion/PCUICClosedConv.vo (real: 1.91, user: 1.58, sys: 0.32, mem: 781796 ko) COQC theories/Conversion/PCUICWeakeningEnvConv.v theories/Bidirectional/BDTyping.vo (real: 6.72, user: 6.29, sys: 0.36, mem: 796728 ko) COQC theories/Conversion/PCUICWeakeningConfigConv.v theories/Conversion/PCUICWeakeningEnvConv.vo (real: 5.34, user: 4.98, sys: 0.34, mem: 791956 ko) COQC theories/PCUICExpandLets.v theories/Conversion/PCUICWeakeningConfigConv.vo (real: 3.44, user: 3.11, sys: 0.30, mem: 789788 ko) COQC theories/PCUICGuardCondition.v theories/PCUICExpandLets.vo (real: 1.53, user: 1.19, sys: 0.33, mem: 774164 ko) theories/PCUICGuardCondition.vo (real: 1.55, user: 1.23, sys: 0.32, mem: 775008 ko) COQC theories/Typing/PCUICWeakeningEnvTyp.v COQC theories/Conversion/PCUICUnivSubstitutionConv.v theories/Typing/PCUICWeakeningEnvTyp.vo (real: 4.59, user: 4.23, sys: 0.33, mem: 795964 ko) COQC theories/Typing/PCUICWeakeningConfigTyp.v theories/Conversion/PCUICUnivSubstitutionConv.vo (real: 10.20, user: 9.77, sys: 0.35, mem: 817656 ko) COQC theories/Typing/PCUICClosedTyp.v theories/Typing/PCUICWeakeningConfigTyp.vo (real: 9.11, user: 8.71, sys: 0.35, mem: 823676 ko) COQC theories/Typing/PCUICUnivSubstitutionTyp.v theories/Typing/PCUICClosedTyp.vo (real: 9.49, user: 9.10, sys: 0.33, mem: 804404 ko) COQC theories/Conversion/PCUICNamelessConv.v theories/Typing/PCUICUnivSubstitutionTyp.vo (real: 6.65, user: 6.27, sys: 0.35, mem: 788040 ko) COQC theories/Conversion/PCUICRenameConv.v theories/Conversion/PCUICNamelessConv.vo (real: 10.94, user: 10.51, sys: 0.37, mem: 837728 ko) COQC theories/PCUICWcbvEval.v theories/Conversion/PCUICRenameConv.vo (real: 13.87, user: 13.43, sys: 0.37, mem: 845224 ko) COQC theories/Conversion/PCUICWeakeningConv.v theories/Conversion/PCUICWeakeningConv.vo (real: 2.64, user: 2.30, sys: 0.32, mem: 793000 ko) COQC theories/Conversion/PCUICOnFreeVarsConv.v theories/Conversion/PCUICOnFreeVarsConv.vo (real: 6.58, user: 6.23, sys: 0.29, mem: 788840 ko) COQC theories/Typing/PCUICRenameTyp.v theories/PCUICWcbvEval.vo (real: 25.99, user: 24.69, sys: 0.37, mem: 878132 ko) theories/Typing/PCUICRenameTyp.vo (real: 13.31, user: 11.70, sys: 0.38, mem: 835540 ko) COQC theories/Typing/PCUICWeakeningTyp.v theories/Typing/PCUICWeakeningTyp.vo (real: 1.79, user: 1.41, sys: 0.37, mem: 795060 ko) COQC theories/Conversion/PCUICInstConv.v theories/Conversion/PCUICInstConv.vo (real: 35.26, user: 34.80, sys: 0.44, mem: 934828 ko) COQC theories/Typing/PCUICInstTyp.v theories/Typing/PCUICInstTyp.vo (real: 9.37, user: 8.99, sys: 0.37, mem: 818968 ko) COQC theories/PCUICSubstitution.v theories/PCUICSubstitution.vo (real: 17.23, user: 16.85, sys: 0.38, mem: 848368 ko) COQC theories/PCUICContextReduction.v COQC theories/PCUICParallelReduction.v theories/PCUICContextReduction.vo (real: 6.07, user: 5.68, sys: 0.38, mem: 801292 ko) COQC theories/PCUICContexts.v theories/PCUICContexts.vo (real: 9.27, user: 8.90, sys: 0.35, mem: 802792 ko) COQC theories/PCUICWfUniverses.v theories/PCUICWfUniverses.vo (real: 23.57, user: 22.20, sys: 0.41, mem: 841548 ko) COQC theories/PCUICRedTypeIrrelevance.v theories/PCUICRedTypeIrrelevance.vo (real: 3.54, user: 3.18, sys: 0.34, mem: 801108 ko) theories/PCUICParallelReduction.vo (real: 51.98, user: 50.13, sys: 0.55, mem: 1214408 ko) COQC theories/PCUICParallelReductionConfluence.v theories/PCUICParallelReductionConfluence.vo (real: 82.54, user: 82.00, sys: 0.52, mem: 1262604 ko) COQC theories/PCUICConfluence.v theories/PCUICConfluence.vo (real: 93.12, user: 92.04, sys: 1.06, mem: 2327624 ko) COQC theories/PCUICWellScopedCumulativity.v theories/PCUICWellScopedCumulativity.vo (real: 11.46, user: 11.05, sys: 0.40, mem: 870504 ko) COQC theories/PCUICContextConversion.v theories/PCUICContextConversion.vo (real: 23.50, user: 23.14, sys: 0.36, mem: 856512 ko) COQC theories/PCUICConversion.v theories/PCUICConversion.vo (real: 65.15, user: 64.17, sys: 0.96, mem: 2004408 ko) COQC theories/Typing/PCUICNamelessTyp.v COQC theories/Typing/PCUICContextConversionTyp.v theories/Typing/PCUICNamelessTyp.vo (real: 1.74, user: 1.39, sys: 0.34, mem: 817032 ko) COQC theories/PCUICInversion.v theories/Typing/PCUICContextConversionTyp.vo (real: 6.87, user: 6.50, sys: 0.31, mem: 828812 ko) theories/PCUICInversion.vo (real: 11.84, user: 11.44, sys: 0.39, mem: 873036 ko) COQC theories/PCUICArities.v theories/PCUICArities.vo (real: 10.74, user: 10.32, sys: 0.41, mem: 887976 ko) COQC theories/PCUICSpine.v theories/PCUICSpine.vo (real: 33.72, user: 33.32, sys: 0.39, mem: 999116 ko) COQC theories/PCUICInductives.v theories/PCUICInductives.vo (real: 19.19, user: 18.76, sys: 0.42, mem: 903372 ko) COQC theories/PCUICValidity.v theories/PCUICValidity.vo (real: 5.41, user: 5.05, sys: 0.35, mem: 836276 ko) COQC theories/PCUICInductiveInversion.v theories/PCUICInductiveInversion.vo (real: 37.35, user: 36.83, sys: 0.51, mem: 1042412 ko) COQC theories/PCUICAlpha.v COQC theories/PCUICEtaExpand.v theories/PCUICEtaExpand.vo (real: 7.88, user: 7.44, sys: 0.37, mem: 844760 ko) theories/PCUICAlpha.vo (real: 16.84, user: 16.36, sys: 0.46, mem: 907328 ko) COQC theories/PCUICSR.v theories/PCUICSR.vo (real: 58.33, user: 57.63, sys: 0.68, mem: 1484444 ko) COQC theories/PCUICNormal.v COQC theories/Bidirectional/BDToPCUIC.v theories/Bidirectional/BDToPCUIC.vo (real: 5.52, user: 5.15, sys: 0.33, mem: 845324 ko) COQC theories/PCUICCasesHelper.v theories/PCUICCasesHelper.vo (real: 7.92, user: 7.55, sys: 0.31, mem: 840096 ko) COQC theories/Bidirectional/BDFromPCUIC.v theories/Bidirectional/BDFromPCUIC.vo (real: 4.73, user: 4.37, sys: 0.32, mem: 844140 ko) COQC theories/Bidirectional/BDUnique.v theories/PCUICNormal.vo (real: 21.96, user: 21.39, sys: 0.47, mem: 992572 ko) COQC theories/Bidirectional/BDStrengthening.v theories/Bidirectional/BDStrengthening.vo (real: 8.92, user: 8.50, sys: 0.38, mem: 847992 ko) COQC theories/PCUICConvCumInversion.v theories/Bidirectional/BDUnique.vo (real: 17.35, user: 16.82, sys: 0.37, mem: 973956 ko) COQC theories/PCUICSafeLemmata.v theories/PCUICSafeLemmata.vo (real: 5.82, user: 5.42, sys: 0.35, mem: 857384 ko) COQC theories/PCUICCumulProp.v theories/PCUICConvCumInversion.vo (real: 19.41, user: 18.46, sys: 0.39, mem: 943036 ko) COQC theories/PCUICSN.v theories/PCUICSN.vo (real: 2.33, user: 1.77, sys: 0.36, mem: 838772 ko) COQC theories/PCUICWeakeningEnvSN.v theories/PCUICWeakeningEnvSN.vo (real: 1.88, user: 1.49, sys: 0.38, mem: 836928 ko) COQC theories/PCUICWeakeningConfigSN.v theories/PCUICWeakeningConfigSN.vo (real: 1.92, user: 1.56, sys: 0.33, mem: 838164 ko) theories/PCUICCumulProp.vo (real: 21.02, user: 19.87, sys: 0.46, mem: 1032956 ko) COQC theories/PCUICElimination.v COQC theories/PCUICPrincipality.v theories/PCUICElimination.vo (real: 9.08, user: 8.66, sys: 0.37, mem: 859004 ko) COQC theories/PCUICCanonicity.v theories/PCUICCanonicity.vo (real: 10.79, user: 10.34, sys: 0.42, mem: 872916 ko) COQC theories/PCUICProgress.v theories/PCUICPrincipality.vo (real: 25.24, user: 24.16, sys: 0.46, mem: 928756 ko) COQC theories/PCUICExpandLetsCorrectness.v theories/PCUICProgress.vo (real: 7.13, user: 6.19, sys: 0.38, mem: 859132 ko) COQC theories/PCUICFirstorder.v theories/PCUICFirstorder.vo (real: 6.42, user: 5.98, sys: 0.42, mem: 852680 ko) COQC theories/PCUICNormalization.v theories/PCUICNormalization.vo (real: 2.75, user: 2.34, sys: 0.39, mem: 846492 ko) COQC theories/PCUICConsistency.v theories/PCUICConsistency.vo (real: 2.10, user: 1.76, sys: 0.33, mem: 845428 ko) theories/PCUICExpandLetsCorrectness.vo (real: 55.45, user: 54.85, sys: 0.53, mem: 1153140 ko) make[2]: Leaving directory '/github/workspace/metacoq/pcuic' make[1]: Leaving directory '/github/workspace/metacoq/pcuic' make -C safechecker make[1]: Entering directory '/github/workspace/metacoq/safechecker' cat metacoq-config > _CoqProject cat _CoqProject.in >> _CoqProject coq_makefile -f _CoqProject -o Makefile.safechecker Warning: ../utils/theories (used in -R or -Q) is not a subdirectory of the current directory make -f Makefile.safechecker make[2]: Entering directory '/github/workspace/metacoq/safechecker' COQDEP VFILES COQC theories/PCUICEqualityDec.v COQC theories/PCUICErrors.v theories/PCUICErrors.vo (real: 2.47, user: 2.17, sys: 0.28, mem: 754696 ko) theories/PCUICEqualityDec.vo (real: 16.96, user: 16.50, sys: 0.45, mem: 1003024 ko) COQC theories/PCUICWfEnv.v theories/PCUICWfEnv.vo (real: 3.37, user: 3.01, sys: 0.35, mem: 842664 ko) COQC theories/PCUICWfReduction.v COQC theories/PCUICWfEnvImpl.v theories/PCUICWfEnvImpl.vo (real: 3.94, user: 3.52, sys: 0.37, mem: 849112 ko) theories/PCUICWfReduction.vo (real: 4.30, user: 3.87, sys: 0.41, mem: 860700 ko) COQC theories/PCUICSafeReduce.v COQC theories/PCUICSafeConversion.v File "./theories/PCUICSafeConversion.v", line 19, characters 0-36: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 22, characters 0-28: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 25, characters 0-30: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 28, characters 0-38: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 29, characters 0-50: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 30, characters 0-45: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 31, characters 0-38: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 32, characters 0-38: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 33, characters 0-39: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 34, characters 0-36: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 35, characters 0-37: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 36, characters 0-39: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 37, characters 0-30: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 38, characters 0-30: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 39, characters 0-37: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 40, characters 0-34: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 41, characters 0-43: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 42, characters 0-34: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 43, characters 0-44: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 44, characters 0-44: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 45, characters 0-38: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 46, characters 0-42: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 47, characters 0-31: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 58, characters 0-39: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 59, characters 0-45: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 60, characters 0-40: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 64, characters 0-31: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 67, characters 0-33: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 935, characters 0-8: Error: Anomaly "in Univ.repr: Universe MetaCoq.SafeChecker.PCUICSafeConversion.515 undefined." Please report at http://coq.inria.fr/bugs/. Command exited with non-zero status 129 theories/PCUICSafeConversion.vo (real: 13.37, user: 12.70, sys: 0.50, mem: 1055732 ko) make[3]: *** [Makefile.safechecker:793: theories/PCUICSafeConversion.vo] Error 129 make[3]: *** Waiting for unfinished jobs.... theories/PCUICSafeReduce.vo (real: 138.81, user: 138.08, sys: 0.64, mem: 1569792 ko) make[2]: *** [Makefile.safechecker:409: all] Error 2 make[2]: Leaving directory '/github/workspace/metacoq/safechecker' make[1]: *** [Makefile:11: theory] Error 2 make[1]: Leaving directory '/github/workspace/metacoq/safechecker' make: *** [Makefile:137: safechecker] Error 2 ```
minimizer log ``` ```

If you have any comments on your experience of the minimizer, please share them in a reply (possibly tagging @JasonGross). If you believe there's a bug in the bug minimizer, please report it on the bug minimizer issue tracker.

JasonGross commented 1 year ago

@coqbot minimize coq-8.16

#!/usr/bin/env bash
opam install -y --criteria=paranoid coq-equations
git clone https://github.com/JasonGross/metacoq.git --branch=zzz-bug-equations-anomaly
cd metacoq
./configure.sh local
make safechecker TIMED=1 -j2
coqbot commented 1 year ago

Hey @JasonGross, the coq bug minimizer is running your script, I'll come back to you with the results once it's done.

coqbot commented 1 year ago

@JasonGross, Minimized File /github/workspace/metacoq/utils/theories/ReflectEq.v (full log on GitHub Actions)

Minimized Coq File (consider adding this file to the test-suite) ```coq (* -*- mode: coq; coq-prog-args: ("-emacs" "-q" "-w" "-deprecated-native-compiler-option" "-native-compiler" "no" "-R" "/github/workspace/metacoq/utils/theories" "MetaCoq.Utils" "-Q" "/github/workspace/cwd" "Top" "-Q" "/home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Bignums" "Bignums" "-Q" "/home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Ltac2" "Ltac2" "-top" "MetaCoq.Utils.ReflectEq") -*- *) (* File reduced by coq-bug-minimizer from original input, then from 223 lines to 3 lines, then from 8 lines to 3 lines *) (* coqc version 8.16.1 compiled with OCaml 4.13.1 coqtop version 8.16.1 Expected coqc runtime on this file: 0.100 sec *) From Equations Require Import Equations. ```
Intermediate Coq File (useful for debugging if minimization did not go as far as you wanted) ```coq ```
Build Log (contains the Coq error message) (truncated to last 8.0KiB; full 13KiB file on GitHub Actions Artifacts under build.log) ``` metacoq/template-coq' make -C pcuic mrproper make[1]: Entering directory '/github/workspace/metacoq/pcuic' rm -f Makefile.coq make[1]: Leaving directory '/github/workspace/metacoq/pcuic' make -C safechecker mrproper make[1]: Entering directory '/github/workspace/metacoq/safechecker' rm -f metacoq-config rm -f Makefile.safechecker _CoqProject make[1]: Leaving directory '/github/workspace/metacoq/safechecker' make -C template-pcuic mrproper make[1]: Entering directory '/github/workspace/metacoq/template-pcuic' rm -f metacoq-config rm -f Makefile.templatepcuic _CoqProject make[1]: Leaving directory '/github/workspace/metacoq/template-pcuic' make -C erasure mrproper make[1]: Entering directory '/github/workspace/metacoq/erasure' rm -f Makefile.erasure make[1]: Leaving directory '/github/workspace/metacoq/erasure' make -C erasure-plugin mrproper make[1]: Entering directory '/github/workspace/metacoq/erasure-plugin' rm -f metacoq-config rm -f Makefile.plugin _PluginProject rm -f Makefile.erasureplugin _CoqProject make[1]: Leaving directory '/github/workspace/metacoq/erasure-plugin' make -C examples mrproper make[1]: Entering directory '/github/workspace/metacoq/examples' rm -f Makefile.coq make[1]: Leaving directory '/github/workspace/metacoq/examples' make -C test-suite mrproper make[1]: Entering directory '/github/workspace/metacoq/test-suite' rm -f Makefile.coq make[1]: Leaving directory '/github/workspace/metacoq/test-suite' make -C translations mrproper make[1]: Entering directory '/github/workspace/metacoq/translations' rm -f Makefile.coq make[1]: Leaving directory '/github/workspace/metacoq/translations' MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -where MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.OrCoEMdWGJ MINIMIZER_DEBUG: files: Building MetaCoq locally ++ (/github/workspace/run-script.sh @ line 6) $ make safechecker TIMED=1 -j2 make -C utils make[1]: Entering directory '/github/workspace/metacoq/utils' coq_makefile -f _CoqProject -o Makefile.coq make -f Makefile.coq make[2]: Entering directory '/github/workspace/metacoq/utils' MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/utils MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig --print-version MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.JY3XsqPfcD MINIMIZER_DEBUG: files: COQDEP VFILES *** Warning: in file theories/canonicaltries/String2pos.v, library Equations is required from root Equations and has not been found in the loadpath! *** Warning: in file theories/ByteCompareSpec.v, library Equations is required from root Equations and has not been found in the loadpath! *** Warning: in file theories/bytestring.v, library Equations is required from root Equations and has not been found in the loadpath! *** Warning: in file theories/MCPrelude.v, library Equations is required from root Equations and has not been found in the loadpath! *** Warning: in file theories/MCReflect.v, library Equations is required from root Equations and has not been found in the loadpath! *** Warning: in file theories/All_Forall.v, library Equations is required from root Equations and has not been found in the loadpath! *** Warning: in file theories/MCCompare.v, library Equations is required from root Equations and has not been found in the loadpath! *** Warning: in file theories/MCList.v, library Equations is required from root Equations and has not been found in the loadpath! *** Warning: in file theories/MCPred.v, library Equations is required from root Equations and has not been found in the loadpath! *** Warning: in file theories/MCRelations.v, library Equations.Type.Relation is required and has not been found in the loadpath! *** Warning: in file theories/MCRelations.v, library Equations.Type.Relation_Properties is required and has not been found in the loadpath! *** Warning: in file theories/wGraph.v, library Equations is required from root Equations and has not been found in the loadpath! *** Warning: in file theories/ReflectEq.v, library Equations is required from root Equations and has not been found in the loadpath! *** Warning: in file theories/monad_utils.v, library Equations is required from root Equations and has not been found in the loadpath! MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/utils MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig --print-version MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.7hxqxQT5SH MINIMIZER_DEBUG: files: MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/utils MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig --print-version MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.eVPmmiSdpw MINIMIZER_DEBUG: files: MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/utils MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig --print-version MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.sShYof4yrI MINIMIZER_DEBUG: files: COQC theories/canonicaltries/String2pos.v COQC theories/ByteCompare.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/utils MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/utils MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils theories/ByteCompare.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.MorZYhQDlQ MINIMIZER_DEBUG: files: theories/ByteCompare.v MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils theories/canonicaltries/String2pos.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.2K247CUYe7 MINIMIZER_DEBUG: files: theories/canonicaltries/String2pos.v theories/ByteCompare.vo (real: 0.27, user: 0.16, sys: 0.10, mem: 228372 ko) COQC theories/ReflectEq.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/utils MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils theories/ReflectEq.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.hq9a37odWE MINIMIZER_DEBUG: files: theories/ReflectEq.v File "./theories/canonicaltries/String2pos.v", line 5, characters 0-40: Error: Cannot find a physical path bound to logical path Equations with prefix Equations. Command exited with non-zero status 1 theories/canonicaltries/String2pos.vo (real: 0.33, user: 0.22, sys: 0.11, mem: 280240 ko) make[3]: *** [Makefile.coq:793: theories/canonicaltries/String2pos.vo] Error 1 make[3]: *** Waiting for unfinished jobs.... File "./theories/ReflectEq.v", line 2, characters 0-40: Error: Cannot find a physical path bound to logical path Equations with prefix Equations. Command exited with non-zero status 1 theories/ReflectEq.vo (real: 0.20, user: 0.13, sys: 0.06, mem: 162280 ko) make[3]: *** [Makefile.coq:793: theories/ReflectEq.vo] Error 1 make[2]: *** [Makefile.coq:409: all] Error 2 make[2]: Leaving directory '/github/workspace/metacoq/utils' make[1]: *** [Makefile:4: coq] Error 2 make[1]: Leaving directory '/github/workspace/metacoq/utils' make: *** [Makefile:125: utils] Error 2 ```
Minimization Log (truncated to last 8.0KiB; full 23KiB file on GitHub Actions Artifacts under bug.log) ``` /cwd/bug_01.v) NOTE: The file bug_01.v is very new (1680780237, 0 seconds old), delaying until it's a bit older /home/coq/.opam/4.13.1+flambda/bin/coq_makefile COQC = /home/coq/.opam/4.13.1+flambda/bin/coqc.orig COQDEP = /home/coq/.opam/4.13.1+flambda/bin/coqdep -o Makefiled7oy_1fs.coq -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -Q /github/workspace/cwd Top -Q /home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Bignums Bignums -Q /home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Ltac2 Ltac2 -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -Q /github/workspace/cwd Top -Q /home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Bignums Bignums -Q /home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Ltac2 Ltac2 -arg -q -arg -w -arg -deprecated-native-compiler-option -arg -native-compiler -arg no bug_01.v getting Makefiled7oy_1fs.coq (/github/workspace/cwd/Makefiled7oy_1fs.coq) make -k -f Makefiled7oy_1fs.coq KEEP_ERROR=1 bug_01.glob getting bug_01.glob (/github/workspace/cwd/bug_01.glob) getting /github/workspace/cwd/bug_01.glob  Sanity check passed. Now, I will attempt to strip repeated newlines and trailing spaces from this file... No strippable newlines or spaces. Now, I will attempt to strip the comments from this file...  Succeeded in stripping comments. Now, I will attempt to factor out all of the [Require]s... getting bug_01.v (/github/workspace/cwd/bug_01.v) NOTE: The file bug_01.v is very new (1680780239, 0 seconds old), delaying until it's a bit older /home/coq/.opam/4.13.1+flambda/bin/coq_makefile COQC = /home/coq/.opam/4.13.1+flambda/bin/coqc.orig COQDEP = /home/coq/.opam/4.13.1+flambda/bin/coqdep -o Makefileilet4qru.coq -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -Q /github/workspace/cwd Top -Q /home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Bignums Bignums -Q /home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Ltac2 Ltac2 -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -Q /github/workspace/cwd Top -Q /home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Bignums Bignums -Q /home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Ltac2 Ltac2 -arg -q -arg -w -arg -deprecated-native-compiler-option -arg -native-compiler -arg no bug_01.v getting Makefileilet4qru.coq (/github/workspace/cwd/Makefileilet4qru.coq) make -k -f Makefileilet4qru.coq KEEP_ERROR=1 bug_01.glob getting bug_01.glob (/github/workspace/cwd/bug_01.glob) getting bug_01.glob (/github/workspace/cwd/bug_01.glob) Non-fatal error: Failed to normalize Requires and preserve the error. The new error was: File "/tmp/tmpo_kwz35m/MetaCoq/Utils/ReflectEq.v", line 7, characters 15-21: Error: Syntax error: 'Extra' 'Dependency' expected after [global] (in [gallina_ext]). Changed file not saved. Now, I will attempt to split up [Require] statements... getting /github/workspace/cwd/bug_01.v getting /github/workspace/cwd/bug_01.glob getting /github/workspace/cwd/bug_01.glob No Requires to split. In order to efficiently manipulate the file, I have to break it into statements. I will attempt to do this by matching on periods.  Splitting successful. I will now attempt to remove any lines after the line which generates the error. No lines to trim. In order to efficiently manipulate the file, I have to break it into definitions. I will now attempt to do this. Sending statements to coqtop... Done. Splitting to definitions...  Splitting to definitions successful. I will now attempt to remove goals ending in [Abort.]  Aborted removal successful. I will now attempt to remove unused Ltacs  Ltac removal successful. I will now attempt to remove unused definitions  Definition removal successful. I will now attempt to remove unused non-instance, non-canonical structure definitions  Non-instance definition removal successful. I will now attempt to remove unused variables  Variable removal successful. I will now attempt to remove unused contexts  Context removal successful. I will now attempt to replace Qed Obligation with Admit Obligations  Admitting Qed Obligations successful. Failed to do everything at once; trying one at a time. Admitting Qed Obligations unsuccessful. No successful changes. I will now attempt to replace Qeds with Admitteds  Admitting Qeds successful. Failed to do everything at once; trying one at a time. Admitting Qeds unsuccessful. No successful changes. I will now attempt to replace Qeds with admit. Defined.  Admitting Qeds successful. Failed to do everything at once; trying one at a time. Admitting Qeds unsuccessful. No successful changes. I will now attempt to remove goals ending in [Abort.]  Aborted removal successful. I will now attempt to remove unused Ltacs  Ltac removal successful. I will now attempt to remove unused definitions  Definition removal successful. I will now attempt to remove unused non-instance, non-canonical structure definitions  Non-instance definition removal successful. I will now attempt to remove unused variables  Variable removal successful. I will now attempt to remove unused contexts  Context removal successful. I will now attempt to admit [abstract ...]s  Admitting [abstract ...] successful.  Admitting [abstract ...] successful. Admitting [abstract ...] unsuccessful. Admitting [abstract ...] unsuccessful. I will now attempt to remove goals ending in [Abort.]  Aborted removal successful. I will now attempt to remove unused Ltacs  Ltac removal successful. I will now attempt to remove unused definitions  Definition removal successful. I will now attempt to remove unused non-instance, non-canonical structure definitions  Non-instance definition removal successful. I will now attempt to remove unused variables  Variable removal successful. I will now attempt to remove unused contexts  Context removal successful. I will now attempt to replace Obligation with Admit Obligations  Admitting Obligations successful. Failed to do everything at once; trying one at a time. Admitting Obligations unsuccessful. No successful changes. I will now attempt to admit lemmas with Admitted  Admitting lemmas successful. Failed to do everything at once; trying one at a time. Admitting lemmas unsuccessful. No successful changes. I will now attempt to admit definitions with Admitted  Admitting definitions successful. Failed to do everything at once; trying one at a time. Admitting definitions unsuccessful. No successful changes. I will now attempt to admit lemmas with admit. Defined  Admitting lemmas successful. Failed to do everything at once; trying one at a time. Admitting lemmas unsuccessful. No successful changes. I will now attempt to admit definitions with admit. Defined  Admitting definitions successful. Failed to do everything at once; trying one at a time. Admitting definitions unsuccessful. No successful changes. I will now attempt to export modules Module exportation unsuccessful. I will now attempt to split imports and exports Import/Export splitting unsuccessful. I will now attempt to split := definitions One-line definition splitting unsuccessful. I will now attempt to remove all lines, one at a time Line removal unsuccessful. I will now attempt to remove goals ending in [Abort.]  Aborted removal successful. I will now attempt to remove unused Ltacs  Ltac removal successful. I will now attempt to remove unused definitions  Definition removal successful. I will now attempt to remove unused non-instance, non-canonical structure definitions  Non-instance definition removal successful. I will now attempt to remove unused variables  Variable removal successful. I will now attempt to remove unused contexts  Context removal successful. I will now attempt to remove empty sections No empty sections to remove. Now, I will attempt to strip repeated newlines and trailing spaces from this file... No strippable newlines or spaces. ```

If you have any comments on your experience of the minimizer, please share them in a reply (possibly tagging @JasonGross). If you believe there's a bug in the bug minimizer, please report it on the bug minimizer issue tracker.

JasonGross commented 1 year ago

@coqbot minimize coq-8.16

#!/usr/bin/env bash
opam reinstall -y coq-equations
git clone https://github.com/JasonGross/metacoq.git --branch=zzz-bug-equations-anomaly
cd metacoq
./configure.sh local
make safechecker TIMED=1 -j2
coqbot commented 1 year ago

Hey @JasonGross, the coq bug minimizer is running your script, I'll come back to you with the results once it's done.

JasonGross commented 1 year ago

@coqbot minimize coq-8.16

#!/usr/bin/env bash
opam reinstall -y coq-equations
wrap_opam coqc coqtop
        for i in coqc coqtop; do
            pushd "$(dirname "$(which "$i")")"
            wrap_file "$i"
            popd
        done
git clone https://github.com/JasonGross/metacoq.git --branch=zzz-bug-equations-anomaly
cd metacoq
./configure.sh local
make safechecker TIMED=1 -j2
coqbot commented 1 year ago

Hey @JasonGross, the coq bug minimizer is running your script, I'll come back to you with the results once it's done.

JasonGross commented 1 year ago

@coqbot minimize coq-8.16

#!/usr/bin/env bash
opam install -y coq-equations
wrap_opam coqc coqtop
        for i in coqc coqtop; do
            pushd "$(dirname "$(which "$i")")"
            wrap_file "$i"
            popd
        done
git clone https://github.com/JasonGross/metacoq.git --branch=zzz-bug-equations-anomaly
cd metacoq
./configure.sh local
make safechecker TIMED=1 -j2
coqbot commented 1 year ago

Hey @JasonGross, the coq bug minimizer is running your script, I'll come back to you with the results once it's done.

coqbot commented 1 year ago

@JasonGross, Error: Could not minimize file (full log on GitHub Actions, cc @JasonGross)

build log (truncated to last 26KiB; full 38KiB file on GitHub Actions Artifacts under build.log) ``` mem: 412720 ko) COQC theories/MCRelations.v theories/MCRelations.vo (real: 0.23, user: 0.16, sys: 0.06, mem: 195356 ko) COQC theories/MCProd.v theories/MCPrelude.vo (real: 0.53, user: 0.37, sys: 0.15, mem: 458572 ko) COQC theories/MCSquash.v theories/MCSquash.vo (real: 0.10, user: 0.06, sys: 0.04, mem: 100396 ko) COQC theories/MCArith.v theories/MCProd.vo (real: 0.16, user: 0.10, sys: 0.06, mem: 147584 ko) COQC theories/MCEquality.v theories/MCEquality.vo (real: 0.10, user: 0.06, sys: 0.04, mem: 100000 ko) COQC theories/LibHypsNaming.v theories/MCArith.vo (real: 0.39, user: 0.28, sys: 0.09, mem: 332680 ko) COQC theories/MCTactics/SpecializeBy.v theories/MCTactics/SpecializeBy.vo (real: 0.10, user: 0.05, sys: 0.04, mem: 99212 ko) COQC theories/MCTactics/Zeta1.v theories/LibHypsNaming.vo (real: 0.37, user: 0.20, sys: 0.14, mem: 294296 ko) COQC theories/MCTactics/FindHyp.v theories/MCTactics/Zeta1.vo (real: 0.11, user: 0.05, sys: 0.05, mem: 102360 ko) COQC theories/MCTactics/Head.v theories/MCTactics/FindHyp.vo (real: 0.10, user: 0.05, sys: 0.04, mem: 99172 ko) COQC theories/MCTactics/DestructHyps.v theories/MCTactics/Head.vo (real: 0.10, user: 0.05, sys: 0.05, mem: 98100 ko) COQC theories/MCTactics/SplitInContext.v theories/MCTactics/DestructHyps.vo (real: 0.10, user: 0.06, sys: 0.03, mem: 99772 ko) COQC theories/MC_ExtrOCamlInt63.v theories/MCTactics/SplitInContext.vo (real: 0.10, user: 0.05, sys: 0.05, mem: 99040 ko) COQC theories/MC_ExtrOCamlZPosInt.v theories/MC_ExtrOCamlInt63.vo (real: 0.31, user: 0.20, sys: 0.09, mem: 267700 ko) COQC theories/canonicaltries/CanonicalTries.v theories/MC_ExtrOCamlZPosInt.vo (real: 0.34, user: 0.20, sys: 0.13, mem: 289240 ko) COQC theories/ByteCompareSpec.v theories/canonicaltries/CanonicalTries.vo (real: 1.34, user: 1.16, sys: 0.17, mem: 465152 ko) COQC theories/MCReflect.v theories/MCReflect.vo (real: 0.37, user: 0.23, sys: 0.14, mem: 320380 ko) COQC theories/MCList.v theories/MCList.vo (real: 2.03, user: 1.83, sys: 0.19, mem: 496900 ko) COQC theories/MCTactics/GeneralizeOverHoles.v theories/MCTactics/GeneralizeOverHoles.vo (real: 0.12, user: 0.07, sys: 0.04, mem: 111484 ko) COQC theories/MCTactics/UniquePose.v theories/MCTactics/UniquePose.vo (real: 0.10, user: 0.06, sys: 0.04, mem: 97932 ko) COQC theories/MCTactics/DestructHead.v theories/MCTactics/DestructHead.vo (real: 0.11, user: 0.07, sys: 0.03, mem: 104008 ko) COQC theories/MCTactics/SpecializeAllWays.v theories/MCTactics/SpecializeAllWays.vo (real: 0.10, user: 0.07, sys: 0.03, mem: 97172 ko) COQC theories/MCOption.v theories/MCOption.vo (real: 0.59, user: 0.40, sys: 0.18, mem: 480012 ko) COQC theories/MCTactics/InHypUnderBindersDo.v theories/MCTactics/InHypUnderBindersDo.vo (real: 0.13, user: 0.08, sys: 0.04, mem: 113976 ko) COQC theories/MCTactics/SpecializeUnderBindersBy.v theories/MCTactics/SpecializeUnderBindersBy.vo (real: 0.13, user: 0.09, sys: 0.03, mem: 115056 ko) COQC theories/All_Forall.v theories/All_Forall.vo (real: 9.17, user: 8.85, sys: 0.29, mem: 563384 ko) COQC theories/MCPred.v theories/MCPred.vo (real: 0.48, user: 0.31, sys: 0.17, mem: 413408 ko) COQC theories/monad_utils.v theories/monad_utils.vo (real: 0.75, user: 0.53, sys: 0.21, mem: 483196 ko) theories/ByteCompareSpec.vo (real: 38.48, user: 37.91, sys: 0.47, mem: 1298828 ko) COQC theories/bytestring.v theories/bytestring.vo (real: 0.62, user: 0.44, sys: 0.17, mem: 538560 ko) COQC theories/MCString.v theories/MCString.vo (real: 0.45, user: 0.28, sys: 0.17, mem: 405112 ko) COQC theories/MCUtils.v theories/MCUtils.vo (real: 0.61, user: 0.39, sys: 0.19, mem: 481292 ko) COQC theories/wGraph.v COQC theories/utils.v theories/utils.vo (real: 0.59, user: 0.41, sys: 0.17, mem: 461372 ko) theories/wGraph.vo (real: 11.08, user: 10.82, sys: 0.23, mem: 668424 ko) make[2]: Leaving directory '/github/workspace/metacoq/utils' make[1]: Leaving directory '/github/workspace/metacoq/utils' make -C common make[1]: Entering directory '/github/workspace/metacoq/common' cat metacoq-config > _CoqProject cat _CoqProject.in >> _CoqProject coq_makefile -f _CoqProject -o Makefile.coq Warning: ../utils/theories (used in -R or -Q) is not a subdirectory of the current directory make -f Makefile.coq make[2]: Entering directory '/github/workspace/metacoq/common' COQDEP VFILES COQC theories/Primitive.v COQC theories/config.v theories/Primitive.vo (real: 0.56, user: 0.33, sys: 0.14, mem: 418536 ko) COQC theories/Kernames.v theories/config.vo (real: 0.94, user: 0.58, sys: 0.21, mem: 465140 ko) COQC theories/Transform.v theories/Transform.vo (real: 0.61, user: 0.44, sys: 0.16, mem: 496344 ko) theories/Kernames.vo (real: 1.38, user: 1.15, sys: 0.21, mem: 632036 ko) COQC theories/BasicAst.v theories/BasicAst.vo (real: 2.03, user: 1.81, sys: 0.21, mem: 622656 ko) COQC theories/Universes.v COQC theories/MonadBasicAst.v theories/MonadBasicAst.vo (real: 0.92, user: 0.61, sys: 0.23, mem: 610920 ko) theories/Universes.vo (real: 4.24, user: 3.95, sys: 0.25, mem: 701080 ko) COQC theories/uGraph.v COQC theories/Environment.v theories/Environment.vo (real: 4.53, user: 4.18, sys: 0.23, mem: 682288 ko) COQC theories/Reflect.v theories/Reflect.vo (real: 2.47, user: 2.11, sys: 0.28, mem: 673244 ko) COQC theories/EnvironmentTyping.v theories/EnvironmentTyping.vo (real: 9.00, user: 8.48, sys: 0.35, mem: 864180 ko) theories/uGraph.vo (real: 18.68, user: 18.15, sys: 0.41, mem: 1278228 ko) COQC theories/UniversesDec.v COQC theories/EnvMap.v theories/EnvMap.vo (real: 1.47, user: 1.18, sys: 0.28, mem: 702040 ko) theories/UniversesDec.vo (real: 11.19, user: 10.90, sys: 0.28, mem: 765512 ko) make[2]: Leaving directory '/github/workspace/metacoq/common' make[1]: Leaving directory '/github/workspace/metacoq/common' make -C pcuic make[1]: Entering directory '/github/workspace/metacoq/pcuic' cat metacoq-config > _CoqProject cat _CoqProject.in >> _CoqProject coq_makefile -f _CoqProject -o Makefile.coq Warning: ../utils/theories (used in -R or -Q) is not a subdirectory of the current directory make -f Makefile.coq make[2]: Entering directory '/github/workspace/metacoq/pcuic' COQDEP VFILES COQC theories/utils/PCUICPrimitive.v COQC theories/utils/PCUICUtils.v theories/utils/PCUICUtils.vo (real: 0.75, user: 0.54, sys: 0.21, mem: 557124 ko) theories/utils/PCUICPrimitive.vo (real: 1.29, user: 0.94, sys: 0.34, mem: 711468 ko) COQC theories/PCUICAst.v theories/PCUICAst.vo (real: 4.13, user: 3.90, sys: 0.23, mem: 727976 ko) COQC theories/utils/PCUICOnOne.v COQC theories/utils/PCUICSize.v theories/utils/PCUICSize.vo (real: 1.07, user: 0.78, sys: 0.28, mem: 714308 ko) COQC theories/utils/PCUICAstUtils.v theories/utils/PCUICOnOne.vo (real: 1.71, user: 1.40, sys: 0.30, mem: 718712 ko) theories/utils/PCUICAstUtils.vo (real: 2.89, user: 2.64, sys: 0.24, mem: 758620 ko) COQC theories/utils/PCUICPretty.v COQC theories/Syntax/PCUICCases.v theories/utils/PCUICPretty.vo (real: 1.25, user: 1.01, sys: 0.23, mem: 754556 ko) theories/Syntax/PCUICCases.vo (real: 2.22, user: 1.96, sys: 0.25, mem: 753668 ko) COQC theories/Syntax/PCUICInduction.v theories/Syntax/PCUICInduction.vo (real: 2.81, user: 2.54, sys: 0.26, mem: 781556 ko) COQC theories/Syntax/PCUICDepth.v COQC theories/Syntax/PCUICReflect.v theories/Syntax/PCUICDepth.vo (real: 3.09, user: 2.78, sys: 0.29, mem: 780764 ko) COQC theories/Syntax/PCUICLiftSubst.v theories/Syntax/PCUICReflect.vo (real: 3.94, user: 3.65, sys: 0.25, mem: 789376 ko) COQC theories/Syntax/PCUICUnivSubst.v theories/Syntax/PCUICUnivSubst.vo (real: 6.10, user: 5.77, sys: 0.31, mem: 765312 ko) COQC theories/Syntax/PCUICViews.v theories/Syntax/PCUICViews.vo (real: 1.61, user: 1.37, sys: 0.23, mem: 765356 ko) theories/Syntax/PCUICLiftSubst.vo (real: 11.46, user: 11.17, sys: 0.26, mem: 799476 ko) COQC theories/PCUICEquality.v COQC theories/PCUICSigmaCalculus.v theories/PCUICEquality.vo (real: 19.42, user: 19.03, sys: 0.32, mem: 1001224 ko) COQC theories/Syntax/PCUICPosition.v theories/PCUICSigmaCalculus.vo (real: 28.64, user: 28.19, sys: 0.29, mem: 881268 ko) COQC theories/Syntax/PCUICClosed.v theories/Syntax/PCUICPosition.vo (real: 13.42, user: 13.08, sys: 0.30, mem: 958232 ko) COQC theories/Syntax/PCUICTactics.v theories/Syntax/PCUICTactics.vo (real: 1.30, user: 0.99, sys: 0.29, mem: 757952 ko) COQC theories/PCUICCasesContexts.v theories/PCUICCasesContexts.vo (real: 1.65, user: 1.36, sys: 0.27, mem: 769440 ko) theories/Syntax/PCUICClosed.vo (real: 15.20, user: 14.78, sys: 0.33, mem: 791292 ko) COQC theories/Syntax/PCUICOnFreeVars.v COQC theories/PCUICReduction.v theories/PCUICReduction.vo (real: 5.05, user: 4.70, sys: 0.30, mem: 790336 ko) COQC theories/PCUICContextSubst.v theories/PCUICContextSubst.vo (real: 2.36, user: 2.09, sys: 0.26, mem: 768020 ko) COQC theories/PCUICCumulativity.v theories/PCUICCumulativity.vo (real: 2.02, user: 1.76, sys: 0.23, mem: 775200 ko) theories/Syntax/PCUICOnFreeVars.vo (real: 13.73, user: 13.42, sys: 0.28, mem: 818004 ko) COQC theories/PCUICCumulativitySpec.v theories/PCUICCumulativitySpec.vo (real: 2.34, user: 2.04, sys: 0.29, mem: 763084 ko) COQC theories/PCUICTyping.v theories/PCUICTyping.vo (real: 17.54, user: 17.18, sys: 0.35, mem: 879984 ko) COQC theories/Syntax/PCUICNamelessDef.v COQC theories/Syntax/PCUICRenameDef.v theories/Syntax/PCUICNamelessDef.vo (real: 1.28, user: 1.02, sys: 0.25, mem: 774040 ko) COQC theories/PCUICGlobalEnv.v theories/Syntax/PCUICRenameDef.vo (real: 1.31, user: 1.02, sys: 0.26, mem: 773372 ko) COQC theories/PCUICWeakeningEnv.v theories/PCUICGlobalEnv.vo (real: 1.39, user: 1.13, sys: 0.25, mem: 775292 ko) COQC theories/PCUICWeakeningConfig.v theories/PCUICWeakeningEnv.vo (real: 1.76, user: 1.52, sys: 0.23, mem: 786228 ko) COQC theories/PCUICGeneration.v theories/PCUICWeakeningConfig.vo (real: 1.35, user: 1.07, sys: 0.26, mem: 775124 ko) COQC theories/PCUICCSubst.v theories/PCUICGeneration.vo (real: 1.40, user: 1.12, sys: 0.27, mem: 775460 ko) COQC theories/PCUICProgram.v theories/PCUICProgram.vo (real: 1.28, user: 0.96, sys: 0.32, mem: 762240 ko) COQC theories/Bidirectional/BDTyping.v theories/PCUICCSubst.vo (real: 1.89, user: 1.58, sys: 0.31, mem: 782884 ko) COQC theories/Syntax/PCUICInstDef.v theories/Syntax/PCUICInstDef.vo (real: 1.31, user: 1.03, sys: 0.27, mem: 775160 ko) COQC theories/Conversion/PCUICClosedConv.v theories/Conversion/PCUICClosedConv.vo (real: 1.54, user: 1.25, sys: 0.28, mem: 781744 ko) COQC theories/Conversion/PCUICWeakeningEnvConv.v theories/Bidirectional/BDTyping.vo (real: 5.28, user: 4.93, sys: 0.32, mem: 793308 ko) COQC theories/Conversion/PCUICWeakeningConfigConv.v theories/Conversion/PCUICWeakeningEnvConv.vo (real: 4.00, user: 3.73, sys: 0.25, mem: 791388 ko) COQC theories/PCUICExpandLets.v theories/Conversion/PCUICWeakeningConfigConv.vo (real: 2.67, user: 2.36, sys: 0.29, mem: 790096 ko) COQC theories/PCUICGuardCondition.v theories/PCUICExpandLets.vo (real: 1.28, user: 1.00, sys: 0.26, mem: 774444 ko) theories/PCUICGuardCondition.vo (real: 1.30, user: 1.04, sys: 0.25, mem: 776172 ko) COQC theories/Typing/PCUICWeakeningEnvTyp.v COQC theories/Conversion/PCUICUnivSubstitutionConv.v theories/Typing/PCUICWeakeningEnvTyp.vo (real: 3.54, user: 3.25, sys: 0.27, mem: 797412 ko) COQC theories/Typing/PCUICWeakeningConfigTyp.v theories/Conversion/PCUICUnivSubstitutionConv.vo (real: 7.53, user: 7.19, sys: 0.29, mem: 819368 ko) COQC theories/Typing/PCUICClosedTyp.v theories/Typing/PCUICWeakeningConfigTyp.vo (real: 7.10, user: 6.72, sys: 0.34, mem: 823412 ko) COQC theories/Typing/PCUICUnivSubstitutionTyp.v theories/Typing/PCUICClosedTyp.vo (real: 7.03, user: 6.71, sys: 0.25, mem: 804160 ko) COQC theories/Conversion/PCUICNamelessConv.v theories/Typing/PCUICUnivSubstitutionTyp.vo (real: 5.00, user: 4.69, sys: 0.29, mem: 788308 ko) COQC theories/Conversion/PCUICRenameConv.v theories/Conversion/PCUICNamelessConv.vo (real: 8.06, user: 7.73, sys: 0.28, mem: 840272 ko) COQC theories/PCUICWcbvEval.v theories/Conversion/PCUICRenameConv.vo (real: 9.99, user: 9.68, sys: 0.28, mem: 845792 ko) COQC theories/Conversion/PCUICWeakeningConv.v theories/Conversion/PCUICWeakeningConv.vo (real: 2.11, user: 1.80, sys: 0.31, mem: 793500 ko) COQC theories/Conversion/PCUICOnFreeVarsConv.v theories/Conversion/PCUICOnFreeVarsConv.vo (real: 4.82, user: 4.51, sys: 0.27, mem: 789700 ko) COQC theories/Typing/PCUICRenameTyp.v theories/PCUICWcbvEval.vo (real: 17.66, user: 17.32, sys: 0.24, mem: 878780 ko) theories/Typing/PCUICRenameTyp.vo (real: 9.15, user: 8.82, sys: 0.29, mem: 836168 ko) COQC theories/Typing/PCUICWeakeningTyp.v theories/Typing/PCUICWeakeningTyp.vo (real: 1.52, user: 1.21, sys: 0.30, mem: 794440 ko) COQC theories/Conversion/PCUICInstConv.v theories/Conversion/PCUICInstConv.vo (real: 25.43, user: 25.09, sys: 0.33, mem: 936448 ko) COQC theories/Typing/PCUICInstTyp.v theories/Typing/PCUICInstTyp.vo (real: 7.34, user: 7.00, sys: 0.33, mem: 818044 ko) COQC theories/PCUICSubstitution.v theories/PCUICSubstitution.vo (real: 13.23, user: 12.89, sys: 0.33, mem: 848792 ko) COQC theories/PCUICContextReduction.v COQC theories/PCUICParallelReduction.v theories/PCUICContextReduction.vo (real: 4.70, user: 4.39, sys: 0.29, mem: 800956 ko) COQC theories/PCUICContexts.v theories/PCUICContexts.vo (real: 6.69, user: 6.36, sys: 0.31, mem: 802940 ko) COQC theories/PCUICWfUniverses.v theories/PCUICWfUniverses.vo (real: 16.67, user: 16.39, sys: 0.25, mem: 839932 ko) COQC theories/PCUICRedTypeIrrelevance.v theories/PCUICRedTypeIrrelevance.vo (real: 2.75, user: 2.44, sys: 0.30, mem: 801052 ko) theories/PCUICParallelReduction.vo (real: 38.27, user: 37.67, sys: 0.39, mem: 1215616 ko) COQC theories/PCUICParallelReductionConfluence.v theories/PCUICParallelReductionConfluence.vo (real: 58.54, user: 58.10, sys: 0.41, mem: 1262796 ko) COQC theories/PCUICConfluence.v theories/PCUICConfluence.vo (real: 66.81, user: 66.03, sys: 0.76, mem: 2327544 ko) COQC theories/PCUICWellScopedCumulativity.v theories/PCUICWellScopedCumulativity.vo (real: 8.30, user: 7.96, sys: 0.33, mem: 871876 ko) COQC theories/PCUICContextConversion.v theories/PCUICContextConversion.vo (real: 16.62, user: 16.34, sys: 0.27, mem: 857468 ko) COQC theories/PCUICConversion.v theories/PCUICConversion.vo (real: 45.46, user: 44.84, sys: 0.61, mem: 2007372 ko) COQC theories/Typing/PCUICNamelessTyp.v COQC theories/Typing/PCUICContextConversionTyp.v theories/Typing/PCUICNamelessTyp.vo (real: 1.45, user: 1.16, sys: 0.28, mem: 816604 ko) COQC theories/PCUICInversion.v theories/Typing/PCUICContextConversionTyp.vo (real: 5.27, user: 4.98, sys: 0.26, mem: 833688 ko) theories/PCUICInversion.vo (real: 9.08, user: 8.77, sys: 0.29, mem: 873500 ko) COQC theories/PCUICArities.v theories/PCUICArities.vo (real: 7.93, user: 7.64, sys: 0.28, mem: 886136 ko) COQC theories/PCUICSpine.v theories/PCUICSpine.vo (real: 23.73, user: 23.37, sys: 0.35, mem: 998688 ko) COQC theories/PCUICInductives.v theories/PCUICInductives.vo (real: 14.02, user: 13.65, sys: 0.36, mem: 901744 ko) COQC theories/PCUICValidity.v theories/PCUICValidity.vo (real: 4.09, user: 3.80, sys: 0.28, mem: 836544 ko) COQC theories/PCUICInductiveInversion.v theories/PCUICInductiveInversion.vo (real: 27.80, user: 27.39, sys: 0.39, mem: 1046088 ko) COQC theories/PCUICAlpha.v COQC theories/PCUICEtaExpand.v theories/PCUICEtaExpand.vo (real: 5.94, user: 5.64, sys: 0.27, mem: 844016 ko) theories/PCUICAlpha.vo (real: 12.45, user: 12.13, sys: 0.31, mem: 905756 ko) COQC theories/PCUICSR.v theories/PCUICSR.vo (real: 42.81, user: 42.32, sys: 0.47, mem: 1484396 ko) COQC theories/PCUICNormal.v COQC theories/Bidirectional/BDToPCUIC.v theories/Bidirectional/BDToPCUIC.vo (real: 4.27, user: 3.98, sys: 0.28, mem: 844172 ko) COQC theories/PCUICCasesHelper.v theories/PCUICCasesHelper.vo (real: 6.22, user: 5.90, sys: 0.29, mem: 840708 ko) COQC theories/Bidirectional/BDFromPCUIC.v theories/Bidirectional/BDFromPCUIC.vo (real: 3.75, user: 3.40, sys: 0.31, mem: 844352 ko) COQC theories/Bidirectional/BDUnique.v theories/PCUICNormal.vo (real: 15.25, user: 14.86, sys: 0.35, mem: 992224 ko) COQC theories/Bidirectional/BDStrengthening.v theories/Bidirectional/BDStrengthening.vo (real: 6.43, user: 6.16, sys: 0.26, mem: 848324 ko) COQC theories/PCUICConvCumInversion.v theories/Bidirectional/BDUnique.vo (real: 13.32, user: 12.89, sys: 0.34, mem: 973840 ko) COQC theories/PCUICSafeLemmata.v theories/PCUICSafeLemmata.vo (real: 4.50, user: 4.19, sys: 0.28, mem: 855868 ko) COQC theories/PCUICCumulProp.v theories/PCUICConvCumInversion.vo (real: 13.57, user: 13.18, sys: 0.31, mem: 945532 ko) COQC theories/PCUICSN.v theories/PCUICSN.vo (real: 2.00, user: 1.50, sys: 0.26, mem: 839676 ko) COQC theories/PCUICWeakeningEnvSN.v theories/PCUICWeakeningEnvSN.vo (real: 1.59, user: 1.27, sys: 0.31, mem: 836800 ko) COQC theories/PCUICWeakeningConfigSN.v theories/PCUICWeakeningConfigSN.vo (real: 1.54, user: 1.26, sys: 0.27, mem: 836844 ko) theories/PCUICCumulProp.vo (real: 15.48, user: 14.90, sys: 0.33, mem: 1032884 ko) COQC theories/PCUICElimination.v COQC theories/PCUICPrincipality.v theories/PCUICElimination.vo (real: 6.71, user: 6.43, sys: 0.27, mem: 858804 ko) COQC theories/PCUICCanonicity.v theories/PCUICCanonicity.vo (real: 7.98, user: 7.64, sys: 0.32, mem: 872528 ko) COQC theories/PCUICProgress.v theories/PCUICPrincipality.vo (real: 17.55, user: 17.05, sys: 0.37, mem: 928888 ko) COQC theories/PCUICExpandLetsCorrectness.v theories/PCUICProgress.vo (real: 5.01, user: 4.69, sys: 0.30, mem: 862716 ko) COQC theories/PCUICFirstorder.v theories/PCUICFirstorder.vo (real: 4.78, user: 4.47, sys: 0.29, mem: 852640 ko) COQC theories/PCUICNormalization.v theories/PCUICNormalization.vo (real: 2.14, user: 1.85, sys: 0.28, mem: 845932 ko) COQC theories/PCUICConsistency.v theories/PCUICConsistency.vo (real: 1.71, user: 1.40, sys: 0.29, mem: 846264 ko) theories/PCUICExpandLetsCorrectness.vo (real: 40.75, user: 40.18, sys: 0.49, mem: 1154600 ko) make[2]: Leaving directory '/github/workspace/metacoq/pcuic' make[1]: Leaving directory '/github/workspace/metacoq/pcuic' make -C safechecker make[1]: Entering directory '/github/workspace/metacoq/safechecker' cat metacoq-config > _CoqProject cat _CoqProject.in >> _CoqProject coq_makefile -f _CoqProject -o Makefile.safechecker Warning: ../utils/theories (used in -R or -Q) is not a subdirectory of the current directory make -f Makefile.safechecker make[2]: Entering directory '/github/workspace/metacoq/safechecker' COQDEP VFILES COQC theories/PCUICEqualityDec.v COQC theories/PCUICErrors.v theories/PCUICErrors.vo (real: 1.93, user: 1.66, sys: 0.26, mem: 754800 ko) theories/PCUICEqualityDec.vo (real: 12.64, user: 12.30, sys: 0.33, mem: 1000812 ko) COQC theories/PCUICWfEnv.v theories/PCUICWfEnv.vo (real: 2.71, user: 2.40, sys: 0.31, mem: 842504 ko) COQC theories/PCUICWfReduction.v COQC theories/PCUICWfEnvImpl.v theories/PCUICWfEnvImpl.vo (real: 2.91, user: 2.60, sys: 0.29, mem: 849840 ko) theories/PCUICWfReduction.vo (real: 3.24, user: 2.95, sys: 0.29, mem: 860804 ko) COQC theories/PCUICSafeReduce.v COQC theories/PCUICSafeConversion.v File "./theories/PCUICSafeConversion.v", line 19, characters 0-36: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 22, characters 0-28: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 25, characters 0-30: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 28, characters 0-38: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 29, characters 0-50: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 30, characters 0-45: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 31, characters 0-38: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 32, characters 0-38: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 33, characters 0-39: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 34, characters 0-36: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 35, characters 0-37: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 36, characters 0-39: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 37, characters 0-30: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 38, characters 0-30: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 39, characters 0-37: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 40, characters 0-34: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 41, characters 0-43: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 42, characters 0-34: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 43, characters 0-44: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 44, characters 0-44: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 45, characters 0-38: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 46, characters 0-42: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 47, characters 0-31: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 58, characters 0-39: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 59, characters 0-45: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 60, characters 0-40: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 64, characters 0-31: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 67, characters 0-33: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 935, characters 0-8: Error: Anomaly "in Univ.repr: Universe MetaCoq.SafeChecker.PCUICSafeConversion.515 undefined." Please report at http://coq.inria.fr/bugs/. Command exited with non-zero status 129 theories/PCUICSafeConversion.vo (real: 9.61, user: 8.99, sys: 0.38, mem: 1053416 ko) make[3]: *** [Makefile.safechecker:793: theories/PCUICSafeConversion.vo] Error 129 make[3]: *** Waiting for unfinished jobs.... theories/PCUICSafeReduce.vo (real: 100.54, user: 99.91, sys: 0.49, mem: 1571928 ko) make[2]: *** [Makefile.safechecker:409: all] Error 2 make[2]: Leaving directory '/github/workspace/metacoq/safechecker' make[1]: *** [Makefile:11: theory] Error 2 make[1]: Leaving directory '/github/workspace/metacoq/safechecker' make: *** [Makefile:137: safechecker] Error 2 ```
minimizer log ``` ```

If you have any comments on your experience of the minimizer, please share them in a reply (possibly tagging @JasonGross). If you believe there's a bug in the bug minimizer, please report it on the bug minimizer issue tracker.

coqbot commented 1 year ago

@JasonGross, Error: Could not minimize file (full log on GitHub Actions, cc @JasonGross)

build log (truncated to last 26KiB; full 40KiB file on GitHub Actions Artifacts under build.log) ``` 12, mem: 412524 ko) COQC theories/MCRelations.v theories/MCRelations.vo (real: 0.20, user: 0.13, sys: 0.07, mem: 196052 ko) COQC theories/MCProd.v theories/MCPrelude.vo (real: 0.48, user: 0.35, sys: 0.12, mem: 458920 ko) COQC theories/MCSquash.v theories/MCSquash.vo (real: 0.09, user: 0.05, sys: 0.04, mem: 100064 ko) COQC theories/MCArith.v theories/MCProd.vo (real: 0.15, user: 0.09, sys: 0.05, mem: 146412 ko) COQC theories/MCEquality.v theories/MCEquality.vo (real: 0.09, user: 0.04, sys: 0.05, mem: 99492 ko) COQC theories/LibHypsNaming.v theories/MCArith.vo (real: 0.35, user: 0.26, sys: 0.09, mem: 330784 ko) COQC theories/MCTactics/SpecializeBy.v theories/MCTactics/SpecializeBy.vo (real: 0.09, user: 0.05, sys: 0.04, mem: 99572 ko) COQC theories/MCTactics/Zeta1.v theories/LibHypsNaming.vo (real: 0.32, user: 0.20, sys: 0.11, mem: 294480 ko) COQC theories/MCTactics/FindHyp.v theories/MCTactics/Zeta1.vo (real: 0.09, user: 0.05, sys: 0.04, mem: 97924 ko) COQC theories/MCTactics/Head.v theories/MCTactics/FindHyp.vo (real: 0.09, user: 0.05, sys: 0.04, mem: 97200 ko) COQC theories/MCTactics/DestructHyps.v theories/MCTactics/Head.vo (real: 0.09, user: 0.06, sys: 0.03, mem: 98732 ko) COQC theories/MCTactics/SplitInContext.v theories/MCTactics/DestructHyps.vo (real: 0.09, user: 0.06, sys: 0.03, mem: 98812 ko) COQC theories/MC_ExtrOCamlInt63.v theories/MCTactics/SplitInContext.vo (real: 0.10, user: 0.06, sys: 0.03, mem: 98788 ko) COQC theories/MC_ExtrOCamlZPosInt.v theories/MC_ExtrOCamlInt63.vo (real: 0.28, user: 0.20, sys: 0.08, mem: 266880 ko) COQC theories/canonicaltries/CanonicalTries.v theories/MC_ExtrOCamlZPosInt.vo (real: 0.32, user: 0.21, sys: 0.10, mem: 289672 ko) COQC theories/ByteCompareSpec.v theories/canonicaltries/CanonicalTries.vo (real: 1.24, user: 1.10, sys: 0.13, mem: 462992 ko) COQC theories/MCReflect.v theories/MCReflect.vo (real: 0.34, user: 0.22, sys: 0.11, mem: 318796 ko) COQC theories/MCList.v theories/MCList.vo (real: 1.87, user: 1.73, sys: 0.14, mem: 497020 ko) COQC theories/MCTactics/GeneralizeOverHoles.v theories/MCTactics/GeneralizeOverHoles.vo (real: 0.11, user: 0.07, sys: 0.03, mem: 112240 ko) COQC theories/MCTactics/UniquePose.v theories/MCTactics/UniquePose.vo (real: 0.09, user: 0.06, sys: 0.02, mem: 98008 ko) COQC theories/MCTactics/DestructHead.v theories/MCTactics/DestructHead.vo (real: 0.10, user: 0.06, sys: 0.03, mem: 104560 ko) COQC theories/MCTactics/SpecializeAllWays.v theories/MCTactics/SpecializeAllWays.vo (real: 0.09, user: 0.04, sys: 0.05, mem: 97496 ko) COQC theories/MCOption.v theories/MCOption.vo (real: 0.51, user: 0.34, sys: 0.16, mem: 480280 ko) COQC theories/MCTactics/InHypUnderBindersDo.v theories/MCTactics/InHypUnderBindersDo.vo (real: 0.11, user: 0.08, sys: 0.02, mem: 115228 ko) COQC theories/MCTactics/SpecializeUnderBindersBy.v theories/MCTactics/SpecializeUnderBindersBy.vo (real: 0.12, user: 0.07, sys: 0.04, mem: 115692 ko) COQC theories/All_Forall.v theories/All_Forall.vo (real: 8.84, user: 8.48, sys: 0.17, mem: 564088 ko) COQC theories/MCPred.v theories/MCPred.vo (real: 0.41, user: 0.29, sys: 0.11, mem: 414188 ko) COQC theories/monad_utils.v theories/monad_utils.vo (real: 0.70, user: 0.49, sys: 0.11, mem: 484424 ko) theories/ByteCompareSpec.vo (real: 35.46, user: 34.75, sys: 0.37, mem: 1303900 ko) COQC theories/bytestring.v theories/bytestring.vo (real: 0.54, user: 0.37, sys: 0.17, mem: 538960 ko) COQC theories/MCString.v theories/MCString.vo (real: 0.41, user: 0.27, sys: 0.13, mem: 407520 ko) COQC theories/MCUtils.v theories/MCUtils.vo (real: 0.55, user: 0.39, sys: 0.13, mem: 481100 ko) COQC theories/wGraph.v COQC theories/utils.v theories/utils.vo (real: 0.53, user: 0.38, sys: 0.14, mem: 460868 ko) theories/wGraph.vo (real: 10.51, user: 10.26, sys: 0.22, mem: 664608 ko) make[2]: Leaving directory '/github/workspace/metacoq/utils' make[1]: Leaving directory '/github/workspace/metacoq/utils' make -C common make[1]: Entering directory '/github/workspace/metacoq/common' cat metacoq-config > _CoqProject cat _CoqProject.in >> _CoqProject coq_makefile -f _CoqProject -o Makefile.coq Warning: ../utils/theories (used in -R or -Q) is not a subdirectory of the current directory make -f Makefile.coq make[2]: Entering directory '/github/workspace/metacoq/common' COQDEP VFILES COQC theories/Primitive.v COQC theories/config.v theories/Primitive.vo (real: 0.43, user: 0.28, sys: 0.14, mem: 421396 ko) COQC theories/Kernames.v theories/config.vo (real: 0.70, user: 0.56, sys: 0.12, mem: 463528 ko) COQC theories/Transform.v theories/Transform.vo (real: 0.53, user: 0.40, sys: 0.12, mem: 499256 ko) theories/Kernames.vo (real: 1.20, user: 1.03, sys: 0.16, mem: 630336 ko) COQC theories/BasicAst.v theories/BasicAst.vo (real: 1.80, user: 1.58, sys: 0.22, mem: 623464 ko) COQC theories/Universes.v COQC theories/MonadBasicAst.v theories/MonadBasicAst.vo (real: 0.74, user: 0.53, sys: 0.19, mem: 610016 ko) theories/Universes.vo (real: 3.75, user: 3.55, sys: 0.19, mem: 696768 ko) COQC theories/uGraph.v COQC theories/Environment.v theories/Environment.vo (real: 4.21, user: 3.94, sys: 0.20, mem: 685400 ko) COQC theories/Reflect.v theories/Reflect.vo (real: 2.19, user: 1.96, sys: 0.18, mem: 671832 ko) COQC theories/EnvironmentTyping.v theories/EnvironmentTyping.vo (real: 8.43, user: 8.17, sys: 0.21, mem: 865104 ko) theories/uGraph.vo (real: 16.71, user: 16.15, sys: 0.35, mem: 1278080 ko) COQC theories/UniversesDec.v COQC theories/EnvMap.v theories/EnvMap.vo (real: 1.35, user: 1.14, sys: 0.20, mem: 701412 ko) theories/UniversesDec.vo (real: 10.32, user: 10.02, sys: 0.28, mem: 766936 ko) make[2]: Leaving directory '/github/workspace/metacoq/common' make[1]: Leaving directory '/github/workspace/metacoq/common' make -C pcuic make[1]: Entering directory '/github/workspace/metacoq/pcuic' cat metacoq-config > _CoqProject cat _CoqProject.in >> _CoqProject coq_makefile -f _CoqProject -o Makefile.coq Warning: ../utils/theories (used in -R or -Q) is not a subdirectory of the current directory make -f Makefile.coq make[2]: Entering directory '/github/workspace/metacoq/pcuic' COQDEP VFILES COQC theories/utils/PCUICPrimitive.v COQC theories/utils/PCUICUtils.v theories/utils/PCUICUtils.vo (real: 0.65, user: 0.48, sys: 0.16, mem: 558984 ko) theories/utils/PCUICPrimitive.vo (real: 1.12, user: 0.95, sys: 0.17, mem: 710132 ko) COQC theories/PCUICAst.v theories/PCUICAst.vo (real: 3.67, user: 3.49, sys: 0.18, mem: 728044 ko) COQC theories/utils/PCUICOnOne.v COQC theories/utils/PCUICSize.v theories/utils/PCUICSize.vo (real: 0.93, user: 0.74, sys: 0.18, mem: 715108 ko) COQC theories/utils/PCUICAstUtils.v theories/utils/PCUICOnOne.vo (real: 1.49, user: 1.31, sys: 0.17, mem: 722136 ko) theories/utils/PCUICAstUtils.vo (real: 2.59, user: 2.39, sys: 0.20, mem: 759092 ko) COQC theories/utils/PCUICPretty.v COQC theories/Syntax/PCUICCases.v theories/utils/PCUICPretty.vo (real: 1.09, user: 0.87, sys: 0.22, mem: 754216 ko) theories/Syntax/PCUICCases.vo (real: 1.97, user: 1.79, sys: 0.17, mem: 751828 ko) COQC theories/Syntax/PCUICInduction.v theories/Syntax/PCUICInduction.vo (real: 2.47, user: 2.30, sys: 0.16, mem: 782260 ko) COQC theories/Syntax/PCUICDepth.v COQC theories/Syntax/PCUICReflect.v theories/Syntax/PCUICDepth.vo (real: 2.73, user: 2.49, sys: 0.22, mem: 781176 ko) COQC theories/Syntax/PCUICLiftSubst.v theories/Syntax/PCUICReflect.vo (real: 3.46, user: 3.25, sys: 0.19, mem: 790124 ko) COQC theories/Syntax/PCUICUnivSubst.v theories/Syntax/PCUICUnivSubst.vo (real: 5.59, user: 5.37, sys: 0.18, mem: 764472 ko) COQC theories/Syntax/PCUICViews.v theories/Syntax/PCUICViews.vo (real: 1.43, user: 1.22, sys: 0.20, mem: 766504 ko) theories/Syntax/PCUICLiftSubst.vo (real: 10.73, user: 10.51, sys: 0.20, mem: 797796 ko) COQC theories/PCUICEquality.v COQC theories/PCUICSigmaCalculus.v theories/PCUICEquality.vo (real: 17.52, user: 17.14, sys: 0.31, mem: 1002324 ko) COQC theories/Syntax/PCUICPosition.v theories/PCUICSigmaCalculus.vo (real: 26.70, user: 26.36, sys: 0.23, mem: 880524 ko) COQC theories/Syntax/PCUICClosed.v theories/Syntax/PCUICPosition.vo (real: 12.05, user: 11.74, sys: 0.25, mem: 958224 ko) COQC theories/Syntax/PCUICTactics.v theories/Syntax/PCUICTactics.vo (real: 1.12, user: 0.88, sys: 0.23, mem: 757788 ko) COQC theories/PCUICCasesContexts.v theories/PCUICCasesContexts.vo (real: 1.47, user: 1.24, sys: 0.21, mem: 768116 ko) theories/Syntax/PCUICClosed.vo (real: 14.12, user: 13.88, sys: 0.21, mem: 790604 ko) COQC theories/Syntax/PCUICOnFreeVars.v COQC theories/PCUICReduction.v theories/PCUICReduction.vo (real: 4.53, user: 4.29, sys: 0.19, mem: 787400 ko) COQC theories/PCUICContextSubst.v theories/PCUICContextSubst.vo (real: 2.08, user: 1.88, sys: 0.19, mem: 768020 ko) COQC theories/PCUICCumulativity.v theories/PCUICCumulativity.vo (real: 1.75, user: 1.59, sys: 0.15, mem: 774844 ko) theories/Syntax/PCUICOnFreeVars.vo (real: 12.64, user: 12.43, sys: 0.19, mem: 819024 ko) COQC theories/PCUICCumulativitySpec.v theories/PCUICCumulativitySpec.vo (real: 2.08, user: 1.86, sys: 0.21, mem: 764244 ko) COQC theories/PCUICTyping.v theories/PCUICTyping.vo (real: 16.43, user: 16.15, sys: 0.27, mem: 879372 ko) COQC theories/Syntax/PCUICNamelessDef.v COQC theories/Syntax/PCUICRenameDef.v theories/Syntax/PCUICRenameDef.vo (real: 1.12, user: 0.90, sys: 0.20, mem: 773156 ko) COQC theories/PCUICGlobalEnv.v theories/Syntax/PCUICNamelessDef.vo (real: 1.12, user: 0.91, sys: 0.21, mem: 772876 ko) COQC theories/PCUICWeakeningEnv.v theories/PCUICGlobalEnv.vo (real: 1.23, user: 0.97, sys: 0.25, mem: 771628 ko) COQC theories/PCUICWeakeningConfig.v theories/PCUICWeakeningEnv.vo (real: 1.53, user: 1.34, sys: 0.19, mem: 784372 ko) COQC theories/PCUICGeneration.v theories/PCUICWeakeningConfig.vo (real: 1.20, user: 0.96, sys: 0.23, mem: 775744 ko) COQC theories/PCUICCSubst.v theories/PCUICGeneration.vo (real: 1.20, user: 0.98, sys: 0.21, mem: 775372 ko) COQC theories/PCUICProgram.v theories/PCUICProgram.vo (real: 1.15, user: 0.88, sys: 0.21, mem: 763936 ko) COQC theories/Bidirectional/BDTyping.v theories/PCUICCSubst.vo (real: 1.70, user: 1.47, sys: 0.19, mem: 782408 ko) COQC theories/Syntax/PCUICInstDef.v theories/Syntax/PCUICInstDef.vo (real: 1.13, user: 0.95, sys: 0.18, mem: 775340 ko) COQC theories/Conversion/PCUICClosedConv.v theories/Conversion/PCUICClosedConv.vo (real: 1.36, user: 1.13, sys: 0.23, mem: 782888 ko) COQC theories/Conversion/PCUICWeakeningEnvConv.v theories/Bidirectional/BDTyping.vo (real: 4.89, user: 4.61, sys: 0.24, mem: 794068 ko) COQC theories/Conversion/PCUICWeakeningConfigConv.v theories/Conversion/PCUICWeakeningEnvConv.vo (real: 3.55, user: 3.35, sys: 0.18, mem: 791072 ko) COQC theories/PCUICExpandLets.v theories/Conversion/PCUICWeakeningConfigConv.vo (real: 2.33, user: 2.08, sys: 0.23, mem: 792508 ko) COQC theories/PCUICGuardCondition.v theories/PCUICExpandLets.vo (real: 1.09, user: 0.86, sys: 0.22, mem: 773700 ko) theories/PCUICGuardCondition.vo (real: 1.11, user: 0.88, sys: 0.22, mem: 776196 ko) COQC theories/Typing/PCUICWeakeningEnvTyp.v COQC theories/Conversion/PCUICUnivSubstitutionConv.v theories/Typing/PCUICWeakeningEnvTyp.vo (real: 3.08, user: 2.85, sys: 0.22, mem: 796524 ko) COQC theories/Typing/PCUICWeakeningConfigTyp.v theories/Conversion/PCUICUnivSubstitutionConv.vo (real: 6.76, user: 6.49, sys: 0.23, mem: 818056 ko) COQC theories/Typing/PCUICClosedTyp.v theories/Typing/PCUICWeakeningConfigTyp.vo (real: 6.44, user: 6.20, sys: 0.21, mem: 823740 ko) COQC theories/Typing/PCUICUnivSubstitutionTyp.v theories/Typing/PCUICClosedTyp.vo (real: 6.37, user: 6.06, sys: 0.23, mem: 804424 ko) COQC theories/Conversion/PCUICNamelessConv.v theories/Typing/PCUICUnivSubstitutionTyp.vo (real: 4.48, user: 4.23, sys: 0.17, mem: 788016 ko) COQC theories/Conversion/PCUICRenameConv.v theories/Conversion/PCUICNamelessConv.vo (real: 7.42, user: 7.12, sys: 0.25, mem: 839444 ko) COQC theories/PCUICWcbvEval.v theories/Conversion/PCUICRenameConv.vo (real: 9.04, user: 8.85, sys: 0.18, mem: 848268 ko) COQC theories/Conversion/PCUICWeakeningConv.v theories/Conversion/PCUICWeakeningConv.vo (real: 1.84, user: 1.62, sys: 0.21, mem: 794800 ko) COQC theories/Conversion/PCUICOnFreeVarsConv.v theories/Conversion/PCUICOnFreeVarsConv.vo (real: 4.35, user: 4.11, sys: 0.22, mem: 790232 ko) COQC theories/Typing/PCUICRenameTyp.v theories/PCUICWcbvEval.vo (real: 16.37, user: 16.01, sys: 0.26, mem: 879000 ko) theories/Typing/PCUICRenameTyp.vo (real: 8.30, user: 8.06, sys: 0.22, mem: 840428 ko) COQC theories/Typing/PCUICWeakeningTyp.v theories/Typing/PCUICWeakeningTyp.vo (real: 1.35, user: 1.12, sys: 0.22, mem: 795364 ko) COQC theories/Conversion/PCUICInstConv.v theories/Conversion/PCUICInstConv.vo (real: 23.36, user: 23.07, sys: 0.28, mem: 936740 ko) COQC theories/Typing/PCUICInstTyp.v theories/Typing/PCUICInstTyp.vo (real: 6.65, user: 6.43, sys: 0.21, mem: 819936 ko) COQC theories/PCUICSubstitution.v theories/PCUICSubstitution.vo (real: 11.97, user: 11.74, sys: 0.22, mem: 848632 ko) COQC theories/PCUICContextReduction.v COQC theories/PCUICParallelReduction.v theories/PCUICContextReduction.vo (real: 4.16, user: 3.97, sys: 0.19, mem: 803184 ko) COQC theories/PCUICContexts.v theories/PCUICContexts.vo (real: 6.06, user: 5.80, sys: 0.24, mem: 802172 ko) COQC theories/PCUICWfUniverses.v theories/PCUICWfUniverses.vo (real: 15.32, user: 15.06, sys: 0.24, mem: 840880 ko) COQC theories/PCUICRedTypeIrrelevance.v theories/PCUICRedTypeIrrelevance.vo (real: 2.40, user: 2.19, sys: 0.20, mem: 800072 ko) theories/PCUICParallelReduction.vo (real: 35.98, user: 35.49, sys: 0.27, mem: 1216680 ko) COQC theories/PCUICParallelReductionConfluence.v theories/PCUICParallelReductionConfluence.vo (real: 55.40, user: 55.10, sys: 0.28, mem: 1264376 ko) COQC theories/PCUICConfluence.v theories/PCUICConfluence.vo (real: 60.71, user: 60.18, sys: 0.52, mem: 2331076 ko) COQC theories/PCUICWellScopedCumulativity.v theories/PCUICWellScopedCumulativity.vo (real: 7.66, user: 7.42, sys: 0.23, mem: 870948 ko) COQC theories/PCUICContextConversion.v theories/PCUICContextConversion.vo (real: 16.01, user: 15.74, sys: 0.26, mem: 858596 ko) COQC theories/PCUICConversion.v theories/PCUICConversion.vo (real: 42.15, user: 41.65, sys: 0.48, mem: 2005008 ko) COQC theories/Typing/PCUICNamelessTyp.v COQC theories/Typing/PCUICContextConversionTyp.v theories/Typing/PCUICNamelessTyp.vo (real: 1.28, user: 1.04, sys: 0.23, mem: 816476 ko) COQC theories/PCUICInversion.v theories/Typing/PCUICContextConversionTyp.vo (real: 4.80, user: 4.54, sys: 0.23, mem: 831020 ko) theories/PCUICInversion.vo (real: 8.20, user: 7.97, sys: 0.22, mem: 872352 ko) COQC theories/PCUICArities.v theories/PCUICArities.vo (real: 7.18, user: 6.93, sys: 0.24, mem: 887236 ko) COQC theories/PCUICSpine.v theories/PCUICSpine.vo (real: 22.44, user: 22.20, sys: 0.23, mem: 999752 ko) COQC theories/PCUICInductives.v theories/PCUICInductives.vo (real: 13.40, user: 13.19, sys: 0.20, mem: 899052 ko) COQC theories/PCUICValidity.v theories/PCUICValidity.vo (real: 3.73, user: 3.49, sys: 0.23, mem: 836472 ko) COQC theories/PCUICInductiveInversion.v theories/PCUICInductiveInversion.vo (real: 26.01, user: 25.69, sys: 0.31, mem: 1045128 ko) COQC theories/PCUICAlpha.v COQC theories/PCUICEtaExpand.v theories/PCUICEtaExpand.vo (real: 5.47, user: 5.22, sys: 0.23, mem: 845208 ko) theories/PCUICAlpha.vo (real: 11.53, user: 11.27, sys: 0.25, mem: 906308 ko) COQC theories/PCUICSR.v theories/PCUICSR.vo (real: 40.31, user: 39.85, sys: 0.45, mem: 1484484 ko) COQC theories/PCUICNormal.v COQC theories/Bidirectional/BDToPCUIC.v theories/Bidirectional/BDToPCUIC.vo (real: 3.96, user: 3.72, sys: 0.21, mem: 848476 ko) COQC theories/PCUICCasesHelper.v theories/PCUICCasesHelper.vo (real: 5.88, user: 5.60, sys: 0.23, mem: 839836 ko) COQC theories/Bidirectional/BDFromPCUIC.v theories/Bidirectional/BDFromPCUIC.vo (real: 3.44, user: 3.14, sys: 0.28, mem: 844248 ko) COQC theories/Bidirectional/BDUnique.v theories/PCUICNormal.vo (real: 14.01, user: 13.74, sys: 0.25, mem: 990976 ko) COQC theories/Bidirectional/BDStrengthening.v theories/Bidirectional/BDStrengthening.vo (real: 5.85, user: 5.64, sys: 0.19, mem: 846716 ko) COQC theories/PCUICConvCumInversion.v theories/Bidirectional/BDUnique.vo (real: 12.43, user: 12.13, sys: 0.22, mem: 971240 ko) COQC theories/PCUICSafeLemmata.v theories/PCUICSafeLemmata.vo (real: 4.17, user: 3.86, sys: 0.26, mem: 855400 ko) COQC theories/PCUICCumulProp.v theories/PCUICConvCumInversion.vo (real: 12.63, user: 12.29, sys: 0.32, mem: 943680 ko) COQC theories/PCUICSN.v theories/PCUICSN.vo (real: 1.51, user: 1.31, sys: 0.19, mem: 843220 ko) COQC theories/PCUICWeakeningEnvSN.v theories/PCUICWeakeningEnvSN.vo (real: 1.38, user: 1.15, sys: 0.23, mem: 838312 ko) COQC theories/PCUICWeakeningConfigSN.v theories/PCUICWeakeningConfigSN.vo (real: 1.35, user: 1.11, sys: 0.23, mem: 837932 ko) theories/PCUICCumulProp.vo (real: 14.42, user: 14.07, sys: 0.31, mem: 1033108 ko) COQC theories/PCUICElimination.v COQC theories/PCUICPrincipality.v theories/PCUICElimination.vo (real: 6.27, user: 6.01, sys: 0.23, mem: 859508 ko) COQC theories/PCUICCanonicity.v theories/PCUICCanonicity.vo (real: 7.39, user: 7.11, sys: 0.23, mem: 872272 ko) COQC theories/PCUICProgress.v theories/PCUICPrincipality.vo (real: 15.96, user: 15.58, sys: 0.30, mem: 929320 ko) COQC theories/PCUICExpandLetsCorrectness.v theories/PCUICProgress.vo (real: 4.59, user: 4.35, sys: 0.23, mem: 859288 ko) COQC theories/PCUICFirstorder.v theories/PCUICFirstorder.vo (real: 4.36, user: 4.15, sys: 0.20, mem: 850964 ko) COQC theories/PCUICNormalization.v theories/PCUICNormalization.vo (real: 1.93, user: 1.72, sys: 0.20, mem: 847516 ko) COQC theories/PCUICConsistency.v theories/PCUICConsistency.vo (real: 1.54, user: 1.36, sys: 0.18, mem: 847060 ko) theories/PCUICExpandLetsCorrectness.vo (real: 37.53, user: 37.16, sys: 0.32, mem: 1155804 ko) make[2]: Leaving directory '/github/workspace/metacoq/pcuic' make[1]: Leaving directory '/github/workspace/metacoq/pcuic' make -C safechecker make[1]: Entering directory '/github/workspace/metacoq/safechecker' cat metacoq-config > _CoqProject cat _CoqProject.in >> _CoqProject coq_makefile -f _CoqProject -o Makefile.safechecker Warning: ../utils/theories (used in -R or -Q) is not a subdirectory of the current directory make -f Makefile.safechecker make[2]: Entering directory '/github/workspace/metacoq/safechecker' COQDEP VFILES COQC theories/PCUICEqualityDec.v COQC theories/PCUICErrors.v theories/PCUICErrors.vo (real: 1.70, user: 1.50, sys: 0.19, mem: 754588 ko) theories/PCUICEqualityDec.vo (real: 11.36, user: 11.12, sys: 0.21, mem: 1003332 ko) COQC theories/PCUICWfEnv.v theories/PCUICWfEnv.vo (real: 2.53, user: 2.30, sys: 0.23, mem: 842868 ko) COQC theories/PCUICWfReduction.v COQC theories/PCUICWfEnvImpl.v theories/PCUICWfEnvImpl.vo (real: 2.63, user: 2.39, sys: 0.22, mem: 850020 ko) theories/PCUICWfReduction.vo (real: 3.00, user: 2.68, sys: 0.29, mem: 861696 ko) COQC theories/PCUICSafeReduce.v COQC theories/PCUICSafeConversion.v File "./theories/PCUICSafeConversion.v", line 19, characters 0-36: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 22, characters 0-28: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 25, characters 0-30: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 28, characters 0-38: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 29, characters 0-50: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 30, characters 0-45: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 31, characters 0-38: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 32, characters 0-38: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 33, characters 0-39: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 34, characters 0-36: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 35, characters 0-37: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 36, characters 0-39: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 37, characters 0-30: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 38, characters 0-30: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 39, characters 0-37: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 40, characters 0-34: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 41, characters 0-43: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 42, characters 0-34: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 43, characters 0-44: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 44, characters 0-44: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 45, characters 0-38: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 46, characters 0-42: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 47, characters 0-31: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 58, characters 0-39: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 59, characters 0-45: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 60, characters 0-40: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 64, characters 0-31: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 67, characters 0-33: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 935, characters 0-8: Error: Anomaly "in Univ.repr: Universe MetaCoq.SafeChecker.PCUICSafeConversion.515 undefined." Please report at http://coq.inria.fr/bugs/. Command exited with non-zero status 129 theories/PCUICSafeConversion.vo (real: 8.42, user: 8.10, sys: 0.25, mem: 1054640 ko) make[3]: *** [Makefile.safechecker:793: theories/PCUICSafeConversion.vo] Error 129 make[3]: *** Waiting for unfinished jobs.... theories/PCUICSafeReduce.vo (real: 91.62, user: 91.21, sys: 0.35, mem: 1568812 ko) make[2]: *** [Makefile.safechecker:409: all] Error 2 make[2]: Leaving directory '/github/workspace/metacoq/safechecker' make[1]: *** [Makefile:11: theory] Error 2 make[1]: Leaving directory '/github/workspace/metacoq/safechecker' make: *** [Makefile:137: safechecker] Error 2 ```
minimizer log ``` ```

If you have any comments on your experience of the minimizer, please share them in a reply (possibly tagging @JasonGross). If you believe there's a bug in the bug minimizer, please report it on the bug minimizer issue tracker.

coqbot commented 1 year ago

@JasonGross, Error: Could not minimize file (full log on GitHub Actions, cc @JasonGross)

build log (truncated to last 26KiB; full 40KiB file on GitHub Actions Artifacts under build.log) ``` 08, mem: 413940 ko) COQC theories/MCRelations.v theories/MCRelations.vo (real: 0.20, user: 0.13, sys: 0.06, mem: 195764 ko) COQC theories/MCProd.v theories/MCPrelude.vo (real: 0.49, user: 0.35, sys: 0.13, mem: 459032 ko) COQC theories/MCSquash.v theories/MCProd.vo (real: 0.14, user: 0.10, sys: 0.04, mem: 146768 ko) COQC theories/MCArith.v theories/MCSquash.vo (real: 0.09, user: 0.05, sys: 0.03, mem: 100408 ko) COQC theories/MCEquality.v theories/MCEquality.vo (real: 0.09, user: 0.05, sys: 0.04, mem: 100340 ko) COQC theories/LibHypsNaming.v theories/MCArith.vo (real: 0.35, user: 0.26, sys: 0.08, mem: 330344 ko) COQC theories/MCTactics/SpecializeBy.v theories/MCTactics/SpecializeBy.vo (real: 0.09, user: 0.06, sys: 0.02, mem: 99312 ko) COQC theories/MCTactics/Zeta1.v theories/LibHypsNaming.vo (real: 0.31, user: 0.21, sys: 0.10, mem: 296200 ko) COQC theories/MCTactics/FindHyp.v theories/MCTactics/Zeta1.vo (real: 0.09, user: 0.05, sys: 0.04, mem: 97924 ko) COQC theories/MCTactics/Head.v theories/MCTactics/FindHyp.vo (real: 0.09, user: 0.05, sys: 0.03, mem: 97252 ko) COQC theories/MCTactics/DestructHyps.v theories/MCTactics/Head.vo (real: 0.09, user: 0.06, sys: 0.03, mem: 99840 ko) COQC theories/MCTactics/SplitInContext.v theories/MCTactics/DestructHyps.vo (real: 0.09, user: 0.04, sys: 0.04, mem: 99724 ko) COQC theories/MC_ExtrOCamlInt63.v theories/MCTactics/SplitInContext.vo (real: 0.09, user: 0.04, sys: 0.05, mem: 98988 ko) COQC theories/MC_ExtrOCamlZPosInt.v theories/MC_ExtrOCamlInt63.vo (real: 0.28, user: 0.19, sys: 0.08, mem: 267044 ko) COQC theories/canonicaltries/CanonicalTries.v theories/MC_ExtrOCamlZPosInt.vo (real: 0.31, user: 0.22, sys: 0.09, mem: 291132 ko) COQC theories/ByteCompareSpec.v theories/canonicaltries/CanonicalTries.vo (real: 1.22, user: 1.06, sys: 0.15, mem: 463128 ko) COQC theories/MCReflect.v theories/MCReflect.vo (real: 0.33, user: 0.25, sys: 0.08, mem: 319348 ko) COQC theories/MCList.v theories/MCList.vo (real: 1.87, user: 1.69, sys: 0.17, mem: 497000 ko) COQC theories/MCTactics/GeneralizeOverHoles.v theories/MCTactics/GeneralizeOverHoles.vo (real: 0.11, user: 0.07, sys: 0.03, mem: 111396 ko) COQC theories/MCTactics/UniquePose.v theories/MCTactics/UniquePose.vo (real: 0.09, user: 0.04, sys: 0.04, mem: 99532 ko) COQC theories/MCTactics/DestructHead.v theories/MCTactics/DestructHead.vo (real: 0.10, user: 0.06, sys: 0.04, mem: 103700 ko) COQC theories/MCTactics/SpecializeAllWays.v theories/MCTactics/SpecializeAllWays.vo (real: 0.09, user: 0.04, sys: 0.04, mem: 97508 ko) COQC theories/MCOption.v theories/MCOption.vo (real: 0.53, user: 0.41, sys: 0.11, mem: 479940 ko) COQC theories/MCTactics/InHypUnderBindersDo.v theories/MCTactics/InHypUnderBindersDo.vo (real: 0.12, user: 0.05, sys: 0.06, mem: 113820 ko) COQC theories/MCTactics/SpecializeUnderBindersBy.v theories/MCTactics/SpecializeUnderBindersBy.vo (real: 0.12, user: 0.07, sys: 0.04, mem: 115660 ko) COQC theories/All_Forall.v theories/All_Forall.vo (real: 8.67, user: 8.45, sys: 0.20, mem: 563508 ko) COQC theories/MCPred.v theories/MCPred.vo (real: 0.44, user: 0.28, sys: 0.15, mem: 414548 ko) COQC theories/monad_utils.v theories/monad_utils.vo (real: 0.70, user: 0.54, sys: 0.15, mem: 483132 ko) theories/ByteCompareSpec.vo (real: 35.29, user: 34.81, sys: 0.37, mem: 1303824 ko) COQC theories/bytestring.v theories/bytestring.vo (real: 0.53, user: 0.38, sys: 0.15, mem: 534424 ko) COQC theories/MCString.v theories/MCString.vo (real: 0.40, user: 0.28, sys: 0.12, mem: 406508 ko) COQC theories/MCUtils.v theories/MCUtils.vo (real: 0.53, user: 0.37, sys: 0.14, mem: 480296 ko) COQC theories/wGraph.v COQC theories/utils.v theories/utils.vo (real: 0.53, user: 0.37, sys: 0.14, mem: 461288 ko) theories/wGraph.vo (real: 10.37, user: 10.15, sys: 0.19, mem: 668436 ko) make[2]: Leaving directory '/github/workspace/metacoq/utils' make[1]: Leaving directory '/github/workspace/metacoq/utils' make -C common make[1]: Entering directory '/github/workspace/metacoq/common' cat metacoq-config > _CoqProject cat _CoqProject.in >> _CoqProject coq_makefile -f _CoqProject -o Makefile.coq Warning: ../utils/theories (used in -R or -Q) is not a subdirectory of the current directory make -f Makefile.coq make[2]: Entering directory '/github/workspace/metacoq/common' COQDEP VFILES COQC theories/Primitive.v COQC theories/config.v theories/Primitive.vo (real: 0.42, user: 0.32, sys: 0.10, mem: 420624 ko) COQC theories/Kernames.v theories/config.vo (real: 0.69, user: 0.53, sys: 0.15, mem: 464864 ko) COQC theories/Transform.v theories/Transform.vo (real: 0.54, user: 0.37, sys: 0.16, mem: 499308 ko) theories/Kernames.vo (real: 1.19, user: 1.01, sys: 0.17, mem: 634500 ko) COQC theories/BasicAst.v theories/BasicAst.vo (real: 1.79, user: 1.63, sys: 0.16, mem: 623236 ko) COQC theories/Universes.v COQC theories/MonadBasicAst.v theories/MonadBasicAst.vo (real: 0.73, user: 0.57, sys: 0.15, mem: 610436 ko) theories/Universes.vo (real: 3.72, user: 3.53, sys: 0.16, mem: 701428 ko) COQC theories/uGraph.v COQC theories/Environment.v theories/Environment.vo (real: 4.15, user: 3.88, sys: 0.18, mem: 682996 ko) COQC theories/Reflect.v theories/Reflect.vo (real: 2.18, user: 2.00, sys: 0.16, mem: 673468 ko) COQC theories/EnvironmentTyping.v theories/EnvironmentTyping.vo (real: 8.31, user: 8.07, sys: 0.20, mem: 864540 ko) theories/uGraph.vo (real: 16.66, user: 16.13, sys: 0.30, mem: 1275808 ko) COQC theories/UniversesDec.v COQC theories/EnvMap.v theories/EnvMap.vo (real: 1.31, user: 1.09, sys: 0.21, mem: 701360 ko) theories/UniversesDec.vo (real: 10.23, user: 9.96, sys: 0.27, mem: 765752 ko) make[2]: Leaving directory '/github/workspace/metacoq/common' make[1]: Leaving directory '/github/workspace/metacoq/common' make -C pcuic make[1]: Entering directory '/github/workspace/metacoq/pcuic' cat metacoq-config > _CoqProject cat _CoqProject.in >> _CoqProject coq_makefile -f _CoqProject -o Makefile.coq Warning: ../utils/theories (used in -R or -Q) is not a subdirectory of the current directory make -f Makefile.coq make[2]: Entering directory '/github/workspace/metacoq/pcuic' COQDEP VFILES COQC theories/utils/PCUICPrimitive.v COQC theories/utils/PCUICUtils.v theories/utils/PCUICUtils.vo (real: 0.68, user: 0.46, sys: 0.19, mem: 558840 ko) theories/utils/PCUICPrimitive.vo (real: 1.13, user: 0.94, sys: 0.19, mem: 711092 ko) COQC theories/PCUICAst.v theories/PCUICAst.vo (real: 3.65, user: 3.46, sys: 0.19, mem: 727668 ko) COQC theories/utils/PCUICOnOne.v COQC theories/utils/PCUICSize.v theories/utils/PCUICSize.vo (real: 0.94, user: 0.72, sys: 0.21, mem: 715404 ko) COQC theories/utils/PCUICAstUtils.v theories/utils/PCUICOnOne.vo (real: 1.50, user: 1.29, sys: 0.20, mem: 717752 ko) theories/utils/PCUICAstUtils.vo (real: 2.58, user: 2.37, sys: 0.20, mem: 758444 ko) COQC theories/utils/PCUICPretty.v COQC theories/Syntax/PCUICCases.v theories/utils/PCUICPretty.vo (real: 1.11, user: 0.92, sys: 0.17, mem: 753596 ko) theories/Syntax/PCUICCases.vo (real: 2.00, user: 1.76, sys: 0.22, mem: 753132 ko) COQC theories/Syntax/PCUICInduction.v theories/Syntax/PCUICInduction.vo (real: 2.46, user: 2.25, sys: 0.21, mem: 782952 ko) COQC theories/Syntax/PCUICDepth.v COQC theories/Syntax/PCUICReflect.v theories/Syntax/PCUICDepth.vo (real: 2.75, user: 2.55, sys: 0.20, mem: 785292 ko) COQC theories/Syntax/PCUICLiftSubst.v theories/Syntax/PCUICReflect.vo (real: 3.49, user: 3.26, sys: 0.20, mem: 789320 ko) COQC theories/Syntax/PCUICUnivSubst.v theories/Syntax/PCUICUnivSubst.vo (real: 5.62, user: 5.37, sys: 0.21, mem: 765536 ko) COQC theories/Syntax/PCUICViews.v theories/Syntax/PCUICViews.vo (real: 1.43, user: 1.22, sys: 0.19, mem: 766492 ko) theories/Syntax/PCUICLiftSubst.vo (real: 10.75, user: 10.48, sys: 0.22, mem: 798684 ko) COQC theories/PCUICEquality.v COQC theories/PCUICSigmaCalculus.v theories/PCUICEquality.vo (real: 17.45, user: 17.14, sys: 0.28, mem: 1001792 ko) COQC theories/Syntax/PCUICPosition.v theories/PCUICSigmaCalculus.vo (real: 26.71, user: 26.32, sys: 0.20, mem: 881056 ko) COQC theories/Syntax/PCUICClosed.v theories/Syntax/PCUICPosition.vo (real: 11.92, user: 11.69, sys: 0.20, mem: 959564 ko) COQC theories/Syntax/PCUICTactics.v theories/Syntax/PCUICTactics.vo (real: 1.11, user: 0.91, sys: 0.19, mem: 758884 ko) COQC theories/PCUICCasesContexts.v theories/PCUICCasesContexts.vo (real: 1.46, user: 1.24, sys: 0.21, mem: 768840 ko) theories/Syntax/PCUICClosed.vo (real: 14.21, user: 13.96, sys: 0.21, mem: 789424 ko) COQC theories/Syntax/PCUICOnFreeVars.v COQC theories/PCUICReduction.v theories/PCUICReduction.vo (real: 4.54, user: 4.31, sys: 0.20, mem: 787160 ko) COQC theories/PCUICContextSubst.v theories/PCUICContextSubst.vo (real: 2.12, user: 1.88, sys: 0.21, mem: 767476 ko) COQC theories/PCUICCumulativity.v theories/PCUICCumulativity.vo (real: 1.76, user: 1.54, sys: 0.21, mem: 773936 ko) theories/Syntax/PCUICOnFreeVars.vo (real: 12.66, user: 12.43, sys: 0.21, mem: 819064 ko) COQC theories/PCUICCumulativitySpec.v theories/PCUICCumulativitySpec.vo (real: 2.08, user: 1.89, sys: 0.18, mem: 764208 ko) COQC theories/PCUICTyping.v theories/PCUICTyping.vo (real: 16.46, user: 16.22, sys: 0.23, mem: 880056 ko) COQC theories/Syntax/PCUICNamelessDef.v COQC theories/Syntax/PCUICRenameDef.v theories/Syntax/PCUICRenameDef.vo (real: 1.11, user: 0.89, sys: 0.21, mem: 773724 ko) COQC theories/PCUICGlobalEnv.v theories/Syntax/PCUICNamelessDef.vo (real: 1.12, user: 0.95, sys: 0.15, mem: 774164 ko) COQC theories/PCUICWeakeningEnv.v theories/PCUICGlobalEnv.vo (real: 1.23, user: 1.04, sys: 0.18, mem: 770344 ko) COQC theories/PCUICWeakeningConfig.v theories/PCUICWeakeningEnv.vo (real: 1.52, user: 1.32, sys: 0.20, mem: 786096 ko) COQC theories/PCUICGeneration.v theories/PCUICWeakeningConfig.vo (real: 1.19, user: 0.99, sys: 0.19, mem: 776164 ko) COQC theories/PCUICCSubst.v theories/PCUICGeneration.vo (real: 1.20, user: 0.96, sys: 0.23, mem: 776032 ko) COQC theories/PCUICProgram.v theories/PCUICProgram.vo (real: 1.09, user: 0.88, sys: 0.21, mem: 762492 ko) COQC theories/Bidirectional/BDTyping.v theories/PCUICCSubst.vo (real: 1.82, user: 1.50, sys: 0.19, mem: 783348 ko) COQC theories/Syntax/PCUICInstDef.v theories/Syntax/PCUICInstDef.vo (real: 1.24, user: 0.95, sys: 0.17, mem: 775696 ko) COQC theories/Conversion/PCUICClosedConv.v theories/Conversion/PCUICClosedConv.vo (real: 1.35, user: 1.11, sys: 0.23, mem: 782796 ko) COQC theories/Conversion/PCUICWeakeningEnvConv.v theories/Bidirectional/BDTyping.vo (real: 5.10, user: 4.61, sys: 0.20, mem: 794124 ko) COQC theories/Conversion/PCUICWeakeningConfigConv.v theories/Conversion/PCUICWeakeningEnvConv.vo (real: 3.58, user: 3.36, sys: 0.21, mem: 792084 ko) COQC theories/PCUICExpandLets.v theories/Conversion/PCUICWeakeningConfigConv.vo (real: 2.34, user: 2.11, sys: 0.21, mem: 789660 ko) COQC theories/PCUICGuardCondition.v theories/PCUICExpandLets.vo (real: 1.10, user: 0.90, sys: 0.20, mem: 773896 ko) theories/PCUICGuardCondition.vo (real: 1.12, user: 0.86, sys: 0.25, mem: 776892 ko) COQC theories/Typing/PCUICWeakeningEnvTyp.v COQC theories/Conversion/PCUICUnivSubstitutionConv.v theories/Typing/PCUICWeakeningEnvTyp.vo (real: 3.14, user: 2.91, sys: 0.21, mem: 796604 ko) COQC theories/Typing/PCUICWeakeningConfigTyp.v theories/Conversion/PCUICUnivSubstitutionConv.vo (real: 6.75, user: 6.44, sys: 0.27, mem: 818580 ko) COQC theories/Typing/PCUICClosedTyp.v theories/Typing/PCUICWeakeningConfigTyp.vo (real: 6.54, user: 6.27, sys: 0.23, mem: 826012 ko) COQC theories/Typing/PCUICUnivSubstitutionTyp.v theories/Typing/PCUICClosedTyp.vo (real: 6.28, user: 6.07, sys: 0.18, mem: 804424 ko) COQC theories/Conversion/PCUICNamelessConv.v theories/Typing/PCUICUnivSubstitutionTyp.vo (real: 4.52, user: 4.28, sys: 0.23, mem: 788204 ko) COQC theories/Conversion/PCUICRenameConv.v theories/Conversion/PCUICNamelessConv.vo (real: 7.33, user: 7.10, sys: 0.20, mem: 838752 ko) COQC theories/PCUICWcbvEval.v theories/Conversion/PCUICRenameConv.vo (real: 9.14, user: 8.86, sys: 0.23, mem: 844068 ko) COQC theories/Conversion/PCUICWeakeningConv.v theories/Conversion/PCUICWeakeningConv.vo (real: 1.86, user: 1.67, sys: 0.18, mem: 793300 ko) COQC theories/Conversion/PCUICOnFreeVarsConv.v theories/Conversion/PCUICOnFreeVarsConv.vo (real: 4.37, user: 4.11, sys: 0.22, mem: 789464 ko) COQC theories/Typing/PCUICRenameTyp.v theories/PCUICWcbvEval.vo (real: 16.24, user: 15.87, sys: 0.26, mem: 878012 ko) theories/Typing/PCUICRenameTyp.vo (real: 8.35, user: 8.07, sys: 0.22, mem: 835452 ko) COQC theories/Typing/PCUICWeakeningTyp.v theories/Typing/PCUICWeakeningTyp.vo (real: 1.31, user: 1.07, sys: 0.24, mem: 793880 ko) COQC theories/Conversion/PCUICInstConv.v theories/Conversion/PCUICInstConv.vo (real: 23.30, user: 23.08, sys: 0.21, mem: 936800 ko) COQC theories/Typing/PCUICInstTyp.v theories/Typing/PCUICInstTyp.vo (real: 6.63, user: 6.40, sys: 0.22, mem: 821508 ko) COQC theories/PCUICSubstitution.v theories/PCUICSubstitution.vo (real: 12.13, user: 11.91, sys: 0.21, mem: 849024 ko) COQC theories/PCUICContextReduction.v COQC theories/PCUICParallelReduction.v theories/PCUICContextReduction.vo (real: 4.21, user: 3.99, sys: 0.19, mem: 801172 ko) COQC theories/PCUICContexts.v theories/PCUICContexts.vo (real: 6.07, user: 5.84, sys: 0.21, mem: 802332 ko) COQC theories/PCUICWfUniverses.v theories/PCUICWfUniverses.vo (real: 15.43, user: 15.16, sys: 0.25, mem: 839852 ko) COQC theories/PCUICRedTypeIrrelevance.v theories/PCUICRedTypeIrrelevance.vo (real: 2.41, user: 2.23, sys: 0.18, mem: 800276 ko) theories/PCUICParallelReduction.vo (real: 36.10, user: 35.58, sys: 0.29, mem: 1218232 ko) COQC theories/PCUICParallelReductionConfluence.v theories/PCUICParallelReductionConfluence.vo (real: 55.45, user: 55.13, sys: 0.31, mem: 1267328 ko) COQC theories/PCUICConfluence.v theories/PCUICConfluence.vo (real: 60.96, user: 60.34, sys: 0.61, mem: 2330892 ko) COQC theories/PCUICWellScopedCumulativity.v theories/PCUICWellScopedCumulativity.vo (real: 7.64, user: 7.44, sys: 0.20, mem: 871212 ko) COQC theories/PCUICContextConversion.v theories/PCUICContextConversion.vo (real: 15.82, user: 15.59, sys: 0.22, mem: 857428 ko) COQC theories/PCUICConversion.v theories/PCUICConversion.vo (real: 42.40, user: 41.94, sys: 0.45, mem: 2004372 ko) COQC theories/Typing/PCUICNamelessTyp.v COQC theories/Typing/PCUICContextConversionTyp.v theories/Typing/PCUICNamelessTyp.vo (real: 1.31, user: 1.07, sys: 0.23, mem: 815848 ko) COQC theories/PCUICInversion.v theories/Typing/PCUICContextConversionTyp.vo (real: 4.85, user: 4.56, sys: 0.25, mem: 829592 ko) theories/PCUICInversion.vo (real: 8.23, user: 7.95, sys: 0.27, mem: 872452 ko) COQC theories/PCUICArities.v theories/PCUICArities.vo (real: 7.25, user: 6.96, sys: 0.29, mem: 887740 ko) COQC theories/PCUICSpine.v theories/PCUICSpine.vo (real: 22.44, user: 22.19, sys: 0.24, mem: 998844 ko) COQC theories/PCUICInductives.v theories/PCUICInductives.vo (real: 13.24, user: 13.01, sys: 0.23, mem: 900616 ko) COQC theories/PCUICValidity.v theories/PCUICValidity.vo (real: 3.78, user: 3.57, sys: 0.20, mem: 837812 ko) COQC theories/PCUICInductiveInversion.v theories/PCUICInductiveInversion.vo (real: 26.20, user: 25.94, sys: 0.26, mem: 1043512 ko) COQC theories/PCUICAlpha.v COQC theories/PCUICEtaExpand.v theories/PCUICEtaExpand.vo (real: 5.55, user: 5.29, sys: 0.23, mem: 843964 ko) theories/PCUICAlpha.vo (real: 11.78, user: 11.46, sys: 0.27, mem: 905684 ko) COQC theories/PCUICSR.v theories/PCUICSR.vo (real: 40.52, user: 40.14, sys: 0.37, mem: 1482144 ko) COQC theories/PCUICNormal.v COQC theories/Bidirectional/BDToPCUIC.v theories/Bidirectional/BDToPCUIC.vo (real: 3.87, user: 3.61, sys: 0.23, mem: 843876 ko) COQC theories/PCUICCasesHelper.v theories/PCUICCasesHelper.vo (real: 6.35, user: 5.64, sys: 0.21, mem: 841764 ko) COQC theories/Bidirectional/BDFromPCUIC.v theories/Bidirectional/BDFromPCUIC.vo (real: 3.35, user: 3.10, sys: 0.20, mem: 843268 ko) COQC theories/Bidirectional/BDUnique.v theories/PCUICNormal.vo (real: 14.53, user: 13.79, sys: 0.27, mem: 991988 ko) COQC theories/Bidirectional/BDStrengthening.v theories/Bidirectional/BDStrengthening.vo (real: 5.91, user: 5.63, sys: 0.26, mem: 850508 ko) COQC theories/PCUICConvCumInversion.v theories/Bidirectional/BDUnique.vo (real: 12.46, user: 12.20, sys: 0.21, mem: 970616 ko) COQC theories/PCUICSafeLemmata.v theories/PCUICSafeLemmata.vo (real: 4.08, user: 3.83, sys: 0.23, mem: 857116 ko) COQC theories/PCUICCumulProp.v theories/PCUICConvCumInversion.vo (real: 12.66, user: 12.33, sys: 0.27, mem: 940956 ko) COQC theories/PCUICSN.v theories/PCUICSN.vo (real: 1.53, user: 1.31, sys: 0.21, mem: 839756 ko) COQC theories/PCUICWeakeningEnvSN.v theories/PCUICWeakeningEnvSN.vo (real: 1.36, user: 1.17, sys: 0.18, mem: 837812 ko) COQC theories/PCUICWeakeningConfigSN.v theories/PCUICWeakeningConfigSN.vo (real: 1.35, user: 1.12, sys: 0.22, mem: 836868 ko) theories/PCUICCumulProp.vo (real: 14.44, user: 14.09, sys: 0.31, mem: 1032780 ko) COQC theories/PCUICElimination.v COQC theories/PCUICPrincipality.v theories/PCUICElimination.vo (real: 6.26, user: 6.05, sys: 0.19, mem: 860312 ko) COQC theories/PCUICCanonicity.v theories/PCUICCanonicity.vo (real: 7.29, user: 7.10, sys: 0.18, mem: 871856 ko) COQC theories/PCUICProgress.v theories/PCUICPrincipality.vo (real: 15.99, user: 15.60, sys: 0.31, mem: 927660 ko) COQC theories/PCUICExpandLetsCorrectness.v theories/PCUICProgress.vo (real: 4.63, user: 4.37, sys: 0.24, mem: 860676 ko) COQC theories/PCUICFirstorder.v theories/PCUICFirstorder.vo (real: 4.37, user: 4.12, sys: 0.23, mem: 851644 ko) COQC theories/PCUICNormalization.v theories/PCUICNormalization.vo (real: 1.97, user: 1.76, sys: 0.20, mem: 846496 ko) COQC theories/PCUICConsistency.v theories/PCUICConsistency.vo (real: 1.54, user: 1.29, sys: 0.24, mem: 846236 ko) theories/PCUICExpandLetsCorrectness.vo (real: 37.76, user: 37.39, sys: 0.32, mem: 1152792 ko) make[2]: Leaving directory '/github/workspace/metacoq/pcuic' make[1]: Leaving directory '/github/workspace/metacoq/pcuic' make -C safechecker make[1]: Entering directory '/github/workspace/metacoq/safechecker' cat metacoq-config > _CoqProject cat _CoqProject.in >> _CoqProject coq_makefile -f _CoqProject -o Makefile.safechecker Warning: ../utils/theories (used in -R or -Q) is not a subdirectory of the current directory make -f Makefile.safechecker make[2]: Entering directory '/github/workspace/metacoq/safechecker' COQDEP VFILES COQC theories/PCUICEqualityDec.v COQC theories/PCUICErrors.v theories/PCUICErrors.vo (real: 1.82, user: 1.46, sys: 0.24, mem: 756320 ko) theories/PCUICEqualityDec.vo (real: 11.47, user: 11.07, sys: 0.28, mem: 1003264 ko) COQC theories/PCUICWfEnv.v theories/PCUICWfEnv.vo (real: 2.48, user: 2.26, sys: 0.21, mem: 843416 ko) COQC theories/PCUICWfReduction.v COQC theories/PCUICWfEnvImpl.v theories/PCUICWfEnvImpl.vo (real: 2.60, user: 2.36, sys: 0.22, mem: 850924 ko) theories/PCUICWfReduction.vo (real: 2.93, user: 2.69, sys: 0.23, mem: 860680 ko) COQC theories/PCUICSafeReduce.v COQC theories/PCUICSafeConversion.v File "./theories/PCUICSafeConversion.v", line 19, characters 0-36: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 22, characters 0-28: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 25, characters 0-30: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 28, characters 0-38: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 29, characters 0-50: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 30, characters 0-45: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 31, characters 0-38: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 32, characters 0-38: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 33, characters 0-39: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 34, characters 0-36: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 35, characters 0-37: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 36, characters 0-39: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 37, characters 0-30: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 38, characters 0-30: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 39, characters 0-37: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 40, characters 0-34: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 41, characters 0-43: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 42, characters 0-34: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 43, characters 0-44: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 44, characters 0-44: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 45, characters 0-38: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 46, characters 0-42: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 47, characters 0-31: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 58, characters 0-39: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 59, characters 0-45: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 60, characters 0-40: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 64, characters 0-31: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 67, characters 0-33: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 935, characters 0-8: Error: Anomaly "in Univ.repr: Universe MetaCoq.SafeChecker.PCUICSafeConversion.515 undefined." Please report at http://coq.inria.fr/bugs/. Command exited with non-zero status 129 theories/PCUICSafeConversion.vo (real: 8.54, user: 8.23, sys: 0.25, mem: 1053228 ko) make[3]: *** [Makefile.safechecker:793: theories/PCUICSafeConversion.vo] Error 129 make[3]: *** Waiting for unfinished jobs.... theories/PCUICSafeReduce.vo (real: 91.15, user: 90.73, sys: 0.38, mem: 1569032 ko) make[2]: *** [Makefile.safechecker:409: all] Error 2 make[2]: Leaving directory '/github/workspace/metacoq/safechecker' make[1]: *** [Makefile:11: theory] Error 2 make[1]: Leaving directory '/github/workspace/metacoq/safechecker' make: *** [Makefile:137: safechecker] Error 2 ```
minimizer log ``` ```

If you have any comments on your experience of the minimizer, please share them in a reply (possibly tagging @JasonGross). If you believe there's a bug in the bug minimizer, please report it on the bug minimizer issue tracker.

JasonGross commented 1 year ago

@coqbot minimize coq-8.16

#!/usr/bin/env bash
opam list
opam pin add coq 8.16.1
opam pin add dune || opam pin add dune $(dune -v)
opam install -y coq-equations
git clone https://github.com/JasonGross/metacoq.git --branch=zzz-bug-equations-anomaly
cd metacoq
./configure.sh local
make safechecker TIMED=1 -j2
coqbot commented 1 year ago

Hey @JasonGross, the coq bug minimizer is running your script, I'll come back to you with the results once it's done.

coqbot commented 1 year ago

@JasonGross, Error: Could not minimize file (full log on GitHub Actions, cc @JasonGross)

build log (truncated to last 26KiB; full 44KiB file on GitHub Actions Artifacts under build.log) ``` OQC theories/MCRelations.v theories/MCRelations.vo (real: 0.25, user: 0.18, sys: 0.07, mem: 197224 ko) COQC theories/MCProd.v theories/MCProd.vo (real: 0.18, user: 0.11, sys: 0.07, mem: 146296 ko) COQC theories/MCSquash.v theories/MCPrelude.vo (real: 0.61, user: 0.42, sys: 0.18, mem: 459388 ko) COQC theories/MCArith.v theories/MCSquash.vo (real: 0.11, user: 0.05, sys: 0.05, mem: 100136 ko) COQC theories/MCEquality.v theories/MCEquality.vo (real: 0.11, user: 0.06, sys: 0.04, mem: 99536 ko) COQC theories/LibHypsNaming.v theories/MCArith.vo (real: 0.41, user: 0.27, sys: 0.14, mem: 332624 ko) COQC theories/MCTactics/SpecializeBy.v theories/MCTactics/SpecializeBy.vo (real: 0.10, user: 0.06, sys: 0.04, mem: 99284 ko) COQC theories/MCTactics/Zeta1.v theories/LibHypsNaming.vo (real: 0.37, user: 0.23, sys: 0.13, mem: 293492 ko) COQC theories/MCTactics/FindHyp.v theories/MCTactics/Zeta1.vo (real: 0.11, user: 0.06, sys: 0.04, mem: 98204 ko) COQC theories/MCTactics/Head.v theories/MCTactics/FindHyp.vo (real: 0.10, user: 0.06, sys: 0.03, mem: 98732 ko) COQC theories/MCTactics/DestructHyps.v theories/MCTactics/Head.vo (real: 0.11, user: 0.05, sys: 0.05, mem: 97440 ko) COQC theories/MCTactics/SplitInContext.v theories/MCTactics/DestructHyps.vo (real: 0.11, user: 0.06, sys: 0.03, mem: 99808 ko) COQC theories/MC_ExtrOCamlInt63.v theories/MCTactics/SplitInContext.vo (real: 0.11, user: 0.06, sys: 0.04, mem: 100148 ko) COQC theories/MC_ExtrOCamlZPosInt.v theories/MC_ExtrOCamlInt63.vo (real: 0.33, user: 0.22, sys: 0.10, mem: 267012 ko) COQC theories/canonicaltries/CanonicalTries.v theories/MC_ExtrOCamlZPosInt.vo (real: 0.36, user: 0.28, sys: 0.08, mem: 291120 ko) COQC theories/ByteCompareSpec.v theories/canonicaltries/CanonicalTries.vo (real: 1.61, user: 1.44, sys: 0.15, mem: 463112 ko) COQC theories/MCReflect.v theories/MCReflect.vo (real: 0.40, user: 0.30, sys: 0.09, mem: 318952 ko) COQC theories/MCList.v theories/MCList.vo (real: 2.50, user: 2.29, sys: 0.19, mem: 497104 ko) COQC theories/MCTactics/GeneralizeOverHoles.v theories/MCTactics/GeneralizeOverHoles.vo (real: 0.13, user: 0.07, sys: 0.05, mem: 113040 ko) COQC theories/MCTactics/UniquePose.v theories/MCTactics/UniquePose.vo (real: 0.10, user: 0.06, sys: 0.04, mem: 97936 ko) COQC theories/MCTactics/DestructHead.v theories/MCTactics/DestructHead.vo (real: 0.11, user: 0.05, sys: 0.06, mem: 104304 ko) COQC theories/MCTactics/SpecializeAllWays.v theories/MCTactics/SpecializeAllWays.vo (real: 0.11, user: 0.05, sys: 0.05, mem: 99260 ko) COQC theories/MCOption.v theories/MCOption.vo (real: 0.65, user: 0.46, sys: 0.16, mem: 480008 ko) COQC theories/MCTactics/InHypUnderBindersDo.v theories/MCTactics/InHypUnderBindersDo.vo (real: 0.17, user: 0.08, sys: 0.06, mem: 114496 ko) COQC theories/MCTactics/SpecializeUnderBindersBy.v theories/MCTactics/SpecializeUnderBindersBy.vo (real: 0.16, user: 0.08, sys: 0.06, mem: 115604 ko) COQC theories/All_Forall.v theories/All_Forall.vo (real: 11.41, user: 10.93, sys: 0.19, mem: 565160 ko) COQC theories/MCPred.v theories/MCPred.vo (real: 0.52, user: 0.35, sys: 0.16, mem: 415616 ko) COQC theories/monad_utils.v theories/monad_utils.vo (real: 0.82, user: 0.65, sys: 0.16, mem: 487244 ko) theories/ByteCompareSpec.vo (real: 47.52, user: 46.65, sys: 0.51, mem: 1304972 ko) COQC theories/bytestring.v theories/bytestring.vo (real: 0.64, user: 0.40, sys: 0.23, mem: 534928 ko) COQC theories/MCString.v theories/MCString.vo (real: 0.48, user: 0.31, sys: 0.16, mem: 407556 ko) COQC theories/MCUtils.v theories/MCUtils.vo (real: 0.64, user: 0.44, sys: 0.17, mem: 479952 ko) COQC theories/wGraph.v COQC theories/utils.v theories/utils.vo (real: 0.63, user: 0.46, sys: 0.17, mem: 460024 ko) theories/wGraph.vo (real: 14.59, user: 14.27, sys: 0.29, mem: 664164 ko) make[2]: Leaving directory '/github/workspace/metacoq/utils' make[1]: Leaving directory '/github/workspace/metacoq/utils' make -C common make[1]: Entering directory '/github/workspace/metacoq/common' cat metacoq-config > _CoqProject cat _CoqProject.in >> _CoqProject coq_makefile -f _CoqProject -o Makefile.coq Warning: ../utils/theories (used in -R or -Q) is not a subdirectory of the current directory make -f Makefile.coq make[2]: Entering directory '/github/workspace/metacoq/common' COQDEP VFILES COQC theories/Primitive.v COQC theories/config.v theories/Primitive.vo (real: 0.54, user: 0.35, sys: 0.18, mem: 420980 ko) COQC theories/Kernames.v theories/config.vo (real: 0.95, user: 0.77, sys: 0.17, mem: 463304 ko) COQC theories/Transform.v theories/Transform.vo (real: 0.67, user: 0.48, sys: 0.18, mem: 497280 ko) theories/Kernames.vo (real: 1.59, user: 1.32, sys: 0.24, mem: 632532 ko) COQC theories/BasicAst.v theories/BasicAst.vo (real: 2.47, user: 2.24, sys: 0.23, mem: 623140 ko) COQC theories/Universes.v COQC theories/MonadBasicAst.v theories/MonadBasicAst.vo (real: 1.07, user: 0.72, sys: 0.23, mem: 611160 ko) theories/Universes.vo (real: 5.06, user: 4.76, sys: 0.23, mem: 696676 ko) COQC theories/uGraph.v COQC theories/Environment.v theories/Environment.vo (real: 5.59, user: 5.20, sys: 0.24, mem: 682484 ko) COQC theories/Reflect.v theories/Reflect.vo (real: 3.05, user: 2.75, sys: 0.25, mem: 673196 ko) COQC theories/EnvironmentTyping.v theories/EnvironmentTyping.vo (real: 11.04, user: 10.55, sys: 0.29, mem: 864364 ko) theories/uGraph.vo (real: 22.86, user: 22.18, sys: 0.45, mem: 1275748 ko) COQC theories/UniversesDec.v COQC theories/EnvMap.v theories/EnvMap.vo (real: 1.76, user: 1.47, sys: 0.27, mem: 701932 ko) theories/UniversesDec.vo (real: 14.50, user: 14.16, sys: 0.32, mem: 768632 ko) make[2]: Leaving directory '/github/workspace/metacoq/common' make[1]: Leaving directory '/github/workspace/metacoq/common' make -C pcuic make[1]: Entering directory '/github/workspace/metacoq/pcuic' cat metacoq-config > _CoqProject cat _CoqProject.in >> _CoqProject coq_makefile -f _CoqProject -o Makefile.coq Warning: ../utils/theories (used in -R or -Q) is not a subdirectory of the current directory make -f Makefile.coq make[2]: Entering directory '/github/workspace/metacoq/pcuic' COQDEP VFILES COQC theories/utils/PCUICPrimitive.v COQC theories/utils/PCUICUtils.v theories/utils/PCUICUtils.vo (real: 0.84, user: 0.68, sys: 0.15, mem: 558332 ko) theories/utils/PCUICPrimitive.vo (real: 1.44, user: 1.19, sys: 0.23, mem: 710012 ko) COQC theories/PCUICAst.v theories/PCUICAst.vo (real: 4.82, user: 4.53, sys: 0.28, mem: 728860 ko) COQC theories/utils/PCUICOnOne.v COQC theories/utils/PCUICSize.v theories/utils/PCUICSize.vo (real: 1.17, user: 0.90, sys: 0.26, mem: 714148 ko) COQC theories/utils/PCUICAstUtils.v theories/utils/PCUICOnOne.vo (real: 2.04, user: 1.76, sys: 0.23, mem: 719336 ko) theories/utils/PCUICAstUtils.vo (real: 3.40, user: 3.09, sys: 0.28, mem: 757900 ko) COQC theories/utils/PCUICPretty.v COQC theories/Syntax/PCUICCases.v theories/utils/PCUICPretty.vo (real: 1.39, user: 1.11, sys: 0.27, mem: 756272 ko) theories/Syntax/PCUICCases.vo (real: 2.55, user: 2.31, sys: 0.22, mem: 753360 ko) COQC theories/Syntax/PCUICInduction.v theories/Syntax/PCUICInduction.vo (real: 3.26, user: 3.00, sys: 0.25, mem: 782720 ko) COQC theories/Syntax/PCUICDepth.v COQC theories/Syntax/PCUICReflect.v theories/Syntax/PCUICDepth.vo (real: 3.67, user: 3.34, sys: 0.31, mem: 780988 ko) COQC theories/Syntax/PCUICLiftSubst.v theories/Syntax/PCUICReflect.vo (real: 4.99, user: 4.65, sys: 0.30, mem: 794296 ko) COQC theories/Syntax/PCUICUnivSubst.v theories/Syntax/PCUICUnivSubst.vo (real: 7.98, user: 7.68, sys: 0.25, mem: 763940 ko) COQC theories/Syntax/PCUICViews.v theories/Syntax/PCUICViews.vo (real: 1.91, user: 1.65, sys: 0.24, mem: 766544 ko) theories/Syntax/PCUICLiftSubst.vo (real: 14.80, user: 14.44, sys: 0.29, mem: 800512 ko) COQC theories/PCUICEquality.v COQC theories/PCUICSigmaCalculus.v theories/PCUICEquality.vo (real: 25.11, user: 24.71, sys: 0.30, mem: 1001716 ko) COQC theories/Syntax/PCUICPosition.v theories/PCUICSigmaCalculus.vo (real: 40.25, user: 39.60, sys: 0.35, mem: 883232 ko) COQC theories/Syntax/PCUICClosed.v theories/Syntax/PCUICPosition.vo (real: 17.77, user: 17.40, sys: 0.31, mem: 959508 ko) COQC theories/Syntax/PCUICTactics.v theories/Syntax/PCUICTactics.vo (real: 1.44, user: 1.16, sys: 0.27, mem: 757788 ko) COQC theories/PCUICCasesContexts.v theories/PCUICCasesContexts.vo (real: 1.87, user: 1.58, sys: 0.27, mem: 769104 ko) theories/Syntax/PCUICClosed.vo (real: 19.75, user: 19.36, sys: 0.33, mem: 790820 ko) COQC theories/Syntax/PCUICOnFreeVars.v COQC theories/PCUICReduction.v theories/PCUICReduction.vo (real: 6.10, user: 5.73, sys: 0.29, mem: 787640 ko) COQC theories/PCUICContextSubst.v theories/PCUICContextSubst.vo (real: 2.83, user: 2.55, sys: 0.25, mem: 768344 ko) COQC theories/PCUICCumulativity.v theories/PCUICCumulativity.vo (real: 2.37, user: 2.07, sys: 0.28, mem: 774520 ko) theories/Syntax/PCUICOnFreeVars.vo (real: 18.09, user: 17.65, sys: 0.37, mem: 819480 ko) COQC theories/PCUICCumulativitySpec.v theories/PCUICCumulativitySpec.vo (real: 2.70, user: 2.42, sys: 0.28, mem: 763812 ko) COQC theories/PCUICTyping.v theories/PCUICTyping.vo (real: 21.27, user: 20.85, sys: 0.41, mem: 879476 ko) COQC theories/Syntax/PCUICNamelessDef.v COQC theories/Syntax/PCUICRenameDef.v theories/Syntax/PCUICRenameDef.vo (real: 1.42, user: 1.16, sys: 0.25, mem: 773604 ko) COQC theories/PCUICGlobalEnv.v theories/Syntax/PCUICNamelessDef.vo (real: 1.44, user: 1.17, sys: 0.26, mem: 774160 ko) COQC theories/PCUICWeakeningEnv.v theories/PCUICGlobalEnv.vo (real: 1.60, user: 1.33, sys: 0.24, mem: 771160 ko) COQC theories/PCUICWeakeningConfig.v theories/PCUICWeakeningEnv.vo (real: 1.99, user: 1.72, sys: 0.26, mem: 785232 ko) COQC theories/PCUICGeneration.v theories/PCUICWeakeningConfig.vo (real: 1.53, user: 1.22, sys: 0.29, mem: 774908 ko) COQC theories/PCUICCSubst.v theories/PCUICGeneration.vo (real: 1.58, user: 1.30, sys: 0.26, mem: 775744 ko) COQC theories/PCUICProgram.v theories/PCUICProgram.vo (real: 1.39, user: 1.07, sys: 0.31, mem: 762648 ko) COQC theories/Bidirectional/BDTyping.v theories/PCUICCSubst.vo (real: 2.21, user: 1.93, sys: 0.27, mem: 782432 ko) COQC theories/Syntax/PCUICInstDef.v theories/Syntax/PCUICInstDef.vo (real: 1.46, user: 1.17, sys: 0.28, mem: 775772 ko) COQC theories/Conversion/PCUICClosedConv.v theories/Conversion/PCUICClosedConv.vo (real: 1.79, user: 1.51, sys: 0.27, mem: 782088 ko) COQC theories/Conversion/PCUICWeakeningEnvConv.v theories/Bidirectional/BDTyping.vo (real: 6.26, user: 5.92, sys: 0.29, mem: 794180 ko) COQC theories/Conversion/PCUICWeakeningConfigConv.v theories/Conversion/PCUICWeakeningEnvConv.vo (real: 4.85, user: 4.58, sys: 0.25, mem: 791096 ko) COQC theories/PCUICExpandLets.v theories/Conversion/PCUICWeakeningConfigConv.vo (real: 3.19, user: 2.90, sys: 0.27, mem: 794512 ko) COQC theories/PCUICGuardCondition.v theories/PCUICExpandLets.vo (real: 1.45, user: 1.19, sys: 0.25, mem: 774716 ko) theories/PCUICGuardCondition.vo (real: 1.45, user: 1.13, sys: 0.29, mem: 777048 ko) COQC theories/Typing/PCUICWeakeningEnvTyp.v COQC theories/Conversion/PCUICUnivSubstitutionConv.v theories/Typing/PCUICWeakeningEnvTyp.vo (real: 4.19, user: 3.88, sys: 0.30, mem: 797456 ko) COQC theories/Typing/PCUICWeakeningConfigTyp.v theories/Conversion/PCUICUnivSubstitutionConv.vo (real: 9.50, user: 9.16, sys: 0.25, mem: 819072 ko) COQC theories/Typing/PCUICClosedTyp.v theories/Typing/PCUICWeakeningConfigTyp.vo (real: 8.65, user: 8.32, sys: 0.27, mem: 823744 ko) COQC theories/Typing/PCUICUnivSubstitutionTyp.v theories/Typing/PCUICClosedTyp.vo (real: 8.84, user: 8.51, sys: 0.28, mem: 804896 ko) COQC theories/Conversion/PCUICNamelessConv.v theories/Typing/PCUICUnivSubstitutionTyp.vo (real: 6.06, user: 5.77, sys: 0.27, mem: 787716 ko) COQC theories/Conversion/PCUICRenameConv.v theories/Conversion/PCUICNamelessConv.vo (real: 10.48, user: 10.09, sys: 0.31, mem: 838824 ko) COQC theories/PCUICWcbvEval.v theories/Conversion/PCUICRenameConv.vo (real: 12.93, user: 12.60, sys: 0.30, mem: 848020 ko) COQC theories/Conversion/PCUICWeakeningConv.v theories/Conversion/PCUICWeakeningConv.vo (real: 2.49, user: 2.21, sys: 0.27, mem: 793212 ko) COQC theories/Conversion/PCUICOnFreeVarsConv.v theories/Conversion/PCUICOnFreeVarsConv.vo (real: 6.07, user: 5.73, sys: 0.31, mem: 789040 ko) COQC theories/Typing/PCUICRenameTyp.v theories/Typing/PCUICRenameTyp.vo (real: 11.44, user: 11.06, sys: 0.29, mem: 834648 ko) COQC theories/Typing/PCUICWeakeningTyp.v theories/PCUICWcbvEval.vo (real: 23.30, user: 22.91, sys: 0.28, mem: 883368 ko) theories/Typing/PCUICWeakeningTyp.vo (real: 1.66, user: 1.35, sys: 0.30, mem: 796404 ko) COQC theories/Conversion/PCUICInstConv.v theories/Conversion/PCUICInstConv.vo (real: 31.75, user: 31.37, sys: 0.36, mem: 937124 ko) COQC theories/Typing/PCUICInstTyp.v theories/Typing/PCUICInstTyp.vo (real: 8.70, user: 8.36, sys: 0.33, mem: 818912 ko) COQC theories/PCUICSubstitution.v theories/PCUICSubstitution.vo (real: 15.97, user: 15.69, sys: 0.26, mem: 848688 ko) COQC theories/PCUICContextReduction.v COQC theories/PCUICParallelReduction.v theories/PCUICContextReduction.vo (real: 5.76, user: 5.49, sys: 0.25, mem: 800392 ko) COQC theories/PCUICContexts.v theories/PCUICContexts.vo (real: 8.52, user: 8.15, sys: 0.35, mem: 801552 ko) COQC theories/PCUICWfUniverses.v theories/PCUICWfUniverses.vo (real: 21.16, user: 20.82, sys: 0.31, mem: 844272 ko) COQC theories/PCUICRedTypeIrrelevance.v theories/PCUICRedTypeIrrelevance.vo (real: 3.28, user: 3.00, sys: 0.28, mem: 800228 ko) theories/PCUICParallelReduction.vo (real: 47.79, user: 47.05, sys: 0.41, mem: 1216372 ko) COQC theories/PCUICParallelReductionConfluence.v theories/PCUICParallelReductionConfluence.vo (real: 76.01, user: 75.49, sys: 0.50, mem: 1265360 ko) COQC theories/PCUICConfluence.v theories/PCUICConfluence.vo (real: 83.10, user: 82.36, sys: 0.72, mem: 2328108 ko) COQC theories/PCUICWellScopedCumulativity.v theories/PCUICWellScopedCumulativity.vo (real: 10.76, user: 10.42, sys: 0.34, mem: 874240 ko) COQC theories/PCUICContextConversion.v theories/PCUICContextConversion.vo (real: 21.49, user: 21.07, sys: 0.40, mem: 858700 ko) COQC theories/PCUICConversion.v theories/PCUICConversion.vo (real: 56.66, user: 55.93, sys: 0.71, mem: 2007460 ko) COQC theories/Typing/PCUICNamelessTyp.v COQC theories/Typing/PCUICContextConversionTyp.v theories/Typing/PCUICNamelessTyp.vo (real: 1.66, user: 1.38, sys: 0.26, mem: 817740 ko) COQC theories/PCUICInversion.v theories/Typing/PCUICContextConversionTyp.vo (real: 6.40, user: 6.09, sys: 0.28, mem: 830396 ko) theories/PCUICInversion.vo (real: 11.06, user: 10.74, sys: 0.27, mem: 872784 ko) COQC theories/PCUICArities.v theories/PCUICArities.vo (real: 9.74, user: 9.39, sys: 0.33, mem: 889556 ko) COQC theories/PCUICSpine.v theories/PCUICSpine.vo (real: 30.97, user: 30.59, sys: 0.37, mem: 1003012 ko) COQC theories/PCUICInductives.v theories/PCUICInductives.vo (real: 17.73, user: 17.42, sys: 0.30, mem: 900096 ko) COQC theories/PCUICValidity.v theories/PCUICValidity.vo (real: 4.80, user: 4.53, sys: 0.26, mem: 836476 ko) COQC theories/PCUICInductiveInversion.v theories/PCUICInductiveInversion.vo (real: 34.58, user: 34.14, sys: 0.40, mem: 1044584 ko) COQC theories/PCUICAlpha.v COQC theories/PCUICEtaExpand.v theories/PCUICEtaExpand.vo (real: 8.23, user: 6.91, sys: 0.30, mem: 844676 ko) theories/PCUICAlpha.vo (real: 16.87, user: 15.44, sys: 0.34, mem: 909156 ko) COQC theories/PCUICSR.v theories/PCUICSR.vo (real: 52.23, user: 51.72, sys: 0.50, mem: 1484652 ko) COQC theories/PCUICNormal.v COQC theories/Bidirectional/BDToPCUIC.v theories/Bidirectional/BDToPCUIC.vo (real: 5.15, user: 4.82, sys: 0.29, mem: 843764 ko) COQC theories/PCUICCasesHelper.v theories/PCUICCasesHelper.vo (real: 7.64, user: 7.22, sys: 0.37, mem: 839796 ko) COQC theories/Bidirectional/BDFromPCUIC.v theories/Bidirectional/BDFromPCUIC.vo (real: 4.43, user: 4.08, sys: 0.31, mem: 844720 ko) COQC theories/Bidirectional/BDUnique.v theories/PCUICNormal.vo (real: 21.14, user: 20.28, sys: 0.34, mem: 992828 ko) COQC theories/Bidirectional/BDStrengthening.v theories/Bidirectional/BDStrengthening.vo (real: 8.31, user: 7.96, sys: 0.31, mem: 847216 ko) COQC theories/PCUICConvCumInversion.v theories/Bidirectional/BDUnique.vo (real: 16.84, user: 15.78, sys: 0.41, mem: 971216 ko) COQC theories/PCUICSafeLemmata.v theories/PCUICSafeLemmata.vo (real: 5.73, user: 5.10, sys: 0.29, mem: 860592 ko) COQC theories/PCUICCumulProp.v theories/PCUICConvCumInversion.vo (real: 18.08, user: 17.14, sys: 0.35, mem: 943388 ko) COQC theories/PCUICSN.v theories/PCUICSN.vo (real: 2.02, user: 1.68, sys: 0.32, mem: 838900 ko) COQC theories/PCUICWeakeningEnvSN.v theories/PCUICWeakeningEnvSN.vo (real: 1.73, user: 1.42, sys: 0.30, mem: 837488 ko) COQC theories/PCUICWeakeningConfigSN.v theories/PCUICWeakeningConfigSN.vo (real: 1.76, user: 1.41, sys: 0.34, mem: 837240 ko) theories/PCUICCumulProp.vo (real: 19.36, user: 18.80, sys: 0.31, mem: 1033020 ko) COQC theories/PCUICElimination.v COQC theories/PCUICPrincipality.v theories/PCUICElimination.vo (real: 8.46, user: 8.13, sys: 0.31, mem: 858244 ko) COQC theories/PCUICCanonicity.v theories/PCUICCanonicity.vo (real: 10.28, user: 9.87, sys: 0.33, mem: 876728 ko) COQC theories/PCUICProgress.v theories/PCUICPrincipality.vo (real: 23.78, user: 22.71, sys: 0.46, mem: 928920 ko) COQC theories/PCUICExpandLetsCorrectness.v theories/PCUICProgress.vo (real: 6.98, user: 6.05, sys: 0.30, mem: 859792 ko) COQC theories/PCUICFirstorder.v theories/PCUICFirstorder.vo (real: 6.05, user: 5.74, sys: 0.27, mem: 852752 ko) COQC theories/PCUICNormalization.v theories/PCUICNormalization.vo (real: 2.60, user: 2.26, sys: 0.32, mem: 847128 ko) COQC theories/PCUICConsistency.v theories/PCUICConsistency.vo (real: 2.06, user: 1.73, sys: 0.30, mem: 845204 ko) theories/PCUICExpandLetsCorrectness.vo (real: 53.33, user: 52.79, sys: 0.46, mem: 1154656 ko) make[2]: Leaving directory '/github/workspace/metacoq/pcuic' make[1]: Leaving directory '/github/workspace/metacoq/pcuic' make -C safechecker make[1]: Entering directory '/github/workspace/metacoq/safechecker' cat metacoq-config > _CoqProject cat _CoqProject.in >> _CoqProject coq_makefile -f _CoqProject -o Makefile.safechecker Warning: ../utils/theories (used in -R or -Q) is not a subdirectory of the current directory make -f Makefile.safechecker make[2]: Entering directory '/github/workspace/metacoq/safechecker' COQDEP VFILES COQC theories/PCUICEqualityDec.v COQC theories/PCUICErrors.v theories/PCUICErrors.vo (real: 2.34, user: 2.04, sys: 0.28, mem: 755776 ko) theories/PCUICEqualityDec.vo (real: 16.52, user: 16.16, sys: 0.33, mem: 1001628 ko) COQC theories/PCUICWfEnv.v theories/PCUICWfEnv.vo (real: 3.34, user: 3.06, sys: 0.28, mem: 845568 ko) COQC theories/PCUICWfReduction.v COQC theories/PCUICWfEnvImpl.v theories/PCUICWfEnvImpl.vo (real: 3.95, user: 3.59, sys: 0.33, mem: 850788 ko) theories/PCUICWfReduction.vo (real: 4.49, user: 4.11, sys: 0.34, mem: 860968 ko) COQC theories/PCUICSafeConversion.v COQC theories/PCUICSafeReduce.v File "./theories/PCUICSafeConversion.v", line 19, characters 0-36: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 22, characters 0-28: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 25, characters 0-30: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 28, characters 0-38: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 29, characters 0-50: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 30, characters 0-45: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 31, characters 0-38: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 32, characters 0-38: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 33, characters 0-39: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 34, characters 0-36: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 35, characters 0-37: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 36, characters 0-39: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 37, characters 0-30: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 38, characters 0-30: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 39, characters 0-37: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 40, characters 0-34: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 41, characters 0-43: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 42, characters 0-34: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 43, characters 0-44: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 44, characters 0-44: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 45, characters 0-38: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 46, characters 0-42: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 47, characters 0-31: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 58, characters 0-39: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 59, characters 0-45: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 60, characters 0-40: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 64, characters 0-31: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 67, characters 0-33: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 935, characters 0-8: Error: Anomaly "in Univ.repr: Universe MetaCoq.SafeChecker.PCUICSafeConversion.515 undefined." Please report at http://coq.inria.fr/bugs/. Command exited with non-zero status 129 theories/PCUICSafeConversion.vo (real: 12.72, user: 12.26, sys: 0.36, mem: 1057556 ko) make[3]: *** [Makefile.safechecker:793: theories/PCUICSafeConversion.vo] Error 129 make[3]: *** Waiting for unfinished jobs.... theories/PCUICSafeReduce.vo (real: 136.86, user: 136.22, sys: 0.52, mem: 1571352 ko) make[2]: *** [Makefile.safechecker:409: all] Error 2 make[2]: Leaving directory '/github/workspace/metacoq/safechecker' make[1]: *** [Makefile:11: theory] Error 2 make[1]: Leaving directory '/github/workspace/metacoq/safechecker' make: *** [Makefile:137: safechecker] Error 2 ```
minimizer log ``` ```

If you have any comments on your experience of the minimizer, please share them in a reply (possibly tagging @JasonGross). If you believe there's a bug in the bug minimizer, please report it on the bug minimizer issue tracker.

JasonGross commented 1 year ago

@coqbot minimize coq-8.16

#!/usr/bin/env bash
opam install -y coq-equations
git clone https://github.com/JasonGross/metacoq.git --branch=zzz-bug-equations-anomaly
cd metacoq
./configure.sh local
make safechecker TIMED=1 -j2
coqbot commented 1 year ago

Hey @JasonGross, the coq bug minimizer is running your script, I'll come back to you with the results once it's done.

coqbot commented 1 year ago

@JasonGross, Error: Could not minimize file (full log on GitHub Actions, cc @JasonGross)

build log (truncated to last 26KiB; full 38KiB file on GitHub Actions Artifacts under build.log) ``` ories/MCRelations.v theories/MCRelations.vo (real: 0.29, user: 0.19, sys: 0.09, mem: 195324 ko) COQC theories/MCProd.v theories/MCPrelude.vo (real: 0.69, user: 0.44, sys: 0.23, mem: 458908 ko) COQC theories/MCSquash.v theories/MCProd.vo (real: 0.20, user: 0.12, sys: 0.07, mem: 146396 ko) COQC theories/MCArith.v theories/MCSquash.vo (real: 0.14, user: 0.08, sys: 0.04, mem: 99244 ko) COQC theories/MCEquality.v theories/MCEquality.vo (real: 0.16, user: 0.08, sys: 0.05, mem: 99868 ko) COQC theories/LibHypsNaming.v theories/MCArith.vo (real: 0.50, user: 0.36, sys: 0.11, mem: 332728 ko) COQC theories/MCTactics/SpecializeBy.v theories/LibHypsNaming.vo (real: 0.43, user: 0.28, sys: 0.14, mem: 293348 ko) COQC theories/MCTactics/Zeta1.v theories/MCTactics/SpecializeBy.vo (real: 0.13, user: 0.07, sys: 0.05, mem: 98540 ko) COQC theories/MCTactics/FindHyp.v theories/MCTactics/Zeta1.vo (real: 0.13, user: 0.06, sys: 0.06, mem: 97288 ko) theories/MCTactics/FindHyp.vo (real: 0.12, user: 0.06, sys: 0.05, mem: 100016 ko) COQC theories/MCTactics/Head.v COQC theories/MCTactics/DestructHyps.v theories/MCTactics/Head.vo (real: 0.12, user: 0.05, sys: 0.06, mem: 99872 ko) COQC theories/MCTactics/SplitInContext.v theories/MCTactics/DestructHyps.vo (real: 0.12, user: 0.06, sys: 0.06, mem: 98368 ko) COQC theories/MC_ExtrOCamlInt63.v theories/MCTactics/SplitInContext.vo (real: 0.13, user: 0.07, sys: 0.05, mem: 100112 ko) COQC theories/MC_ExtrOCamlZPosInt.v theories/MC_ExtrOCamlInt63.vo (real: 0.39, user: 0.25, sys: 0.13, mem: 266276 ko) COQC theories/canonicaltries/CanonicalTries.v theories/MC_ExtrOCamlZPosInt.vo (real: 0.44, user: 0.28, sys: 0.15, mem: 290852 ko) COQC theories/ByteCompareSpec.v theories/canonicaltries/CanonicalTries.vo (real: 1.81, user: 1.59, sys: 0.20, mem: 462912 ko) COQC theories/MCReflect.v theories/MCReflect.vo (real: 0.47, user: 0.32, sys: 0.14, mem: 317872 ko) COQC theories/MCList.v theories/MCList.vo (real: 2.85, user: 2.58, sys: 0.25, mem: 500856 ko) COQC theories/MCTactics/GeneralizeOverHoles.v theories/MCTactics/GeneralizeOverHoles.vo (real: 0.15, user: 0.07, sys: 0.08, mem: 111352 ko) COQC theories/MCTactics/UniquePose.v theories/MCTactics/UniquePose.vo (real: 0.12, user: 0.06, sys: 0.06, mem: 97772 ko) COQC theories/MCTactics/DestructHead.v theories/MCTactics/DestructHead.vo (real: 0.14, user: 0.06, sys: 0.07, mem: 104084 ko) COQC theories/MCTactics/SpecializeAllWays.v theories/MCTactics/SpecializeAllWays.vo (real: 0.13, user: 0.07, sys: 0.05, mem: 97356 ko) COQC theories/MCOption.v theories/MCOption.vo (real: 0.73, user: 0.53, sys: 0.18, mem: 480176 ko) COQC theories/MCTactics/InHypUnderBindersDo.v theories/MCTactics/InHypUnderBindersDo.vo (real: 0.16, user: 0.09, sys: 0.06, mem: 113524 ko) COQC theories/MCTactics/SpecializeUnderBindersBy.v theories/MCTactics/SpecializeUnderBindersBy.vo (real: 0.17, user: 0.10, sys: 0.06, mem: 115396 ko) COQC theories/All_Forall.v theories/All_Forall.vo (real: 13.11, user: 12.49, sys: 0.27, mem: 565040 ko) COQC theories/MCPred.v theories/MCPred.vo (real: 0.60, user: 0.42, sys: 0.18, mem: 415400 ko) COQC theories/monad_utils.v theories/monad_utils.vo (real: 0.92, user: 0.71, sys: 0.20, mem: 484396 ko) theories/ByteCompareSpec.vo (real: 54.88, user: 53.87, sys: 0.61, mem: 1301268 ko) COQC theories/bytestring.v theories/bytestring.vo (real: 0.79, user: 0.49, sys: 0.30, mem: 534388 ko) COQC theories/MCString.v theories/MCString.vo (real: 0.58, user: 0.34, sys: 0.23, mem: 406060 ko) COQC theories/MCUtils.v theories/MCUtils.vo (real: 0.83, user: 0.59, sys: 0.20, mem: 481760 ko) COQC theories/wGraph.v COQC theories/utils.v theories/utils.vo (real: 0.74, user: 0.53, sys: 0.19, mem: 459336 ko) theories/wGraph.vo (real: 17.31, user: 16.97, sys: 0.32, mem: 668396 ko) make[2]: Leaving directory '/github/workspace/metacoq/utils' make[1]: Leaving directory '/github/workspace/metacoq/utils' make -C common make[1]: Entering directory '/github/workspace/metacoq/common' cat metacoq-config > _CoqProject cat _CoqProject.in >> _CoqProject coq_makefile -f _CoqProject -o Makefile.coq Warning: ../utils/theories (used in -R or -Q) is not a subdirectory of the current directory make -f Makefile.coq make[2]: Entering directory '/github/workspace/metacoq/common' COQDEP VFILES COQC theories/Primitive.v COQC theories/config.v theories/Primitive.vo (real: 0.69, user: 0.38, sys: 0.22, mem: 421428 ko) COQC theories/Kernames.v theories/config.vo (real: 1.12, user: 0.86, sys: 0.16, mem: 464260 ko) COQC theories/Transform.v theories/Transform.vo (real: 0.78, user: 0.55, sys: 0.21, mem: 496820 ko) theories/Kernames.vo (real: 1.79, user: 1.50, sys: 0.26, mem: 630068 ko) COQC theories/BasicAst.v theories/BasicAst.vo (real: 2.74, user: 2.44, sys: 0.29, mem: 622968 ko) COQC theories/Universes.v COQC theories/MonadBasicAst.v theories/MonadBasicAst.vo (real: 1.06, user: 0.78, sys: 0.27, mem: 610448 ko) theories/Universes.vo (real: 5.84, user: 5.57, sys: 0.26, mem: 697728 ko) COQC theories/uGraph.v COQC theories/Environment.v theories/Environment.vo (real: 6.51, user: 6.04, sys: 0.31, mem: 682284 ko) COQC theories/Reflect.v theories/Reflect.vo (real: 3.52, user: 3.19, sys: 0.28, mem: 672732 ko) COQC theories/EnvironmentTyping.v theories/EnvironmentTyping.vo (real: 12.44, user: 12.02, sys: 0.38, mem: 863948 ko) theories/uGraph.vo (real: 26.48, user: 25.37, sys: 0.61, mem: 1275296 ko) COQC theories/UniversesDec.v COQC theories/EnvMap.v theories/EnvMap.vo (real: 2.01, user: 1.72, sys: 0.27, mem: 700928 ko) theories/UniversesDec.vo (real: 17.20, user: 16.81, sys: 0.37, mem: 766432 ko) make[2]: Leaving directory '/github/workspace/metacoq/common' make[1]: Leaving directory '/github/workspace/metacoq/common' make -C pcuic make[1]: Entering directory '/github/workspace/metacoq/pcuic' cat metacoq-config > _CoqProject cat _CoqProject.in >> _CoqProject coq_makefile -f _CoqProject -o Makefile.coq Warning: ../utils/theories (used in -R or -Q) is not a subdirectory of the current directory make -f Makefile.coq make[2]: Entering directory '/github/workspace/metacoq/pcuic' COQDEP VFILES COQC theories/utils/PCUICPrimitive.v COQC theories/utils/PCUICUtils.v theories/utils/PCUICUtils.vo (real: 0.96, user: 0.75, sys: 0.20, mem: 558076 ko) theories/utils/PCUICPrimitive.vo (real: 1.68, user: 1.36, sys: 0.31, mem: 710520 ko) COQC theories/PCUICAst.v theories/PCUICAst.vo (real: 5.84, user: 5.49, sys: 0.34, mem: 728608 ko) COQC theories/utils/PCUICOnOne.v COQC theories/utils/PCUICSize.v theories/utils/PCUICSize.vo (real: 1.34, user: 1.01, sys: 0.32, mem: 713556 ko) COQC theories/utils/PCUICAstUtils.v theories/utils/PCUICOnOne.vo (real: 2.30, user: 1.97, sys: 0.32, mem: 718776 ko) theories/utils/PCUICAstUtils.vo (real: 4.01, user: 3.64, sys: 0.35, mem: 758072 ko) COQC theories/utils/PCUICPretty.v COQC theories/Syntax/PCUICCases.v theories/utils/PCUICPretty.vo (real: 1.65, user: 1.29, sys: 0.34, mem: 754880 ko) theories/Syntax/PCUICCases.vo (real: 3.10, user: 2.70, sys: 0.39, mem: 754260 ko) COQC theories/Syntax/PCUICInduction.v theories/Syntax/PCUICInduction.vo (real: 3.91, user: 3.57, sys: 0.34, mem: 781852 ko) COQC theories/Syntax/PCUICDepth.v COQC theories/Syntax/PCUICReflect.v theories/Syntax/PCUICDepth.vo (real: 4.28, user: 3.89, sys: 0.37, mem: 780792 ko) COQC theories/Syntax/PCUICLiftSubst.v theories/Syntax/PCUICReflect.vo (real: 5.61, user: 5.20, sys: 0.38, mem: 790356 ko) COQC theories/Syntax/PCUICUnivSubst.v theories/Syntax/PCUICUnivSubst.vo (real: 9.16, user: 8.68, sys: 0.38, mem: 763708 ko) COQC theories/Syntax/PCUICViews.v theories/Syntax/PCUICViews.vo (real: 2.18, user: 1.83, sys: 0.32, mem: 767120 ko) theories/Syntax/PCUICLiftSubst.vo (real: 17.30, user: 16.85, sys: 0.42, mem: 799068 ko) COQC theories/PCUICEquality.v COQC theories/PCUICSigmaCalculus.v theories/PCUICEquality.vo (real: 29.02, user: 28.41, sys: 0.49, mem: 1002420 ko) COQC theories/Syntax/PCUICPosition.v theories/PCUICSigmaCalculus.vo (real: 46.33, user: 45.60, sys: 0.41, mem: 881316 ko) COQC theories/Syntax/PCUICClosed.v theories/Syntax/PCUICPosition.vo (real: 20.34, user: 19.80, sys: 0.47, mem: 959084 ko) COQC theories/Syntax/PCUICTactics.v theories/Syntax/PCUICTactics.vo (real: 1.63, user: 1.28, sys: 0.34, mem: 757616 ko) COQC theories/PCUICCasesContexts.v theories/PCUICCasesContexts.vo (real: 2.22, user: 1.85, sys: 0.36, mem: 768416 ko) theories/Syntax/PCUICClosed.vo (real: 23.11, user: 22.63, sys: 0.41, mem: 789144 ko) COQC theories/Syntax/PCUICOnFreeVars.v COQC theories/PCUICReduction.v theories/PCUICReduction.vo (real: 7.07, user: 6.70, sys: 0.30, mem: 791924 ko) COQC theories/PCUICContextSubst.v theories/PCUICContextSubst.vo (real: 3.21, user: 2.84, sys: 0.34, mem: 773484 ko) COQC theories/PCUICCumulativity.v theories/PCUICCumulativity.vo (real: 2.69, user: 2.32, sys: 0.34, mem: 773784 ko) theories/Syntax/PCUICOnFreeVars.vo (real: 21.51, user: 21.04, sys: 0.43, mem: 818344 ko) COQC theories/PCUICCumulativitySpec.v theories/PCUICCumulativitySpec.vo (real: 3.17, user: 2.76, sys: 0.40, mem: 763452 ko) COQC theories/PCUICTyping.v theories/PCUICTyping.vo (real: 24.69, user: 24.32, sys: 0.36, mem: 879084 ko) COQC theories/Syntax/PCUICNamelessDef.v COQC theories/Syntax/PCUICRenameDef.v theories/Syntax/PCUICRenameDef.vo (real: 1.66, user: 1.32, sys: 0.32, mem: 774236 ko) COQC theories/PCUICGlobalEnv.v theories/Syntax/PCUICNamelessDef.vo (real: 1.68, user: 1.29, sys: 0.38, mem: 773352 ko) COQC theories/PCUICWeakeningEnv.v theories/PCUICGlobalEnv.vo (real: 1.81, user: 1.47, sys: 0.33, mem: 773484 ko) COQC theories/PCUICWeakeningConfig.v theories/PCUICWeakeningEnv.vo (real: 2.31, user: 1.92, sys: 0.38, mem: 786804 ko) COQC theories/PCUICGeneration.v theories/PCUICWeakeningConfig.vo (real: 1.74, user: 1.35, sys: 0.38, mem: 773952 ko) COQC theories/PCUICCSubst.v theories/PCUICGeneration.vo (real: 1.82, user: 1.45, sys: 0.36, mem: 774888 ko) COQC theories/PCUICProgram.v theories/PCUICProgram.vo (real: 1.70, user: 1.33, sys: 0.34, mem: 762252 ko) COQC theories/Bidirectional/BDTyping.v theories/PCUICCSubst.vo (real: 2.62, user: 2.22, sys: 0.32, mem: 783212 ko) COQC theories/Syntax/PCUICInstDef.v theories/Syntax/PCUICInstDef.vo (real: 1.67, user: 1.31, sys: 0.34, mem: 775080 ko) COQC theories/Conversion/PCUICClosedConv.v theories/Conversion/PCUICClosedConv.vo (real: 2.03, user: 1.70, sys: 0.31, mem: 782476 ko) COQC theories/Conversion/PCUICWeakeningEnvConv.v theories/Bidirectional/BDTyping.vo (real: 7.16, user: 6.70, sys: 0.41, mem: 796540 ko) COQC theories/Conversion/PCUICWeakeningConfigConv.v theories/Conversion/PCUICWeakeningEnvConv.vo (real: 5.65, user: 5.22, sys: 0.37, mem: 791376 ko) COQC theories/PCUICExpandLets.v theories/Conversion/PCUICWeakeningConfigConv.vo (real: 3.72, user: 3.33, sys: 0.35, mem: 790064 ko) COQC theories/PCUICGuardCondition.v theories/PCUICExpandLets.vo (real: 1.90, user: 1.29, sys: 0.38, mem: 774956 ko) theories/PCUICGuardCondition.vo (real: 1.75, user: 1.30, sys: 0.37, mem: 775408 ko) COQC theories/Typing/PCUICWeakeningEnvTyp.v COQC theories/Conversion/PCUICUnivSubstitutionConv.v theories/Typing/PCUICWeakeningEnvTyp.vo (real: 4.76, user: 4.44, sys: 0.31, mem: 797112 ko) COQC theories/Typing/PCUICWeakeningConfigTyp.v theories/Conversion/PCUICUnivSubstitutionConv.vo (real: 10.87, user: 10.43, sys: 0.37, mem: 819356 ko) COQC theories/Typing/PCUICClosedTyp.v theories/Typing/PCUICWeakeningConfigTyp.vo (real: 9.65, user: 9.27, sys: 0.35, mem: 825680 ko) COQC theories/Typing/PCUICUnivSubstitutionTyp.v theories/Typing/PCUICClosedTyp.vo (real: 10.24, user: 9.80, sys: 0.38, mem: 804156 ko) COQC theories/Conversion/PCUICNamelessConv.v theories/Typing/PCUICUnivSubstitutionTyp.vo (real: 6.95, user: 6.54, sys: 0.38, mem: 788520 ko) COQC theories/Conversion/PCUICRenameConv.v theories/Conversion/PCUICNamelessConv.vo (real: 11.89, user: 11.40, sys: 0.42, mem: 842184 ko) COQC theories/PCUICWcbvEval.v theories/Conversion/PCUICRenameConv.vo (real: 14.53, user: 14.10, sys: 0.37, mem: 845296 ko) COQC theories/Conversion/PCUICWeakeningConv.v theories/Conversion/PCUICWeakeningConv.vo (real: 2.82, user: 2.43, sys: 0.37, mem: 794576 ko) COQC theories/Conversion/PCUICOnFreeVarsConv.v theories/Conversion/PCUICOnFreeVarsConv.vo (real: 6.82, user: 6.41, sys: 0.39, mem: 788628 ko) COQC theories/Typing/PCUICRenameTyp.v theories/Typing/PCUICRenameTyp.vo (real: 13.03, user: 12.56, sys: 0.39, mem: 835664 ko) COQC theories/Typing/PCUICWeakeningTyp.v theories/PCUICWcbvEval.vo (real: 27.05, user: 26.43, sys: 0.39, mem: 881972 ko) theories/Typing/PCUICWeakeningTyp.vo (real: 1.99, user: 1.62, sys: 0.35, mem: 795788 ko) COQC theories/Conversion/PCUICInstConv.v theories/Conversion/PCUICInstConv.vo (real: 37.63, user: 37.13, sys: 0.49, mem: 936228 ko) COQC theories/Typing/PCUICInstTyp.v theories/Typing/PCUICInstTyp.vo (real: 10.53, user: 10.15, sys: 0.37, mem: 819504 ko) COQC theories/PCUICSubstitution.v theories/PCUICSubstitution.vo (real: 19.14, user: 18.70, sys: 0.43, mem: 847456 ko) COQC theories/PCUICContextReduction.v COQC theories/PCUICParallelReduction.v theories/PCUICContextReduction.vo (real: 6.45, user: 6.13, sys: 0.30, mem: 801648 ko) COQC theories/PCUICContexts.v theories/PCUICContexts.vo (real: 9.69, user: 9.28, sys: 0.37, mem: 804428 ko) COQC theories/PCUICWfUniverses.v theories/PCUICWfUniverses.vo (real: 24.27, user: 23.82, sys: 0.39, mem: 841452 ko) COQC theories/PCUICRedTypeIrrelevance.v theories/PCUICRedTypeIrrelevance.vo (real: 3.72, user: 3.32, sys: 0.37, mem: 800776 ko) theories/PCUICParallelReduction.vo (real: 55.90, user: 54.92, sys: 0.54, mem: 1216308 ko) COQC theories/PCUICParallelReductionConfluence.v theories/PCUICParallelReductionConfluence.vo (real: 89.71, user: 89.04, sys: 0.64, mem: 1263384 ko) COQC theories/PCUICConfluence.v theories/PCUICConfluence.vo (real: 99.06, user: 97.90, sys: 1.12, mem: 2327696 ko) COQC theories/PCUICWellScopedCumulativity.v theories/PCUICWellScopedCumulativity.vo (real: 12.59, user: 12.17, sys: 0.42, mem: 870756 ko) COQC theories/PCUICContextConversion.v theories/PCUICContextConversion.vo (real: 25.35, user: 24.84, sys: 0.50, mem: 858100 ko) COQC theories/PCUICConversion.v theories/PCUICConversion.vo (real: 68.51, user: 67.64, sys: 0.85, mem: 2004472 ko) COQC theories/Typing/PCUICNamelessTyp.v COQC theories/Typing/PCUICContextConversionTyp.v theories/Typing/PCUICNamelessTyp.vo (real: 1.89, user: 1.53, sys: 0.35, mem: 816928 ko) COQC theories/PCUICInversion.v theories/Typing/PCUICContextConversionTyp.vo (real: 7.43, user: 7.05, sys: 0.34, mem: 829108 ko) theories/PCUICInversion.vo (real: 12.96, user: 12.55, sys: 0.40, mem: 873772 ko) COQC theories/PCUICArities.v theories/PCUICArities.vo (real: 11.84, user: 11.43, sys: 0.40, mem: 887916 ko) COQC theories/PCUICSpine.v theories/PCUICSpine.vo (real: 37.22, user: 36.73, sys: 0.47, mem: 999436 ko) COQC theories/PCUICInductives.v theories/PCUICInductives.vo (real: 21.46, user: 21.04, sys: 0.41, mem: 900372 ko) COQC theories/PCUICValidity.v theories/PCUICValidity.vo (real: 5.86, user: 5.52, sys: 0.34, mem: 836500 ko) COQC theories/PCUICInductiveInversion.v theories/PCUICInductiveInversion.vo (real: 41.10, user: 40.66, sys: 0.43, mem: 1043556 ko) COQC theories/PCUICAlpha.v COQC theories/PCUICEtaExpand.v theories/PCUICEtaExpand.vo (real: 8.55, user: 8.10, sys: 0.37, mem: 848052 ko) theories/PCUICAlpha.vo (real: 18.42, user: 17.94, sys: 0.44, mem: 905536 ko) COQC theories/PCUICSR.v theories/PCUICSR.vo (real: 62.26, user: 61.60, sys: 0.64, mem: 1485312 ko) COQC theories/Bidirectional/BDToPCUIC.v COQC theories/PCUICNormal.v theories/Bidirectional/BDToPCUIC.vo (real: 5.90, user: 5.46, sys: 0.37, mem: 848608 ko) COQC theories/PCUICCasesHelper.v theories/PCUICCasesHelper.vo (real: 8.33, user: 7.89, sys: 0.38, mem: 840992 ko) COQC theories/Bidirectional/BDFromPCUIC.v theories/Bidirectional/BDFromPCUIC.vo (real: 5.64, user: 4.65, sys: 0.37, mem: 842828 ko) COQC theories/Bidirectional/BDUnique.v theories/PCUICNormal.vo (real: 23.62, user: 22.54, sys: 0.48, mem: 992380 ko) COQC theories/Bidirectional/BDStrengthening.v theories/Bidirectional/BDStrengthening.vo (real: 9.37, user: 9.01, sys: 0.35, mem: 847412 ko) COQC theories/PCUICConvCumInversion.v theories/Bidirectional/BDUnique.vo (real: 19.31, user: 17.60, sys: 0.49, mem: 971168 ko) COQC theories/PCUICSafeLemmata.v theories/PCUICSafeLemmata.vo (real: 6.22, user: 5.81, sys: 0.38, mem: 855548 ko) COQC theories/PCUICCumulProp.v theories/PCUICConvCumInversion.vo (real: 20.70, user: 19.17, sys: 0.38, mem: 942316 ko) COQC theories/PCUICSN.v theories/PCUICSN.vo (real: 2.57, user: 1.92, sys: 0.34, mem: 843480 ko) COQC theories/PCUICWeakeningEnvSN.v theories/PCUICWeakeningEnvSN.vo (real: 2.00, user: 1.62, sys: 0.36, mem: 836652 ko) COQC theories/PCUICWeakeningConfigSN.v theories/PCUICWeakeningConfigSN.vo (real: 2.52, user: 1.62, sys: 0.34, mem: 836736 ko) theories/PCUICCumulProp.vo (real: 22.59, user: 21.25, sys: 0.47, mem: 1031128 ko) COQC theories/PCUICElimination.v COQC theories/PCUICPrincipality.v theories/PCUICElimination.vo (real: 9.60, user: 9.17, sys: 0.38, mem: 862280 ko) COQC theories/PCUICCanonicity.v theories/PCUICCanonicity.vo (real: 11.74, user: 10.82, sys: 0.38, mem: 871632 ko) COQC theories/PCUICProgress.v theories/PCUICPrincipality.vo (real: 26.43, user: 25.15, sys: 0.52, mem: 927584 ko) COQC theories/PCUICExpandLetsCorrectness.v theories/PCUICProgress.vo (real: 7.04, user: 6.64, sys: 0.38, mem: 860436 ko) COQC theories/PCUICFirstorder.v theories/PCUICFirstorder.vo (real: 6.75, user: 6.36, sys: 0.37, mem: 851908 ko) COQC theories/PCUICNormalization.v theories/PCUICNormalization.vo (real: 2.90, user: 2.52, sys: 0.36, mem: 846140 ko) COQC theories/PCUICConsistency.v theories/PCUICConsistency.vo (real: 2.30, user: 1.93, sys: 0.35, mem: 846108 ko) theories/PCUICExpandLetsCorrectness.vo (real: 59.78, user: 59.21, sys: 0.45, mem: 1155576 ko) make[2]: Leaving directory '/github/workspace/metacoq/pcuic' make[1]: Leaving directory '/github/workspace/metacoq/pcuic' make -C safechecker make[1]: Entering directory '/github/workspace/metacoq/safechecker' cat metacoq-config > _CoqProject cat _CoqProject.in >> _CoqProject coq_makefile -f _CoqProject -o Makefile.safechecker Warning: ../utils/theories (used in -R or -Q) is not a subdirectory of the current directory make -f Makefile.safechecker make[2]: Entering directory '/github/workspace/metacoq/safechecker' COQDEP VFILES COQC theories/PCUICEqualityDec.v COQC theories/PCUICErrors.v theories/PCUICErrors.vo (real: 2.58, user: 2.22, sys: 0.33, mem: 755564 ko) theories/PCUICEqualityDec.vo (real: 18.57, user: 18.15, sys: 0.38, mem: 1003340 ko) COQC theories/PCUICWfEnv.v theories/PCUICWfEnv.vo (real: 3.83, user: 3.41, sys: 0.42, mem: 843368 ko) COQC theories/PCUICWfReduction.v COQC theories/PCUICWfEnvImpl.v theories/PCUICWfEnvImpl.vo (real: 3.95, user: 3.53, sys: 0.40, mem: 850804 ko) theories/PCUICWfReduction.vo (real: 4.51, user: 4.14, sys: 0.36, mem: 860900 ko) COQC theories/PCUICSafeReduce.v COQC theories/PCUICSafeConversion.v File "./theories/PCUICSafeConversion.v", line 19, characters 0-36: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 22, characters 0-28: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 25, characters 0-30: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 28, characters 0-38: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 29, characters 0-50: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 30, characters 0-45: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 31, characters 0-38: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 32, characters 0-38: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 33, characters 0-39: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 34, characters 0-36: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 35, characters 0-37: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 36, characters 0-39: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 37, characters 0-30: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 38, characters 0-30: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 39, characters 0-37: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 40, characters 0-34: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 41, characters 0-43: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 42, characters 0-34: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 43, characters 0-44: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 44, characters 0-44: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 45, characters 0-38: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 46, characters 0-42: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 47, characters 0-31: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 58, characters 0-39: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 59, characters 0-45: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 60, characters 0-40: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 64, characters 0-31: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 67, characters 0-33: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 935, characters 0-8: Error: Anomaly "in Univ.repr: Universe MetaCoq.SafeChecker.PCUICSafeConversion.515 undefined." Please report at http://coq.inria.fr/bugs/. Command exited with non-zero status 129 theories/PCUICSafeConversion.vo (real: 13.30, user: 12.68, sys: 0.43, mem: 1054656 ko) make[3]: *** [Makefile.safechecker:793: theories/PCUICSafeConversion.vo] Error 129 make[3]: *** Waiting for unfinished jobs.... theories/PCUICSafeReduce.vo (real: 152.88, user: 152.04, sys: 0.69, mem: 1569320 ko) make[2]: *** [Makefile.safechecker:409: all] Error 2 make[2]: Leaving directory '/github/workspace/metacoq/safechecker' make[1]: *** [Makefile:11: theory] Error 2 make[1]: Leaving directory '/github/workspace/metacoq/safechecker' make: *** [Makefile:137: safechecker] Error 2 ```
minimizer log ``` ```

If you have any comments on your experience of the minimizer, please share them in a reply (possibly tagging @JasonGross). If you believe there's a bug in the bug minimizer, please report it on the bug minimizer issue tracker.

JasonGross commented 1 year ago

@coqbot minimize coq-8.16

#!/usr/bin/env bash
opam install -y coq-equations
git clone https://github.com/JasonGross/metacoq.git --branch=zzz-bug-equations-anomaly
cd metacoq
./configure.sh local
make safechecker TIMED=1 -j2
coqbot commented 1 year ago

@JasonGross, Minimized File /github/workspace/metacoq/safechecker/theories/PCUICSafeConversion.v (interrupted by timeout) (full log on GitHub Actions)

Minimized Coq File (consider adding this file to the test-suite) ```coq (* -*- mode: coq; coq-prog-args: ("-emacs" "-q" "-w" "-deprecated-native-compiler-option" "-native-compiler" "no" "-R" "/github/workspace/metacoq/utils/theories" "MetaCoq.Utils" "-R" "/github/workspace/metacoq/common/theories" "MetaCoq.Common" "-R" "/github/workspace/metacoq/pcuic/theories" "MetaCoq.PCUIC" "-R" "/github/workspace/metacoq/safechecker/theories" "MetaCoq.SafeChecker" "-Q" "/github/workspace/cwd" "Top" "-Q" "/home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Bignums" "Bignums" "-Q" "/home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Equations" "Equations" "-Q" "/home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Ltac2" "Ltac2" "-top" "MetaCoq.SafeChecker.PCUICSafeConversion") -*- *) (* File reduced by coq-bug-minimizer from original input, then from 5927 lines to 1512 lines, then from 1095 lines to 222 lines, then from 235 lines to 2362 lines, then from 2362 lines to 1248 lines, then from 920 lines to 181 lines, then from 194 lines to 977 lines, then from 982 lines to 198 lines, then from 211 lines to 823 lines, then from 827 lines to 300 lines, then from 313 lines to 861 lines, then from 864 lines to 379 lines, then from 392 lines to 1922 lines, then from 1920 lines to 505 lines *) (* coqc version 8.16.1 compiled with OCaml 4.13.1 coqtop version 8.16.1 Expected coqc runtime on this file: 7.452 sec *) Require Coq.Init.Ltac. Require Coq.Bool.Bool. Require Coq.ZArith.ZArith. Require Coq.Arith.Arith. Require Coq.micromega.Lia. Require Coq.Lists.List. Require Coq.Init.Nat. Require Coq.Strings.Ascii. Require Coq.Strings.String. Require Coq.Classes.Morphisms. Require Coq.extraction.Extraction. Require Coq.Unicode.Utf8_core. Require Equations.Init. Require Equations.Signature. Require Equations.CoreTactics. Require Coq.Relations.Relation_Definitions. Require Equations.Prop.Logic. Require Equations.Prop.Classes. Require Coq.Program.Tactics. Require Equations.Prop.EqDec. Require Equations.Prop.DepElim. Require Coq.Relations.Relations. Require Equations.Prop.Constants. Require Coq.Bool.Bvector. Require Coq.Arith.Wf_nat. Require Coq.Wellfounded.Wellfounded. Require Coq.Relations.Relation_Operators. Require Coq.Wellfounded.Lexicographic_Product. Require Coq.Program.Wf. Require Coq.Logic.FunctionalExtensionality. Require Equations.Prop.Subterm. Require Equations.Prop.FunctionalInduction. Require Equations.Prop.Tactics. Require Equations.Prop.NoConfusion. Require Equations.Prop.EqDecInstances. Require Equations.Prop.Loader. Require Equations.Prop.Telescopes. Require Equations.Prop.Equations. Require MetaCoq.Utils.MCPrelude. Require Coq.ssr.ssreflect. Require MetaCoq.Utils.MCReflect. Require Coq.Unicode.Utf8. Require Coq.Lists.SetoidList. Require Coq.Classes.CRelationClasses. Require Equations.Type.Logic. Require Equations.Type.Relation. Require Equations.Type.Relation_Properties. Require MetaCoq.Utils.MCRelations. Require Coq.ssr.ssrbool. Require MetaCoq.Utils.ReflectEq. Require MetaCoq.Utils.MCList. Require Coq.Classes.RelationClasses. Require MetaCoq.Utils.MCProd. Require MetaCoq.Utils.MCOption. Require MetaCoq.Utils.MCSquash. Require MetaCoq.Utils.All_Forall. Require MetaCoq.Utils.MCArith. Require Coq.Structures.OrderedType. Require Coq.Structures.Orders. Require MetaCoq.Utils.MCCompare. Require MetaCoq.Utils.MCEquality. Require Coq.Init.Decimal. Require Coq.Numbers.DecimalString. Require Coq.NArith.NArith. Require Coq.Strings.Byte. Require Coq.NArith.BinNat. Require MetaCoq.Utils.ByteCompare. Require MetaCoq.Utils.ByteCompareSpec. Require MetaCoq.Utils.bytestring. Require MetaCoq.Utils.MCString. Require MetaCoq.Utils.MCTactics.SpecializeBy. Require MetaCoq.Utils.MCTactics.Zeta1. Require MetaCoq.Utils.MCTactics.GeneralizeOverHoles. Require MetaCoq.Utils.MCTactics.FindHyp. Require MetaCoq.Utils.MCTactics.UniquePose. Require MetaCoq.Utils.MCTactics.InHypUnderBindersDo. Require MetaCoq.Utils.MCTactics.SpecializeUnderBindersBy. Require MetaCoq.Utils.MCTactics.Head. Require MetaCoq.Utils.MCTactics.DestructHyps. Require MetaCoq.Utils.MCTactics.DestructHead. Require MetaCoq.Utils.MCTactics.SpecializeAllWays. Require MetaCoq.Utils.MCTactics.SplitInContext. Require Ltac2.Init. Require Ltac2.Message. Require Ltac2.Control. Require Ltac2.Ltac1. Require MetaCoq.Utils.MCUtils. Require MetaCoq.Utils.monad_utils. Require MetaCoq.Utils.utils. Require Coq.btauto.Btauto. Require MetaCoq.Common.config. Require Coq.Structures.OrdersAlt. Require Coq.MSets.MSetList. Require Coq.MSets.MSetAVL. Require Coq.MSets.MSetFacts. Require Coq.MSets.MSetProperties. Require Coq.MSets.MSetDecide. Require Coq.FSets.FMapAVL. Require Coq.Setoids.Setoid. Require Coq.Structures.OrderedTypeAlt. Require Coq.Structures.OrderedTypeEx. Require Coq.FSets.FMapFacts. Require MetaCoq.Common.Kernames. Require Coq.Floats.SpecFloat. Require MetaCoq.Common.BasicAst. Require MetaCoq.Common.Universes. Require Coq.ssr.ssrfun. Require Coq.Numbers.Cyclic.Int63.Uint63. Require Coq.Floats.PrimFloat. Require Coq.Floats.FloatOps. Require Coq.Numbers.HexadecimalString. Require MetaCoq.Common.Primitive. Require MetaCoq.Common.Environment. Require MetaCoq.PCUIC.PCUICSN. Axiom proof_admitted : False. Tactic Notation "admit" := abstract case proof_admitted. Import MetaCoq.Utils.utils. Import MetaCoq.Common.config. Import MetaCoq.Common.uGraph. Import MetaCoq.PCUIC.PCUICAst. Import MetaCoq.PCUIC.PCUICTyping. Lemma wf_ext_gc_of_uctx {cf:checker_flags} {Σ : global_env_ext} (HΣ : ∥ wf_ext Σ ∥) : ∑ uctx', gc_of_uctx (global_ext_uctx Σ) = Some uctx'. Admitted. Section EqualityDecGen. End EqualityDecGen. Import MetaCoq.Utils.utils. Import MetaCoq.Common.config. Import MetaCoq.Common.uGraph. Import MetaCoq.PCUIC.PCUICAst. Import MetaCoq.PCUIC.PCUICTyping. Definition on_global_decls {cf:checker_flags} Σ := on_global_decls_data cumulSpec0 (lift_typing typing) (cf:=cf) Σ.(universes) Σ.(retroknowledge) Σ.(declarations). Class abstract_env_struct {cf:checker_flags} (abstract_env_impl abstract_env_ext_impl : Type) := { abstract_env_rel : abstract_env_impl -> global_env -> Prop; abstract_env_ext_rel : abstract_env_ext_impl -> global_env_ext -> Prop; abstract_env_init (cs:ContextSet.t) (retro : Retroknowledge.t) : on_global_univs cs -> abstract_env_impl; abstract_env_add_decl X (kn:kername) (d:global_decl) : (forall Σ, abstract_env_rel X Σ -> ∥ on_global_decls Σ kn d ∥) -> abstract_env_impl; abstract_env_add_udecl X udecl : (forall Σ, abstract_env_rel X Σ -> ∥ on_udecl Σ.(universes) udecl ∥) -> abstract_env_ext_impl ; abstract_pop_decls : abstract_env_impl -> abstract_env_impl ; abstract_env_lookup : abstract_env_ext_impl -> kername -> option global_decl; abstract_primitive_constant : abstract_env_ext_impl -> Primitive.prim_tag -> option kername; abstract_env_level_mem : abstract_env_ext_impl -> Level.t -> bool; abstract_env_leqb_level_n : abstract_env_ext_impl -> Z -> Level.t -> Level.t -> bool; abstract_env_guard : abstract_env_ext_impl -> FixCoFix -> context -> mfixpoint term -> bool; abstract_env_is_consistent : abstract_env_impl -> LevelSet.t * GoodConstraintSet.t -> bool ; }. Class abstract_env_prop {cf:checker_flags} (abstract_env_impl abstract_env_ext_impl: Type) `{!abstract_env_struct abstract_env_impl abstract_env_ext_impl} : Prop := { abstract_env_ext_exists X : ∥ ∑ Σ , abstract_env_ext_rel X Σ ∥; abstract_env_ext_wf X {Σ} : abstract_env_ext_rel X Σ -> ∥ wf_ext Σ ∥ ; abstract_env_ext_irr X {Σ Σ'} : abstract_env_ext_rel X Σ -> abstract_env_ext_rel X Σ' -> Σ = Σ'; abstract_env_exists X : ∥ ∑ Σ , abstract_env_rel X Σ ∥; abstract_env_wf X {Σ} : abstract_env_rel X Σ -> ∥ wf Σ ∥; abstract_env_irr X {Σ Σ'} : abstract_env_rel X Σ -> abstract_env_rel X Σ' -> Σ = Σ'; abstract_env_init_correct univs retro cuniv : abstract_env_rel (abstract_env_init univs retro cuniv) {| universes := univs; declarations := []; retroknowledge := retro |} ; abstract_env_add_decl_correct X Σ kn d H : abstract_env_rel X Σ -> abstract_env_rel (abstract_env_add_decl X kn d H) (add_global_decl Σ (kn,d)); abstract_env_add_udecl_rel X {Σ} udecl H : (abstract_env_rel X Σ.1 /\ Σ.2 = udecl) <-> abstract_env_ext_rel (abstract_env_add_udecl X udecl H) Σ; abstract_pop_decls_correct X decls (prf : forall Σ : global_env, abstract_env_rel X Σ -> exists d, Σ.(declarations) = d :: decls) : let X' := abstract_pop_decls X in forall Σ Σ', abstract_env_rel X Σ -> abstract_env_rel X' Σ' -> Σ'.(declarations) = decls /\ Σ.(universes) = Σ'.(universes) /\ Σ.(retroknowledge) = Σ'.(retroknowledge); abstract_env_lookup_correct X {Σ} kn decl : abstract_env_ext_rel X Σ -> In (kn, decl) (declarations Σ) <-> abstract_env_lookup X kn = Some decl ; abstract_env_leqb_level_n_correct X {Σ} (wfΣ : abstract_env_ext_rel X Σ): let uctx := (wf_ext_gc_of_uctx (abstract_env_ext_wf X wfΣ)).π1 in leqb_level_n_spec_gen uctx (abstract_env_leqb_level_n X); abstract_env_level_mem_correct X {Σ} (wfΣ : abstract_env_ext_rel X Σ) l: LevelSet.In l (global_ext_levels Σ) <-> abstract_env_level_mem X l; abstract_env_is_consistent_correct X Σ uctx udecl : abstract_env_rel X Σ -> ConstraintSet.For_all (declared_cstr_levels (LevelSet.union udecl.1 (global_levels Σ))) udecl.2 -> gc_of_uctx udecl = Some uctx -> consistent_extension_on (global_uctx Σ) udecl.2 <-> abstract_env_is_consistent X uctx ; abstract_env_guard_correct X {Σ} (wfΣ : abstract_env_ext_rel X Σ) fix_cofix Γ mfix : guard fix_cofix Σ Γ mfix <-> abstract_env_guard X fix_cofix Γ mfix; abstract_primitive_constant_correct X tag Σ : abstract_env_ext_rel X Σ -> abstract_primitive_constant X tag = PCUICEnvironment.primitive_constant Σ tag }. Definition abstract_env_impl {cf:checker_flags} := ∑ X Y Z, @abstract_env_prop _ X Y Z. Global Instance abstract_env_impl_abstract_env_struct {cf:checker_flags} (Σ : abstract_env_impl) : abstract_env_struct Σ.π1 Σ.π2.π1. Admitted. Inductive ConversionError := | NotFoundConstants (c1 c2 : kername) | NotFoundConstant (c : kername) | LambdaNotConvertibleTypes (Γ1 : context) (na : aname) (A1 t1 : term) (Γ2 : context) (na' : aname) (A2 t2 : term) (e : ConversionError) | LambdaNotConvertibleAnn (Γ1 : context) (na : aname) (A1 t1 : term) (Γ2 : context) (na' : aname) (A2 t2 : term) | ProdNotConvertibleDomains (Γ1 : context) (na : aname) (A1 B1 : term) (Γ2 : context) (na' : aname) (A2 B2 : term) (e : ConversionError) | ProdNotConvertibleAnn (Γ1 : context) (na : aname) (A1 B1 : term) (Γ2 : context) (na' : aname) (A2 B2 : term) | ContextNotConvertibleAnn (Γ : context) (decl : context_decl) (Γ' : context) (decl' : context_decl) | ContextNotConvertibleType (Γ : context) (decl : context_decl) (Γ' : context) (decl' : context_decl) | ContextNotConvertibleBody (Γ : context) (decl : context_decl) (Γ' : context) (decl' : context_decl) | ContextNotConvertibleLength | CaseOnDifferentInd (Γ1 : context) (ci : case_info) (p : predicate term) (c : term) (brs : list (branch term)) (Γ2 : context) (ci' : case_info) (p' : predicate term) (c' : term) (brs' : list (branch term)) | CasePredParamsUnequalLength (Γ1 : context) (ci : case_info) (p : predicate term) (c : term) (brs : list (branch term)) (Γ2 : context) (ci' : case_info) (p' : predicate term) (c' : term) (brs' : list (branch term)) | CasePredUnequalUniverseInstances (Γ1 : context) (ci : case_info) (p : predicate term) (c : term) (brs : list (branch term)) (Γ2 : context) (ci' : case_info) (p' : predicate term) (c' : term) (brs' : list (branch term)) | DistinctStuckProj (Γ : context) (p : projection) (c : term) (Γ' : context) (p' : projection) (c' : term) | CannotUnfoldFix (Γ : context) (mfix : mfixpoint term) (idx : nat) (Γ' : context) (mfix' : mfixpoint term) (idx' : nat) | FixRargMismatch (idx : nat) (Γ : context) (u : def term) (mfix1 mfix2 : mfixpoint term) (Γ' : context) (v : def term) (mfix1' mfix2' : mfixpoint term) | FixMfixMismatch (idx : nat) (Γ : context) (mfix : mfixpoint term) (Γ' : context) (mfix' : mfixpoint term) | DistinctCoFix (Γ : context) (mfix : mfixpoint term) (idx : nat) (Γ' : context) (mfix' : mfixpoint term) (idx' : nat) | CoFixRargMismatch (idx : nat) (Γ : context) (u : def term) (mfix1 mfix2 : mfixpoint term) (Γ' : context) (v : def term) (mfix1' mfix2' : mfixpoint term) | CoFixMfixMismatch (idx : nat) (Γ : context) (mfix : mfixpoint term) (Γ' : context) (mfix' : mfixpoint term) | StackHeadError (leq : conv_pb) (Γ1 : context) (t1 : term) (args1 : list term) (u1 : term) (l1 : list term) (Γ2 : context) (t2 : term) (u2 : term) (l2 : list term) (e : ConversionError) | StackTailError (leq : conv_pb) (Γ1 : context) (t1 : term) (args1 : list term) (u1 : term) (l1 : list term) (Γ2 : context) (t2 : term) (u2 : term) (l2 : list term) (e : ConversionError) | StackMismatch (Γ1 : context) (t1 : term) (args1 l1 : list term) (Γ2 : context) (t2 : term) (l2 : list term) | HeadMismatch (leq : conv_pb) (Γ1 : context) (t1 : term) (Γ2 : context) (t2 : term). Module Export MetaCoq_DOT_PCUIC_DOT_PCUICConvCumInversion_WRAPPED. Module Export PCUICConvCumInversion. Import MetaCoq.PCUIC.PCUICWellScopedCumulativity. Definition conv_cum {cf:checker_flags} pb Σ Γ u v := ∥ Σ ;;; Γ ⊢ u ≤[pb] v ∥. #[global] Hint Resolve sq : core. End PCUICConvCumInversion. Module Export MetaCoq. Module Export PCUIC. Module Export PCUICConvCumInversion. Include MetaCoq_DOT_PCUIC_DOT_PCUICConvCumInversion_WRAPPED.PCUICConvCumInversion. End PCUICConvCumInversion. Import MetaCoq.PCUIC.Syntax.PCUICPosition. Import MetaCoq.PCUIC.PCUICSN. Import MetaCoq.PCUIC.PCUICWellScopedCumulativity. Import MetaCoq.PCUIC.PCUICConvCumInversion. Context {cf : checker_flags} {nor : normalizing_flags}. Context (X_type : abstract_env_impl). Context (X : X_type.π2.π1). Inductive state := | Reduction | Term | Args | Fallback. Notation wtp Γ t π := (forall Σ (wfΣ : abstract_env_ext_rel X Σ), welltyped Σ Γ (zipc t π)) (only parsing). Record pack (Γ : context) := mkpack { st : state ; tm1 : term ; stk1 : stack ; tm2 : term ; stk2 : stack ; wth : wtp Γ tm2 stk2 }. Axiom R : forall Γ : context, pack Γ -> pack Γ -> Prop. Notation conv_stack_ctx Γ π1 π2 := (forall Σ, abstract_env_ext_rel X Σ -> ∥ (Σ ⊢ Γ ,,, stack_context π1 = Γ ,,, stack_context π2) ∥). Notation conv_term leq Γ t π t' π' := (forall Σ, abstract_env_ext_rel X Σ -> conv_cum leq Σ (Γ ,,, stack_context π) (zipp t π) (zipp t' π')) (only parsing). Inductive ConversionResult (P : Prop) := | Success (h : P) | Error (e : ConversionError) (h : ~P). Arguments Success {_} _. Arguments Error {_} _. Definition Ret (s:state) Γ t π t' π' := forall (leq : conv_pb), conv_stack_ctx Γ π π' -> True -> True -> True -> ConversionResult (conv_term leq Γ t π t' π'). Definition Aux s Γ t1 π1 t2 π2 h2 := forall s' t1' π1' t2' π2' (h1' : wtp Γ t1' π1') (h2' : wtp Γ t2' π2'), conv_stack_ctx Γ π1 π2 -> R Γ (mkpack Γ s' t1' π1' t2' π2' h2') (mkpack Γ s t1 π1 t2 π2 h2) -> Ret s' Γ t1' π1' t2' π2'. Notation expand aux := (fun a b c d e f g h i => aux _ _ _ _ _ _ _ _ _) (only parsing). Local Notation yes := (Success _) (only parsing). Local Notation no := (fun e => Error e _) (only parsing). Notation isconv_red_raw leq t1 π1 t2 π2 aux := (aux Reduction t1 π1 t2 π2 _ _ _ _ leq _ I I I) (only parsing). Inductive fix_kind := | IndFix | CoIndFix. Definition mFix k := match k with | IndFix => tFix | CoIndFix => tCoFix end. Definition mFix_mfix fk := match fk with | IndFix => Fix | CoIndFix => CoFix end. Equations isws_cumul_pb_fix_bodies (fk : fix_kind) (Γ : context) (idx : nat) (mfix1 mfix2 : mfixpoint term) (π : stack) (h : wtp Γ (mFix fk (mfix1 ++ mfix2) idx) π) (mfix1' mfix2' : mfixpoint term) (π' : stack) (h' : wtp Γ (mFix fk (mfix1' ++ mfix2') idx) π') (hx : conv_stack_ctx Γ π π') (h1 : ∥ All2 (fun u v => forall Σ (wfΣ : abstract_env_ext_rel X Σ), Σ ;;; Γ ,,, stack_context π ,,, fix_context_alt (map def_sig mfix1 ++ map def_sig mfix2) ⊢ u.(dbody) = v.(dbody)) mfix1 mfix1' ∥) (ha : ∥ All2 (fun u v => (forall Σ (wfΣ : abstract_env_ext_rel X Σ), Σ ;;; Γ ,,, stack_context π ⊢ u.(dtype) = v.(dtype)) × (u.(rarg) = v.(rarg)) * eq_binder_annot u.(dname) v.(dname) ) (mfix1 ++ mfix2) (mfix1' ++ mfix2') ∥) (aux : Aux Term Γ (mFix fk (mfix1 ++ mfix2) idx) π (mFix fk (mfix1' ++ mfix2') idx) π' h') : ConversionResult (∥ All2 (fun u v => forall Σ (wfΣ : abstract_env_ext_rel X Σ), Σ ;;; Γ ,,, stack_context π ,,, fix_context_alt (map def_sig mfix1 ++ map def_sig mfix2) ⊢ u.(dbody) = v.(dbody)) mfix2 mfix2' ∥) by struct mfix2 := isws_cumul_pb_fix_bodies fk Γ idx mfix1 (u :: mfix2) π h mfix1' (v :: mfix2') π' h' hx h1 ha aux with isconv_red_raw Conv u.(dbody) (mFix_mfix fk (mfix1, def_hole_body u.(dname) u.(dtype) u.(rarg), mfix2) idx :: π) v.(dbody) (mFix_mfix fk (mfix1', def_hole_body v.(dname) v.(dtype) v.(rarg), mfix2') idx :: π') aux := { | Success h2 with isws_cumul_pb_fix_bodies fk Γ idx (mfix1 ++ [u]) mfix2 π _ (mfix1' ++ [v]) mfix2' π' _ hx _ _ (expand aux) := { | Success h3 := yes ; | Error e h'' := no e } ; | Error e h'' := no e } ; isws_cumul_pb_fix_bodies fk Γ idx mfix1 [] π h mfix1' [] π' h' hx h1 ha aux := yes ; isws_cumul_pb_fix_bodies fk Γ idx mfix1 mfix2 π h mfix1' mfix2' π' h' hx h1 ha aux := False_rect _ _. Next Obligation. destruct h1 as [h1], ha as [ha]. apply All2_length in h1 as e1. apply All2_length in ha as ea. rewrite !app_length in ea. simpl in ea. lia. Qed. Next Obligation. admit. Defined. Next Obligation. admit. Defined. Next Obligation. admit. Defined. Next Obligation. admit. Defined. Next Obligation. admit. Defined. Next Obligation. Admitted. Next Obligation. Admitted. Next Obligation. Admitted. Next Obligation. Admitted. Next Obligation. Admitted. Next Obligation. admit. Defined. Next Obligation. admit. Defined. Next Obligation. admit. Defined. ```
Intermediate Coq File (useful for debugging if minimization did not go as far as you wanted) ```coq ```
Build Log (contains the Coq error message) (truncated to last 8.0KiB; full 130KiB file on GitHub Actions Artifacts under build.log) ``` oqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC -R /github/workspace/metacoq/safechecker/theories MetaCoq.SafeChecker theories/PCUICSafeReduce.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.9KxwXyOzZc MINIMIZER_DEBUG: files: theories/PCUICSafeReduce.v MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC -R /github/workspace/metacoq/safechecker/theories MetaCoq.SafeChecker theories/PCUICSafeConversion.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.ULfoXx3Wl1 MINIMIZER_DEBUG: files: theories/PCUICSafeConversion.v File "./theories/PCUICSafeConversion.v", line 19, characters 0-36: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 22, characters 0-28: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 25, characters 0-30: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 28, characters 0-38: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 29, characters 0-50: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 30, characters 0-45: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 31, characters 0-38: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 32, characters 0-38: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 33, characters 0-39: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 34, characters 0-36: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 35, characters 0-37: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 36, characters 0-39: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 37, characters 0-30: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 38, characters 0-30: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 39, characters 0-37: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 40, characters 0-34: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 41, characters 0-43: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 42, characters 0-34: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 43, characters 0-44: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 44, characters 0-44: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 45, characters 0-38: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 46, characters 0-42: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 47, characters 0-31: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 58, characters 0-39: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 59, characters 0-45: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 60, characters 0-40: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 64, characters 0-31: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 67, characters 0-33: Warning: Use of “Require” inside a module is fragile. It is not recommended to use this functionality in finished proof scripts. [require-in-module,fragile] File "./theories/PCUICSafeConversion.v", line 935, characters 0-8: Error: Anomaly "in Univ.repr: Universe MetaCoq.SafeChecker.PCUICSafeConversion.515 undefined." Please report at http://coq.inria.fr/bugs/. Command exited with non-zero status 129 theories/PCUICSafeConversion.vo (real: 11.02, user: 10.58, sys: 0.36, mem: 1054200 ko) make[3]: *** [Makefile.safechecker:793: theories/PCUICSafeConversion.vo] Error 129 make[3]: *** Waiting for unfinished jobs.... theories/PCUICSafeReduce.vo (real: 109.35, user: 108.65, sys: 0.64, mem: 1571912 ko) make[2]: *** [Makefile.safechecker:409: all] Error 2 make[2]: Leaving directory '/github/workspace/metacoq/safechecker' make[1]: *** [Makefile:11: theory] Error 2 make[1]: Leaving directory '/github/workspace/metacoq/safechecker' make: *** [Makefile:137: safechecker] Error 2 ```
Minimization Log (truncated to last 8.0KiB; full 1.1MiB file on GitHub Actions Artifacts under bug.log) ``` (mFix fk (mfix1'0 ++ d :: l) idx) π'1 h'1) => ! end π'0 h'0 hx0 h2 ha0 aux0 | d :: l => fun (π0 : stack) (h0 : forall Σ : global_env_ext, abstract_env_ext_rel X Σ -> welltyped Σ Γ (zipc (mFix fk (mfix1 ++ d :: l) idx) π0)) (mfix1'0 mfix2'0 : mfixpoint term) (π'0 : stack) (h'0 : forall Σ : global_env_ext, abstract_env_ext_rel X Σ -> welltyped Σ Γ (zipc (mFix fk (mfix1'0 ++ mfix2'0) idx) π'0)) (hx0 : conv_stack_ctx Γ π0 π'0) (h2 : ∥ All2 (fun u v : def term => forall Σ : global_env_ext, abstract_env_ext_rel X Σ -> Σ ;;; Γ,,, stack_context π0,,, fix_context_alt (map def_sig mfix1 ++ map def_sig (d :: l)) ⊢ dbody u = dbody v) mfix1 mfix1'0 ∥) (ha0 : ∥ All2 (fun u v : def term => (forall Σ : global_env_ext, abstract_env_ext_rel X Σ -> Σ ;;; Γ,,, stack_context π0 ⊢ dtype u = dtype v) * (rarg u = rarg v × eq_binder_annot (dname u) (dname v))) (mfix1 ++ d :: l) (mfix1'0 ++ mfix2'0) ∥) (aux0 : Aux Term Γ (mFix fk (mfix1 ++ d :: l) idx) π0 (mFix fk (mfix1'0 ++ mfix2'0) idx) π'0 h'0) => match mfix2'0 as l0 return (forall (π'1 : stack) (h'1 : forall Σ : global_env_ext, abstract_env_ext_rel X Σ -> welltyped Σ Γ (zipc (mFix fk (mfix1'0 ++ l0) idx) π'1)), conv_stack_ctx Γ π0 π'1 -> ∥ All2 (fun u v : def term => forall Σ : global_env_ext, abstract_env_ext_rel X Σ -> Σ ;;; Γ,,, stack_context π0,,, fix_context_alt (map def_sig mfix1 ++ map def_sig (d :: l)) ⊢ dbody u = dbody v) mfix1 mfix1'0 ∥ -> ∥ All2 (fun u v : def term => (forall Σ : global_env_ext, abstract_env_ext_rel X Σ -> Σ ;;; Γ,,, stack_context π0 ⊢ dtype u = dtype v) * (rarg u = rarg v × eq_binder_annot (dname u) (dname v))) (mfix1 ++ d :: l) (mfix1'0 ++ l0) ∥ -> Aux Term Γ (mFix fk (mfix1 ++ d :: l) idx) π0 (mFix fk (mfix1'0 ++ l0) idx) π'1 h'1 -> ConversionResult (∥ All2 (fun u v : def term => forall Σ : global_env_ext, abstract_env_ext_rel X Σ -> Σ ;;; Γ,,, stack_context π0,,, fix_context_alt (map def_sig mfix1 ++ map def_sig (d :: l)) ⊢ dbody u = dbody v) (d :: l) l0 ∥)) with | [] => fun (π'1 : stack) (h'1 : forall Σ : global_env_ext, abstract_env_ext_rel X Σ -> welltyped Σ Γ (zipc (mFix fk (mfix1'0 ++ []) idx) π'1)) (hx1 : conv_stack_ctx Γ π0 π'1) (h3 : ∥ All2 (fun u v : def term => forall Σ : global_env_ext, abstract_env_ext_rel X Σ -> Σ ;;; Γ,,, stack_context π0,,, fix_context_alt (map def_sig mfix1 ++ map def_sig (d :: l)) ⊢ dbody u = dbody v) mfix1 mfix1'0 ∥) (ha1 : ∥ All2 (fun u v : def term => (forall Σ : global_env_ext, abstract_env_ext_rel X Σ -> Σ ;;; Γ,,, stack_context π0 ⊢ dtype u = dtype v) * (rarg u = rarg v × eq_binder_annot (dname u) (dname v))) (mfix1 ++ d :: l) (mfix1'0 ++ []) ∥) (aux1 : Aux Term Γ (mFix fk (mfix1 ++ d :: l) idx) π0 (mFix fk (mfix1'0 ++ []) idx) π'1 h'1) => ! | d0 :: l0 => fun (π'1 : stack) (h'1 : forall Σ : global_env_ext, abstract_env_ext_rel X Σ -> welltyped Σ Γ (zipc (mFix fk (mfix1'0 ++ d0 :: l0) idx) π'1)) (hx1 : conv_stack_ctx Γ π0 π'1) (h3 : ∥ All2 (fun u v : def term => forall Σ : global_env_ext, abstract_env_ext_rel X Σ -> Σ ;;; Γ,,, stack_context π0,,, fix_context_alt (map def_sig mfix1 ++ map def_sig (d :: l)) ⊢ dbody u = dbody v) mfix1 mfix1'0 ∥) (ha1 : ∥ All2 (fun u v : def term => (forall Σ : global_env_ext, abstract_env_ext_rel X Σ -> Σ ;;; Γ,,, stack_context π0 ⊢ dtype u = dtype v) * (rarg u = rarg v × eq_binder_annot (dname u) (dname v))) (mfix1 ++ d :: l) (mfix1'0 ++ d0 :: l0) ∥) (aux1 : Aux Term Γ (mFix fk (mfix1 ++ d :: l) idx) π0 (mFix fk (mfix1'0 ++ d0 :: l0) idx) π'1 h'1) => isws_cumul_pb_fix_bodies_clause_1 isws_cumul_pb_fix_bodies fk Γ idx mfix1 d l π0 h0 mfix1'0 d0 l0 π'1 h'1 hx1 h3 ha1 aux1 (aux1 Reduction (dbody d) (mFix_mfix fk (mfix1, def_hole_body (dname d) (dtype d) (rarg d), l) idx :: π0) (dbody d0) (mFix_mfix fk (mfix1'0, def_hole_body (dname d0) (dtype d0) (rarg d0), l0) idx :: π'1) (isws_cumul_pb_fix_bodies_obligations_obligation_4 isws_cumul_pb_fix_bodies fk Γ idx mfix1 d l π0 h0 mfix1'0 d0 l0 π'1 h'1 hx1 h3 ha1 aux1) (isws_cumul_pb_fix_bodies_obligations_obligation_5 isws_cumul_pb_fix_bodies fk Γ idx mfix1 d l π0 h0 mfix1'0 d0 l0 π'1 h'1 hx1 h3 ha1 aux1) (fun (Σ : global_env_ext) (H : abstract_env_ext_rel X Σ) => isws_cumul_pb_fix_bodies_obligations_obligation_6 Γ π0 π'1 hx1 Σ H) (isws_cumul_pb_fix_bodies_obligations_obligation_7 isws_cumul_pb_fix_bodies fk Γ idx mfix1 d l π0 h0 mfix1'0 d0 l0 π'1 h'1 hx1 h3 ha1 aux1) Conv (isws_cumul_pb_fix_bodies_obligations_obligation_8 isws_cumul_pb_fix_bodies fk Γ idx mfix1 d l π0 h0 mfix1'0 d0 l0 π'1 h'1 hx1 h3 ha1 aux1) I I I) end π'0 h'0 hx0 h2 ha0 aux0 end π h mfix1' mfix2' π' h' hx h1 ha aux". Intermediate code not saved. Failed to do everything at once; trying one at a time. Admitting definitions successful Success! I will now attempt to admit lemmas with admit. Defined  Admitting lemmas successful. Failed to do everything at once; trying one at a time. Admitting lemmas unsuccessful. No successful changes. I will now attempt to admit definitions with admit. Defined Non-fatal error: Failed to admit definitions and preserve the error. The new error was: File "/tmp/tmpsnajmlee/MetaCoq/SafeChecker/PCUICSafeConversion.v", line 704, characters 0-9: Warning: Let definition uctx' declared as an axiom. [let-as-axiom,vernacular] Error: The module PCUIC, module MetaCoq and module MetaCoq_DOT_PCUIC_DOT_PCUICConvCumInversion_WRAPPED need to be closed. Intermediate code not saved. Failed to do everything at once; trying one at a time. Admitting definitions unsuccessful. No successful changes. I will now attempt to export modules Module exportation successful I will now attempt to split imports and exports Import/Export splitting successful I will now attempt to split := definitions One-line definition splitting successful I will now attempt to remove all lines, one at a time ```

If you have any comments on your experience of the minimizer, please share them in a reply (possibly tagging @JasonGross). If you believe there's a bug in the bug minimizer, please report it on the bug minimizer issue tracker.

JasonGross commented 1 year ago

@coqbot minimize coq-8.16

#!/usr/bin/env bash
opam install -y coq-equations
git clone https://github.com/JasonGross/metacoq.git --branch=zzz-bug-equations-anomaly
cd metacoq
./configure.sh local
make safechecker TIMED=1 -j2
coqbot commented 1 year ago

Hey @JasonGross, the coq bug minimizer is running your script, I'll come back to you with the results once it's done.

coqbot commented 1 year ago

@JasonGross, Minimized File /github/workspace/metacoq/safechecker/theories/PCUICSafeConversion.v (full log on GitHub Actions)

Minimized Coq File (consider adding this file to the test-suite) ```coq (* -*- mode: coq; coq-prog-args: ("-emacs" "-q" "-w" "-deprecated-native-compiler-option" "-native-compiler" "no" "-R" "/github/workspace/metacoq/utils/theories" "MetaCoq.Utils" "-R" "/github/workspace/metacoq/common/theories" "MetaCoq.Common" "-R" "/github/workspace/metacoq/pcuic/theories" "MetaCoq.PCUIC" "-R" "/github/workspace/metacoq/safechecker/theories" "MetaCoq.SafeChecker" "-Q" "/github/workspace/cwd" "Top" "-Q" "/home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Bignums" "Bignums" "-Q" "/home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Equations" "Equations" "-Q" "/home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Ltac2" "Ltac2" "-top" "MetaCoq.SafeChecker.PCUICSafeConversion") -*- *) (* File reduced by coq-bug-minimizer from original input, then from 5927 lines to 1512 lines, then from 1095 lines to 222 lines, then from 235 lines to 2362 lines, then from 2362 lines to 1248 lines, then from 920 lines to 181 lines, then from 194 lines to 977 lines, then from 982 lines to 198 lines, then from 211 lines to 823 lines, then from 827 lines to 300 lines, then from 313 lines to 861 lines, then from 864 lines to 379 lines, then from 392 lines to 1922 lines, then from 1920 lines to 505 lines, then from 284 lines to 26 lines, then from 39 lines to 1488 lines, then from 1489 lines to 26 lines, then from 39 lines to 901 lines, then from 903 lines to 44 lines, then from 57 lines to 593 lines, then from 598 lines to 45 lines, then from 58 lines to 188 lines, then from 193 lines to 46 lines, then from 59 lines to 369 lines, then from 372 lines to 50 lines, then from 63 lines to 3850 lines, then from 3846 lines to 65 lines, then from 78 lines to 1605 lines, then from 1603 lines to 67 lines, then from 80 lines to 108 lines, then from 113 lines to 69 lines, then from 82 lines to 201 lines, then from 206 lines to 69 lines, then from 82 lines to 632 lines, then from 637 lines to 75 lines, then from 88 lines to 197 lines, then from 202 lines to 78 lines, then from 91 lines to 336 lines, then from 341 lines to 84 lines, then from 97 lines to 276 lines, then from 280 lines to 89 lines, then from 94 lines to 90 lines *) (* coqc version 8.16.1 compiled with OCaml 4.13.1 coqtop version 8.16.1 Expected coqc runtime on this file: 0.225 sec *) Require Coq.Structures.OrderedType. Require Coq.extraction.Extraction. Axiom proof_admitted : False. Tactic Notation "admit" := abstract case proof_admitted. Declare ML Module "equations_plugin:coq-equations.plugin". Variant equations_tag@{} : Set := the_equations_tag. Definition fixproto := the_equations_tag. Register fixproto as equations.fixproto. Definition block := the_equations_tag. Register block as equations.internal.block. Register Init.Logic.True as equations.top.type. Register Init.Logic.I as equations.top.intro. Module Export String. Inductive t : Set := | EmptyString | String (_ : Byte.byte) (_ : t). Notation string := String.t. Record squash (A : Type) : Prop := sq { _ : A }. Notation "∥ T ∥" := (squash T) (at level 10). Import Coq.Lists.SetoidList. Export ListNotations. Notation "#| l |" := (List.length l) (at level 0, l at level 99, format "#| l |"). Module Export All_Forall. Local Set Universe Polymorphism. Local Set Polymorphic Inductive Cumulativity. Inductive All2 {A B : Type} (R : A -> B -> Type) : list A -> list B -> Type := All2_nil : All2 R [] [] | All2_cons : forall (x : A) (y : B) (l : list A) (l' : list B), R x y -> All2 R l l' -> All2 R (x :: l) (y :: l'). Lemma All2_length {A B} {P : A -> B -> Type} {l l'} : All2 P l l' -> #|l| = #|l'|. Admitted. End All_Forall. Definition ident := string. Inductive name : Set := | nAnon | nNamed (_ : ident). Inductive relevance : Set := Relevant | Irrelevant. Record binder_annot (A : Type) := mkBindAnn { binder_name : A; binder_relevance : relevance }. Definition aname := binder_annot name. Record def term := mkdef { dname : aname; dtype : term; dbody : term; rarg : nat }. Definition mfixpoint term := list (def term). Equations isws_cumul_pb_fix_bodies {term fix_kind} (fk : fix_kind) (idx : nat) (mfix1 mfix2 : mfixpoint term) (mfix1' mfix2' : mfixpoint term) (h1 : ∥ All2 (fun u v => True) mfix1 mfix1' ∥) : True by struct mfix2 := isws_cumul_pb_fix_bodies fk idx mfix1 (u :: mfix2) mfix1' (v :: mfix2') h1 := I ; isws_cumul_pb_fix_bodies fk idx mfix1 [] mfix1' [] h1 := I ; isws_cumul_pb_fix_bodies fk idx mfix1 mfix2 mfix1' mfix2' h1 := False_rect _ _. Next Obligation. destruct h1 as [h1]. apply All2_length in h1 as e1. admit. Qed. Next Obligation. admit. Defined. ```
Intermediate Coq File (useful for debugging if minimization did not go as far as you wanted) ```coq ```
Build Log (contains the Coq error message) (truncated to last 8.0KiB; full 120KiB file on GitHub Actions Artifacts under build.log) ``` c MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC theories/PCUICExpandLetsCorrectness.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.KMGJvXYwDw MINIMIZER_DEBUG: files: theories/PCUICExpandLetsCorrectness.v theories/PCUICProgress.vo (real: 4.99, user: 4.63, sys: 0.34, mem: 859900 ko) COQC theories/PCUICFirstorder.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/pcuic MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC theories/PCUICFirstorder.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.Rgykq3iS5b MINIMIZER_DEBUG: files: theories/PCUICFirstorder.v theories/PCUICFirstorder.vo (real: 4.67, user: 4.36, sys: 0.30, mem: 852412 ko) COQC theories/PCUICNormalization.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/pcuic MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC theories/PCUICNormalization.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.tDiudtdfYq MINIMIZER_DEBUG: files: theories/PCUICNormalization.v theories/PCUICNormalization.vo (real: 2.14, user: 1.86, sys: 0.24, mem: 846968 ko) COQC theories/PCUICConsistency.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/pcuic MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC theories/PCUICConsistency.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.Yp609R2VO0 MINIMIZER_DEBUG: files: theories/PCUICConsistency.v theories/PCUICConsistency.vo (real: 1.65, user: 1.37, sys: 0.28, mem: 846332 ko) theories/PCUICExpandLetsCorrectness.vo (real: 39.48, user: 39.05, sys: 0.37, mem: 1153108 ko) MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/pcuic MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig --print-version MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.YF6L2ob2lu MINIMIZER_DEBUG: files: make[2]: Leaving directory '/github/workspace/metacoq/pcuic' make[1]: Leaving directory '/github/workspace/metacoq/pcuic' make -C safechecker make[1]: Entering directory '/github/workspace/metacoq/safechecker' cat metacoq-config > _CoqProject cat _CoqProject.in >> _CoqProject coq_makefile -f _CoqProject -o Makefile.safechecker Warning: ../utils/theories (used in -R or -Q) is not a subdirectory of the current directory make -f Makefile.safechecker make[2]: Entering directory '/github/workspace/metacoq/safechecker' MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/safechecker MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig --print-version MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.PuXJZfFUKr MINIMIZER_DEBUG: files: COQDEP VFILES MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/safechecker MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig --print-version MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.l9YAtmZM6k MINIMIZER_DEBUG: files: MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/safechecker MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig --print-version MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.LzsKTE0qkR MINIMIZER_DEBUG: files: MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/safechecker MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig --print-version MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.isCOVKLzX5 MINIMIZER_DEBUG: files: COQC theories/PCUICEqualityDec.v COQC theories/PCUICErrors.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/safechecker MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/safechecker MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC -R /github/workspace/metacoq/safechecker/theories MetaCoq.SafeChecker theories/PCUICEqualityDec.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.544xXmiQOZ MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC -R /github/workspace/metacoq/safechecker/theories MetaCoq.SafeChecker theories/PCUICErrors.v MINIMIZER_DEBUG: files: theories/PCUICEqualityDec.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.IYTR8gWo1m MINIMIZER_DEBUG: files: theories/PCUICErrors.v theories/PCUICErrors.vo (real: 1.88, user: 1.59, sys: 0.25, mem: 755924 ko) COQC theories/PCUICSafeConversion.v MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace/metacoq/safechecker MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -R /github/workspace/metacoq/common/theories MetaCoq.Common -R /github/workspace/metacoq/pcuic/theories MetaCoq.PCUIC -R /github/workspace/metacoq/safechecker/theories MetaCoq.SafeChecker theories/PCUICSafeConversion.v MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.ANnkHV4iXe MINIMIZER_DEBUG: files: theories/PCUICSafeConversion.v File "./theories/PCUICSafeConversion.v", line 277, characters 0-8: Error: Anomaly "in Univ.repr: Universe MetaCoq.SafeChecker.PCUICSafeConversion.108 undefined." Please report at http://coq.inria.fr/bugs/. Command exited with non-zero status 129 theories/PCUICSafeConversion.vo (real: 1.72, user: 1.42, sys: 0.28, mem: 833360 ko) make[3]: *** [Makefile.safechecker:793: theories/PCUICSafeConversion.vo] Error 129 make[3]: *** Waiting for unfinished jobs.... theories/PCUICEqualityDec.vo (real: 12.39, user: 12.00, sys: 0.36, mem: 1000808 ko) make[2]: *** [Makefile.safechecker:409: all] Error 2 make[2]: Leaving directory '/github/workspace/metacoq/safechecker' make[1]: *** [Makefile:11: theory] Error 2 make[1]: Leaving directory '/github/workspace/metacoq/safechecker' make: *** [Makefile:137: safechecker] Error 2 ```
Minimization Log (truncated to last 8.0KiB; full 571KiB file on GitHub Actions Artifacts under bug.log) ``` tag was not found in the current environment. Intermediate code not saved. I will now attempt to remove unused non-instance, non-canonical structure definitions Non-fatal error: Failed to remove non-instance definitions and preserve the error. The new error was: File "/tmp/tmppx1s9lcu/MetaCoq/SafeChecker/PCUICSafeConversion.v", line 8, characters 23-40: Error: The reference the_equations_tag was not found in the current environment. Intermediate code not saved. I will now attempt to remove unused variables  Variable removal successful. I will now attempt to remove unused contexts  Context removal successful. I will now attempt to replace Obligation with Admit Obligations Non-fatal error: Failed to admit Obligations and preserve the error. The new error was: File "/tmp/tmpsrw2h5ce/MetaCoq/SafeChecker/PCUICSafeConversion.v", line 80, characters 0-18: Error: Recursive definition of isws_cumul_pb_fix_bodies is ill-formed. In environment isws_cumul_pb_fix_bodies : forall term fix_kind : Type, fix_kind -> nat -> forall mfix1 : mfixpoint term, mfixpoint term -> forall mfix1' : mfixpoint term, mfixpoint term -> ∥ All2 (fun _ _ : def term => True) mfix1 mfix1' ∥ -> True term : Type fix_kind : Type fk : fix_kind idx : nat mfix1 : mfixpoint term mfix2 : mfixpoint term mfix1' : mfixpoint term mfix2' : mfixpoint term h1 : ∥ All2 (fun _ _ : def term => True) mfix1 mfix1' ∥ d : def term l : list (def term) mfix1'0 := mfix1' : mfixpoint term mfix2'0 := mfix2' : mfixpoint term h0 := h1 : ∥ All2 (fun _ _ : def term => True) mfix1 mfix1'0 ∥ h2 := h0 : ∥ All2 (fun _ _ : def term => True) mfix1 mfix1'0 ∥ Recursive call to isws_cumul_pb_fix_bodies has not enough arguments. Recursive definition is: "fun (term fix_kind : Type) (fk : fix_kind) (idx : nat) (mfix1 mfix2 mfix1' mfix2' : mfixpoint term) (h1 : ∥ All2 (fun _ _ : def term => True) mfix1 mfix1' ∥) => match mfix2 with | [] => fun (mfix1'0 mfix2'0 : mfixpoint term) (h2 : ∥ All2 (fun _ _ : def term => True) mfix1 mfix1'0 ∥) => match mfix2'0 with | [] => fun _ : ∥ All2 (fun _ _ : def term => True) mfix1 mfix1'0 ∥ => I | d :: l => fun h3 : ∥ All2 (fun _ _ : def term => True) mfix1 mfix1'0 ∥ => False_rect True (isws_cumul_pb_fix_bodies_obligations_obligation_1 isws_cumul_pb_fix_bodies term fix_kind fk idx mfix1 mfix1'0 d l h3) end h2 | d :: l => fun (mfix1'0 mfix2'0 : mfixpoint term) (h2 : ∥ All2 (fun _ _ : def term => True) mfix1 mfix1'0 ∥) => match mfix2'0 with | [] => fun h3 : ∥ All2 (fun _ _ : def term => True) mfix1 mfix1'0 ∥ => False_rect True (isws_cumul_pb_fix_bodies_obligations_obligation_2 isws_cumul_pb_fix_bodies term fix_kind fk idx mfix1 d l mfix1'0 h3) | _ :: _ => fun _ : ∥ All2 (fun _ _ : def term => True) mfix1 mfix1'0 ∥ => I end h2 end mfix1' mfix2' h1". Intermediate code not saved. Failed to do everything at once; trying one at a time. Admitting Obligations unsuccessful. No successful changes. I will now attempt to admit lemmas with Admitted  Admitting lemmas successful. Failed to do everything at once; trying one at a time. Admitting lemmas unsuccessful. No successful changes. I will now attempt to admit definitions with Admitted Non-fatal error: Failed to admit definitions and preserve the error. The new error was: File "/tmp/tmpjvog165s/MetaCoq/SafeChecker/PCUICSafeConversion.v", line 84, characters 0-9: Error: Recursive definition of isws_cumul_pb_fix_bodies is ill-formed. In environment isws_cumul_pb_fix_bodies : forall term fix_kind : Type, fix_kind -> nat -> forall mfix1 : mfixpoint term, mfixpoint term -> forall mfix1' : mfixpoint term, mfixpoint term -> ∥ All2 (fun _ _ : def term => True) mfix1 mfix1' ∥ -> True term : Type fix_kind : Type fk : fix_kind idx : nat mfix1 : mfixpoint term mfix2 : mfixpoint term mfix1' : mfixpoint term mfix2' : mfixpoint term h1 : ∥ All2 (fun _ _ : def term => True) mfix1 mfix1' ∥ d : def term l : list (def term) mfix1'0 := mfix1' : mfixpoint term mfix2'0 := mfix2' : mfixpoint term h0 := h1 : ∥ All2 (fun _ _ : def term => True) mfix1 mfix1'0 ∥ h2 := h0 : ∥ All2 (fun _ _ : def term => True) mfix1 mfix1'0 ∥ Recursive call to isws_cumul_pb_fix_bodies has not enough arguments. Recursive definition is: "fun (term fix_kind : Type) (fk : fix_kind) (idx : nat) (mfix1 mfix2 mfix1' mfix2' : mfixpoint term) (h1 : ∥ All2 (fun _ _ : def term => True) mfix1 mfix1' ∥) => match mfix2 with | [] => fun (mfix1'0 mfix2'0 : mfixpoint term) (h2 : ∥ All2 (fun _ _ : def term => True) mfix1 mfix1'0 ∥) => match mfix2'0 with | [] => fun _ : ∥ All2 (fun _ _ : def term => True) mfix1 mfix1'0 ∥ => I | d :: l => fun h3 : ∥ All2 (fun _ _ : def term => True) mfix1 mfix1'0 ∥ => False_rect True (isws_cumul_pb_fix_bodies_obligations_obligation_1 isws_cumul_pb_fix_bodies term fix_kind fk idx mfix1 mfix1'0 d l h3) end h2 | d :: l => fun (mfix1'0 mfix2'0 : mfixpoint term) (h2 : ∥ All2 (fun _ _ : def term => True) mfix1 mfix1'0 ∥) => match mfix2'0 with | [] => fun h3 : ∥ All2 (fun _ _ : def term => True) mfix1 mfix1'0 ∥ => False_rect True (isws_cumul_pb_fix_bodies_obligations_obligation_2 isws_cumul_pb_fix_bodies term fix_kind fk idx mfix1 d l mfix1'0 h3) | _ :: _ => fun _ : ∥ All2 (fun _ _ : def term => True) mfix1 mfix1'0 ∥ => I end h2 end mfix1' mfix2' h1". Intermediate code not saved. Failed to do everything at once; trying one at a time. Admitting definitions unsuccessful. No successful changes. I will now attempt to admit lemmas with admit. Defined  Admitting lemmas successful. Failed to do everything at once; trying one at a time. Admitting lemmas unsuccessful. No successful changes. I will now attempt to admit definitions with admit. Defined Non-fatal error: Failed to admit definitions and preserve the error. The new error was: File "/tmp/tmpa7sz8l6d/MetaCoq/SafeChecker/PCUICSafeConversion.v", line 86, characters 0-8: Error: not found in table: equations.equality.type Intermediate code not saved. Failed to do everything at once; trying one at a time. Admitting definitions unsuccessful. No successful changes. I will now attempt to export modules Module exportation unsuccessful. I will now attempt to split imports and exports Import/Export splitting unsuccessful. I will now attempt to split := definitions One-line definition splitting unsuccessful. I will now attempt to remove all lines, one at a time Line removal unsuccessful. I will now attempt to remove goals ending in [Abort.]  Aborted removal successful. I will now attempt to remove unused Ltacs  Ltac removal successful. I will now attempt to remove unused definitions Non-fatal error: Failed to remove definitions and preserve the error. The new error was: File "/tmp/tmppx1s9lcu/MetaCoq/SafeChecker/PCUICSafeConversion.v", line 8, characters 23-40: Error: The reference the_equations_tag was not found in the current environment. Intermediate code not saved. I will now attempt to remove unused non-instance, non-canonical structure definitions Non-fatal error: Failed to remove non-instance definitions and preserve the error. The new error was: File "/tmp/tmppx1s9lcu/MetaCoq/SafeChecker/PCUICSafeConversion.v", line 8, characters 23-40: Error: The reference the_equations_tag was not found in the current environment. Intermediate code not saved. I will now attempt to remove unused variables  Variable removal successful. I will now attempt to remove unused contexts  Context removal successful. I will now attempt to remove empty sections No empty sections to remove. Now, I will attempt to strip repeated newlines and trailing spaces from this file... No strippable newlines or spaces. ```

If you have any comments on your experience of the minimizer, please share them in a reply (possibly tagging @JasonGross). If you believe there's a bug in the bug minimizer, please report it on the bug minimizer issue tracker.

JasonGross commented 8 months ago

tracking https://github.com/coq/coq/issues/18660 @coqbot minimize coq.dev

set -ex
git clone https://github.com/meta-introspector/metacoq.git --branch=feature/ltac_debug
cd metacoq
git checkout 6c23b8f5649d7dc8f51bce9310a0b70a28607853
opam install -y --deps-only coq-metacoq
make
coqbot commented 8 months ago

Hey @JasonGross, the coq bug minimizer is running your script, I'll come back to you with the results once it's done.

JasonGross commented 8 months ago

@coqbot minimize coq.dev

git clone https://github.com/meta-introspector/metacoq.git --branch=feature/ltac_debug
cd metacoq
git checkout 6c23b8f5649d7dc8f51bce9310a0b70a28607853
opam install -y --deps-only coq-metacoq
make
coqbot commented 8 months ago

Hey @JasonGross, the coq bug minimizer is running your script, I'll come back to you with the results once it's done.

JasonGross commented 8 months ago

@coqbot minimize coq.dev

set -ex
printf -- git clone https://github.com/meta-introspector/metacoq.git --branch=feature/ltac_debug
yes | git clone https://github.com/meta-introspector/metacoq.git --branch=feature/ltac_debug
cd metacoq
git checkout 6c23b8f5649d7dc8f51bce9310a0b70a28607853
opam install -y --deps-only coq-metacoq
make
coqbot commented 8 months ago

Hey @JasonGross, the coq bug minimizer is running your script, I'll come back to you with the results once it's done.

coqbot commented 8 months ago

@JasonGross, Error: Could not minimize file (full log on GitHub Actions, cc @JasonGross)

build log ``` + (/github/workspace/run-script.sh @ line 47) $ ocamlc -config version: 4.13.1 standard_library_default: /home/coq/.opam/4.13.1+flambda/lib/ocaml standard_library: /home/coq/.opam/4.13.1+flambda/lib/ocaml ccomp_type: cc c_compiler: gcc ocamlc_cflags: -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC ocamlc_cppflags: -D_FILE_OFFSET_BITS=64 ocamlopt_cflags: -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC ocamlopt_cppflags: -D_FILE_OFFSET_BITS=64 bytecomp_c_compiler: gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -D_FILE_OFFSET_BITS=64 native_c_compiler: gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -D_FILE_OFFSET_BITS=64 bytecomp_c_libraries: -lm -ldl -lpthread native_c_libraries: -lm -ldl native_pack_linker: ld -r -o ranlib: ranlib architecture: amd64 model: default int_size: 63 word_size: 64 system: linux asm: as asm_cfi_supported: true with_frame_pointers: false ext_exe: ext_obj: .o ext_asm: .s ext_lib: .a ext_dll: .so os_type: Unix default_executable_name: a.out systhread_supported: true host: x86_64-pc-linux-gnu target: x86_64-pc-linux-gnu flambda: true safe_string: true default_safe_string: true flat_float_array: true function_sections: true afl_instrument: false windows_unicode: false supports_shared_libraries: true exec_magic_number: Caml1999X030 cmi_magic_number: Caml1999I030 cmo_magic_number: Caml1999O030 cma_magic_number: Caml1999A030 cmx_magic_number: Caml1999y030 cmxa_magic_number: Caml1999z030 ast_impl_magic_number: Caml1999M030 ast_intf_magic_number: Caml1999N030 cmxs_magic_number: Caml1999D030 cmt_magic_number: Caml1999T030 linear_magic_number: Caml1999L030 + (/github/workspace/run-script.sh @ line 48) $ coqc --config MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig --config MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.KFXdjnVNsc MINIMIZER_DEBUG: files: COQLIB=/home/coq/.opam/4.13.1+flambda/lib/coq/ COQCORELIB=/home/coq/.opam/4.13.1+flambda/lib/coq/../coq-core/ DOCDIR=/home/coq/.opam/4.13.1+flambda/share/doc/ OCAMLFIND=/home/coq/.opam/4.13.1+flambda/bin/ocamlfind CAMLFLAGS=-thread -bin-annot -strict-sequence -w -a+1..3-4+5..8-9+10..26-27+28..39-40-41-42+43-44-45+46..47-48+49..57-58+59..66-67-68+69-70 WARN=-warn-error +a-3 HASNATDYNLINK=true COQ_SRC_SUBDIRS=boot config lib clib kernel library engine pretyping interp gramlib parsing proofs tactics toplevel printing ide stm vernac plugins/btauto plugins/cc plugins/derive plugins/extraction plugins/firstorder plugins/funind plugins/ltac plugins/ltac2 plugins/ltac2_ltac1 plugins/micromega plugins/nsatz plugins/ring plugins/rtauto plugins/ssr plugins/ssrmatching plugins/syntax COQ_NATIVE_COMPILER_DEFAULT=no + (/github/workspace/run-script.sh @ line 49) $ coqc --version MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig --version MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.kEWXhAqgoV MINIMIZER_DEBUG: files: The Coq Proof Assistant, version 8.20+alpha compiled with OCaml 4.13.1 + (/github/workspace/run-script.sh @ line 50) $ true + (/github/workspace/run-script.sh @ line 50) $ coqtop MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqtop MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqtop.orig MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.WNjwAsHtmx MINIMIZER_DEBUG: files: Welcome to Coq buildkitsandbox:/home/coq/.opam/4.13.1+flambda/.opam-switch/build/coq-core.dev/_build/default,master (3b9e094e270353afeb4635117fb4f4980b2069b3) Coq < + (/github/workspace/run-script.sh @ line 52) $ source /github/workspace/coqbot.sh ++ (/github/workspace/run-script.sh @ line 1) $ set -ex ++ (/github/workspace/run-script.sh @ line 2) $ git clone https://github.com/meta-introspector/metacoq.git --branch=feature/ltac_debug Cloning into 'metacoq'... ++ (/github/workspace/run-script.sh @ line 3) $ cd metacoq ++ (/github/workspace/run-script.sh @ line 4) $ git checkout 6c23b8f5649d7dc8f51bce9310a0b70a28607853 Note: switching to '6c23b8f5649d7dc8f51bce9310a0b70a28607853'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example: git switch -c Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false HEAD is now at 6c23b8f5 error ++ (/github/workspace/run-script.sh @ line 5) $ opam install -y --deps-only coq-metacoq The following actions will be performed: - install stdlib-shims 0.3.0 - install coq-equations dev - install coq-metacoq-utils dev - install coq-metacoq-common dev - install coq-metacoq-template dev - install coq-metacoq-pcuic dev - install coq-metacoq-translations dev - install coq-metacoq-template-pcuic dev - install coq-metacoq-safechecker dev - install coq-metacoq-quotation dev - install coq-metacoq-safechecker-plugin dev - install coq-metacoq-erasure dev - install coq-metacoq-erasure-plugin dev ===== 13 to install ===== <><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> -> retrieved coq-equations.dev (git+https://github.com/mattam82/Coq-Equations#main) -> retrieved coq-metacoq-common.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved coq-metacoq-erasure.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved coq-metacoq-pcuic.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved coq-metacoq-quotation.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved coq-metacoq-erasure-plugin.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved coq-metacoq-safechecker.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved coq-metacoq-safechecker-plugin.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved coq-metacoq-template.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved coq-metacoq-template-pcuic.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved coq-metacoq-translations.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved coq-metacoq-utils.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved stdlib-shims.0.3.0 (https://opam.ocaml.org/cache) -> installed stdlib-shims.0.3.0 -> installed coq-equations.dev -> installed coq-metacoq-utils.dev -> installed coq-metacoq-common.dev -> installed coq-metacoq-template.dev -> installed coq-metacoq-translations.dev -> installed coq-metacoq-pcuic.dev -> installed coq-metacoq-template-pcuic.dev -> installed coq-metacoq-safechecker.dev -> installed coq-metacoq-safechecker-plugin.dev -> installed coq-metacoq-quotation.dev -> installed coq-metacoq-erasure.dev -> installed coq-metacoq-erasure-plugin.dev Done. ::group::opam wrap files wrapping /usr/local/bin/opam attempting to wrap coqc wrapping /home/coq/.opam/4.13.1+flambda/bin/coqc attempting to wrap coqtop wrapping /home/coq/.opam/4.13.1+flambda/bin/coqtop ::endgroup:: ++ (/github/workspace/run-script.sh @ line 6) $ make Run ./configure.sh first make: *** [Makefile:25: printconf] Error 1 ```
minimizer log ``` ```

If you have any comments on your experience of the minimizer, please share them in a reply (possibly tagging @JasonGross). If you believe there's a bug in the bug minimizer, please report it on the bug minimizer issue tracker.

coqbot commented 8 months ago

@JasonGross, Error: Could not minimize file (full log on GitHub Actions, cc @JasonGross)

build log ``` + (/github/workspace/run-script.sh @ line 47) $ ocamlc -config version: 4.13.1 standard_library_default: /home/coq/.opam/4.13.1+flambda/lib/ocaml standard_library: /home/coq/.opam/4.13.1+flambda/lib/ocaml ccomp_type: cc c_compiler: gcc ocamlc_cflags: -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC ocamlc_cppflags: -D_FILE_OFFSET_BITS=64 ocamlopt_cflags: -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC ocamlopt_cppflags: -D_FILE_OFFSET_BITS=64 bytecomp_c_compiler: gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -D_FILE_OFFSET_BITS=64 native_c_compiler: gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -D_FILE_OFFSET_BITS=64 bytecomp_c_libraries: -lm -ldl -lpthread native_c_libraries: -lm -ldl native_pack_linker: ld -r -o ranlib: ranlib architecture: amd64 model: default int_size: 63 word_size: 64 system: linux asm: as asm_cfi_supported: true with_frame_pointers: false ext_exe: ext_obj: .o ext_asm: .s ext_lib: .a ext_dll: .so os_type: Unix default_executable_name: a.out systhread_supported: true host: x86_64-pc-linux-gnu target: x86_64-pc-linux-gnu flambda: true safe_string: true default_safe_string: true flat_float_array: true function_sections: true afl_instrument: false windows_unicode: false supports_shared_libraries: true exec_magic_number: Caml1999X030 cmi_magic_number: Caml1999I030 cmo_magic_number: Caml1999O030 cma_magic_number: Caml1999A030 cmx_magic_number: Caml1999y030 cmxa_magic_number: Caml1999z030 ast_impl_magic_number: Caml1999M030 ast_intf_magic_number: Caml1999N030 cmxs_magic_number: Caml1999D030 cmt_magic_number: Caml1999T030 linear_magic_number: Caml1999L030 + (/github/workspace/run-script.sh @ line 48) $ coqc --config MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig --config MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.zDysEBiry9 MINIMIZER_DEBUG: files: COQLIB=/home/coq/.opam/4.13.1+flambda/lib/coq/ COQCORELIB=/home/coq/.opam/4.13.1+flambda/lib/coq/../coq-core/ DOCDIR=/home/coq/.opam/4.13.1+flambda/share/doc/ OCAMLFIND=/home/coq/.opam/4.13.1+flambda/bin/ocamlfind CAMLFLAGS=-thread -bin-annot -strict-sequence -w -a+1..3-4+5..8-9+10..26-27+28..39-40-41-42+43-44-45+46..47-48+49..57-58+59..66-67-68+69-70 WARN=-warn-error +a-3 HASNATDYNLINK=true COQ_SRC_SUBDIRS=boot config lib clib kernel library engine pretyping interp gramlib parsing proofs tactics toplevel printing ide stm vernac plugins/btauto plugins/cc plugins/derive plugins/extraction plugins/firstorder plugins/funind plugins/ltac plugins/ltac2 plugins/ltac2_ltac1 plugins/micromega plugins/nsatz plugins/ring plugins/rtauto plugins/ssr plugins/ssrmatching plugins/syntax COQ_NATIVE_COMPILER_DEFAULT=no + (/github/workspace/run-script.sh @ line 49) $ coqc --version MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig --version MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.TY7VRclHUx MINIMIZER_DEBUG: files: The Coq Proof Assistant, version 8.20+alpha compiled with OCaml 4.13.1 + (/github/workspace/run-script.sh @ line 50) $ true + (/github/workspace/run-script.sh @ line 50) $ coqtop MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqtop MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqtop.orig MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.fHan8lQ6sy MINIMIZER_DEBUG: files: Welcome to Coq buildkitsandbox:/home/coq/.opam/4.13.1+flambda/.opam-switch/build/coq-core.dev/_build/default,master (3b9e094e270353afeb4635117fb4f4980b2069b3) Coq < + (/github/workspace/run-script.sh @ line 52) $ source /github/workspace/coqbot.sh ++ (/github/workspace/run-script.sh @ line 1) $ git clone https://github.com/meta-introspector/metacoq.git --branch=feature/ltac_debug Cloning into 'metacoq'... ++ (/github/workspace/run-script.sh @ line 2) $ cd metacoq ++ (/github/workspace/run-script.sh @ line 3) $ git checkout 6c23b8f5649d7dc8f51bce9310a0b70a28607853 Note: switching to '6c23b8f5649d7dc8f51bce9310a0b70a28607853'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example: git switch -c Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false HEAD is now at 6c23b8f5 error ++ (/github/workspace/run-script.sh @ line 4) $ opam install -y --deps-only coq-metacoq The following actions will be performed: - install stdlib-shims 0.3.0 - install coq-equations dev - install coq-metacoq-utils dev - install coq-metacoq-common dev - install coq-metacoq-template dev - install coq-metacoq-pcuic dev - install coq-metacoq-translations dev - install coq-metacoq-template-pcuic dev - install coq-metacoq-safechecker dev - install coq-metacoq-quotation dev - install coq-metacoq-safechecker-plugin dev - install coq-metacoq-erasure dev - install coq-metacoq-erasure-plugin dev ===== 13 to install ===== <><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> -> retrieved coq-equations.dev (git+https://github.com/mattam82/Coq-Equations#main) -> retrieved coq-metacoq-common.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved coq-metacoq-erasure.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved coq-metacoq-pcuic.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved coq-metacoq-quotation.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved coq-metacoq-safechecker.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved coq-metacoq-safechecker-plugin.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved coq-metacoq-erasure-plugin.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved coq-metacoq-template.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved coq-metacoq-template-pcuic.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved coq-metacoq-translations.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved coq-metacoq-utils.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved stdlib-shims.0.3.0 (https://opam.ocaml.org/cache) -> installed stdlib-shims.0.3.0 -> installed coq-equations.dev -> installed coq-metacoq-utils.dev -> installed coq-metacoq-common.dev -> installed coq-metacoq-template.dev -> installed coq-metacoq-translations.dev -> installed coq-metacoq-pcuic.dev -> installed coq-metacoq-template-pcuic.dev -> installed coq-metacoq-safechecker.dev -> installed coq-metacoq-safechecker-plugin.dev -> installed coq-metacoq-quotation.dev -> installed coq-metacoq-erasure.dev -> installed coq-metacoq-erasure-plugin.dev Done. ::group::opam wrap files wrapping /usr/local/bin/opam attempting to wrap coqc wrapping /home/coq/.opam/4.13.1+flambda/bin/coqc attempting to wrap coqtop wrapping /home/coq/.opam/4.13.1+flambda/bin/coqtop ::endgroup:: ++ (/github/workspace/run-script.sh @ line 5) $ make Run ./configure.sh first make: *** [Makefile:25: printconf] Error 1 ```
minimizer log ``` ```

If you have any comments on your experience of the minimizer, please share them in a reply (possibly tagging @JasonGross). If you believe there's a bug in the bug minimizer, please report it on the bug minimizer issue tracker.

coqbot commented 8 months ago

@JasonGross, Error: Could not minimize file (full log on GitHub Actions, cc @JasonGross)

build log ``` + (/github/workspace/run-script.sh @ line 47) $ ocamlc -config version: 4.13.1 standard_library_default: /home/coq/.opam/4.13.1+flambda/lib/ocaml standard_library: /home/coq/.opam/4.13.1+flambda/lib/ocaml ccomp_type: cc c_compiler: gcc ocamlc_cflags: -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC ocamlc_cppflags: -D_FILE_OFFSET_BITS=64 ocamlopt_cflags: -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC ocamlopt_cppflags: -D_FILE_OFFSET_BITS=64 bytecomp_c_compiler: gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -D_FILE_OFFSET_BITS=64 native_c_compiler: gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -D_FILE_OFFSET_BITS=64 bytecomp_c_libraries: -lm -ldl -lpthread native_c_libraries: -lm -ldl native_pack_linker: ld -r -o ranlib: ranlib architecture: amd64 model: default int_size: 63 word_size: 64 system: linux asm: as asm_cfi_supported: true with_frame_pointers: false ext_exe: ext_obj: .o ext_asm: .s ext_lib: .a ext_dll: .so os_type: Unix default_executable_name: a.out systhread_supported: true host: x86_64-pc-linux-gnu target: x86_64-pc-linux-gnu flambda: true safe_string: true default_safe_string: true flat_float_array: true function_sections: true afl_instrument: false windows_unicode: false supports_shared_libraries: true exec_magic_number: Caml1999X030 cmi_magic_number: Caml1999I030 cmo_magic_number: Caml1999O030 cma_magic_number: Caml1999A030 cmx_magic_number: Caml1999y030 cmxa_magic_number: Caml1999z030 ast_impl_magic_number: Caml1999M030 ast_intf_magic_number: Caml1999N030 cmxs_magic_number: Caml1999D030 cmt_magic_number: Caml1999T030 linear_magic_number: Caml1999L030 + (/github/workspace/run-script.sh @ line 48) $ coqc --config MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig --config MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.dOSxbiQlyt MINIMIZER_DEBUG: files: COQLIB=/home/coq/.opam/4.13.1+flambda/lib/coq/ COQCORELIB=/home/coq/.opam/4.13.1+flambda/lib/coq/../coq-core/ DOCDIR=/home/coq/.opam/4.13.1+flambda/share/doc/ OCAMLFIND=/home/coq/.opam/4.13.1+flambda/bin/ocamlfind CAMLFLAGS=-thread -bin-annot -strict-sequence -w -a+1..3-4+5..8-9+10..26-27+28..39-40-41-42+43-44-45+46..47-48+49..57-58+59..66-67-68+69-70 WARN=-warn-error +a-3 HASNATDYNLINK=true COQ_SRC_SUBDIRS=boot config lib clib kernel library engine pretyping interp gramlib parsing proofs tactics toplevel printing ide stm vernac plugins/btauto plugins/cc plugins/derive plugins/extraction plugins/firstorder plugins/funind plugins/ltac plugins/ltac2 plugins/ltac2_ltac1 plugins/micromega plugins/nsatz plugins/ring plugins/rtauto plugins/ssr plugins/ssrmatching plugins/syntax COQ_NATIVE_COMPILER_DEFAULT=no + (/github/workspace/run-script.sh @ line 49) $ coqc --version MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqc MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqc.orig --version MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.9mkg28YZD5 MINIMIZER_DEBUG: files: The Coq Proof Assistant, version 8.20+alpha compiled with OCaml 4.13.1 + (/github/workspace/run-script.sh @ line 50) $ true + (/github/workspace/run-script.sh @ line 50) $ coqtop MINIMIZER_DEBUG_EXTRA: coqc: /home/coq/.opam/4.13.1+flambda/bin/coqtop MINIMIZER_DEBUG_EXTRA: coqpath: MINIMIZER_DEBUG_EXTRA: pwd: PWD=/github/workspace MINIMIZER_DEBUG_EXTRA: exec: /home/coq/.opam/4.13.1+flambda/bin/coqtop.orig MINIMIZER_DEBUG: info: /tmp/tmp-coqbot-minimizer.SALYtnsd3q MINIMIZER_DEBUG: files: Welcome to Coq buildkitsandbox:/home/coq/.opam/4.13.1+flambda/.opam-switch/build/coq-core.dev/_build/default,master (3b9e094e270353afeb4635117fb4f4980b2069b3) Coq < + (/github/workspace/run-script.sh @ line 52) $ source /github/workspace/coqbot.sh ++ (/github/workspace/run-script.sh @ line 1) $ set -ex ++ (/github/workspace/run-script.sh @ line 2) $ printf -- git clone https://github.com/meta-introspector/metacoq.git --branch=feature/ltac_debug git++ (/github/workspace/run-script.sh @ line 3) $ yes ++ (/github/workspace/run-script.sh @ line 3) $ git clone https://github.com/meta-introspector/metacoq.git --branch=feature/ltac_debug Cloning into 'metacoq'... ++ (/github/workspace/run-script.sh @ line 4) $ cd metacoq ++ (/github/workspace/run-script.sh @ line 5) $ git checkout 6c23b8f5649d7dc8f51bce9310a0b70a28607853 Note: switching to '6c23b8f5649d7dc8f51bce9310a0b70a28607853'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example: git switch -c Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false HEAD is now at 6c23b8f5 error ++ (/github/workspace/run-script.sh @ line 6) $ opam install -y --deps-only coq-metacoq The following actions will be performed: - install stdlib-shims 0.3.0 - install coq-equations dev - install coq-metacoq-utils dev - install coq-metacoq-common dev - install coq-metacoq-template dev - install coq-metacoq-pcuic dev - install coq-metacoq-translations dev - install coq-metacoq-template-pcuic dev - install coq-metacoq-safechecker dev - install coq-metacoq-quotation dev - install coq-metacoq-safechecker-plugin dev - install coq-metacoq-erasure dev - install coq-metacoq-erasure-plugin dev ===== 13 to install ===== <><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> -> retrieved coq-equations.dev (git+https://github.com/mattam82/Coq-Equations#main) -> retrieved coq-metacoq-common.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved coq-metacoq-erasure.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved coq-metacoq-pcuic.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved coq-metacoq-quotation.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved coq-metacoq-safechecker.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved coq-metacoq-safechecker-plugin.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved coq-metacoq-template.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved coq-metacoq-template-pcuic.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved coq-metacoq-translations.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved coq-metacoq-utils.dev (git+https:///github.com/metacoq/metacoq.git#main) -> retrieved stdlib-shims.0.3.0 (https://opam.ocaml.org/cache) -> retrieved coq-metacoq-erasure-plugin.dev (git+https:///github.com/metacoq/metacoq.git#main) -> installed stdlib-shims.0.3.0 -> installed coq-equations.dev -> installed coq-metacoq-utils.dev -> installed coq-metacoq-common.dev -> installed coq-metacoq-template.dev -> installed coq-metacoq-translations.dev -> installed coq-metacoq-pcuic.dev -> installed coq-metacoq-template-pcuic.dev -> installed coq-metacoq-safechecker.dev -> installed coq-metacoq-safechecker-plugin.dev -> installed coq-metacoq-quotation.dev -> installed coq-metacoq-erasure.dev -> installed coq-metacoq-erasure-plugin.dev Done. ::group::opam wrap files wrapping /usr/local/bin/opam attempting to wrap coqc wrapping /home/coq/.opam/4.13.1+flambda/bin/coqc attempting to wrap coqtop wrapping /home/coq/.opam/4.13.1+flambda/bin/coqtop ::endgroup:: ++ (/github/workspace/run-script.sh @ line 7) $ make Run ./configure.sh first make: *** [Makefile:25: printconf] Error 1 ```
minimizer log ``` ```

If you have any comments on your experience of the minimizer, please share them in a reply (possibly tagging @JasonGross). If you believe there's a bug in the bug minimizer, please report it on the bug minimizer issue tracker.

JasonGross commented 8 months ago

@coqbot minimize coq.dev

git clone https://github.com/meta-introspector/metacoq.git --branch=feature/ltac_debug
cd metacoq
git checkout 6c23b8f5649d7dc8f51bce9310a0b70a28607853
opam install -y --deps-only coq-metacoq-utils
./configure.sh local
make
coqbot commented 8 months ago

Hey @JasonGross, the coq bug minimizer is running your script, I'll come back to you with the results once it's done.

coqbot commented 8 months ago

@JasonGross, Minimized File /home/runner/work/run-coq-bug-minimizer/run-coq-bug-minimizer/metacoq/utils/theories/All_Forall.v (full log on GitHub Actions - verbose log)

:star2: Minimized Coq File (consider adding this file to the test-suite) ```coq (* -*- mode: coq; coq-prog-args: ("-emacs" "-q" "-w" "-deprecated-native-compiler-option" "-native-compiler" "no" "-R" "/github/workspace/metacoq/utils/theories" "MetaCoq.Utils" "-Q" "/github/workspace/cwd" "Top" "-Q" "/home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Bignums" "Bignums" "-Q" "/home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Equations" "Equations" "-Q" "/home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Ltac2" "Ltac2" "-top" "MetaCoq.Utils.All_Forall") -*- *) (* File reduced by coq-bug-minimizer from original input, then from 4381 lines to 16 lines, then from 29 lines to 1671 lines, then from 1669 lines to 19 lines, then from 32 lines to 141 lines, then from 146 lines to 20 lines, then from 25 lines to 20 lines *) (* coqc version 8.20+alpha compiled with OCaml 4.13.1 coqtop version buildkitsandbox:/home/coq/.opam/4.13.1+flambda/.opam-switch/build/coq-core.dev/_build/default,master (3b9e094e270353afeb4635117fb4f4980b2069b3) Expected coqc runtime on this file: 0.187 sec *) Require Coq.Lists.SetoidList. Declare ML Module "ltac2_plugin:coq-core.plugins.ltac2". Import Coq.Lists.SetoidList. Export ListNotations. Set Ltac Debug. Set Ltac2 Backtrace. Set Ltac Batch Debug. Inductive All {A} (P : A -> Type) : list A -> Type := All_nil : All P [] | All_cons : forall (x : A) (l : list A), P x -> All P l -> All P (x :: l). Lemma All_impl_All {A} {P Q} {l : list A} : All P l -> All (fun x => P x -> Q x) l -> All Q l. Proof. induction 1; inversion 1; constructor; intuition auto. ```
:hammer_and_wrench: Intermediate Coq File (useful for debugging if minimization did not go as far as you wanted) ```coq ```
:hammer_and_wrench: :scroll: Intermediate Coq File log (useful for debugging if minimization did not go as far as you wanted) ```coq ```
:scroll: Build Log (contains the Coq error message) (truncated to last 8.0KiB; full 19MiB file on GitHub Actions Artifacts under build.log) ``` ] ] | id:¬ ?X1 → ?X3 |- _ => Ltac.cut X3; [ intro; clear id; t_tauto_intuit | Ltac.cut (¬ X1); [ exact id | clear id; intro; (solve [ t_tauto_intuit ]) ] ] | |- ?X1 => flags X1; (solve [ Ltac.left; t_tauto_intuit | Ltac.right; t_tauto_intuit ]) end || match goal with | |- _ → _ => intro; t_tauto_intuit | |- _ => t_reduce; t_solver end || t_solver in t_tauto_intuit TcDebug (3) > Goals: A : Type P : A → Type Q : A → Type x : A l : list A p : P x X : All P l IHX : All (λ x : A, P x → Q x) l → All Q l X0 : All (λ x : A, P x → Q x) (x :: l) x0 : A l0 : list A X1 : P x → Q x X2 : All (λ x : A, P x → Q x) l H0 : x0 = x H1 : l0 = l ============================ (Q x) A : Type P : A → Type Q : A → Type x : A l : list A p : P x X : All P l IHX : All (λ x : A, P x → Q x) l → All Q l X0 : All (λ x : A, P x → Q x) (x :: l) x0 : A l0 : list A X1 : P x → Q x X2 : All (λ x : A, P x → Q x) l H0 : x0 = x H1 : l0 = l ============================ (All Q l) Going to execute: fun => TcDebug (3) > Goals: A : Type P : A → Type Q : A → Type x : A l : list A p : P x X : All P l IHX : All (λ x : A, P x → Q x) l → All Q l X0 : All (λ x : A, P x → Q x) (x :: l) x0 : A l0 : list A X1 : P x → Q x X2 : All (λ x : A, P x → Q x) l H0 : x0 = x H1 : l0 = l ============================ (Q x) A : Type P : A → Type Q : A → Type x : A l : list A p : P x X : All P l IHX : All (λ x : A, P x → Q x) l → All Q l X0 : All (λ x : A, P x → Q x) (x :: l) x0 : A l0 : list A X1 : P x → Q x X2 : All (λ x : A, P x → Q x) l H0 : x0 = x H1 : l0 = l ============================ (All Q l) Going to execute: let rec t_tauto_intuit := flags; flags || match reverse goal with | id:(?X1 → ?X2) → ?X3 |- _ => Ltac.cut X3; [ intro; clear id; t_tauto_intuit | Ltac.cut (X1 → X2); [ exact id | generalize (λ y : X2, id (λ x : X1, y)); intro; clear id; (solve [ t_tauto_intuit ]) ] ] | id:¬ ?X1 → ?X3 |- _ => Ltac.cut X3; [ intro; clear id; t_tauto_intuit | Ltac.cut (¬ X1); [ exact id | clear id; intro; (solve [ t_tauto_intuit ]) ] ] | |- ?X1 => flags X1; (solve [ Ltac.left; t_tauto_intuit | Ltac.right; t_tauto_intuit ]) end || match goal with | |- _ → _ => intro; t_tauto_intuit | |- _ => t_reduce; t_solver end || t_solver in t_tauto_intuit TcDebug (3) > Goals: A : Type P : A → Type Q : A → Type x : A l : list A p : P x X : All P l IHX : All (λ x : A, P x → Q x) l → All Q l X0 : All (λ x : A, P x → Q x) (x :: l) x0 : A l0 : list A X1 : P x → Q x X2 : All (λ x : A, P x → Q x) l H0 : x0 = x H1 : l0 = l ============================ (Q x) A : Type P : A → Type Q : A → Type x : A l : list A p : P x X : All P l IHX : All (λ x : A, P x → Q x) l → All Q l X0 : All (λ x : A, P x → Q x) (x :: l) x0 : A l0 : list A X1 : P x → Q x X2 : All (λ x : A, P x → Q x) l H0 : x0 = x H1 : l0 = l ============================ (All Q l) Going to execute: t_tauto_intuit TcDebug (4) > Goals: A : Type P : A → Type Q : A → Type x : A l : list A p : P x X : All P l IHX : All (λ x : A, P x → Q x) l → All Q l X0 : All (λ x : A, P x → Q x) (x :: l) x0 : A l0 : list A X1 : P x → Q x X2 : All (λ x : A, P x → Q x) l H0 : x0 = x H1 : l0 = l ============================ (Q x) A : Type P : A → Type Q : A → Type x : A l : list A p : P x X : All P l IHX : All (λ x : A, P x → Q x) l → All Q l X0 : All (λ x : A, P x → Q x) (x :: l) x0 : A l0 : list A X1 : P x → Q x X2 : All (λ x : A, P x → Q x) l H0 : x0 = x H1 : l0 = l ============================ (All Q l) Going to execute: flags; flags || match reverse goal with | id:(?X1 → ?X2) → ?X3 |- _ => Ltac.cut X3; [ intro; clear id; t_tauto_intuit | Ltac.cut (X1 → X2); [ exact id | generalize (λ y : X2, id (λ x : X1, y)); intro; clear id; (solve [ t_tauto_intuit ]) ] ] | id:¬ ?X1 → ?X3 |- _ => Ltac.cut X3; [ intro; clear id; t_tauto_intuit | Ltac.cut (¬ X1); [ exact id | clear id; intro; (solve [ t_tauto_intuit ]) ] ] | |- ?X1 => flags X1; (solve [ Ltac.left; t_tauto_intuit | Ltac.right; t_tauto_intuit ]) end || match goal with | |- _ → _ => intro; t_tauto_intuit | |- _ => t_reduce; t_solver end || t_solver TcDebug (5) > Goals: A : Type P : A → Type Q : A → Type x : A l : list A p : P x X : All P l IHX : All (λ x : A, P x → Q x) l → All Q l X0 : All (λ x : A, P x → Q x) (x :: l) x0 : A l0 : list A X1 : P x → Q x X2 : All (λ x : A, P x → Q x) l H0 : x0 = x H1 : l0 = l ============================ (Q x) A : Type P : A → Type Q : A → Type x : A l : list A p : P x X : All P l IHX : All (λ x : A, P x → Q x) l → All Q l X0 : All (λ x : A, P x → Q x) (x :: l) x0 : A l0 : list A X1 : P x → Q x X2 : All (λ x : A, P x → Q x) l H0 : x0 = x H1 : l0 = l ============================ (All Q l) Going to execute: flags; flags || match reverse goal with | id:(?X1 → ?X2) → ?X3 |- _ => Ltac.cut X3; [ intro; clear id; t_tauto_intuit | Ltac.cut (X1 → X2); [ exact id | generalize (λ y : X2, id (λ x : X1, y)); intro; clear id; (solve [ t_tauto_intuit ]) ] ] | id:¬ ?X1 → ?X3 |- _ => Ltac.cut X3; [ intro; clear id; t_tauto_intuit | Ltac.cut (¬ X1); [ exact id | clear id; intro; (solve [ t_tauto_intuit ]) ] ] | |- ?X1 => flags X1; (solve [ Ltac.left; t_tauto_intuit | Ltac.right; t_tauto_intuit ]) end || match goal with | |- _ → _ => intro; t_tauto_intuit | |- _ => t_reduce; t_solver end || t_solver TcDebug (6) > Goals: A : Type P : A → Type Q : A → Type x : A l : list A p : P x X : All P l IHX : All (λ x : A, P x → Q x) l → All Q l X0 : All (λ x : A, P x → Q x) (x :: l) x0 : A l0 : list A X1 : P x → Q x X2 : All (λ x : A, P x → Q x) l H0 : x0 = x H1 : l0 = l ============================ (Q x) A : Type P : A → Type Q : A → Type x : A l : list A p : P x X : All P l IHX : All (λ x : A, P x → Q x) l → All Q l X0 : All (λ x : A, P x → Q x) (x :: l) x0 : A l0 : list A X1 : P x → Q x X2 : All (λ x : A, P x → Q x) l H0 : x0 = x H1 : l0 = l ============================ (All Q l) Going to execute: flags File "./theories/All_Forall.v", line 874, characters 2-56: Error: Backtrace: Anomaly "print function not found for a value interpreted as tauto_flags." Please report at http://coq.inria.fr/bugs/. make[3]: *** [Makefile.coq:848: theories/All_Forall.vo] Error 129 make[3]: *** [theories/All_Forall.vo] Deleting file 'theories/All_Forall.glob' make[2]: *** [Makefile.coq:417: all] Error 2 make[2]: Leaving directory '/github/workspace/metacoq/utils' make[1]: *** [Makefile:4: coq] Error 2 make[1]: Leaving directory '/github/workspace/metacoq/utils' make: *** [Makefile:139: utils] Error 2 ```
:scroll: :mag_right: Minimization Log (truncated to last 8.0KiB; full 9.5MiB file on GitHub Actions Artifacts under bug.log) ``` 3763, 0 seconds old), delaying until it's a bit older /home/coq/.opam/4.13.1+flambda/bin/coqc.orig -q -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -Q /github/workspace/cwd Top -Q /home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Bignums Bignums -Q /home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Equations Equations -Q /home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Ltac2 Ltac2 -q -w -deprecated-native-compiler-option -native-compiler no -R /github/workspace/metacoq/utils/theories MetaCoq.Utils -Q /github/workspace/cwd Top -Q /home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Bignums Bignums -Q /home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Equations Equations -Q /home/coq/.opam/4.13.1+flambda/lib/coq/user-contrib/Ltac2 Ltac2 -top MetaCoq.Utils.All_Forall -o /tmp/bug_01.vo -dump-glob bug_01.glob bug_01.v getting bug_01.glob (/github/workspace/cwd/bug_01.glob) getting bug_01.glob (/github/workspace/cwd/bug_01.glob)  Succeeded in normalizing Requires. Now, I will attempt to split up [Require] statements... getting /github/workspace/cwd/bug_01.v NOTE: The file /github/workspace/cwd/bug_01.v is very new (1707683765, 0 seconds old), delaying until it's a bit older getting /github/workspace/cwd/bug_01.glob getting /github/workspace/cwd/bug_01.glob No Requires to split. In order to efficiently manipulate the file, I have to break it into statements. I will attempt to do this by matching on periods.  Splitting successful. I will now attempt to remove any lines after the line which generates the error. No lines to trim. In order to efficiently manipulate the file, I have to break it into definitions. I will now attempt to do this. Sending statements to coqtop... Done. Splitting to definitions...  Splitting to definitions successful. I will now attempt to remove goals ending in [Abort.]  Aborted removal successful. I will now attempt to remove unused Ltacs  Ltac removal successful. I will now attempt to remove unused definitions  Definition removal successful. I will now attempt to remove unused non-instance, non-canonical structure definitions  Non-instance definition removal successful. I will now attempt to remove unused variables  Variable removal successful. I will now attempt to remove unused contexts  Context removal successful. I will now attempt to replace Qed Obligation with Admit Obligations  Admitting Qed Obligations successful. Failed to do everything at once; trying one at a time. Admitting Qed Obligations unsuccessful. No successful changes. I will now attempt to replace Qeds with Admitteds  Admitting Qeds successful. Failed to do everything at once; trying one at a time. Admitting Qeds unsuccessful. No successful changes. I will now attempt to replace Qeds with admit. Defined.  Admitting Qeds successful. Failed to do everything at once; trying one at a time. Admitting Qeds unsuccessful. No successful changes. I will now attempt to remove goals ending in [Abort.]  Aborted removal successful. I will now attempt to remove unused Ltacs  Ltac removal successful. I will now attempt to remove unused definitions  Definition removal successful. I will now attempt to remove unused non-instance, non-canonical structure definitions  Non-instance definition removal successful. I will now attempt to remove unused variables  Variable removal successful. I will now attempt to remove unused contexts  Context removal successful. I will now attempt to admit [abstract ...]s  Admitting [abstract ...] successful.  Admitting [abstract ...] successful. Admitting [abstract ...] unsuccessful. Admitting [abstract ...] unsuccessful. I will now attempt to remove goals ending in [Abort.]  Aborted removal successful. I will now attempt to remove unused Ltacs  Ltac removal successful. I will now attempt to remove unused definitions  Definition removal successful. I will now attempt to remove unused non-instance, non-canonical structure definitions  Non-instance definition removal successful. I will now attempt to remove unused variables  Variable removal successful. I will now attempt to remove unused contexts  Context removal successful. I will now attempt to replace Obligation with Admit Obligations  Admitting Obligations successful. Failed to do everything at once; trying one at a time. Admitting Obligations unsuccessful. No successful changes. I will now attempt to admit lemmas with Admitted Non-fatal error: Failed to admit lemmas and preserve the error. The new error was: Intermediate code not saved. Failed to do everything at once; trying one at a time. Admitting lemmas unsuccessful. No successful changes. I will now attempt to admit definitions with Admitted Non-fatal error: Failed to admit definitions and preserve the error. The new error was: Intermediate code not saved. Failed to do everything at once; trying one at a time. Admitting definitions unsuccessful. No successful changes. I will now attempt to admit lemmas with admit. Defined Non-fatal error: Failed to admit lemmas and preserve the error. The new error was: Goal: A : Type P : A -> Type Q : A -> Type l : list A ============================ (All P l -> All (fun x : A => P x -> Q x) l -> All Q l) Going to execute: admit TcDebug (0) > Goal: A : Type P : A -> Type Q : A -> Type l : list A ============================ (All P l -> All (fun x : A => P x -> Q x) l -> All Q l) Going to execute: fun => TcDebug (1) > File "/tmp/tmpvbd64djm/MetaCoq/Utils/All_Forall.v", line 18, characters 0-8: Error: Backtrace: (in proof All_impl_All): Attempt to save a proof with given up goals. If this is really what you want to do, use Admitted in place of Qed. Intermediate code not saved. Failed to do everything at once; trying one at a time. Admitting lemmas unsuccessful. No successful changes. I will now attempt to admit definitions with admit. Defined Non-fatal error: Failed to admit definitions and preserve the error. The new error was: Goal: A : Type P : A -> Type Q : A -> Type l : list A ============================ (All P l -> All (fun x : A => P x -> Q x) l -> All Q l) Going to execute: admit TcDebug (0) > Goal: A : Type P : A -> Type Q : A -> Type l : list A ============================ (All P l -> All (fun x : A => P x -> Q x) l -> All Q l) Going to execute: fun => TcDebug (1) > File "/tmp/tmpvbd64djm/MetaCoq/Utils/All_Forall.v", line 18, characters 0-8: Error: Backtrace: (in proof All_impl_All): Attempt to save a proof with given up goals. If this is really what you want to do, use Admitted in place of Qed. Intermediate code not saved. Failed to do everything at once; trying one at a time. Admitting definitions unsuccessful. No successful changes. I will now attempt to export modules Module exportation unsuccessful. I will now attempt to split imports and exports Import/Export splitting unsuccessful. I will now attempt to split := definitions One-line definition splitting unsuccessful. I will now attempt to remove all lines, one at a time Line removal unsuccessful. I will now attempt to remove goals ending in [Abort.]  Aborted removal successful. I will now attempt to remove unused Ltacs  Ltac removal successful. I will now attempt to remove unused definitions  Definition removal successful. I will now attempt to remove unused non-instance, non-canonical structure definitions  Non-instance definition removal successful. I will now attempt to remove unused variables  Variable removal successful. I will now attempt to remove unused contexts  Context removal successful. I will now attempt to remove empty sections No empty sections to remove. Now, I will attempt to strip repeated newlines and trailing spaces from this file... No strippable newlines or spaces. ```

If you have any comments on your experience of the minimizer, please share them in a reply (possibly tagging @JasonGross). If you believe there's a bug in the bug minimizer, please report it on the bug minimizer issue tracker.