Skip to content

Commit bbba96d

Browse files
committed
wip
1 parent 59e78c0 commit bbba96d

5 files changed

Lines changed: 431 additions & 12 deletions

File tree

LeanSubst/Lemma/Ren.lean

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
import LeanSubst.Ops
3+
4+
namespace LeanSubst
5+
6+
universe u1 u2 u3
7+
variable {S : Type u1} {T : Type u2}
8+
9+
class RenMapId (S : Type u1) [RenMap S] where
10+
apply_id {t : S} : t⟨Ren.id⟩ = t
11+
12+
class RenMapCompose (S : Type u1) [RenMap S] where
13+
apply_compose {s : S} {r1 r2 : Ren} : s⟨r1⟩⟨r2⟩ = s⟨r1 ∘ r2⟩
14+
15+
@[simp]
16+
theorem Ren.apply_id [RenMap T] [RenMapId T] {t : T} : t⟨id⟩ = t := RenMapId.apply_id
17+
18+
@[simp, grind =]
19+
theorem Ren.apply_compose [RenMap T] [RenMapCompose T] {t : T} {r1 r2 : Ren}
20+
: t⟨r1⟩⟨r2⟩ = t⟨r1 ∘ r2⟩
21+
:= RenMapCompose.apply_compose
22+
23+
24+
end LeanSubst

0 commit comments

Comments
 (0)