Skip to content

Instantly share code, notes, and snippets.

View PatrickMassot's full-sized avatar

Patrick Massot PatrickMassot

View GitHub Profile
@PatrickMassot
PatrickMassot / lean.json
Created February 12, 2019 13:13
VScode user code snippets for Lean
{
"Type*": {
"prefix": "Type*",
"body": [
"{$1 : Type*}$0"
],
"description": "Type* variable",
},
"Variables": {
"prefix": "var",
@PatrickMassot
PatrickMassot / proof_tutorial.lean
Last active November 16, 2023 01:13
First proofs in Lean
/-
This file is intended for Lean beginners. The goal is to demonstrate what it feels like to prove
things using Lean and mathlib. Complicated definitions and theory building are not covered.
-/
-- We want real numbers and their basic properties
import data.real.basic
-- We want to be able to define functions using the law of excluded middle
local attribute [instance, priority 0] classical.prop_decidable