Before this commit, an user could define their own prelude and change the types of quot, quot.mk, quot.lift or quot.ind. By doing that, they could prove false. This commit prevents this kind of abuse. It also modifies the definition of `quot` and avoids the `setoid` dependency. The previous `quot` type is now called `quotient`, and it is defined using the new `quot` type provided by the kernel. See discussion at #1330
6 lines
217 B
Text
6 lines
217 B
Text
open quotient
|
|
|
|
variables {A : Type} [s : setoid A] {B : quotient s → Prop} (c : ∀ (a : A), B (quotient.mk a)) (a : A)
|
|
check (quotient.ind c ⟦a⟧ : B ⟦a⟧)
|
|
check c a
|
|
eval (quotient.ind c ⟦a⟧ : B ⟦a⟧)
|