feat: TransGen r is transitive (#4960)

Closes #4959
This commit is contained in:
François G. Dorais 2024-08-11 22:01:52 -04:00 committed by GitHub
parent dfe493d9d8
commit 23d898c86b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1104,6 +1104,13 @@ inductive Relation.TransGen {α : Sort u} (r : αα → Prop) : αα
/-- Deprecated synonym for `Relation.TransGen`. -/
@[deprecated Relation.TransGen (since := "2024-07-16")] abbrev TC := @Relation.TransGen
theorem Relation.TransGen.trans {α : Sort u} {r : αα → Prop} {a b c} :
TransGen r a b → TransGen r b c → TransGen r a c := by
intro hab hbc
induction hbc with
| single h => exact TransGen.tail hab h
| tail _ h ih => exact TransGen.tail ih h
/-! # Subtype -/
namespace Subtype