You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@florian-rabe Do you have any idea what the error could be?
This typechecks fine:
theory RoleSimplifyBug =
include ☞latin:?TypedEquality ❙
include ☞latin:?Proofs ❙
my_rule : {A,a: tm A} ⊦ a ≐ a ❙ // ❘ role Simplify ❙
❚
view RoleSimplifyBug_view : ?RoleSimplifyBug -> ?RoleSimplifyBug =
include ☞latin:?TypedEquality ❙
my_rule = ?RoleSimplifyBug?my_rule ❙
❚
When commenting in the role Simplify for my_rule, I get:
the view's include errors with
unknown error in declaration: general error: error while simplifying COMPOSE(composition)
the view's constant assignment errors with
error while adding successfully parsed element latin:/playground?RoleSimplifyBug_view?[latin:/playground?RoleSimplifyBug]/my_rule: general error: error while simplifying {A,a:tm A}⊦a≐a
(Pi [A : tp, a : (apply tm A)] (apply ded (apply equal A a a)))
The text was updated successfully, but these errors were encountered:
my_rule does not have the shape of a simplification rule. Or if it does, it would nonsensically rewrite a ---> a.
That's probably causing errors downstream.
error while adding successfully parsed element latin:/playground?RoleSimplifyBug_view?[latin:/?Proofs]: add error: a declaration for the name [Proofs] already exists
That's the case independent of whether I have a ---> a or something like a ∘ a ---> a as my_rule:
theory RoleSimplifyBugABC =
include ☞latin:?TypedEquality ❙
include ☞latin:?Proofs ❙
my_op : {A: tp} tm A ⟶ tm A ⟶ tm A ❘ # 2 ∘ 3 prec 100 ❙
my_rule : {A: tp,a: tm A} ⊦ my_op A a a ≐ a ❙ // ❘ role Simplify ❙
❚
view RoleSimplifyBug_view : ?RoleSimplifyBugABC -> ?RoleSimplifyBugABC =
include ☞latin:?TypedEquality ❙
include ☞latin:?Proofs ❙
my_op = ?RoleSimplifyBugABC?my_op ❙
my_rule = ?RoleSimplifyBugABC?my_rule ❙
❚
Perhaps we can discuss this tomorrow in our meeting.
The reproducing example below can be found in LATIN2: https://gl.mathhub.info/MMT/LATIN2/-/blob/devel/source/playground.mmt.
@florian-rabe Do you have any idea what the error could be?
This typechecks fine:
When commenting in the
role Simplify
formy_rule
, I get:the view's include errors with
the view's constant assignment errors with
The text was updated successfully, but these errors were encountered: