Skip to content

Instantly share code, notes, and snippets.

@aqjune
Created March 15, 2018 23:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aqjune/32f7a261149a7a7b69bbc77e6e81c0fa to your computer and use it in GitHub Desktop.
Save aqjune/32f7a261149a7a7b69bbc77e6e81c0fa to your computer and use it in GitHub Desktop.
Lean example
class C {α:ℕ → Type} :=
(myf:α 1 → α 1 → α 1)
(cx cy:α 1)
variable {α:ℕ → Type}
variable [s1:@C α]
include s1
def f1 := C.myf (C.cx α) (C.cy α)
def f2 := f1 /- don't know how to synthesize placeholder
context:
α : ℕ → Type,
s1 : C
⊢ ℕ → Type
f1 : Π {α : ℕ → Type} [s1 : C], α 1 -/
omit s1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment