Skip to content

Instantly share code, notes, and snippets.

@cppio
Created November 21, 2024 01:55
Show Gist options
  • Save cppio/93f78f2d3dcb00cfe007dc2e6867d2b4 to your computer and use it in GitHub Desktop.
Save cppio/93f78f2d3dcb00cfe007dc2e6867d2b4 to your computer and use it in GitHub Desktop.
def foo : x = y → Bool := Eq.rec true
theorem bar : False = PEmpty := propext ⟨False.elim, PEmpty.elim⟩
theorem baz : Quot.mk (fun _ _ => True) false = Quot.mk _ true := Quot.sound trivial
theorem qux : foo h = true := h.rec (motive := fun _ h => h.rec true = true) rfl
example : foo bar = true := rfl
example : foo baz = true := rfl
example : foo bar = true := qux
example : foo baz = true := qux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment