Skip to content

Commit

Permalink
rename 𝕂 to β„‚
Browse files Browse the repository at this point in the history
  • Loading branch information
pmbittner committed Jul 3, 2024
1 parent 478dd88 commit 29c67ba
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ The following table shows where each of the definitions, theorems, and proofs fr
| Definition 4.8 | Non-empty Indexed Set | `empty` | [src/Data/IndexedSet.lagda.md](src/Data/IndexedSet.lagda.md) | The library definition is a predicate that ensures an indexed set to be non-empty. |
| Definition 4.9 | Variant Map | `VMap` | [src/Framework/VariantMap.agda](src/Framework/VariantMap.agda) | This is the finite and non-empty indexed set definition mentioned above. |
| Definition 4.10 | Semantic Domain | `VMap` | [src/Framework/VariantMap.agda](src/Framework/VariantMap.agda) | In contrast to a variant map, the semantic domain is the type of variant maps instead of its elements. |
| Definition 4.11 | configuration language 𝐢 | `𝕂` | [src/Framework/Definitions.agda](src/Framework/Definitions.agda) | | -- TODO Use C instead of K if constructors are removed completely
| Definition 4.11 | configuration language 𝐢 | `β„‚` | [src/Framework/Definitions.agda](src/Framework/Definitions.agda) | |
| Definition 4.12 | variability language 𝐿 | `𝔼` | [src/Framework/Definitions.agda](src/Framework/Definitions.agda) | |
| Definition 4.13 | ⟦.⟧ | `𝔼-Semantics` | [src/Framework/VariabilityLanguage.lagda.md](src/Framework/VariabilityLanguage.lagda.md) | |
| | | `VariabilityLanguage` | [src/Framework/VariabilityLanguage.lagda.md](src/Framework/VariabilityLanguage.lagda.md) | VariabilityLanguage is a bundle of 𝔼, 𝕂 and 𝔼-Semantics. |
Expand Down
4 changes: 2 additions & 2 deletions src/Framework/Compiler.agda
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ record LanguageCompiler {V} (Γ₁ Ξ“β‚‚ : VariabilityLanguage V) : Set₁ where
fnoc : βˆ€ {A} β†’ L₁ A β†’ Config Ξ“β‚‚ β†’ Config Γ₁
fnoc e = from (config-compiler e)

_βŠ•αΆœαΆœ_ : βˆ€ {K₁ Kβ‚‚ K₃ : 𝕂}
_βŠ•αΆœαΆœ_ : βˆ€ {K₁ Kβ‚‚ K₃ : β„‚}
β†’ K₁ ⇔ Kβ‚‚
β†’ Kβ‚‚ ⇔ K₃
β†’ K₁ ⇔ K₃
Expand All @@ -47,7 +47,7 @@ _βŠ•αΆœαΆœ_ : βˆ€ {K₁ Kβ‚‚ K₃ : 𝕂}
}

βŠ•αΆœαΆœ-stable :
βˆ€ {K₁ Kβ‚‚ K₃ : 𝕂}
βˆ€ {K₁ Kβ‚‚ K₃ : β„‚}
(1β†’2 : K₁ ⇔ Kβ‚‚) (2β†’3 : Kβ‚‚ ⇔ K₃)
β†’ to-is-Embedding 1β†’2
β†’ to-is-Embedding 2β†’3
Expand Down
4 changes: 2 additions & 2 deletions src/Framework/Definitions.agda
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ selections language.
π•Š = Set

-- Set of configuration languages
𝕂 : Set₁
𝕂 = Set
β„‚ : Set₁
β„‚ = Set

{-
The set of expressions of a variability language.
Expand Down
4 changes: 2 additions & 2 deletions src/Framework/VariabilityLanguage.lagda.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ We model this set in terms of a function (see IndexedSet).
Hence, the semantics is a function that configures an expression
`e : E A` to a variant `v : V A` for any domain `A : 𝔸`.
```agda
𝔼-Semantics : 𝕍 β†’ 𝕂 β†’ 𝔼 β†’ Set₁
𝔼-Semantics : 𝕍 β†’ β„‚ β†’ 𝔼 β†’ Set₁
𝔼-Semantics V K E = βˆ€ {A : 𝔸} β†’ E A β†’ K β†’ V A
record VariabilityLanguage (V : 𝕍) : Setβ‚‚ where
constructor βŸͺ_,_,_⟫
field
Expression : 𝔼
Config : 𝕂
Config : β„‚
Semantics : 𝔼-Semantics V Config Expression
open VariabilityLanguage public
```
2 changes: 1 addition & 1 deletion src/Lang/2CC.lagda.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ We define `true` to mean choosing the left alternative and `false` to choose the
Defining it the other way around is also possible but we have to pick one definition and stay consistent.
We choose this order to follow the known _if c then a else b_ pattern where the evaluation of a condition _c_ to true means choosing the then-branch, which is the left one.
```agda
Configuration : (Dimension : 𝔽) β†’ 𝕂
Configuration : (Dimension : 𝔽) β†’ β„‚
Configuration Dimension = Dimension β†’ Bool
⟦_⟧ : βˆ€ {i : Size} {Dimension : 𝔽} β†’ 𝔼-Semantics (Rose ∞) (Configuration Dimension) (2CC Dimension i)
Expand Down
2 changes: 1 addition & 1 deletion src/Lang/CCC.lagda.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Thus, and for much simpler proofs, we choose the functional semantics.

First, we define configurations as functions that evaluate dimensions by tags:
```agda
Configuration : (Dimension : 𝔽) β†’ 𝕂
Configuration : (Dimension : 𝔽) β†’ β„‚
Configuration Dimension = Dimension β†’ β„•
```

Expand Down
2 changes: 1 addition & 1 deletion src/Lang/NCC.lagda.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ data NCC (n : β„•β‰₯ 2) (Dimension : 𝔽) : Size β†’ 𝔼 where
## Semantics

```agda
Configuration : (n : β„•β‰₯ 2) β†’ (Dimension : 𝔽) β†’ 𝕂
Configuration : (n : β„•β‰₯ 2) β†’ (Dimension : 𝔽) β†’ β„‚
Configuration n Dimension = Dimension β†’ Fin (β„•β‰₯.toβ„• n)
⟦_⟧ : βˆ€ {i : Size} {Dimension : 𝔽} {n : β„•β‰₯ 2} β†’ 𝔼-Semantics (Rose ∞) (Configuration n Dimension) (NCC n Dimension i)
Expand Down
2 changes: 1 addition & 1 deletion src/Lang/OC.lagda.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ children-wf (Root _ es) = es

Let's first define configurations. Configurations of option calculus tell us which options to in- or exclude. We define `true` to mean "include" and `false` to mean "exclude". Defining it the other way around would also be fine as long as we are consistent. Yet, our way of defining it is in line with if-semantics and how it is usually implemented in papers and tools.
```agda
Configuration : 𝔽 β†’ 𝕂
Configuration : 𝔽 β†’ β„‚
Configuration Option = Option β†’ Bool
```

Expand Down

0 comments on commit 29c67ba

Please sign in to comment.