Skip to content

Instantly share code, notes, and snippets.

View gabriel-fallen's full-sized avatar

Alexander Chichigin gabriel-fallen

  • Kontur
  • Tbilisi, Georgia
View GitHub Profile
@gabriel-fallen
gabriel-fallen / examples.lean
Last active September 25, 2023 18:12
Lean 4 "Hello World"
#print List
/-
inductive List A where
| nil : List A
| cons : A -> List A -> List A
-/
/-
@gabriel-fallen
gabriel-fallen / int_lemmas.lean
Created September 27, 2023 12:41
Some basic facts about integers
-- Addition
theorem add_comm : ∀ (n m : Int), n + m = m + n := by
intro n m
simp [HAdd.hAdd, Add.add]
match n, m with
| Int.ofNat m, Int.ofNat n =>
simp [Int.add]
apply Nat.add_comm