Skip to content

Do not create/display superfluous metas and show constraints in a readable way #3606

Closed

Description

@guillaumebrunerie

(related to #3605, but without cubical features)
When loading the code below, it gives two unsolved metas and an "error" about some constraint not being solved. Yet the hole can simply be filled with x and it works. From a user point of view, I don’t see why there should be unsolved metas, it’s confusing that Agda reports an error, and the whole thing is not very readable.

postulate
  A : Set
  P : A → Set

record ΣAP : Set where
  no-eta-equality
  field
    fst : A
    snd : P fst
open ΣAP

test : (x : ΣAP) → P (fst x)
test x = snd {!!}

Output of C-c C-l:

?0 : ΣAP
_6 : P (fst x)  [ at […]:13,10-18 ]
_7 : P (fst x)  [ at […]:13,10-18 ]

———— Errors ————————————————————————————————————————————————
Failed to solve the following constraints:
  _6 := λ x → snd (?0 (x = x)) [blocked on problem 9]
  [9, 10] fst ?0 = fst x : A

Expected result:

?0 : ΣAP

———— Constraints ————————————————————————————————————————————————
fst ?0 = fst x : A

Activity

  1. added
    type: enhancement
    ux: error reporting
    meta
    constraints
    on Mar 4, 2019
  2. added this to the 2.6.1 milestone on Mar 4, 2019
  3. jespercockx commented on Mar 4, 2019

    @jespercockx
    Member

    I expect this would greatly improve the readability of many of the eldritch invocations that Agda regularly spews at the user.

  4. Saizan commented on Mar 12, 2019

    @Saizan
    Collaborator

    I would guess that one reason for showing these blocking metas _8, _9, .. is so that you do not expect some reduction that won't happen.

    For example in the following you have ?1 of type isTrue _9. We have that isTrue _9 is not definitionally ⊤ until we have given a sensible definition to A. So showing ?1 : isTrue x would be misleading as well.

    However, we can probably find a better way to convey this?

    It's also puzzling why we do not get a definition for _9 displayed.

    open import Agda.Builtin.Bool
    open import Agda.Builtin.Unit
    
    data ⊥ : Set where
    
    isTrue : Bool → Set
    isTrue true = ⊤
    isTrue false = ⊤
    
    A : Bool → Set
    A = { }0
    
    x : A true
    x = true
    
    test : isTrue x
    test = { }1

    Information buffer:

    ?0 : Bool → Set
    ?1 : isTrue _9
    _5 : ?0 true  [ at Issue3606.agda:16,5-9 ]
    _6 : ?0 true  [ at Issue3606.agda:16,5-9 ]
    _8 : Bool  [ at Issue3606.agda:18,15-16 ]
    _9 : Bool  [ at Issue3606.agda:18,15-16 ]
    
    ———— Errors ————————————————————————————————————————————————
    Failed to solve the following constraints:
      _8 := x [blocked on problem 12]
      [12] ?0 true =< Bool : Set
      _5 := true [blocked on problem 11]
      [11] Bool =< ?0 true : Set
    
  5. guillaumebrunerie commented on Mar 12, 2019

    @guillaumebrunerie
    MemberAuthor

    I don’t really understand your example, it seems to me that the only constraint here is

    ?0 true == Bool : Set

    And whatever (sensible) definition you give for A, you will always have that ?1 : isTrue x and that isTrue x reduces to ⊤.
    But we don’t know yet that isTrue x is well-typed (it depends on the constraint being satisfied), so maybe this is what prevents Agda from reducing it anyway? I’m not familiar with the way Agda handles constraints and not-yet-well-typed terms.

    As a variant of your example, I tried to replace the definition of A by

    A : Bool → Set
    A true = {!!}
    A false = {!!}

    but it still gives essentially the same thing. Why can’t Agda figure out that the goal in A true = ? must be Bool?

  6. Saizan commented on Mar 12, 2019

    @Saizan
    Collaborator

    In particular in my example we don't know that the definition of x is well-typed, so x will not reduce to true. The way I see it is that Agda is trying to enforce that both type preservation and typing inversion lemmas hold at all times, without assuming that the outstanding constraints are true.

    In your variation where A is defined by cases there's the additional complication that metas created as part of a mutual block are frozen at the end of it. This was a design choice taken to avoid code much later in the file determining what an earlier meta should be.
    The following does allow Agda to determine that ?2 should be Bool

     mutual
        A : Bool → Set
        A true = { }2
        A false = { }3
    
        x : A true
        x = true
  7. Saizan commented on Mar 13, 2019

    @Saizan
    Collaborator

    I did some digging and discovered why we get some metas like _9 above, with no constrains displayed. Tracing it back to commit adf9065 .
    In particular there's a comment motivating the behavior: adf9065#diff-32adfcdd487db3ba46f6896d55c5ae44R266

    Whenever a term is blocked into a meta m such meta m is not passed around, instead another meta m1 is generated and returned as the actual term so that m1 will accumulate further unification constrains and possibly get solved. Whenever m gets unblocked Agda constraints m and m1 to be equal, keeping everything in sync.

    So in a situation where m is still blocked and m1 did not get solved we get things like _9 above, which seem disconnected from anything else.

  8. Saizan commented on Apr 12, 2019

    @Saizan
    Collaborator

    @UlfNorell @andreasabel @jespercockx @nad Anyone opposed to instantiating away blocking metas when printing out constraints?

  9. xekoukou commented on Apr 16, 2019

    @xekoukou

    Here is one error message I get because it can not find 3 implicit arguments on a SINGLE function. Error messages do not help at all.

    ?0 : (Γ PA ⟶ Γ (Γ PA)) a
    _a_1594 : ℕ → A  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-50 ]
    _b_1595 : ℕ → A  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-50 ]
    _1596 : A ʷ∥ suc x₁  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,51-54 ]
    _1597 : A ʷ∥ suc x₁  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,51-54 ]
    _1598 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,51-54 ]
    _1599 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,51-54 ]
    _1600 : A ʷ∥ suc x₂  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,51-54 ]
    _1601 : A ʷ∥ suc x₂  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,51-54 ]
    _1602 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,51-54 ]
    _1603 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,51-54 ]
    _1604 : A ʷ∥ suc x₁  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,51-54 ]
    _1605 : A ʷ∥ suc x₁  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,51-54 ]
    _1606 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,51-54 ]
    _1607 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,51-54 ]
    _1608 : A ʷ∥ suc x₂  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,51-54 ]
    _1609 : A ʷ∥ suc x₂  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,51-54 ]
    _1610 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,51-54 ]
    _1611 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,51-54 ]
    _1612 : Set  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,51-54 ]
    _1613 : Set  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,51-54 ]
    _1614 : A ʷ∥ suc x₁  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,51-54 ]
    _1615 : A ʷ∥ suc x₁  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,51-54 ]
    _1616 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,51-54 ]
    _1617 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,51-54 ]
    _1618 : A ʷ∥ suc x₂  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,51-54 ]
    _1619 : A ʷ∥ suc x₂  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,51-54 ]
    _1620 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,51-54 ]
    _1621 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,51-54 ]
    _1622
      : (m : ℕ) →
        ∃
        (λ n →
           ∃
           (λ k →
              m ≤ n ×
              m ≤ k × ((λ fn → _a_1594 (toℕ fn)) ≃ᶠ (λ fn → _b_1595 (toℕ fn)))))  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,51-54 ]
    _1623
      : (m : ℕ) →
        ∃
        (λ n →
           ∃
           (λ k →
              m ≤ n ×
              m ≤ k × ((λ fn → _a_1594 (toℕ fn)) ≃ᶠ (λ fn → _b_1595 (toℕ fn)))))  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,51-54 ]
    _c_1624 : ℕ → A  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-50 ]
    _1625 : A ʷ∥ suc x₁  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,55-58 ]
    _1626 : A ʷ∥ suc x₁  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,55-58 ]
    _1627 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,55-58 ]
    _1628 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,55-58 ]
    _1629 : A ʷ∥ suc x₂  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,55-58 ]
    _1630 : A ʷ∥ suc x₂  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,55-58 ]
    _1631 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,55-58 ]
    _1632 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,55-58 ]
    _1633 : A ʷ∥ suc x₁  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,55-58 ]
    _1634 : A ʷ∥ suc x₁  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,55-58 ]
    _1635 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,55-58 ]
    _1636 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,55-58 ]
    _1637 : A ʷ∥ suc x₂  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,55-58 ]
    _1638 : A ʷ∥ suc x₂  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,55-58 ]
    _1639 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,55-58 ]
    _1640 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,55-58 ]
    _1641 : Set  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,55-58 ]
    _1642 : Set  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,55-58 ]
    _1643 : A ʷ∥ suc x₁  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,55-58 ]
    _1644 : A ʷ∥ suc x₁  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,55-58 ]
    _1645 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,55-58 ]
    _1646 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,55-58 ]
    _1647 : A ʷ∥ suc x₂  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,55-58 ]
    _1648 : A ʷ∥ suc x₂  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,55-58 ]
    _1649 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,55-58 ]
    _1650 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,55-58 ]
    _1651
      : (m : ℕ) →
        ∃
        (λ n →
           ∃
           (λ k →
              m ≤ n ×
              m ≤ k × ((λ fn → _b_1595 (toℕ fn)) ≃ᶠ (λ fn → _c_1624 (toℕ fn)))))  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,55-58 ]
    _1652
      : (m : ℕ) →
        ∃
        (λ n →
           ∃
           (λ k →
              m ≤ n ×
              m ≤ k × ((λ fn → _b_1595 (toℕ fn)) ≃ᶠ (λ fn → _c_1624 (toℕ fn)))))  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,55-58 ]
    _1653 : A ʷ∥ suc x₁  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-58 ]
    _1654 : A ʷ∥ suc x₁  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-58 ]
    _1655 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-58 ]
    _1656 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-58 ]
    _1657 : A ʷ∥ suc x₂  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-58 ]
    _1658 : A ʷ∥ suc x₂  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-58 ]
    _1659 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-58 ]
    _1660 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-58 ]
    _1661 : A ʷ∥ suc x₁  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-58 ]
    _1662 : A ʷ∥ suc x₁  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-58 ]
    _1663 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-58 ]
    _1664 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-58 ]
    _1665 : A ʷ∥ suc x₂  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-58 ]
    _1666 : A ʷ∥ suc x₂  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-58 ]
    _1667 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-58 ]
    _1668 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-58 ]
    _1669 : Set  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-58 ]
    _1670 : Set  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-58 ]
    _1671 : A ʷ∥ suc x₁  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-58 ]
    _1672 : A ʷ∥ suc x₁  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-58 ]
    _1673 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-58 ]
    _1674 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-58 ]
    _1675 : A ʷ∥ suc x₂  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-58 ]
    _1676 : A ʷ∥ suc x₂  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-58 ]
    _1677 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-58 ]
    _1678 : ℕ  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-58 ]
    _1679
      : (m : ℕ) →
        ∃
        (λ n →
           ∃
           (λ k →
              m ≤ n × m ≤ k × ((λ fn → a (toℕ fn)) ≃ᶠ (λ fn → q (toℕ fn)))))  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-58 ]
    _1680
      : (m : ℕ) →
        ∃
        (λ n →
           ∃
           (λ k →
              m ≤ n × m ≤ k × ((λ fn → a (toℕ fn)) ≃ᶠ (λ fn → q (toℕ fn)))))  [ at /nest/Workspace/TLA_v3/src/TLA/Stuttering.agda:275,42-58 ]
    
    ———— Errors ————————————————————————————————————————————————
    Failed to solve the following constraints:
      _1679
        := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q q∈PA →
             lemma-31
             (_1623 (a = a) (s = s) (a≃s = a≃s) (q = q) (s≃q = s≃q)
              (q∈PA = q∈PA))
             (_1652 (a = a) (s = s) (a≃s = a≃s) (q = q) (s≃q = s≃q)
              (q∈PA = q∈PA))
        [blocked on problem 5691]
      [5691, 5696, 5700, 5704, 5708, 5728, 5746, 5764, 5770] _1677
                                                               := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q
                                                                    q∈PA m x x₁ x₂ x₃ x₄ x₅ fn →
                                                                    proj₁
                                                                    (St.♮ᶠ
                                                                     (λ fn₁ →
                                                                        _c_1624 (q = q) (toℕ fn₁)))
                                                               [blocked on problem 5778]
      [5691, 5696, 5700, 5704, 5708, 5728, 5746, 5764, 5770] _1675
                                                               := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q
                                                                    q∈PA m x x₁ x₂ x₃ x₄ x₅ fn fn₁ →
                                                                    _c_1624 (q = q) (toℕ fn₁)
                                                               [blocked on problem 5778]
      [5691, 5696, 5700, 5704, 5708, 5728, 5746, 5764, 5770, 5778, 5779,
       5784] _c_1624 (toℕ x) = q (toℕ x) : A
      [5691, 5696, 5700, 5704, 5708, 5728, 5746, 5764, 5770] _1673
                                                               := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q
                                                                    q∈PA m x x₁ x₂ x₃ x₄ x₅ fn →
                                                                    proj₁
                                                                    (St.♮ᶠ
                                                                     (λ fn₁ →
                                                                        _a_1594 (a = a) (toℕ fn₁)))
                                                               [blocked on problem 5771]
      [5691, 5696, 5700, 5704, 5708, 5728, 5746, 5764, 5770] _1671
                                                               := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q
                                                                    q∈PA m x x₁ x₂ x₃ x₄ x₅ fn fn₁ →
                                                                    _a_1594 (a = a) (toℕ fn₁)
                                                               [blocked on problem 5771]
      [5691, 5696, 5700, 5704, 5708, 5728, 5746, 5764, 5770, 5771, 5772,
       5777] _a_1594 (toℕ x) = a (toℕ x) : A
      [5691, 5696, 5700, 5704, 5708, 5728, 5746, 5764, 5769] _c_1624
                                                             (toℕ x)
                                                               = q (toℕ x)
                                                               : A
      [5691, 5696, 5700, 5704, 5708, 5728, 5746, 5757, 5762] _a_1594
                                                             (toℕ x)
                                                               = a (toℕ x)
                                                               : A
      [5691, 5696, 5700, 5704, 5708, 5728, 5746] _1669
                                                   := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q q∈PA m x x₁ x₂
                                                        x₃ x₄ x₅ →
                                                        Fin (suc (proj₁ (St.♮ᶠ (λ fn → a (toℕ fn)))))
                                                   [blocked on problem 5747]
      [5691, 5696, 5700, 5704, 5708, 5728, 5746, 5747, 5748, 5749,
       5754] a (toℕ x) = _a_1594 (toℕ x) : A
      [5691, 5696, 5700, 5704, 5708, 5728] _1667
                                             := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q q∈PA m x x₁ x₂ x₃
                                                  x₄ →
                                                  proj₁ (St.♮ᶠ (λ fn → _c_1624 (q = q) (toℕ fn)))
                                             [blocked on problem 5731]
      [5691, 5696, 5700, 5704, 5708, 5728] _1665
                                             := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q q∈PA m x x₁ x₂ x₃ x₄
                                                  fn →
                                                  _c_1624 (q = q) (toℕ fn)
                                             [blocked on problem 5731]
      [5691, 5696, 5700, 5704, 5708, 5728] _1663
                                             := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q q∈PA m x x₁ x₂ x₃
                                                  x₄ →
                                                  proj₁ (St.♮ᶠ (λ fn → _a_1594 (a = a) (toℕ fn)))
                                             [blocked on problem 5731]
      [5691, 5696, 5700, 5704, 5708, 5728] _1661
                                             := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q q∈PA m x x₁ x₂ x₃ x₄
                                                  fn →
                                                  _a_1594 (a = a) (toℕ fn)
                                             [blocked on problem 5731]
      [5691, 5696, 5700, 5704, 5708, 5728, 5731, 5739, 5740,
       5745] _c_1624 (toℕ x) = q (toℕ x) : A
      [5691, 5696, 5700, 5704, 5708, 5728, 5731, 5732, 5733,
       5738] _a_1594 (toℕ x) = a (toℕ x) : A
      [5691, 5696, 5700, 5704, 5708] _1659
                                       := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q q∈PA m x x₁ x₂ x₃ →
                                            proj₁ (St.♮ᶠ (λ fn → _c_1624 (q = q) (toℕ fn)))
                                       [blocked on problem 5711]
      [5691, 5696, 5700, 5704, 5708] _1657
                                       := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q q∈PA m x x₁ x₂ x₃ fn →
                                            _c_1624 (q = q) (toℕ fn)
                                       [blocked on problem 5711]
      [5691, 5696, 5700, 5704, 5708] _1655
                                       := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q q∈PA m x x₁ x₂ x₃ →
                                            proj₁ (St.♮ᶠ (λ fn → _a_1594 (a = a) (toℕ fn)))
                                       [blocked on problem 5711]
      [5691, 5696, 5700, 5704, 5708] _1653
                                       := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q q∈PA m x x₁ x₂ x₃ fn →
                                            _a_1594 (a = a) (toℕ fn)
                                       [blocked on problem 5711]
      [5691, 5696, 5700, 5704, 5708, 5711, 5721, 5722, 5727] _c_1624
                                                             (toℕ x)
                                                               = q (toℕ x)
                                                               : A
      [5691, 5696, 5700, 5704, 5708, 5711, 5714, 5715, 5720] _a_1594
                                                             (toℕ x)
                                                               = a (toℕ x)
                                                               : A
      _1651 := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q q∈PA → s≃q
        [blocked on problem 5595]
      [5595, 5600, 5604, 5608, 5612, 5632, 5650, 5668, 5674] _1649
                                                               := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q
                                                                    q∈PA m x x₁ x₂ x₃ x₄ x₅ fn →
                                                                    proj₁ (St.♮ᶠ (λ fn₁ → q (toℕ fn₁)))
                                                               [blocked on problem 5682]
      [5595, 5600, 5604, 5608, 5612, 5632, 5650, 5668, 5674] _1647
                                                               := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q
                                                                    q∈PA m x x₁ x₂ x₃ x₄ x₅ fn fn₁ →
                                                                    q (toℕ fn₁)
                                                               [blocked on problem 5682]
      [5595, 5600, 5604, 5608, 5612, 5632, 5650, 5668, 5674, 5682, 5683,
       5688] q (toℕ x) = _c_1624 (toℕ x) : A
      [5595, 5600, 5604, 5608, 5612, 5632, 5650, 5668, 5674] _1645
                                                               := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q
                                                                    q∈PA m x x₁ x₂ x₃ x₄ x₅ fn →
                                                                    proj₁ (St.♮ᶠ (λ fn₁ → s (toℕ fn₁)))
                                                               [blocked on problem 5675]
      [5595, 5600, 5604, 5608, 5612, 5632, 5650, 5668, 5674] _1643
                                                               := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q
                                                                    q∈PA m x x₁ x₂ x₃ x₄ x₅ fn fn₁ →
                                                                    s (toℕ fn₁)
                                                               [blocked on problem 5675]
      [5595, 5600, 5604, 5608, 5612, 5632, 5650, 5668, 5674, 5675, 5676,
       5681] s (toℕ x) = _b_1595 (toℕ x) : A
      [5595, 5600, 5604, 5608, 5612, 5632, 5650, 5668, 5673] q (toℕ x)
                                                               = _c_1624 (toℕ x)
                                                               : A
      [5595, 5600, 5604, 5608, 5612, 5632, 5650, 5661, 5666] s (toℕ x)
                                                               = _b_1595 (toℕ x)
                                                               : A
      [5595, 5600, 5604, 5608, 5612, 5632, 5650] _1641
                                                   := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q q∈PA m x x₁ x₂
                                                        x₃ x₄ x₅ →
                                                        Fin
                                                        (suc
                                                         (proj₁
                                                          (St.♮ᶠ (λ fn → _b_1595 (s = s) (toℕ fn)))))
                                                   [blocked on problem 5651]
      [5595, 5600, 5604, 5608, 5612, 5632, 5650, 5651, 5652, 5653,
       5658] _b_1595 (toℕ x) = s (toℕ x) : A
      [5595, 5600, 5604, 5608, 5612, 5632] _1639
                                             := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q q∈PA m x x₁ x₂ x₃
                                                  x₄ →
                                                  proj₁ (St.♮ᶠ (λ fn → q (toℕ fn)))
                                             [blocked on problem 5635]
      [5595, 5600, 5604, 5608, 5612, 5632] _1637
                                             := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q q∈PA m x x₁ x₂ x₃ x₄
                                                  fn →
                                                  q (toℕ fn)
                                             [blocked on problem 5635]
      [5595, 5600, 5604, 5608, 5612, 5632] _1635
                                             := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q q∈PA m x x₁ x₂ x₃
                                                  x₄ →
                                                  proj₁ (St.♮ᶠ (λ fn → s (toℕ fn)))
                                             [blocked on problem 5635]
      [5595, 5600, 5604, 5608, 5612, 5632] _1633
                                             := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q q∈PA m x x₁ x₂ x₃ x₄
                                                  fn →
                                                  s (toℕ fn)
                                             [blocked on problem 5635]
      [5595, 5600, 5604, 5608, 5612, 5632, 5635, 5643, 5644, 5649] q
                                                                   (toℕ x)
                                                                     = _c_1624 (toℕ x)
                                                                     : A
      [5595, 5600, 5604, 5608, 5612, 5632, 5635, 5636, 5637, 5642] s
                                                                   (toℕ x)
                                                                     = _b_1595 (toℕ x)
                                                                     : A
      [5595, 5600, 5604, 5608, 5612] _1631
                                       := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q q∈PA m x x₁ x₂ x₃ →
                                            proj₁ (St.♮ᶠ (λ fn → q (toℕ fn)))
                                       [blocked on problem 5615]
      [5595, 5600, 5604, 5608, 5612] _1629
                                       := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q q∈PA m x x₁ x₂ x₃ fn →
                                            q (toℕ fn)
                                       [blocked on problem 5615]
      [5595, 5600, 5604, 5608, 5612] _1627
                                       := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q q∈PA m x x₁ x₂ x₃ →
                                            proj₁ (St.♮ᶠ (λ fn → s (toℕ fn)))
                                       [blocked on problem 5615]
      [5595, 5600, 5604, 5608, 5612] _1625
                                       := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q q∈PA m x x₁ x₂ x₃ fn →
                                            s (toℕ fn)
                                       [blocked on problem 5615]
      [5595, 5600, 5604, 5608, 5612, 5615, 5625, 5626, 5631] q (toℕ x)
                                                               = _c_1624 (toℕ x)
                                                               : A
      [5595, 5600, 5604, 5608, 5612, 5615, 5618, 5619, 5624] s (toℕ x)
                                                               = _b_1595 (toℕ x)
                                                               : A
      _1622 := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q q∈PA → a≃s
        [blocked on problem 5499]
      [5499, 5504, 5508, 5512, 5516, 5536, 5554, 5572, 5578] _1620
                                                               := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q
                                                                    q∈PA m x x₁ x₂ x₃ x₄ x₅ fn →
                                                                    proj₁ (St.♮ᶠ (λ fn₁ → s (toℕ fn₁)))
                                                               [blocked on problem 5586]
      [5499, 5504, 5508, 5512, 5516, 5536, 5554, 5572, 5578] _1618
                                                               := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q
                                                                    q∈PA m x x₁ x₂ x₃ x₄ x₅ fn fn₁ →
                                                                    s (toℕ fn₁)
                                                               [blocked on problem 5586]
      [5499, 5504, 5508, 5512, 5516, 5536, 5554, 5572, 5578, 5586, 5587,
       5592] s (toℕ x) = _b_1595 (toℕ x) : A
      [5499, 5504, 5508, 5512, 5516, 5536, 5554, 5572, 5578] _1616
                                                               := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q
                                                                    q∈PA m x x₁ x₂ x₃ x₄ x₅ fn →
                                                                    proj₁ (St.♮ᶠ (λ fn₁ → a (toℕ fn₁)))
                                                               [blocked on problem 5579]
      [5499, 5504, 5508, 5512, 5516, 5536, 5554, 5572, 5578] _1614
                                                               := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q
                                                                    q∈PA m x x₁ x₂ x₃ x₄ x₅ fn fn₁ →
                                                                    a (toℕ fn₁)
                                                               [blocked on problem 5579]
      [5499, 5504, 5508, 5512, 5516, 5536, 5554, 5572, 5578, 5579, 5580,
       5585] a (toℕ x) = _a_1594 (toℕ x) : A
      [5499, 5504, 5508, 5512, 5516, 5536, 5554, 5572, 5577] s (toℕ x)
                                                               = _b_1595 (toℕ x)
                                                               : A
      [5499, 5504, 5508, 5512, 5516, 5536, 5554, 5565, 5570] a (toℕ x)
                                                               = _a_1594 (toℕ x)
                                                               : A
      [5499, 5504, 5508, 5512, 5516, 5536, 5554] _1612
                                                   := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q q∈PA m x x₁ x₂
                                                        x₃ x₄ x₅ →
                                                        Fin
                                                        (suc
                                                         (proj₁
                                                          (St.♮ᶠ (λ fn → _a_1594 (a = a) (toℕ fn)))))
                                                   [blocked on problem 5555]
      [5499, 5504, 5508, 5512, 5516, 5536, 5554, 5555, 5556, 5557,
       5562] _a_1594 (toℕ x) = a (toℕ x) : A
      [5499, 5504, 5508, 5512, 5516, 5536] _1610
                                             := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q q∈PA m x x₁ x₂ x₃
                                                  x₄ →
                                                  proj₁ (St.♮ᶠ (λ fn → s (toℕ fn)))
                                             [blocked on problem 5539]
      [5499, 5504, 5508, 5512, 5516, 5536] _1608
                                             := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q q∈PA m x x₁ x₂ x₃ x₄
                                                  fn →
                                                  s (toℕ fn)
                                             [blocked on problem 5539]
      [5499, 5504, 5508, 5512, 5516, 5536] _1606
                                             := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q q∈PA m x x₁ x₂ x₃
                                                  x₄ →
                                                  proj₁ (St.♮ᶠ (λ fn → a (toℕ fn)))
                                             [blocked on problem 5539]
      [5499, 5504, 5508, 5512, 5516, 5536] _1604
                                             := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q q∈PA m x x₁ x₂ x₃ x₄
                                                  fn →
                                                  a (toℕ fn)
                                             [blocked on problem 5539]
      [5499, 5504, 5508, 5512, 5516, 5536, 5539, 5547, 5548, 5553] s
                                                                   (toℕ x)
                                                                     = _b_1595 (toℕ x)
                                                                     : A
      [5499, 5504, 5508, 5512, 5516, 5536, 5539, 5540, 5541, 5546] a
                                                                   (toℕ x)
                                                                     = _a_1594 (toℕ x)
                                                                     : A
      [5499, 5504, 5508, 5512, 5516] _1602
                                       := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q q∈PA m x x₁ x₂ x₃ →
                                            proj₁ (St.♮ᶠ (λ fn → s (toℕ fn)))
                                       [blocked on problem 5519]
      [5499, 5504, 5508, 5512, 5516] _1600
                                       := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q q∈PA m x x₁ x₂ x₃ fn →
                                            s (toℕ fn)
                                       [blocked on problem 5519]
      [5499, 5504, 5508, 5512, 5516] _1598
                                       := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q q∈PA m x x₁ x₂ x₃ →
                                            proj₁ (St.♮ᶠ (λ fn → a (toℕ fn)))
                                       [blocked on problem 5519]
      [5499, 5504, 5508, 5512, 5516] _1596
                                       := λ {ℓ} {A} {dec} {PA} a s a≃s q s≃q q∈PA m x x₁ x₂ x₃ fn →
                                            a (toℕ fn)
                                       [blocked on problem 5519]
      [5499, 5504, 5508, 5512, 5516, 5519, 5529, 5530, 5535] s (toℕ x)
                                                               = _b_1595 (toℕ x)
                                                               : A
      [5499, 5504, 5508, 5512, 5516, 5519, 5522, 5523, 5528] a (toℕ x)
                                                               = _a_1594 (toℕ x)
                                                               : A
    
    
  10. added 3 commits that reference this issue on Apr 26, 2019
  11. 12 remaining items

  12. added 8 commits that reference this issue on May 8, 2019
  13. Saizan commented on Nov 20, 2019

    @Saizan
    Collaborator

    For the original code example we now get the following, which is much closer to the expected.

    ?0 : ΣAP
    
    ———— Errors ————————————————————————————————————————————————
    Failed to solve the following constraints:
      [9, 10] fst ?0 = fst x : A
    

    Things to consider:

    • remove the list of blocking problems [9,10] ?
    • keep the Errors header or turn it into Constraints ?
  14. added 2 commits that reference this issue on Nov 22, 2019
    72fd266
    36e4dc3
  15. added a commit that references this issue on Nov 22, 2019
    77e6c4d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

constraintsmetatype: enhancementux: error reporting

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions