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 coqdev compilation #44

Merged
merged 2 commits into from
Sep 18, 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: 4 additions & 0 deletions _CoqProject
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
-Q . pcm
-arg -w -arg -notation-overridden
-arg -w -arg -redundant-canonical-projection
# release-specific args
-arg -w -arg -notation-incompatible-prefix # specific to coq8.20.0
-arg -w -arg -deprecated-from-Coq # specific to coq8.21
-arg -w -arg -deprecated-dirpath-Coq # specific to coq8.21

core/options.v
core/axioms.v
Expand Down
2 changes: 1 addition & 1 deletion core/pred.v
Original file line number Diff line number Diff line change
Expand Up @@ -1521,7 +1521,7 @@ Definition id_rel : Rel A := fun x y => y = x.
Lemma id_rel_refl : forall x, id_rel x x.
Proof. by []. Qed.
Lemma id_rel_sym : Symmetric id_rel.
Proof. by []. Qed.
Proof. by split. Qed.
Lemma id_rel_trans : Transitive id_rel.
Proof. by move=> x y z ->->. Qed.
Lemma id_rel_func : functional id_rel.
Expand Down
2 changes: 1 addition & 1 deletion core/prelude.v
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,7 @@ Lemma onth_tnth {n} (s : n.-tuple A) (i : 'I_n) :
Proof.
elim: n s i =>[|n IH] s i; first by case: i.
case/tupleP: s=>/=x s; case: (unliftP ord0 i)=>[j|]-> /=.
- by rewrite tnthS.
- by rewrite tnthS ?add0n.
by rewrite tnth0.
Qed.

Expand Down
2 changes: 1 addition & 1 deletion core/slice.v
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Open Scope order_scope.
Import Order.Theory.

Section BSimp_Extension.
Variables (disp : unit) (T : porderType disp).
Context disp (T : porderType disp).
Implicit Types (x y : T) (b c : bool).

Lemma binf_inf b c : (BInfty T b == BInfty T c) = (b == c).
Expand Down
102 changes: 56 additions & 46 deletions pcm/morphism.v
Original file line number Diff line number Diff line change
Expand Up @@ -1571,22 +1571,26 @@ HB.instance Definition _ :=
isFull_PCM_morphism.Build U W (g \o f) comp_is_full_morphism.
End FullCompIsFull.

(* instances for combinations must be declared explicitly *)

HB.instance Definition _ (f : full_norm_pcm_morph U V)
(g : full_norm_pcm_morph V W) :=
Full_Norm_PCM_morphism.copy (g \o f)
(Full_Norm_PCM_morphism.pack_
(Norm_PCM_morphism.class (g \o f))
(Full_PCM_morphism.class (g \o f))).

HB.instance Definition _ (f : full_binorm_pcm_morph U V)
(g : full_binorm_pcm_morph V W) :=
Full_Binorm_PCM_morphism.copy (g \o f)
(Full_Binorm_PCM_morphism.pack_
(Binorm_PCM_morphism.class (g \o f))
(Norm_PCM_morphism.class (g \o f))
(Full_PCM_morphism.class (g \o f))).
(* instances for combinations must declare PCM_morphism.on *)
(* before declaring fullness structure. *)

HB.instance Definition _
(f : full_norm_pcm_morph U V)
(g : full_norm_pcm_morph V W) :=
PCM_morphism.on (g \o f).
HB.instance Definition _
(f : full_norm_pcm_morph U V)
(g : full_norm_pcm_morph V W) :=
Full_Norm_PCM_morphism.on (g \o f).

HB.instance Definition _
(f : full_binorm_pcm_morph U V)
(g : full_binorm_pcm_morph V W) :=
PCM_morphism.on (g \o f).
HB.instance Definition _
(f : full_binorm_pcm_morph U V)
(g : full_binorm_pcm_morph V W) :=
Full_Binorm_PCM_morphism.on (g \o f).

End CompMorphism.

Expand Down Expand Up @@ -1811,43 +1815,49 @@ End CompTPCM.
(* combinations declared explicitly *)

HB.instance Definition _
(f : norm_tpcm_morph U V) (g : norm_tpcm_morph V W) :=
Norm_TPCM_morphism.copy (g \o f)
(Norm_TPCM_morphism.pack_
(TPCM_morphism.class (g \o f))
(Norm_PCM_morphism.class (g \o f))).

(f : norm_tpcm_morph U V)
(g : norm_tpcm_morph V W) :=
PCM_morphism.on (g \o f).
HB.instance Definition _
(f : binorm_tpcm_morph U V) (g : binorm_tpcm_morph V W) :=
Binorm_TPCM_morphism.copy (g \o f)
(Binorm_TPCM_morphism.pack_
(TPCM_morphism.class (g \o f))
(Binorm_PCM_morphism.class (g \o f))
(Norm_PCM_morphism.class (g \o f))).
(f : norm_tpcm_morph U V)
(g : norm_tpcm_morph V W) :=
Norm_TPCM_morphism.on (g \o f).

HB.instance Definition _
(f : full_tpcm_morph U V) (g : full_tpcm_morph V W) :=
Full_TPCM_morphism.copy (g \o f)
(Full_TPCM_morphism.pack_
(TPCM_morphism.class (g \o f))
(Full_PCM_morphism.class (g \o f))).
(f : binorm_tpcm_morph U V)
(g : binorm_tpcm_morph V W) :=
PCM_morphism.on (g \o f).
HB.instance Definition _
(f : binorm_tpcm_morph U V)
(g : binorm_tpcm_morph V W) :=
Binorm_TPCM_morphism.on (g \o f).

HB.instance Definition _
(f : full_norm_tpcm_morph U V) (g : full_norm_tpcm_morph V W) :=
Full_Norm_TPCM_morphism.copy (g \o f)
(Full_Norm_TPCM_morphism.pack_
(TPCM_morphism.class (g \o f))
(Full_PCM_morphism.class (g \o f))
(Norm_PCM_morphism.class (g \o f))).
(f : full_tpcm_morph U V)
(g : full_tpcm_morph V W) :=
PCM_morphism.on (g \o f).
HB.instance Definition _
(f : full_tpcm_morph U V)
(g : full_tpcm_morph V W) :=
Full_TPCM_morphism.on (g \o f).

HB.instance Definition _
(f : full_binorm_tpcm_morph U V) (g : full_binorm_tpcm_morph V W) :=
Full_Binorm_TPCM_morphism.copy (g \o f)
(Full_Binorm_TPCM_morphism.pack_
(TPCM_morphism.class (g \o f))
(Full_PCM_morphism.class (g \o f))
(Binorm_PCM_morphism.class (g \o f))
(Norm_PCM_morphism.class (g \o f))).
(f : full_norm_tpcm_morph U V)
(g : full_norm_tpcm_morph V W) :=
PCM_morphism.on (g \o f).
HB.instance Definition _
(f : full_norm_tpcm_morph U V)
(g : full_norm_tpcm_morph V W) :=
Full_Norm_TPCM_morphism.on (g \o f).

HB.instance Definition _
(f : full_binorm_tpcm_morph U V)
(g : full_binorm_tpcm_morph V W) :=
PCM_morphism.on (g \o f).
HB.instance Definition _
(f : full_binorm_tpcm_morph U V)
(g : full_binorm_tpcm_morph V W) :=
Full_Binorm_TPCM_morphism.on (g \o f).

End Comp.

Expand Down
Loading