virt2/assets/vendor_plugins/ace-builds-master/demo/kitchen-sink/docs/lean.lean

10 lines
213 B
Plaintext
Raw Permalink Normal View History

import logic
section
variables (A : Type) (p q : A → Prop)
example : (∀x : A, p x ∧ q x) → ∀y : A, p y :=
assume H : ∀x : A, p x ∧ q x,
take y : A,
show p y, from and.elim_left (H y)
end