diff options
| author | tslil <tslil@posteo.de> | 2026-04-24 08:37:02 +0100 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-04-24 09:36:19 +0100 |
| commit | 85f0f5bd9ba573ad288ed582399b37e126f598c9 (patch) | |
| tree | f7f8ccd2c3ab564bfffc7b4f65f2f513f668e282 /src/main.rs | |
| parent | ca4fb6dd0d47054688e8ce3cd3931983ddf7eecf (diff) | |
checking for injections, projections, rm vesitigial App
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index e389983..f7ad1c1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -22,10 +22,16 @@ let set Y = X let set Z = record { .y : Y } +let set W = variant [ z. : Z | f. : Float ] + let element x : X = { .b = true, .n = 41 } let element z : Z = { .y = x } +let element the_nat : Nat = z .y .n + +let element w : W = f. 1.44 + // let signature Graph = theory { // .Node :: Set, // .Edge :: (s : Node) (t : Node) -> Set |
