vault backup: 2023-10-16 12:13:34

This commit is contained in:
Alice 2023-10-16 12:13:35 +01:00
parent 32d5bd07fe
commit fe0dac55f0
2 changed files with 81 additions and 6 deletions

View file

@ -37,7 +37,7 @@
"state": {
"type": "markdown",
"state": {
"file": "4a1s/RAS/Notas Projeto RAS.md",
"file": "4a1s/MFES/PL - Aula 4.md",
"mode": "source",
"source": false
}
@ -110,7 +110,7 @@
"state": {
"type": "backlink",
"state": {
"file": "4a1s/RAS/Notas Projeto RAS.md",
"file": "4a1s/MFES/PL - Aula 4.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
@ -127,7 +127,7 @@
"state": {
"type": "outgoing-link",
"state": {
"file": "4a1s/RAS/Notas Projeto RAS.md",
"file": "4a1s/MFES/PL - Aula 4.md",
"linksCollapsed": false,
"unlinkedCollapsed": true
}
@ -150,7 +150,7 @@
"state": {
"type": "outline",
"state": {
"file": "4a1s/RAS/Notas Projeto RAS.md"
"file": "4a1s/MFES/PL - Aula 4.md"
}
}
},
@ -185,6 +185,8 @@
},
"active": "cca189cd61cd7fe5",
"lastOpenFiles": [
"4a1s/RAS/Notas Projeto RAS.md",
"4a1s/MFES/PL - Aula 4.md",
"4a1s/ASCN/T - Aula 1.md",
"4a1s/MFES/T - Aula 2.md",
"4a1s/RAS/T - Aula 1.md",
@ -215,8 +217,6 @@
"4a1s/ESR",
"My Digital Garden.md",
"Private-Project",
"Excalidraw/Drawing 2023-09-27 17.15.52.excalidraw.md",
"4a1s/Excalidraw/RAS/process.excalidraw.md",
"4a1s/Excalidraw/RAS",
"Excalidraw",
"-.32118",

75
4a1s/MFES/PL - Aula 4.md Normal file
View file

@ -0,0 +1,75 @@
16 Outubro 2023 - #MFES
## Alloy4Fun
```c
sig User {
follows : set User,
sees : set Photo,
posts : set Photo,
suggested : set User
}
sig Influencer extends User {}
sig Photo {
date : one Day
}
sig Ad extends Photo {}
sig Day {}
// Specify the following properties.
// You can check their correctness with the different commands and
// when specifying each property you can assume all the previous ones to be true.
pred inv1 {
// Every image is posted by one user.
all y: Photo | some x: User | x->y in posts
all x,y : User, z: Photo | x->z in posta
}
pred inv2 {
// Users cannot follow themselves.
}
pred inv3 {
// Users can see ads posted by everyone,
// but only see non ads posted by followed users.
}
pred inv4 {
// If a user posts an ad then all its posts should be labeled as ads.
}
pred inv5 {
// Influencers are followed by everyone else.
}
pred inv6 {
// Influencers post every day.
}
pred inv7 {
// Suggested are other users followed by followed users, but not yet followed.
}
pred inv8 {
// A user only sees ads from followed or suggested users.
}
```