Git Product home page Git Product logo

Comments (5)

jcmckeown avatar jcmckeown commented on June 22, 2024

this has happened to me, too; I decided to live with it; I suppose it really is a bug?

from coq.

mikeshulman avatar mikeshulman commented on June 22, 2024

It appears to be specific to HoTT/Coq, at least: Peter tried it with unmodified Coq this afternoon and it worked fine.

It seems to me like a bug if there is a term which cannot be written explicitly, or if there is a way to write it explicitly but Set Printing All does not give us that way.

from coq.

mattam82 avatar mattam82 commented on June 22, 2024

It seems unrelated to polymorphism, to me. Using the latest HoTT/coq, when typechecking:

Definition flip_P_is_retr1 : forall g, flip_P_inv (flip_P g) = g.

The equality is parsed as an @eq instead of @equals.
Using:
Infix "=" := equals : type_scope.

I get the right definition and both flip_P_is_retr1 and flip_P_is_retr2 work (whether or not [Set Universe Polymorphism] is set.

As for flip_P_is_retr3, using the right parentheses, it works for me:

Definition flip_P_is_retr3 : forall g, equals (flip_P_inv (flip_P g)) g
:=
((fun g : forall (a : A) (b : B), P a b =>
@refl (forall (a : A) (b : B), P a b) g)
: forall g : forall (a : A) (b : B), P a b,
@equals
(forall (b : A) (a : B),
@Flip A B (fun (_ : A) (_ : B) => Type) P a b)
(flip_P_inv (flip_P g)) g).

Maybe I'm not reproducing the same behavior here.

from coq.

mikeshulman avatar mikeshulman commented on June 22, 2024

It works for me now too (with the right parentheses)!

from coq.

mattam82 avatar mattam82 commented on June 22, 2024

No longer relevant, closing.

from coq.

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.