doc: add comment describing why examples fail
cc @dselsam
This commit is contained in:
parent
90455e201f
commit
a768aa0d1c
1 changed files with 6 additions and 0 deletions
|
|
@ -7,6 +7,12 @@ def works : Prop :=
|
|||
let ⟨foo₁, foo₂⟩ := (foo, foo);
|
||||
false
|
||||
|
||||
/-
|
||||
The following tests fail because the elaborator fails to propagate the expected type. The main issue is that the elaborator is missing the following case:
|
||||
|
||||
If the expected type is `Prop` for an expression `Forall (x : A), t`, then we should also elaborate `t` with expected type `Prop`. Note that every single example works if we write them as `Forall (x : A), (t : Prop)`.
|
||||
-/
|
||||
|
||||
/- Uncommenting breaks it -/
|
||||
def fails₁ : Prop :=
|
||||
∀ (x : Foo),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue