summaryrefslogtreecommitdiff
path: root/Nominal/Instances/Basic.lean
diff options
context:
space:
mode:
authorHannes Schulze <contact@haschu.me>2026-04-14 16:04:44 +0200
committerHannes Schulze <contact@haschu.me>2026-04-15 13:22:40 +0200
commita5ff8efe5b5e314e0aa759318e5fb194e066f612 (patch)
tree4d13dd84ac4ced2360a51799f0e5c846bd733872 /Nominal/Instances/Basic.lean
parent43942e78f4b3ed4cfca3b508f06161d0983c545e (diff)
update lean
Diffstat (limited to 'Nominal/Instances/Basic.lean')
-rw-r--r--Nominal/Instances/Basic.lean10
1 files changed, 6 insertions, 4 deletions
diff --git a/Nominal/Instances/Basic.lean b/Nominal/Instances/Basic.lean
index b627c1b..7a88eeb 100644
--- a/Nominal/Instances/Basic.lean
+++ b/Nominal/Instances/Basic.lean
@@ -59,6 +59,7 @@ Every set can be made into a discrete nominal set, where supp x = โˆ….
-/
section Discrete
+@[reducible]
def NominalSet.mkDiscrete (X : Type) : NominalSet.Discrete ๐”ธ X where
smul ฯ€ x := x
one_smul := by intro; rfl
@@ -330,6 +331,7 @@ instance : PermSet ๐”ธ (Quotient setoid) where
instance instMkEquivariant : Function.Equivariant ๐”ธ (Quotient.mk setoid) := by
constructor; simp
+@[reducible]
def lift_equivariant
{Y : Type} [PermSet ๐”ธ Y] (f : X โ†’ Y) [Function.Equivariant ๐”ธ f]
(h : โˆ€ (a b : X), a โ‰ˆ b โ†’ f a = f b) :
@@ -392,11 +394,11 @@ instance : PermSet ๐”ธ S where
rw [โ† Set.equivariant ๐”ธ S]
exact x.propโŸฉ
one_smul x := by
- apply Subtype.eq
+ apply Subtype.ext
exact MulAction.one_smul x.val
mul_smul ฯ€ ฯ„ x := by
- apply Subtype.eq
- exact MulAction.mul_smul ฯ€ ฯ„ x.val
+ apply Subtype.ext
+ exact SemigroupAction.mul_smul ฯ€ ฯ„ x.val
@[simp] lemma smul_val (ฯ€ : FPerm ๐”ธ) (x : S) : (ฯ€ โ€ข x).val = ฯ€ โ€ข x.val := rfl
@@ -410,7 +412,7 @@ instance : NominalSet ๐”ธ S where
use NominalSet.supp ๐”ธ x.val
constructor
ยท intro ฯ€ hฯ€
- apply Subtype.eq
+ apply Subtype.ext
exact NominalSet.supp_is_support ๐”ธ hฯ€
ยท exact NominalSet.supp_finite ๐”ธ