SLAnnouncementContact.sleela
lib/advantage/physics/SLAnnouncementContact.sleela · 150 line(s) · sleela
<< lib/advantage/physics/SLAnnouncementContact.sleela
SLeeLa Standard Library Definition.
Definition: Announcements as boundary constraints on a contact manifold --
information topology of a declared economic space. >>
#sleela 3.0
material;
artifact;
pure;
gasoline;
< An announced market is modelled as a 3D CONTACT MANIFOLD (M, alpha) in phase >
< space with coordinates (Volume, Price, Trust) = (x, y, z). alpha is a 1-form; >
< the contact condition alpha ^ d(alpha) != 0 means the space is NOT fully >
< integrable, so sequence, timing and momentum matter. >
< >
< We use the standard contact form alpha = dz - y dx (components a_x=-y, >
< a_y=0, a_z=1). Then d(alpha) = -dy ^ dx = dx ^ dy and >
< alpha ^ d(alpha) = dz ^ dx ^ dy = -(dx ^ dy ^ dz), >
< whose coefficient is -1 != 0 everywhere -- a genuine contact structure. For a >
< general linear 1-form alpha = a_x dx + a_y dy + a_z dz with constant d-part >
< captured as a 2-form (b_xy, b_yz, b_zx), the triple product coefficient is >
< a_x*b_yz + a_y*b_zx + a_z*b_xy, >
< exactly the pairing that must be non-zero. >
class SLAnnouncementContact {
< ---- Descriptive metadata (version 1.11 nested-friendly accessors) ---- >
<< Eleven catalogued attributes with getter/setter pairs, so a GUI, loader,
or catalog can read and (where appropriate) override this record.
Values are faithful to the subject's real origin where publicly known. >>
String metaVersion = "1.0.0";
int metaId = 10532;
String metaAuthor = "Kiro Agent";
String metaDate = "2026-11-08";
String metaCopyright = "SLeeLa project";
String metaTrademark = "none";
String metaCorporation = "none";
< metaOrigin: National | <nation> | International | Galactic >
String metaOrigin = "International";
< metaScienceRating: maturity/robustness on a 1..10 scale >
String metaBirthDate = "2026-11-08";
int metaScienceRating = 7;
<< metaNationalSchedule: contact geometry and homotopy are pure mathematics
(contact structures; algebraic topology); academic, not a statute, applied
here by economic ANALOGY. >>
String metaNationalSchedule = "none";
String getMetaVersion() { return metaVersion; }
void setMetaVersion(String v) { metaVersion = v; }
int getMetaId() { return metaId; }
void setMetaId(int v) { metaId = v; }
String getAuthor() { return metaAuthor; }
void setAuthor(String v) { metaAuthor = v; }
String getDate() { return metaDate; }
void setDate(String v) { metaDate = v; }
String getCopyright() { return metaCopyright; }
void setCopyright(String v) { metaCopyright = v; }
String getTrademark() { return metaTrademark; }
void setTrademark(String v) { metaTrademark = v; }
String getCorporation() { return metaCorporation; }
void setCorporation(String v) { metaCorporation = v; }
String getOrigin() { return metaOrigin; }
void setOrigin(String v) { metaOrigin = v; }
String getBirthDate() { return metaBirthDate; }
void setBirthDate(String v) { metaBirthDate = v; }
int getScienceRating() { return metaScienceRating; }
void setScienceRating(int v) { metaScienceRating = v; }
String getNationalSchedule() { return metaNationalSchedule; }
void setNationalSchedule(String v) { metaNationalSchedule = v; }
< ---- 1-form alpha components (a_x, a_y, a_z) ---- >
double ax;
double ay;
double az;
< ---- d(alpha) as a constant 2-form (b_xy, b_yz, b_zx) ---- >
double bxy;
double byz;
double bzx;
< Standard announcement contact form alpha = dz - y dx, with the point's y >
< supplied so a_x = -y. d(alpha) = dx ^ dy => (b_xy=1, b_yz=0, b_zx=0). >
void standardForm(double y) {
ax = 0.0 - y;
ay = 0.0;
az = 1.0;
bxy = 1.0;
byz = 0.0;
bzx = 0.0;
}
< Fully general linear form, for experimentation. >
void configure(double axv, double ayv, double azv,
double bxyv, double byzv, double bzxv) {
ax = axv; ay = ayv; az = azv;
bxy = bxyv; byz = byzv; bzx = bzxv;
}
< The coefficient of alpha ^ d(alpha) as a top 3-form (dx^dy^dz). >
double contactVolume() {
return ax * byz + ay * bzx + az * bxy;
}
< The contact condition alpha ^ d(alpha) != 0 holds (a genuine, non- >
< integrable announced space where timing/sequence matter). >
boolean isContact(double tol) {
double c = contactVolume();
if (c < 0.0) { c = 0.0 - c; }
return c > tol;
}
<< Announcement as a HYPERPLANE restriction: the announcement confines the
market's allowed instantaneous moves to the 2D contact distribution
ker(alpha) -- the moves (vx,vy,vz) with alpha(v) = 0. Returns true if a
proposed move lies in the allowed slice (to tolerance). >>
boolean moveAllowed(double vx, double vy, double vz, double tol) {
double val = ax * vx + ay * vy + az * vz;
if (val < 0.0) { val = 0.0 - val; }
return val < tol;
}
<< Homotopy / information deformation H(x,t): if the announcing entity lacks
credibility, players continuously warp the announced space back to the
hidden cost reality, rendering the announcement topologically null. We
model credibility in [0,1]: the deformation parameter t runs 0 (announced
surface) -> 1 (hidden reality). The "residual announced value" is
credibility * (1 - t): at t=1 or credibility=0 it is 0 -- null. Returns
the residual. >>
double homotopyResidual(double credibility, double t) {
double cr = credibility;
if (cr < 0.0) { cr = 0.0; }
if (cr > 1.0) { cr = 1.0; }
double tt = t;
if (tt < 0.0) { tt = 0.0; }
if (tt > 1.0) { tt = 1.0; }
return cr * (1.0 - tt);
}
< An announcement is topologically null (fully deformable to hidden reality) >
< when the residual can reach 0 within the deformation -- i.e. credibility is >
< effectively 0. Returns true if the announcement carries no binding force. >
boolean isNull(double credibility, double tol) {
double cr = credibility;
if (cr < 0.0) { cr = 0.0 - cr; }
return cr < tol;
}
String describe() {
return "AnnouncementContact: alpha^dalpha=" + contactVolume()
+ " isContact=" + isContact(0.000001);
}
}