Skip to content

Instantly share code, notes, and snippets.

@blume0
blume0 / proj_out_of_stuck_prop.lean
Last active November 12, 2026 15:36
Weird metaprogramming-free reproducer of https://github.com/leanprover/lean4/pull/14807/
-- STEP 1:
-- have an instance of failure of transitivity of defeq with: a b c : A, a EQ b, a EQ c, but not b EQ c
-- @jeanas's more understandable way to obtain a "neutral"/stuck term
-- https://gitlab.com/-/snippets/6035570
instance True_setoid : Setoid True where
r := (· = ·)
iseqv.refl _ := rfl
iseqv.symm _ := rfl