Skip to content

Commit

Permalink
Merge pull request math-comp#372 from proux01/coq_17484
Browse files Browse the repository at this point in the history
Fixing mathcomp after coq/coq#17484
  • Loading branch information
gares committed Jul 6, 2023
2 parents c8e542e + a7986e6 commit 85fab30
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions HB/common/log.elpi
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ env.add-const-noimplicits Name Bo Ty Opaque C :- std.do! [
":" {coq.term->string Ty} ":=" {coq.term->string Bo})
true,
avoid-name-collision Name Name1,
coq.typecheck Bo Ty _,
coq.env.add-const Name1 Bo Ty Opaque C,
env.add-location (const C),
if (var Ty) (Ty? = none) (Ty? = some Ty),
Expand All @@ -49,6 +50,7 @@ env.add-const Name Bo Ty Opaque C :- std.do! [
":" {coq.term->string Ty} ":=" {coq.term->string Bo})
true,
avoid-name-collision Name Name1,
coq.typecheck Bo Ty _,
coq.env.add-const Name1 Bo Ty Opaque C,
env.add-location (const C),
if (var Ty) (Ty? = none) (Ty? = some Ty),
Expand All @@ -61,6 +63,7 @@ env.add-const-noimplicits-failondup Name Bo Ty Opaque C :- std.do! [
(coq.error "HB: cannot infer some information in" Name
":" {coq.term->string Ty} ":=" {coq.term->string Bo})
true,
coq.typecheck Bo Ty _,
coq.env.add-const Name Bo Ty Opaque C,
env.add-location (const C),
if (var Ty) (Ty? = none) (Ty? = some Ty),
Expand Down

0 comments on commit 85fab30

Please sign in to comment.