31 lines
667 B
Text
31 lines
667 B
Text
example (P : Prop) : ∀ {p : P}, P := by
|
|
exact fun {p} => p
|
|
|
|
example (P : Prop) : ∀ {p : P}, P := by
|
|
intro h; exact h
|
|
|
|
example (P : Prop) : ∀ {p : P}, P := by
|
|
exact @id _
|
|
|
|
example (P : Prop) : ∀ {p : P}, P := by
|
|
exact noImplicitLambda% id
|
|
|
|
macro "exact'" x:term : tactic => `(exact noImplicitLambda% $x)
|
|
|
|
example (P : Prop) : ∀ {p : P}, P := by
|
|
exact' id
|
|
|
|
example (P : Prop) : ∀ {p : P}, P := by
|
|
apply id
|
|
|
|
example (P : Prop) : ∀ p : P, P := by
|
|
have : _ := 1
|
|
apply id
|
|
|
|
example (P : Prop) : ∀ {p : P}, P := by
|
|
refine noImplicitLambda% (have : _ := 1; ?_)
|
|
apply id
|
|
|
|
example (P : Prop) : ∀ {p : P}, P := by
|
|
have : _ := 1
|
|
apply id
|