Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions .github/workflows/nix-action-rocq-9.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ jobs:
status=fetched\" >> $GITHUB_OUTPUT\nfi\n"
- if: steps.stepCheck.outputs.status != 'fetched'
name: 'Building/fetching previous CI target: rocq-core'
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
"rocq-9.1" --argstr job "rocq-core"
- if: steps.stepCheck.outputs.status != 'fetched'
name: Building/fetching current CI target
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
"rocq-9.1" --argstr job "coq"
metarocq:
needs:
Expand Down Expand Up @@ -111,35 +111,39 @@ jobs:
status=fetched\" >> $GITHUB_OUTPUT\nfi\n"
- if: steps.stepCheck.outputs.status != 'fetched'
name: 'Building/fetching previous CI target: coq'
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
"rocq-9.1" --argstr job "coq"
- if: steps.stepCheck.outputs.status != 'fetched'
name: 'Building/fetching previous CI target: equations'
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
"rocq-9.1" --argstr job "equations"
- if: steps.stepCheck.outputs.status != 'fetched'
name: 'Building/fetching previous CI target: ExtLib'
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
"rocq-9.1" --argstr job "ExtLib"
- if: steps.stepCheck.outputs.status != 'fetched'
name: 'Building/fetching previous CI target: stdlib'
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
"rocq-9.1" --argstr job "stdlib"
- if: steps.stepCheck.outputs.status != 'fetched'
name: 'Building/fetching previous CI target: metarocq-safechecker-plugin'
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
"rocq-9.1" --argstr job "metarocq-safechecker-plugin"
- if: steps.stepCheck.outputs.status != 'fetched'
name: 'Building/fetching previous CI target: metarocq-erasure-plugin'
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
"rocq-9.1" --argstr job "metarocq-erasure-plugin"
- if: steps.stepCheck.outputs.status != 'fetched'
name: 'Building/fetching previous CI target: metarocq-translations'
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
"rocq-9.1" --argstr job "metarocq-translations"
- if: steps.stepCheck.outputs.status != 'fetched'
name: 'Building/fetching previous CI target: metarocq-quotation'
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
"rocq-9.1" --argstr job "metarocq-quotation"
- if: steps.stepCheck.outputs.status != 'fetched'
name: Building/fetching current CI target
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
"rocq-9.1" --argstr job "metarocq"
rocq-core:
needs: []
Expand Down Expand Up @@ -193,24 +197,20 @@ jobs:
status=fetched\" >> $GITHUB_OUTPUT\nfi\n"
- if: steps.stepCheck.outputs.status != 'fetched'
name: Building/fetching current CI target
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
"rocq-9.1" --argstr job "rocq-core"
name: Nix CI for bundle rocq-9.1
on:
pull_request:
paths:
- .github/workflows/nix-action-rocq-9.1.yml
branches:
- '9.1'
pull_request_target:
paths-ignore:
- .github/workflows/nix-action-rocq-9.1.yml
types:
- opened
- synchronize
- reopened
branches:
- '9.1'
push:
branches:
- '9.1'
276 changes: 200 additions & 76 deletions .github/workflows/nix-action-rocq-dev.yml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ Makefile.rocq.conf
*.d
.merlin
html/*.html
.lia.cache
*/.nia.cache
**/.lia.cache
**/.nia.cache
.hidden
_opam/
.vscode/settings.json
Expand Down
5 changes: 4 additions & 1 deletion .nix/config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,20 @@
# rocqPackages.stdlib.override.version = "9.0.0";
coqPackages.equations.override.version = "v1.3.1-9.1";
coqPackages.equations.job = false;
coqPackages.ExtLib.override.version = "0.13.0";
coqPackages.ExtLib.job = false;
coqPackages.coq.override.version = "9.1";
coqPackages.stdlib.override.version = "9.0.0";
coqPackages.stdlib.job = false;

push-branches = ["9.1"];
};

bundles."rocq-dev" = {
rocqPackages.rocq-core.override.version = "master";
rocqPackages.stdlib.override.version = "master";
coqPackages.equations.override.version = "main";
coqPackages.ExtLib.override.version = "master";
coqPackages.coq.override.version = "master";
coqPackages.stdlib.override.version = "master";

Expand Down
2 changes: 1 addition & 1 deletion .nix/coq-nix-toolbox.nix
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"3a71d8318b495d464d04ac8bca80b38320448436"
"f8f9d2623ff780116adc0531f702bc081f21fb1b"
2 changes: 2 additions & 0 deletions .nix/coq-overlays/metacoq/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
single ? false,
coq,
equations,
ExtLib,
stdlib,
version ? null,
}@args:
Expand Down Expand Up @@ -85,6 +86,7 @@ let
mlPlugin = true;
propagatedBuildInputs = [
equations
ExtLib
stdlib
coq.ocamlPackages.zarith
coq.ocamlPackages.stdlib-shims
Expand Down
2 changes: 2 additions & 0 deletions .nix/coq-overlays/metarocq/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
coq,
single ? false,
equations,
ExtLib,
stdlib,
version ? null,
}@args:
Expand Down Expand Up @@ -79,6 +80,7 @@ let
mlPlugin = true;
propagatedBuildInputs = [
equations
ExtLib
stdlib
# rocq-core.ocamlPackages.zarith
# rocq-core.ocamlPackages.stdlib-shims
Expand Down
2 changes: 1 addition & 1 deletion common/theories/MonadBasicAst.v
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
From MetaRocq.Utils Require Import utils monad_utils MRList.
From MetaRocq.Common Require Import BasicAst.

Import MRMonadNotation.
Import MonadNotation.
Local Set Universe Polymorphism.
Local Unset Universe Minimization ToSet.

Expand Down
6 changes: 3 additions & 3 deletions common/theories/UniversesDec.v
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ Lemma consistent_extension_on_iff_subgraph_helper cs cstr G G'
(HG' : gc_of_uctx (lvls, cstr') = Some G')
: subgraph (make_graph G) (make_graph G').
Proof.
repeat first [ progress cbv [gc_of_uctx monad_utils.bind monad_utils.ret monad_utils.option_monad] in *
repeat first [ progress cbv [gc_of_uctx Monad.bind Monad.ret OptionMonad.Monad_option] in *
| progress cbn [fst snd] in *
| progress subst
| progress destruct ?
Expand Down Expand Up @@ -699,7 +699,7 @@ Proof.
| [ |- _ <-> is_true true ]
=> split; [ reflexivity | intros _ ]
end
| progress cbv [uGraph.is_graph_of_uctx monad_utils.bind monad_utils.ret monad_utils.option_monad] in *
| progress cbv [uGraph.is_graph_of_uctx Monad.bind Monad.ret OptionMonad.Monad_option] in *
| progress cbn [MROption.on_Some fst snd] in *
| rewrite <- uGraph.is_consistent_spec2
| progress subst
Expand Down Expand Up @@ -819,7 +819,7 @@ Proof.
{ specialize_under_binders_by reflexivity.
destruct uGraph.check_constraints_gen; specialize_by reflexivity; auto. }
{ rewrite uGraph.gc_consistent_iff in *.
cbv [uGraph.gc_of_uctx monad_utils.bind monad_utils.ret monad_utils.option_monad MROption.on_Some] in *; cbn [fst snd] in *.
cbv [uGraph.gc_of_uctx Monad.bind Monad.ret OptionMonad.Monad_option MROption.on_Some] in *; cbn [fst snd] in *.
destruct ?.
all: try congruence.
all: exfalso; assumption. }
Expand Down
3 changes: 2 additions & 1 deletion common/theories/uGraph.v
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ From MetaRocq.Utils Require Import utils wGraph.
From MetaRocq.Common Require Import config Universes.
From Equations.Prop Require Import DepElim.
From Equations Require Import Equations.
From ExtLib Require Import Monads.
Import ConstraintType.

Import MRMonadNotation.
Import MonadNotation.


Arguments Z.add : simpl nomatch.
Expand Down
3 changes: 1 addition & 2 deletions erasure-plugin/theories/Extraction.v
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ From MetaRocq.Utils Require Import utils.

Extraction Blacklist Classes config uGraph Universes Ast String List Nat Int
UnivSubst Typing Checker Retyping OrderedType Logic Common ws_cumul_pb Classes Numeral
Uint63 Induction.
Uint63 Induction Monad.
Set Warnings "-extraction-opaque-accessed".
Set Warnings "-extraction-reserved-identifier".

Expand Down Expand Up @@ -42,4 +42,3 @@ Set Extraction Output Directory "src".
Separate Extraction ErasureFunction.erase Erasure
(* The following directives ensure separate extraction does not produce name clashes *)
Stdlib.Strings.String utils Template.UnivSubst ELiftSubst EGlobalEnv.

1 change: 0 additions & 1 deletion erasure/_RocqProject.in
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ theories/Typed/ExtractionCorrectness.v
theories/Typed/OptimizeCorrectness.v
theories/Typed/OptimizePropDiscr.v
theories/Typed/Optimize.v
theories/Typed/ResultMonad.v
theories/Typed/Transform.v
theories/Typed/TypeAnnotations.v
theories/Typed/Utils.v
Expand Down
2 changes: 1 addition & 1 deletion erasure/theories/ECoInductiveToInductive.v
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Import MRList (map_InP, map_InP_elim, map_InP_spec).

Local Open Scope string_scope.
Set Asymmetric Patterns.
Import MRMonadNotation.
Import MonadNotation.

From Equations Require Import Equations.
Set Equations Transparent.
Expand Down
2 changes: 1 addition & 1 deletion erasure/theories/EConstructorsAsBlocks.v
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ From MetaRocq.Erasure Require Import EPrimitive EAst EAstUtils EInduction EAriti

Local Open Scope string_scope.
Set Asymmetric Patterns.
Import MRMonadNotation.
Import MonadNotation.

From Equations Require Import Equations.
Set Equations Transparent.
Expand Down
2 changes: 1 addition & 1 deletion erasure/theories/EDeps.v
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
From Stdlib Require Import Arith List.
From Equations Require Import Equations.
From MetaRocq.Utils Require Import utils.
From MetaRocq.PCUIC Require Import
PCUICPrimitive PCUICAst PCUICAstUtils PCUICTyping PCUICInversion PCUICWeakeningEnv PCUICWeakeningEnvTyp.
Set Warnings "-notation-overridden".
From MetaRocq.Erasure Require Import EPrimitive EAst EAstUtils ECSubst EInduction
ELiftSubst EGlobalEnv EWcbvEval Extract ESubstitution.
From MetaRocq.Erasure Require EExtends.
Set Warnings "+notation-overridden".
From MetaRocq.Utils Require Import utils.
From MetaRocq.Common Require Import config.

Derive NoConfusion for term.
Expand Down
2 changes: 1 addition & 1 deletion erasure/theories/EEnvMap.v
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ From Equations Require Import Equations.
From MetaRocq.Utils Require Import utils.
From MetaRocq.Common Require Import Kernames EnvMap BasicAst.
From MetaRocq.Erasure Require Import EAst EGlobalEnv EAstUtils EGlobalEnv EAstUtils.
Import MRMonadNotation.
Import MonadNotation.

Lemma fresh_globals_cons_inv {Σ : global_context} {d} : EnvMap.fresh_globals (d :: Σ) -> EnvMap.fresh_globals Σ.
Proof. intros H; now depelim H. Qed.
Expand Down
2 changes: 1 addition & 1 deletion erasure/theories/EEtaExpanded.v
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ From MetaRocq.Erasure Require Import EPrimitive EAst EAstUtils EInduction EGloba

Local Open Scope string_scope.
Set Asymmetric Patterns.
Import MRMonadNotation.
Import MonadNotation.

From Equations Require Import Equations.
Set Equations Transparent.
Expand Down
4 changes: 2 additions & 2 deletions erasure/theories/EEtaExpandedFix.v
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ Qed.

Local Open Scope string_scope.
Set Asymmetric Patterns.
Import MRMonadNotation.
Import MonadNotation.

From Equations Require Import Equations.
Set Equations Transparent.
Expand Down Expand Up @@ -2054,4 +2054,4 @@ Proof using.
destruct (expanded_head_viewc u) => //.
bool.
eapply isEtaExp_mkApps_intro; eauto. solve_all.
Qed.
Qed.
4 changes: 2 additions & 2 deletions erasure/theories/EGenericGlobalMap.v
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ From MetaRocq.Erasure Require Import EAst EAstUtils EInduction EArities

Local Open Scope string_scope.
Set Asymmetric Patterns.
Import MRMonadNotation.
Import MonadNotation.

From Equations Require Import Equations.
Set Equations Transparent.
Expand Down Expand Up @@ -418,4 +418,4 @@ Proof.
cbn. eapply gen_transform_wellformed_irrel => //. now eapply gen_transform_wellformed.
Qed. *)

End sec.
End sec.
4 changes: 2 additions & 2 deletions erasure/theories/EGenericMapEnv.v
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ From MetaRocq.Erasure Require Import EAst EAstUtils EInduction EArities

Local Open Scope string_scope.
Set Asymmetric Patterns.
Import MRMonadNotation.
Import MonadNotation.

From Equations Require Import Equations.
Set Equations Transparent.
Expand Down Expand Up @@ -360,4 +360,4 @@ Proof.
cbn. eapply gen_transform_wellformed_irrel => //. now eapply gen_transform_wellformed.
Qed. *)

End sec.
End sec.
2 changes: 1 addition & 1 deletion erasure/theories/EGlobalEnv.v
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ From MetaRocq.Utils Require Import utils.
From MetaRocq.Common Require Import config BasicAst Reflect.
From MetaRocq.Erasure Require Import EAst EAstUtils ELiftSubst EReflect ECSubst.
From Stdlib Require Import ssreflect.
Import MRMonadNotation.
Import MonadNotation.

(** * Global environments

Expand Down
2 changes: 1 addition & 1 deletion erasure/theories/EImplementBox.v
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ From MetaRocq.Erasure Require Import EPrimitive EAst EAstUtils EInduction EAriti

Local Open Scope string_scope.
Set Asymmetric Patterns.
Import MRMonadNotation.
Import MonadNotation.

From Equations Require Import Equations.
Set Equations Transparent.
Expand Down
2 changes: 1 addition & 1 deletion erasure/theories/EInlineProjections.v
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ From MetaRocq.Erasure Require Import EPrimitive EAst EAstUtils EExtends

Local Open Scope string_scope.
Set Asymmetric Patterns.
Import MRMonadNotation.
Import MonadNotation.

From Equations Require Import Equations.
Set Equations Transparent.
Expand Down
3 changes: 1 addition & 2 deletions erasure/theories/EInlining.v
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ From MetaRocq.Utils Require Import MRList bytestring utils monad_utils.
From MetaRocq.Erasure Require Import EPrimitive EAst EEnvMap EInduction EGlobalEnv.

Import Kernames.
Import MRMonadNotation.
Import MonadNotation.

(* Inlining hints *)
Definition inlining := KernameSet.t.
Expand Down Expand Up @@ -173,4 +173,3 @@ Proof.
intros ? ? [[] ?] [[] ?]; cbn.
now rewrite /extends_inlined_eprogram /extends_eprogram /=.
Qed.

2 changes: 1 addition & 1 deletion erasure/theories/EOptimizePropDiscr.v
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ From MetaRocq.Erasure Require Import EPrimitive EAst EAstUtils EDeps EExtends

Local Open Scope string_scope.
Set Asymmetric Patterns.
Import MRMonadNotation.
Import MonadNotation.

From Equations Require Import Equations.
Set Equations Transparent.
Expand Down
2 changes: 1 addition & 1 deletion erasure/theories/ERemapInductives.v
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ From MetaRocq.Erasure Require Import EEnvMap EProgram EPrimitive EAst ESpineView
EAstUtils ELiftSubst EWellformed ECSubst EWcbvEval.

Import Kernames.
Import MRMonadNotation.
Import MonadNotation.

Lemma lookup_declared_constructor {Σ id mdecl idecl cdecl} :
lookup_constructor Σ id.1 id.2 = Some (mdecl, idecl, cdecl) ->
Expand Down
2 changes: 1 addition & 1 deletion erasure/theories/ERemoveParams.v
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ From MetaRocq.Erasure Require Import EPrimitive EAst EAstUtils EInduction EAriti

Local Open Scope string_scope.
Set Asymmetric Patterns.
Import MRMonadNotation.
Import MonadNotation.

From Equations Require Import Equations.
Set Equations Transparent.
Expand Down
Loading
Loading