Comments (5)
this has happened to me, too; I decided to live with it; I suppose it really is a bug?
from coq.
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.
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.
It works for me now too (with the right parentheses)!
from coq.
No longer relevant, closing.
from coq.
Related Issues (20)
- abstract creates duplicate theorems / Anomaly: Backtrack.backto 55: a state with no vcs_backup. Please report. (polyproj)
- Most recent version of trunk-polyproj will not build HOT 1
- Anomaly: Uncaught exception Not_found(_). Please report. (polyproj)
- [abstract] duplicates fresh lemmas in universe polymorphic mode (polyproj) HOT 1
- Application Error: The 1st term has type "Univalence (* Top.934 Top.935 Top.936 Top.937 *)" which should be coercible to "Univalence (* Top.1003 Top.1003 Top.1001 Top.997 *)". (polyproj)
- [change ... in *] picks universes once, which unifies universes too eagerly (polyproj)
- "Unable to handle arbitrary u+k <= v constraints" should probably be an Error, not an Anomaly (polyproj)
- Anomaly: not an arity. Please report. (polyproj)
- Error: No such section variable or assumption: U' at section end (HoTT/coq)
- Anomaly: unknown meta ?190. Please report. (HoTT/coq)
- Error: Unable to satisfy the following constraints (bug in typeclass resolution?) (polyproj)
- Sometimes, universe polymorphic definitions aren't polymorphic enough (but making them more polymorphic might break other things) (polyproj)
- HoTT/coq's universe inconsistencies do not respect delta (polyproj) (maybe?) HOT 13
- Error: Unsatisfied constraints: <universe constraints> (polyproj)
- Stack overflow on "Hint Rewrite @<primitive projection>" (polyproj)
- Stack overflow on [Defined] (polyproj)
- Universe polymorphism breaks record eta (polyproj)
- Syntax for explicit universe levels HOT 2
- Anomaly: variable n unbound. (using [transparent assert])
- Multiple definition of the extension constructor name Found. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coq.