-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLiftCSNR.lagda
46 lines (37 loc) · 1.21 KB
/
LiftCSNR.lagda
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
\begin{code}
open import SemiNearRingRecord
open import ClosedSemiNearRingRecord
module LiftCSNR (csnr : ClosedSemiNearRing) where
open import Relation.Binary.PropositionalEquality using (_≡_; refl)
import Relation.Binary.EqReasoning as EqReasoning
open import Algebra.FunctionProperties using (LeftZero; RightZero)
open import Algebra.Structures using (module IsCommutativeMonoid;
IsCommutativeMonoid)
open import Data.Product
open import Data.Unit
import Level
open import SemiNearRingRecord
open import Preliminaries
open ClosedSemiNearRing csnr --using (snr; s)
open SemiNearRing snr
open import LiftSNR snr
open import Shape
open import Matrix
EqS : {ss : Shape} → M s ss ss → M s ss ss → Set
EqS W C = W +S (C *S C) ≃S C
entireQS : (ss : Shape) (W : M s ss ss) → ∃ (EqS W)
entireQS L (One x) with entireQ x
... | (c , pf) = ((One c) , pf)
entireQS (B ss1 ss2) (Q w11 w12 w21 w22) =
let
(w11 , pf11 ) = entireQS ss1 w11
(w11c , pf11c) = entireQS {!!} {!!} --
c12 = {!!}
c21 = {!!}
c22 = {!!}
(w22 , pf22 ) = entireQS ss2 w22
(w22c , pf22c) = entireQS {!!} {!!}
in
(Q {!!} {!!} {!!} {!!}) ,
({!!} , {!!} , {!!} , {!!})
\end{code}