Mercurial > hg > Members > kono > Proof > galois
annotate src/sym2n.agda @ 274:691b2ee844ef
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 26 Jan 2023 01:16:38 +0900 |
parents | 6d1619d9f880 |
children | 77f01da94c4e |
rev | line source |
---|---|
68 | 1 open import Level hiding ( suc ; zero ) |
2 open import Algebra | |
182
eb94265d2a39
Any based proof computation done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
3 module sym2n where |
68 | 4 |
5 open import Symmetric | |
6 open import Data.Unit | |
7 open import Function.Inverse as Inverse using (_↔_; Inverse; _InverseOf_) | |
8 open import Function | |
9 open import Data.Nat hiding (_⊔_) -- using (ℕ; suc; zero) | |
10 open import Relation.Nullary | |
11 open import Data.Empty | |
12 open import Data.Product | |
13 | |
14 open import Gutil | |
15 open import Putil | |
16 open import Solvable using (solvable) | |
17 open import Relation.Binary.PropositionalEquality hiding ( [_] ) | |
18 | |
19 open import Data.Fin | |
121 | 20 open import Data.Fin.Permutation hiding (_∘ₚ_) |
21 | |
22 infixr 200 _∘ₚ_ | |
23 _∘ₚ_ = Data.Fin.Permutation._∘ₚ_ | |
24 | |
68 | 25 |
182
eb94265d2a39
Any based proof computation done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
26 sym2solvable : solvable (Symmetric 2) |
eb94265d2a39
Any based proof computation done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
27 solvable.dervied-length sym2solvable = 1 |
eb94265d2a39
Any based proof computation done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
28 solvable.end sym2solvable x d = solved1 x d where |
68 | 29 |
70 | 30 open import Data.List using ( List ; [] ; _∷_ ) |
31 | |
182
eb94265d2a39
Any based proof computation done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
32 open Solvable (Symmetric 2) |
153 | 33 open import FLutil |
34 open import Data.List.Fresh hiding ([_]) | |
35 open import Relation.Nary using (⌊_⌋) | |
111 | 36 |
182
eb94265d2a39
Any based proof computation done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
37 p0id : FL→perm ((# 0) :: ((# 0) :: f0)) =p= pid |
153 | 38 p0id = pleq _ _ refl |
39 | |
182
eb94265d2a39
Any based proof computation done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
40 open import Data.List.Fresh.Relation.Unary.Any |
eb94265d2a39
Any based proof computation done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
41 open import FLComm |
153 | 42 |
182
eb94265d2a39
Any based proof computation done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
43 stage2FList : CommFListN 2 1 ≡ cons (zero :: zero :: f0) [] (Level.lift tt) |
eb94265d2a39
Any based proof computation done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
44 stage2FList = refl |
88 | 45 |
182
eb94265d2a39
Any based proof computation done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
46 solved1 : (x : Permutation 2 2) → deriving 1 x → x =p= pid |
184 | 47 solved1 x dr = CommSolved 2 x ( CommFListN 2 1 ) stage2FList p0id solved0 where |
182
eb94265d2a39
Any based proof computation done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
48 solved0 : Any (perm→FL x ≡_) ( CommFListN 2 1 ) |
eb94265d2a39
Any based proof computation done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
162
diff
changeset
|
49 solved0 = CommStage→ 2 1 x dr |
123 | 50 |
119 | 51 |