Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix remaining warnings, minor fixups #1045

Merged
merged 1 commit into from
Jan 25, 2024
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
4 changes: 2 additions & 2 deletions common/theories/EnvironmentTyping.v
Original file line number Diff line number Diff line change
Expand Up @@ -1012,12 +1012,12 @@ Module EnvTyping (T : Term) (E : EnvironmentSig T) (TU : TermUtils T E).

Notation lift_sorting_size csize ssize := (lift_sorting_size_gen csize ssize 1).
Notation typing_sort_size typing_size := (fun t s (tu: typing_sort _ t s) => typing_size t (tSort s) tu).
Notation lift_typing_size typing_size := (lift_sorting_size_gen typing_size (typing_sort_size typing_size) 0).
Notation lift_typing_size typing_size := (lift_sorting_size_gen typing_size%function (typing_sort_size typing_size%function) 0).
Notation typing_sort_size1 typing_size := (fun Γ t s (tu: typing_sort1 _ Γ t s) => typing_size Γ t (tSort s) tu).
Notation on_def_type_sorting_size ssize := (on_def_type_size_gen ssize 1).
Notation on_def_type_size typing_size := (on_def_type_size_gen (typing_sort_size1 typing_size) 0).
Notation on_def_body_sorting_size csize ssize := (on_def_body_size_gen csize ssize 1).
Notation on_def_body_size typing_size := (on_def_body_size_gen typing_size (typing_sort_size1 typing_size) 0).
Notation on_def_body_size typing_size := (on_def_body_size_gen typing_size%function (typing_sort_size1 typing_size%function) 0).
(* Will probably not pass the guard checker if in a list, must be unrolled like in on_def_* *)

Lemma lift_sorting_size_impl {checking sorting Qc Qs j} csize ssize :
Expand Down
1 change: 1 addition & 0 deletions erasure/theories/EEtaExpandedFix.v
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ Inductive expanded_global_declarations : forall (Σ : global_declarations), Prop
| expanded_global_nil : expanded_global_declarations []
| expanded_global_cons decl Σ : expanded_global_declarations Σ ->
expanded_decl Σ decl.2 -> expanded_global_declarations (decl :: Σ).
Derive Signature for expanded_global_declarations.

Definition expanded_global_env := expanded_global_declarations.

Expand Down
4 changes: 2 additions & 2 deletions erasure/theories/Typed/OptimizeCorrectness.v
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ From MetaCoq.Utils Require Import MCList.
From MetaCoq.Utils Require Import MCPrelude.
From MetaCoq.Utils Require Import utils.
From MetaCoq.Utils Require Import All_Forall.
Require ssreflect.

Import ExAst.
Import Kernames.
Expand Down Expand Up @@ -2639,8 +2640,7 @@ Proof.
eapply IHl in hn; tea. now rewrite Nat.add_succ_r in hn.
Qed.


Require Import ssreflect.
Import ssreflect.

Lemma forallbi_Alli {A} (f : nat -> A -> bool) n l :
Alli f n l <~> forallbi f n l.
Expand Down
2 changes: 2 additions & 0 deletions pcuic/theories/PCUICEtaExpand.v
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,8 @@ Module Red1Apps.

where " Σ ;;; Γ |- t ⇝ u " := (red1 Σ Γ t u).

Derive Signature for red1.

Lemma red1_ind_all :
forall (Σ : global_env) (P : context -> term -> term -> Type),

Expand Down
5 changes: 0 additions & 5 deletions pcuic/theories/PCUICNormal.v
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,6 @@ Proof.
- inv whn; solve_discr; easy.
Qed.

Set Firstorder Solver auto with core.

Definition whnf_whne_dec flags Σ Γ t :
({∥whnf flags Σ Γ t∥} + {~∥whnf flags Σ Γ t∥}) *
({∥whne flags Σ Γ t∥} + {~∥whne flags Σ Γ t∥}).
Expand Down Expand Up @@ -1936,6 +1934,3 @@ Section Normal.
Qed.

End Normal.



2 changes: 2 additions & 0 deletions pcuic/theories/PCUICReduction.v
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ Inductive red1 (Σ : global_env) (Γ : context) : term -> term -> Type :=

where " Σ ;;; Γ |- t ⇝ u " := (red1 Σ Γ t u).

Derive Signature for red1.

Definition red1_ctx Σ := (OnOne2_local_env (fun Δ => on_one_decl (fun t t' => red1 Σ Δ t t'))).
Definition red1_ctx_rel Σ Γ := (OnOne2_local_env (fun Δ => on_one_decl (fun t t' => red1 Σ (Γ ,,, Δ) t t'))).

Expand Down
2 changes: 1 addition & 1 deletion safechecker/demo.v → safechecker-plugin/demo.v
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(* Distributed under the terms of the MIT license. *)
Require Import MetaCoq.SafeChecker.Loader.
Require Import MetaCoq.SafeCheckerPlugin.Loader.

MetaCoq SafeCheck (3 + 9).

Expand Down
4 changes: 0 additions & 4 deletions safechecker/theories/Loader.v

This file was deleted.

3 changes: 1 addition & 2 deletions safechecker/theories/PCUICSafeConversion.v
Original file line number Diff line number Diff line change
Expand Up @@ -6045,8 +6045,6 @@ Qed.
_isconv Fallback Γ t1 π1 h1 t2 π2 h2 aux :=
λ { | leq | hx | r1 | r2 | hd := _isconv_fallback Γ leq t1 π1 h1 t2 π2 h2 r1 r2 hd hx aux }.

Derive Signature for dlexmod.

Lemma welltyped_R_zipc Σ (wfΣ : abstract_env_ext_rel X Σ) Γ :
forall x y : pack Γ, welltyped Σ Γ (zipc (tm1 x) (stk1 x)) -> R Γ y x -> welltyped Σ Γ (zipc (tm1 y) (stk1 y)).
Proof using Type.
Expand All @@ -6055,6 +6053,7 @@ Qed.
pose proof (hΣ := hΣ _ wfΣ). cbn.
sq.
destruct x, y; cbn in *.
red in HR. cbn in HR. red in HR. cbn in HR.
depind HR.
- cbn in *. specialize_Σ wfΣ.
eapply cored'_postpone in H as [u' [cor eq]].
Expand Down
2 changes: 2 additions & 0 deletions utils/theories/wGraph.v
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ From Equations Require Import Equations.

Local Open Scope Z_scope.

Ltac Tauto.intuition_solver ::= auto with *.

Lemma fold_max_In n m l (H : fold_left Z.max l n = m)
: n = m \/ In m l.
Proof.
Expand Down
Loading