A place of your own for any Lean you want to try: no steps, no checks, nothing to follow. Change Main.lean, add files, break things. Your files live in the folder ~/playground and stay in this browser.
Run (Ctrl+Enter, ⌘↵ on a Mac) compiles every .java file in the folder and runs Main.lean.
The files panel adds, renames and deletes files and folders; a folder is a package. Ctrl+B (⌘B on a Mac) in the editor shows or hides it, Ctrl+P (⌘P) opens a file by name.
The Terminal tab is a Linux shell: cd ~/playground, then javac, java or anything else.
Reset code in the ⋯ menu puts the starter Main.lean back and deletes every other file in the folder.
-- Your own Lean file. Press Run, then put the cursor
-- on each line of the proof to see its goal.
#eval 2 + 3
theorem swap (p q : Prop) (h : p ∧ q) : q ∧ p := by
obtain ⟨hp, hq⟩ := h
exact ⟨hq, hp⟩
-- Your own Lean file. Press Run, then put the cursor
-- on each line of the proof to see its goal.
#eval 2 + 3
theorem swap (p q : Prop) (h : p ∧ q) : q ∧ p := by
obtain ⟨hp, hq⟩ := h
exact ⟨hq, hp⟩