summaryrefslogtreecommitdiff
path: root/Nominal/Permutations.lean
diff options
context:
space:
mode:
authorHannes Schulze <haschu0103@outlook.de>2025-10-26 13:26:57 +0100
committerHannes Schulze <haschu0103@outlook.de>2025-10-26 13:31:36 +0100
commit091fd832586627fbf31375fb5487d5e6fa6f7053 (patch)
treeaac1679d86d15e2b9c89c2bd5efb7fd8b97980a0 /Nominal/Permutations.lean
parent10edba2c0365a6858a74da22042c98f9d5fa1acc (diff)
finish name abstraction proofs
Diffstat (limited to 'Nominal/Permutations.lean')
-rw-r--r--Nominal/Permutations.lean5
1 files changed, 5 insertions, 0 deletions
diff --git a/Nominal/Permutations.lean b/Nominal/Permutations.lean
index 1726ed7..a2f8d56 100644
--- a/Nominal/Permutations.lean
+++ b/Nominal/Permutations.lean
@@ -138,6 +138,11 @@ lemma swap_mul_self {a b : X} : ⸨a, b⸩ * ⸨a, b⸩ = 1 := by
apply ext
simp [swap]
+/-- Lifting of Equiv.swap_comm to finite permutations. -/
+lemma swap_comm {a b : X} : ⸨a, b⸩ = ⸨b, a⸩ := by
+ apply ext
+ simp [swap, Equiv.swap_comm]
+
/-- Lifting of Equiv.swap_apply_of_ne_of_ne to finite permutations. -/
lemma swap_apply_of_ne_of_ne {a b c : X} : c ≠ a → c ≠ b → ⸨a, b⸩ c = c := by
intro ha hb