Created
November 11, 2011 15:27
-
-
Save wires/1358259 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Require Import canonical_names. | |
Class Foo A := foo: A → A. | |
Instance kaas0 X : Foo X := @id X. | |
(* kaas0 = λ X : Type, id | |
: ∀ X : Type, Foo X | |
Argument scope is [type_scope] *) | |
Instance kaas1 : ∀ X, Foo X := λ X, @id X. | |
(* kaas1 = λ X : Type, id | |
: ∀ X : Type, Foo X | |
Argument scope is [type_scope] *) | |
Instance kaas2 : Foo X := fun X => @id X. | |
(* kaas2 = λ X : Type, id | |
: ∀ X : Type, Foo X | |
Argument X is implicit and maximally inserted | |
Argument scope is [type_scope] *) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment