Git Product home page Git Product logo

Comments (5)

gares avatar gares commented on August 19, 2024 1

I now remark that it is on coq-elpi 1.3. Version 1.4 fixed a couple of universe related bugs.
We should try to reproduce the bug in HB master + coq-elpi 1.4

from hierarchy-builder.

gares avatar gares commented on August 19, 2024

Thanks for posting, we will look at it.

from hierarchy-builder.

gares avatar gares commented on August 19, 2024

@CohenCyril The full error, with #[verbose] is:

HB: start module and section Sbi_of_Bi
HB: postulate type PROP
HB: postulate mixin_Bi_of_TYPE on PROP
HB: declare canonical instance PROP_is_a_bi
HB: declare record axioms_
HB: declare notation axioms
HB: declare notation Axioms
elpi: mk-phant-abbrev: T illtyped : 
Illegal application: 
The term "@Some" of type "∀ A : Type, A → option A"
cannot be applied to the terms
 "?e5" : "Type"
 "("is not canonically a", bi.type)" : "(string * Type)%type"
The 2nd term has type "(string * Type)%type" which should be coercible to
 "?e5".

from hierarchy-builder.

gares avatar gares commented on August 19, 2024

Here the term T

(fun (_elpi_ctx_entry_0_ : ?e) (s : bi.type)
   (_ : @unify ?e1 ?e3 _elpi_ctx_entry_0_ (bi.sort s)
          (@Some ?e5
             (@pair ?e7 ?e9
                (String ... EmptyString))))))))))))))))))))
                bi.type))) (c : bi.axioms _elpi_ctx_entry_0_)
   (_ : @unify ?e11 ?e13 s (bi.Pack _elpi_ctx_entry_0_ c) (@None ?e15))
   (m : Bi_of_TYPE.axioms_ _elpi_ctx_entry_0_)
   (_ : @unify ?e17 ?e19 c (bi.Class _elpi_ctx_entry_0_ m) (@None ?e21))
   (sbi_later : forall _ : _elpi_ctx_entry_0_, _elpi_ctx_entry_0_)
   (sbi_internal_eq : forall (T : ofeT) (_ : ofe_car T) (_ : ofe_car T),
                      _elpi_ctx_entry_0_)
   (sbi_mixin_later_intro : forall P : _elpi_ctx_entry_0_,
                            @bi_entails (PROP_is_a_bi _elpi_ctx_entry_0_ m) P
                              (sbi_later P)) =>
 Axioms_ _elpi_ctx_entry_0_ m sbi_later sbi_internal_eq sbi_mixin_later_intro)

from hierarchy-builder.

gares avatar gares commented on August 19, 2024

Looks like a universe issue, the real error message is that @Some ?e (pair "eeee" bi.type) is wrong because the implicit type ?e for Some is not a unifiable with (string * Type) and I suspect it is the type of bi.type that make it fail.

from hierarchy-builder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.